(Faces): Don't talk about internal face vector as arg to facep.
[emacs.git] / configure
blob8242d6ef59f2e9fb3c9f31dde3ab4709c1780914
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 Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
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 ## FreeBSD kernel + glibc based userland
2216 *-*-kfreebsd*gnu* )
2217 opsys=gnu-kfreebsd
2218 case "${canonical}" in
2219 alpha*-*-kfreebsd*) machine=alpha ;;
2220 ia64-*-kfreebsd*) machine=ia64 ;;
2221 sparc64-*-kfreebsd*) machine=sparc ;;
2222 powerpc-*-kfreebsd*) machine=macppc ;;
2223 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2224 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2225 esac
2228 ## NetBSD ports
2229 *-*-netbsd* )
2230 opsys=netbsd
2231 if test -f /usr/lib/crti.o; then
2233 cat >>confdefs.h <<\_ACEOF
2234 #define HAVE_CRTIN
2235 _ACEOF
2239 case "${canonical}" in
2240 alpha*-*-netbsd*) machine=alpha ;;
2241 i[3456]86-*-netbsd*) machine=intel386 ;;
2242 m68k-*-netbsd*)
2243 # This is somewhat bogus.
2244 machine=hp9000s300 ;;
2245 mips-*-netbsd*) machine=pmax ;;
2246 mipsel-*-netbsd*) machine=pmax ;;
2247 mipseb-*-netbsd*) machine=pmax ;;
2248 ns32k-*-netbsd*) machine=ns32000 ;;
2249 powerpc-*-netbsd*) machine=macppc ;;
2250 sparc*-*-netbsd*) machine=sparc ;;
2251 vax-*-netbsd*) machine=vax ;;
2252 arm-*-netbsd*) machine=arm ;;
2253 x86_64-*-netbsd*) machine=amdx86-64 ;;
2254 hppa-*-netbsd*) machine=hp800 ;;
2255 shle-*-netbsd*) machine=sh3el ;;
2256 esac
2259 ## OpenBSD ports
2260 *-*-openbsd* )
2261 opsys=openbsd
2262 case "${canonical}" in
2263 alpha*-*-openbsd*) machine=alpha ;;
2264 arm-*-openbsd*) machine=arm ;;
2265 hppa-*-openbsd*) machine=hp9000s300 ;;
2266 i386-*-openbsd*) machine=intel386 ;;
2267 m68k-*-openbsd*) machine=hp9000s300 ;;
2268 m88k-*-openbsd*) machine=aviion ;;
2269 mips64-*-openbsd*) machine=mips64 ;;
2270 powerpc-*-openbsd*) machine=macppc ;;
2271 sh-*-openbsd*) machine=sh3el ;;
2272 sparc*-*-openbsd*) machine=sparc ;;
2273 vax-*-openbsd*) machine=vax ;;
2274 x86_64-*-openbsd*) machine=amdx86-64 ;;
2275 esac
2278 ## LynxOS ports
2279 *-*-lynxos* )
2280 opsys=lynxos
2281 case "${canonical}" in
2282 i[3456]86-*-lynxos*) machine=intel386 ;;
2283 powerpc-*-lynxos*) machine=powerpc ;;
2284 esac
2287 ## Acorn RISCiX:
2288 arm-acorn-riscix1.1* )
2289 machine=acorn opsys=riscix1-1
2291 arm-acorn-riscix1.2* | arm-acorn-riscix )
2292 ## This name is riscix12 instead of riscix1.2
2293 ## to avoid a file name conflict on MSDOS.
2294 machine=acorn opsys=riscix12
2297 ## BSDI ports
2298 *-*-bsdi* )
2299 opsys=bsdi
2300 case "${canonical}" in
2301 i[345]86-*-bsdi*) machine=intel386 ;;
2302 sparc-*-bsdi*) machine=sparc ;;
2303 powerpc-*-bsdi*) machine=macppc ;;
2304 esac
2305 case "${canonical}" in
2306 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2307 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2308 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2309 *-*-bsdi3* ) opsys=bsdos3 ;;
2310 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2311 esac
2314 ## Alliant machines
2315 ## Strictly speaking, we need the version of the alliant operating
2316 ## system to choose the right machine file, but currently the
2317 ## configuration name doesn't tell us enough to choose the right
2318 ## one; we need to give alliants their own operating system name to
2319 ## do this right. When someone cares, they can help us.
2320 fx80-alliant-* )
2321 machine=alliant4 opsys=bsd4-2
2323 i860-alliant-* )
2324 machine=alliant-2800 opsys=bsd4-3
2327 ## Alpha (DEC) machines.
2328 alpha*-dec-osf* )
2329 machine=alpha opsys=osf1
2330 # This is needed to find X11R6.1 libraries for certain tests.
2331 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2332 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2333 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2334 # due to non-traditional preprocessing with the current compiler
2335 # defaults. OSF 4 can also have that compiler version, and there
2336 # seems always to have been a usable /usr/bin/cpp.
2337 NON_GNU_CPP=/usr/bin/cpp
2338 case "${canonical}" in
2339 alpha*-dec-osf[5-9]*)
2340 opsys=osf5-0 ;;
2341 esac
2344 alpha*-*-linux-gnu* )
2345 machine=alpha opsys=gnu-linux
2348 arm*-*-linux-gnu* )
2349 machine=arm opsys=gnu-linux
2352 ## Altos 3068
2353 m68*-altos-sysv* )
2354 machine=altos opsys=usg5-2
2357 ## Amdahl UTS
2358 580-amdahl-sysv* )
2359 machine=amdahl opsys=usg5-2-2
2362 ## Apollo, Domain/OS
2363 m68*-apollo-* )
2364 machine=apollo opsys=bsd4-3
2367 ## Apple Darwin / Mac OS X
2368 *-apple-darwin* )
2369 case "${canonical}" in
2370 i[3456]86-* ) machine=intel386 ;;
2371 powerpc-* ) machine=powermac ;;
2372 * ) unported=yes ;;
2373 esac
2374 opsys=darwin
2375 # Define CPP as follows to make autoconf work correctly.
2376 CPP="${CC-cc} -E -no-cpp-precomp"
2377 # Use fink packages if available.
2378 if test -d /sw/include && test -d /sw/lib; then
2379 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2380 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2381 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2385 ## AT&T 3b2, 3b5, 3b15, 3b20
2386 we32k-att-sysv* )
2387 machine=att3b opsys=usg5-2-2
2390 ## AT&T 3b1 - The Mighty Unix PC!
2391 m68*-att-sysv* )
2392 machine=7300 opsys=usg5-2-2
2395 ## Bull dpx20
2396 rs6000-bull-bosx* )
2397 machine=ibmrs6000 opsys=aix3-2
2400 ## Bull dpx2
2401 m68*-bull-sysv3* )
2402 machine=dpx2 opsys=usg5-3
2405 ## Bull sps7
2406 m68*-bull-sysv2* )
2407 machine=sps7 opsys=usg5-2
2410 ## CCI 5/32, 6/32 -- see "Tahoe".
2412 ## Celerity
2413 ## I don't know what configuration name to use for this; config.sub
2414 ## doesn't seem to know anything about it. Hey, Celerity users, get
2415 ## in touch with us!
2416 celerity-celerity-bsd* )
2417 machine=celerity opsys=bsd4-2
2420 ## Clipper
2421 ## What operating systems does this chip run that Emacs has been
2422 ## tested on?
2423 clipper-* )
2424 machine=clipper
2425 ## We'll use the catch-all code at the bottom to guess the
2426 ## operating system.
2429 ## Compaq Nonstop
2430 mips-compaq-nonstopux* )
2431 machine=nonstopux opsys=nonstopux
2434 ## Convex
2435 *-convex-bsd* | *-convex-convexos* )
2436 machine=convex opsys=bsd4-3
2437 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2438 NON_GNU_CPP="cc -E -P"
2441 ## Cubix QBx/386
2442 i[3456]86-cubix-sysv* )
2443 machine=intel386 opsys=usg5-3
2446 ## Cydra 5
2447 cydra*-cydrome-sysv* )
2448 machine=cydra5 opsys=usg5-3
2451 ## Data General AViiON Machines
2452 ## DG changed naming conventions with the release of 5.4.4.10, they
2453 ## dropped the initial 5.4 but left the intervening R. Because of the
2454 ## R this shouldn't conflict with older versions of the OS (which I
2455 ## think were named like dgux4.*). In addition, DG new AViiONs series
2456 ## uses either Motorola M88k or Intel Pentium CPUs.
2457 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2458 machine=aviion opsys=dgux4
2460 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2461 ## This name is dgux5-4-3 instead of dgux5-4r3
2462 ## to avoid a file name conflict on MSDOS.
2463 machine=aviion opsys=dgux5-4-3
2465 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2466 machine=aviion opsys=dgux5-4r2
2468 m88k-dg-dgux* )
2469 machine=aviion opsys=dgux
2472 ## Data General AViiON Intel (x86) Machines
2473 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2474 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2475 i[345]86-dg-dguxR4* )
2476 machine=aviion-intel opsys=dgux4
2479 ## DECstations
2480 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2481 machine=pmax opsys=bsd4-2
2483 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2484 machine=pmax opsys=bsd4-3
2486 mips-dec-ultrix* )
2487 machine=pmax opsys=ultrix4-3
2489 mips-dec-osf* )
2490 machine=pmax opsys=osf1
2492 mips-dec-mach_bsd4.3* )
2493 machine=pmax opsys=mach-bsd4-3
2496 ## Motorola Delta machines
2497 m68k-motorola-sysv* | m68000-motorola-sysv* )
2498 machine=delta opsys=usg5-3
2499 if test -z "`type gnucc | grep 'not found'`"
2500 then
2501 if test -s /etc/167config
2502 then CC="gnucc -m68040"
2503 else CC="gnucc -m68881"
2505 else
2506 if test -z "`type gcc | grep 'not found'`"
2507 then CC=gcc
2508 else CC=cc
2512 m88k-motorola-sysv4* )
2513 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2514 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2515 # I hope there are not other 4.0 versions for this machine
2516 # which really need usg5-4 instead.
2517 machine=delta88k opsys=usg5-4-2
2519 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2520 machine=delta88k opsys=usg5-3
2523 ## Dual machines
2524 m68*-dual-sysv* )
2525 machine=dual opsys=usg5-2
2527 m68*-dual-uniplus* )
2528 machine=dual opsys=unipl5-2
2531 ## Elxsi 6400
2532 elxsi-elxsi-sysv* )
2533 machine=elxsi opsys=usg5-2
2536 ## Encore machines
2537 ns16k-encore-bsd* )
2538 machine=ns16000 opsys=umax
2541 ## The GEC 63 - apparently, this port isn't really finished yet.
2542 # I'm sure we finished off the last of the machines, though. -- fx
2544 ## Gould Power Node and NP1
2545 pn-gould-bsd4.2* )
2546 machine=gould opsys=bsd4-2
2548 pn-gould-bsd4.3* )
2549 machine=gould opsys=bsd4-3
2551 np1-gould-bsd* )
2552 machine=gould-np1 opsys=bsd4-3
2555 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2556 ## as far as Emacs is concerned).
2557 m88k-harris-cxux* )
2558 # Build needs to be different on 7.0 and later releases
2559 case "`uname -r`" in
2560 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2561 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2562 esac
2563 NON_GNU_CPP="/lib/cpp"
2565 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2566 m68k-harris-cxux* )
2567 machine=nh3000 opsys=cxux
2569 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2570 powerpc-harris-powerunix )
2571 machine=nh6000 opsys=powerunix
2572 NON_GNU_CPP="cc -Xo -E -P"
2574 ## SR2001/SR2201 running HI-UX/MPP
2575 hppa1.1-hitachi-hiuxmpp* )
2576 machine=sr2k opsys=hiuxmpp
2578 hppa1.1-hitachi-hiuxwe2* )
2579 machine=sr2k opsys=hiuxwe2
2581 ## Honeywell XPS100
2582 xps*-honeywell-sysv* )
2583 machine=xps100 opsys=usg5-2
2586 ## HP 9000 series 200 or 300
2587 m68*-hp-bsd* )
2588 machine=hp9000s300 opsys=bsd4-3
2590 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2591 m68*-hp-hpux* )
2592 case "`uname -r`" in
2593 ## Someone's system reports A.B8.05 for this.
2594 ## I wonder what other possibilities there are.
2595 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2596 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2597 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2598 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2599 *) machine=hp9000s300 opsys=hpux ;;
2600 esac
2603 ## HP 9000 series 700 and 800, running HP/UX
2604 hppa*-hp-hpux7* )
2605 machine=hp800 opsys=hpux
2607 hppa*-hp-hpux8* )
2608 machine=hp800 opsys=hpux8
2610 hppa*-hp-hpux9shr* )
2611 machine=hp800 opsys=hpux9shr
2613 hppa*-hp-hpux9* )
2614 machine=hp800 opsys=hpux9
2616 hppa*-hp-hpux10.2* )
2617 machine=hp800 opsys=hpux10-20
2619 hppa*-hp-hpux10* )
2620 machine=hp800 opsys=hpux10
2622 hppa*-hp-hpux1[1-9]* )
2623 machine=hp800 opsys=hpux11
2624 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2627 hppa*-*-linux-gnu* )
2628 machine=hp800 opsys=gnu-linux
2631 ## HP 9000 series 700 and 800, running HP/UX
2632 hppa*-hp-hpux* )
2633 ## Cross-compilation? Nah!
2634 case "`uname -r`" in
2635 ## Someone's system reports A.B8.05 for this.
2636 ## I wonder what other possibilities there are.
2637 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2638 *.08.* ) machine=hp800 opsys=hpux8 ;;
2639 *.09.* ) machine=hp800 opsys=hpux9 ;;
2640 *) machine=hp800 opsys=hpux10 ;;
2641 esac
2643 hppa*-*-nextstep* )
2644 machine=hp800 opsys=nextstep
2647 ## Orion machines
2648 orion-orion-bsd* )
2649 machine=orion opsys=bsd4-2
2651 clipper-orion-bsd* )
2652 machine=orion105 opsys=bsd4-2
2655 ## IBM machines
2656 i[3456]86-ibm-aix1.1* )
2657 machine=ibmps2-aix opsys=usg5-2-2
2659 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2660 machine=ibmps2-aix opsys=usg5-3
2662 i370-ibm-aix*)
2663 machine=ibm370aix opsys=usg5-3
2665 s390-*-linux-gnu* )
2666 machine=ibms390 opsys=gnu-linux
2668 s390x-*-linux-gnu* )
2669 machine=ibms390x opsys=gnu-linux
2671 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2672 machine=ibmrs6000 opsys=aix3-1
2674 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2675 machine=ibmrs6000 opsys=aix3-2-5
2677 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2678 machine=ibmrs6000 opsys=aix4-1
2680 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2681 machine=ibmrs6000 opsys=aix4-2
2683 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2684 machine=ibmrs6000 opsys=aix4-2
2686 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2687 machine=ibmrs6000 opsys=aix4-2
2689 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2690 machine=ibmrs6000 opsys=aix4
2692 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2693 machine=ibmrs6000 opsys=aix4-1
2695 rs6000-ibm-aix* | powerpc-ibm-aix* )
2696 machine=ibmrs6000 opsys=aix3-2
2698 romp-ibm-bsd4.3* )
2699 machine=ibmrt opsys=bsd4-3
2701 romp-ibm-bsd4.2* )
2702 machine=ibmrt opsys=bsd4-2
2704 romp-ibm-aos4.3* )
2705 machine=ibmrt opsys=bsd4-3
2707 romp-ibm-aos4.2* )
2708 machine=ibmrt opsys=bsd4-2
2710 romp-ibm-aos* )
2711 machine=ibmrt opsys=bsd4-3
2713 romp-ibm-bsd* )
2714 machine=ibmrt opsys=bsd4-3
2716 romp-ibm-aix* )
2717 machine=ibmrt-aix opsys=usg5-2-2
2720 ## Integrated Solutions `Optimum V'
2721 m68*-isi-bsd4.2* )
2722 machine=isi-ov opsys=bsd4-2
2724 m68*-isi-bsd4.3* )
2725 machine=isi-ov opsys=bsd4-3
2728 ## Intel 386 machines where we do care about the manufacturer
2729 i[3456]86-intsys-sysv* )
2730 machine=is386 opsys=usg5-2-2
2733 ## Prime EXL
2734 i[3456]86-prime-sysv* )
2735 machine=i386 opsys=usg5-3
2738 ## Sequent Symmetry running Dynix
2739 i[3456]86-sequent-bsd* )
2740 machine=symmetry opsys=bsd4-3
2743 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2744 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2745 machine=sequent-ptx opsys=ptx4
2746 NON_GNU_CPP=/lib/cpp
2749 ## Sequent Symmetry running DYNIX/ptx
2750 ## Use the old cpp rather than the newer ANSI one.
2751 i[3456]86-sequent-ptx* )
2752 machine=sequent-ptx opsys=ptx
2753 NON_GNU_CPP="/lib/cpp"
2756 ## ncr machine running svr4.3.
2757 i[3456]86-ncr-sysv4.3 )
2758 machine=ncr386 opsys=usg5-4-3
2761 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2762 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2763 i[3456]86-ncr-sysv* )
2764 machine=ncr386 opsys=usg5-4-2
2767 ## Intel Paragon OSF/1
2768 i860-intel-osf1* )
2769 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2772 ## Intel 860
2773 i860-*-sysv4* )
2774 machine=i860 opsys=usg5-4
2775 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2776 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2779 ## Macintosh PowerPC
2780 powerpc*-*-linux-gnu* )
2781 machine=macppc opsys=gnu-linux
2784 ## Masscomp machines
2785 m68*-masscomp-rtu* )
2786 machine=masscomp opsys=rtu
2789 ## Megatest machines
2790 m68*-megatest-bsd* )
2791 machine=mega68 opsys=bsd4-2
2794 ## Workstations sold by MIPS
2795 ## This is not necessarily all workstations using the MIPS processor -
2796 ## Irises are produced by SGI, and DECstations by DEC.
2798 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2799 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2800 ## it gives for choosing between the alternatives seems to be "Use
2801 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2802 ## the BSD world." I'll assume that these are instructions for
2803 ## handling two odd situations, and that every other situation
2804 ## should use mips.h and usg5-2-2, they being listed first.
2805 mips-mips-usg* )
2806 machine=mips4
2807 ## Fall through to the general code at the bottom to decide on the OS.
2809 mips-mips-riscos4* )
2810 machine=mips4 opsys=bsd4-3
2811 NON_GNU_CC="cc -systype bsd43"
2812 NON_GNU_CPP="cc -systype bsd43 -E"
2814 mips-mips-riscos5* )
2815 machine=mips4 opsys=riscos5
2816 NON_GNU_CC="cc -systype bsd43"
2817 NON_GNU_CPP="cc -systype bsd43 -E"
2819 mips-mips-bsd* )
2820 machine=mips opsys=bsd4-3
2822 mips-mips-* )
2823 machine=mips opsys=usg5-2-2
2826 ## NeXT
2827 m68*-next-* | m68k-*-nextstep* )
2828 machine=m68k opsys=nextstep
2831 ## The complete machine from National Semiconductor
2832 ns32k-ns-genix* )
2833 machine=ns32000 opsys=usg5-2
2836 ## NCR machines
2837 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2838 machine=tower32 opsys=usg5-2-2
2840 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2841 machine=tower32v3 opsys=usg5-3
2844 ## NEC EWS4800
2845 mips-nec-sysv4*)
2846 machine=ews4800 opsys=ux4800
2849 ## Nixdorf Targon 31
2850 m68*-nixdorf-sysv* )
2851 machine=targon31 opsys=usg5-2-2
2854 ## Nu (TI or LMI)
2855 m68*-nu-sysv* )
2856 machine=nu opsys=usg5-2
2859 ## Plexus
2860 m68*-plexus-sysv* )
2861 machine=plexus opsys=usg5-2
2864 ## Pyramid machines
2865 ## I don't really have any idea what sort of processor the Pyramid has,
2866 ## so I'm assuming it is its own architecture.
2867 pyramid-pyramid-bsd* )
2868 machine=pyramid opsys=bsd4-2
2871 ## Sequent Balance
2872 ns32k-sequent-bsd4.2* )
2873 machine=sequent opsys=bsd4-2
2875 ns32k-sequent-bsd4.3* )
2876 machine=sequent opsys=bsd4-3
2879 ## Siemens Nixdorf
2880 mips-siemens-sysv* | mips-sni-sysv*)
2881 machine=mips-siemens opsys=usg5-4
2882 NON_GNU_CC=/usr/ccs/bin/cc
2883 NON_GNU_CPP=/usr/ccs/lib/cpp
2886 ## Silicon Graphics machines
2887 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2888 m68*-sgi-iris3.5* )
2889 machine=irist opsys=iris3-5
2891 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2892 machine=irist opsys=iris3-6
2894 ## Iris 4D
2895 mips-sgi-irix3* )
2896 machine=iris4d opsys=irix3-3
2898 mips-sgi-irix4* )
2899 machine=iris4d opsys=irix4-0
2901 mips-sgi-irix6.5 )
2902 machine=iris4d opsys=irix6-5
2903 # Without defining _LANGUAGE_C, things get masked out in the headers
2904 # so that, for instance, grepping for `free' in stdlib.h fails and
2905 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2906 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2907 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2909 mips-sgi-irix6* )
2910 machine=iris4d opsys=irix6-0
2911 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2912 # but presumably it does no harm.
2913 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2914 # -32 probably isn't necessary in later v.6s -- anyone know which?
2915 NON_GCC_TEST_OPTIONS=-32
2917 mips-sgi-irix5.[01]* )
2918 machine=iris4d opsys=irix5-0
2920 mips-sgi-irix5* | mips-sgi-irix* )
2921 machine=iris4d opsys=irix5-2
2924 ## SONY machines
2925 m68*-sony-bsd4.2* )
2926 machine=news opsys=bsd4-2
2928 m68*-sony-bsd4.3* )
2929 machine=news opsys=bsd4-3
2931 m68*-sony-newsos3* | m68*-sony-news3*)
2932 machine=news opsys=bsd4-3
2934 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2935 machine=news-risc opsys=bsd4-3
2937 mips-sony-newsos6* )
2938 machine=news-r6 opsys=newsos6
2940 mips-sony-news* )
2941 machine=news-risc opsys=newsos5
2944 ## Stride
2945 m68*-stride-sysv* )
2946 machine=stride opsys=usg5-2
2949 ## Suns
2950 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2951 machine=sparc opsys=gnu-linux
2954 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2955 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2956 | rs6000-*-solaris2*)
2957 case "${canonical}" in
2958 m68*-sunos1* ) machine=sun1 ;;
2959 m68*-sunos2* ) machine=sun2 ;;
2960 m68* ) machine=sun3 ;;
2961 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2962 i[3456]86-*-* ) machine=intel386 ;;
2963 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2964 powerpcle* ) machine=powerpcle ;;
2965 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2966 sparc* ) machine=sparc ;;
2967 * ) unported=yes ;;
2968 esac
2969 case "${canonical}" in
2970 ## The Sun386 didn't get past 4.0.
2971 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2972 *-sunos4.0* ) opsys=sunos4-0 ;;
2973 *-sunos4.1.[3-9]*noshare )
2974 ## This name is sunos413 instead of sunos4-1-3
2975 ## to avoid a file name conflict on MSDOS.
2976 opsys=sunos413
2977 NON_GNU_CPP=/usr/lib/cpp
2978 NON_GCC_TEST_OPTIONS=-Bstatic
2979 GCC_TEST_OPTIONS=-static
2981 *-sunos4.1.[3-9]* | *-sunos4shr*)
2982 opsys=sunos4shr
2983 NON_GNU_CPP=/usr/lib/cpp
2985 *-sunos4* | *-sunos )
2986 opsys=sunos4-1
2987 NON_GCC_TEST_OPTIONS=-Bstatic
2988 GCC_TEST_OPTIONS=-static
2990 *-sunos5.3* | *-solaris2.3* )
2991 opsys=sol2-3
2992 NON_GNU_CPP=/usr/ccs/lib/cpp
2994 *-sunos5.4* | *-solaris2.4* )
2995 opsys=sol2-4
2996 NON_GNU_CPP=/usr/ccs/lib/cpp
2997 RANLIB="ar -ts"
2999 *-sunos5.5* | *-solaris2.5* )
3000 opsys=sol2-5
3001 NON_GNU_CPP=/usr/ccs/lib/cpp
3002 RANLIB="ar -ts"
3004 *-sunos5.6* | *-solaris2.6* )
3005 opsys=sol2-6
3006 NON_GNU_CPP=/usr/ccs/lib/cpp
3007 RANLIB="ar -ts"
3009 *-sunos5* | *-solaris* )
3010 opsys=sol2-6
3011 ## FIXME: make this into a proper fix that checks the compiler type,
3012 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3013 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3014 ## -Xs prevents spurious whitespace.
3015 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3016 else
3017 NON_GNU_CPP=/usr/ccs/lib/cpp
3020 * ) opsys=bsd4-2 ;;
3021 esac
3022 ## Watch out for a compiler that we know will not work.
3023 case "${canonical}" in
3024 *-solaris* | *-sunos5* )
3025 if [ "x$CC" = x/usr/ucb/cc ]; then
3026 ## /usr/ucb/cc doesn't work;
3027 ## we should find some other compiler that does work.
3028 unset CC
3031 *) ;;
3032 esac
3034 sparc-*-nextstep* )
3035 machine=sparc opsys=nextstep
3038 ## Tadpole 68k
3039 m68*-tadpole-sysv* )
3040 machine=tad68k opsys=usg5-3
3043 ## Tahoe machines
3044 tahoe-tahoe-bsd4.2* )
3045 machine=tahoe opsys=bsd4-2
3047 tahoe-tahoe-bsd4.3* )
3048 machine=tahoe opsys=bsd4-3
3051 ## Tandem Integrity S2
3052 mips-tandem-sysv* )
3053 machine=tandem-s2 opsys=usg5-3
3056 ## Tektronix XD88
3057 m88k-tektronix-sysv3* )
3058 machine=tekxd88 opsys=usg5-3
3061 ## Tektronix 16000 box (6130?)
3062 ns16k-tektronix-bsd* )
3063 machine=ns16000 opsys=bsd4-2
3065 ## Tektronix 4300
3066 ## src/m/tek4300.h hints that this is a m68k machine.
3067 m68*-tektronix-bsd* )
3068 machine=tek4300 opsys=bsd4-3
3071 ## Titan P2 or P3
3072 ## We seem to have lost the machine-description file titan.h!
3073 titan-titan-sysv* )
3074 machine=titan opsys=usg5-3
3077 ## Ustation E30 (SS5E)
3078 m68*-unisys-uniplus* )
3079 machine=ustation opsystem=unipl5-2
3082 ## Vaxen.
3083 vax-dec-* )
3084 machine=vax
3085 case "${canonical}" in
3086 *-bsd4.1* ) opsys=bsd4-1 ;;
3087 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3088 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3089 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3090 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3091 *-vms* ) opsys=vms ;;
3092 * ) unported=yes
3093 esac
3096 ## Whitechapel MG1
3097 ns16k-whitechapel-* )
3098 machine=mg1
3099 ## We don't know what sort of OS runs on these; we'll let the
3100 ## operating system guessing code below try.
3103 ## Wicat
3104 m68*-wicat-sysv* )
3105 machine=wicat opsys=usg5-2
3108 ## IA-64
3109 ia64*-*-linux* )
3110 machine=ia64 opsys=gnu-linux
3113 ## Intel 386 machines where we don't care about the manufacturer
3114 i[3456]86-*-* )
3115 machine=intel386
3116 case "${canonical}" in
3117 *-cygwin ) opsys=cygwin ;;
3118 *-darwin* ) opsys=darwin
3119 CPP="${CC-cc} -E -no-cpp-precomp"
3121 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3122 *-isc2.2* ) opsys=isc2-2 ;;
3123 *-isc4.0* ) opsys=isc4-0 ;;
3124 *-isc4.* ) opsys=isc4-1
3125 GCC_TEST_OPTIONS=-posix
3126 NON_GCC_TEST_OPTIONS=-Xp
3128 *-isc* ) opsys=isc3-0 ;;
3129 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3130 *-esix* ) opsys=esix ;;
3131 *-xenix* ) opsys=xenix ;;
3132 *-linux-gnu* ) opsys=gnu-linux ;;
3133 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3134 *-sco3.2v5* ) opsys=sco5
3135 NON_GNU_CPP=/lib/cpp
3136 # Prevent -belf from being passed to $CPP.
3137 # /lib/cpp does not accept it.
3138 OVERRIDE_CPPFLAGS=" "
3140 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3141 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3142 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3143 *-386bsd* ) opsys=386bsd ;;
3144 *-nextstep* ) opsys=nextstep ;;
3145 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3146 esac
3149 ## m68k Linux-based GNU system
3150 m68k-*-linux-gnu* )
3151 machine=m68k opsys=gnu-linux
3154 ## Mips Linux-based GNU system
3155 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3156 machine=mips opsys=gnu-linux
3159 ## UXP/DS
3160 sparc-fujitsu-sysv4* )
3161 machine=sparc opsys=uxpds
3162 NON_GNU_CPP=/usr/ccs/lib/cpp
3163 RANLIB="ar -ts"
3166 ## UXP/V
3167 f301-fujitsu-uxpv4.1)
3168 machine=f301 opsys=uxpv
3171 ## AMD x86-64 Linux-based GNU system
3172 x86_64-*-linux-gnu* )
3173 machine=amdx86-64 opsys=gnu-linux
3176 ## Tensilica Xtensa Linux-based GNU system
3177 xtensa-*-linux-gnu* )
3178 machine=xtensa opsys=gnu-linux
3182 unported=yes
3184 esac
3186 ### If the code above didn't choose an operating system, just choose
3187 ### an operating system based on the configuration name. You really
3188 ### only want to use this when you have no idea what the right
3189 ### operating system is; if you know what operating systems a machine
3190 ### runs, it's cleaner to make it explicit in the case statement
3191 ### above.
3192 if test x"${opsys}" = x; then
3193 case "${canonical}" in
3194 *-gnu* ) opsys=gnu ;;
3195 *-bsd4.[01] ) opsys=bsd4-1 ;;
3196 *-bsd4.2 ) opsys=bsd4-2 ;;
3197 *-bsd4.3 ) opsys=bsd4-3 ;;
3198 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3199 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3200 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3201 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3202 *-sysv4.2uw* ) opsys=unixware ;;
3203 *-sysv5uw* ) opsys=unixware ;;
3204 *-sysv5OpenUNIX* ) opsys=unixware ;;
3205 *-sysv4.1* | *-sysvr4.1* )
3206 NON_GNU_CPP=/usr/lib/cpp
3207 opsys=usg5-4 ;;
3208 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3209 if [ x$NON_GNU_CPP = x ]; then
3210 if [ -f /usr/ccs/lib/cpp ]; then
3211 NON_GNU_CPP=/usr/ccs/lib/cpp
3212 else
3213 NON_GNU_CPP=/lib/cpp
3216 opsys=usg5-4-2 ;;
3217 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3219 unported=yes
3221 esac
3226 if test $unported = yes; then
3227 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3228 Check \`etc/MACHINES' for recognized configuration names." >&5
3229 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3230 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3231 { (exit 1); exit 1; }; }
3234 machfile="m/${machine}.h"
3235 opsysfile="s/${opsys}.h"
3238 #### Choose a compiler.
3239 test -n "$CC" && cc_specified=yes
3241 # Save the value of CFLAGS that the user specified.
3242 SPECIFIED_CFLAGS="$CFLAGS"
3244 case ${with_gcc} in
3245 "yes" ) CC="gcc" GCC=yes ;;
3246 "no" ) : ${CC=cc} ;;
3248 esac
3249 ac_ext=c
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3276 done
3277 done
3278 IFS=$as_save_IFS
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284 { echo "$as_me:$LINENO: result: $CC" >&5
3285 echo "${ECHO_T}$CC" >&6; }
3286 else
3287 { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3293 if test -z "$ac_cv_prog_CC"; then
3294 ac_ct_CC=$CC
3295 # Extract the first word of "gcc", so it can be a program name with args.
3296 set dummy gcc; ac_word=$2
3297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 if test -n "$ac_ct_CC"; then
3303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_ac_ct_CC="gcc"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3316 done
3317 done
3318 IFS=$as_save_IFS
3322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3325 echo "${ECHO_T}$ac_ct_CC" >&6; }
3326 else
3327 { echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6; }
3331 if test "x$ac_ct_CC" = x; then
3332 CC=""
3333 else
3334 case $cross_compiling:$ac_tool_warned in
3335 yes:)
3336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3337 whose name does not start with the host triplet. If you think this
3338 configuration is useful to you, please write to autoconf@gnu.org." >&5
3339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3340 whose name does not start with the host triplet. If you think this
3341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3375 IFS=$as_save_IFS
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { echo "$as_me:$LINENO: result: $CC" >&5
3382 echo "${ECHO_T}$CC" >&6; }
3383 else
3384 { echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6; }
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 ac_prog_rejected=no
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411 ac_prog_rejected=yes
3412 continue
3414 ac_cv_prog_CC="cc"
3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3422 if test $ac_prog_rejected = yes; then
3423 # We found a bogon in the path, so make sure we never use it.
3424 set dummy $ac_cv_prog_CC
3425 shift
3426 if test $# != 0; then
3427 # We chose a different compiler from the bogus one.
3428 # However, it has the same basename, so the bogon will be chosen
3429 # first if we set CC to just the basename; use the full file name.
3430 shift
3431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438 { echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6; }
3440 else
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3447 if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 for ac_prog in cl.exe
3451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { echo "$as_me:$LINENO: result: $CC" >&5
3481 echo "${ECHO_T}$CC" >&6; }
3482 else
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3488 test -n "$CC" && break
3489 done
3491 if test -z "$CC"; then
3492 ac_ct_CC=$CC
3493 for ac_prog in cl.exe
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC="$ac_prog"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3525 echo "${ECHO_T}$ac_ct_CC" >&6; }
3526 else
3527 { echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6; }
3532 test -n "$ac_ct_CC" && break
3533 done
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet. If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet. If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548 CC=$ac_ct_CC
3555 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." >&5
3557 echo "$as_me: error: no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3561 # Provide some information about the compiler.
3562 echo "$as_me:$LINENO: checking for C compiler version" >&5
3563 ac_compiler=`set X $ac_compile; echo $2`
3564 { (ac_try="$ac_compiler --version >&5"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compiler --version >&5") 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }
3574 { (ac_try="$ac_compiler -v >&5"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compiler -v >&5") 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3584 { (ac_try="$ac_compiler -V >&5"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compiler -V >&5") 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3603 main ()
3607 return 0;
3609 _ACEOF
3610 ac_clean_files_save=$ac_clean_files
3611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3612 # Try to create an executable without -o first, disregard a.out.
3613 # It will help us diagnose broken compilers, and finding out an intuition
3614 # of exeext.
3615 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3619 # List of possible output files, starting from the most likely.
3620 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3621 # only as a last resort. b.out is created by i960 compilers.
3622 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3624 # The IRIX 6 linker writes into existing files which may not be
3625 # executable, retaining their permissions. Remove them first so a
3626 # subsequent execution test works.
3627 ac_rmfiles=
3628 for ac_file in $ac_files
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3632 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 esac
3634 done
3635 rm -f $ac_rmfiles
3637 if { (ac_try="$ac_link_default"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link_default") 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3648 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3649 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3650 # so that the user can short-circuit this test for compilers unknown to
3651 # Autoconf.
3652 for ac_file in $ac_files ''
3654 test -f "$ac_file" || continue
3655 case $ac_file in
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3658 [ab].out )
3659 # We found the default executable, but exeext='' is most
3660 # certainly right.
3661 break;;
3662 *.* )
3663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3664 then :; else
3665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3667 # We set ac_cv_exeext here because the later test for it is not
3668 # safe: cross compilers may not add the suffix if given an `-o'
3669 # argument, so we may need to know it at that point already.
3670 # Even if this section looks crufty: it has the advantage of
3671 # actually working.
3672 break;;
3674 break;;
3675 esac
3676 done
3677 test "$ac_cv_exeext" = no && ac_cv_exeext=
3679 else
3680 ac_file=''
3683 { echo "$as_me:$LINENO: result: $ac_file" >&5
3684 echo "${ECHO_T}$ac_file" >&6; }
3685 if test -z "$ac_file"; then
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3690 See \`config.log' for more details." >&5
3691 echo "$as_me: error: C compiler cannot create executables
3692 See \`config.log' for more details." >&2;}
3693 { (exit 77); exit 77; }; }
3696 ac_exeext=$ac_cv_exeext
3698 # Check that the compiler produces executables we can run. If not, either
3699 # the compiler is broken, or we cross compile.
3700 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3703 # If not cross compiling, check that we can run a simple program.
3704 if test "$cross_compiling" != yes; then
3705 if { ac_try='./$ac_file'
3706 { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 cross_compiling=no
3716 else
3717 if test "$cross_compiling" = maybe; then
3718 cross_compiling=yes
3719 else
3720 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3721 If you meant to cross compile, use \`--host'.
3722 See \`config.log' for more details." >&5
3723 echo "$as_me: error: cannot run C compiled programs.
3724 If you meant to cross compile, use \`--host'.
3725 See \`config.log' for more details." >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3733 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3734 ac_clean_files=$ac_clean_files_save
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3738 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3739 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3740 echo "${ECHO_T}$cross_compiling" >&6; }
3742 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3743 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3744 if { (ac_try="$ac_link"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_link") 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; then
3754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3755 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3756 # work properly (i.e., refer to `conftest.exe'), while it won't with
3757 # `rm'.
3758 for ac_file in conftest.exe conftest conftest.*; do
3759 test -f "$ac_file" || continue
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 break;;
3764 * ) break;;
3765 esac
3766 done
3767 else
3768 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }
3775 rm -f conftest$ac_cv_exeext
3776 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3777 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3781 ac_exeext=$EXEEXT
3782 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3783 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3784 if test "${ac_cv_objext+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3795 main ()
3799 return 0;
3801 _ACEOF
3802 rm -f conftest.o conftest.obj
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; then
3813 for ac_file in conftest.o conftest.obj conftest.*; do
3814 test -f "$ac_file" || continue;
3815 case $ac_file in
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818 break;;
3819 esac
3820 done
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details." >&5
3827 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details." >&2;}
3829 { (exit 1); exit 1; }; }
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3834 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3835 echo "${ECHO_T}$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3837 ac_objext=$OBJEXT
3838 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3839 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3840 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3851 main ()
3853 #ifndef __GNUC__
3854 choke me
3855 #endif
3858 return 0;
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3878 ac_compiler_gnu=yes
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_compiler_gnu=no
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3891 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3892 GCC=`test $ac_compiler_gnu = yes && echo yes`
3893 ac_test_CFLAGS=${CFLAGS+set}
3894 ac_save_CFLAGS=$CFLAGS
3895 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3896 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3897 if test "${ac_cv_prog_cc_g+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 ac_save_c_werror_flag=$ac_c_werror_flag
3901 ac_c_werror_flag=yes
3902 ac_cv_prog_cc_g=no
3903 CFLAGS="-g"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_prog_cc_g=yes
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 CFLAGS=""
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3950 main ()
3954 return 0;
3956 _ACEOF
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3980 CFLAGS="-g"
3981 cat >conftest.$ac_ext <<_ACEOF
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.$ac_objext; then
4013 ac_cv_prog_cc_g=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_c_werror_flag=$ac_save_c_werror_flag
4030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4031 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4032 if test "$ac_test_CFLAGS" = set; then
4033 CFLAGS=$ac_save_CFLAGS
4034 elif test $ac_cv_prog_cc_g = yes; then
4035 if test "$GCC" = yes; then
4036 CFLAGS="-g -O2"
4037 else
4038 CFLAGS="-g"
4040 else
4041 if test "$GCC" = yes; then
4042 CFLAGS="-O2"
4043 else
4044 CFLAGS=
4047 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4048 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4049 if test "${ac_cv_prog_cc_c89+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 ac_cv_prog_cc_c89=no
4053 ac_save_CC=$CC
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 #include <stdarg.h>
4061 #include <stdio.h>
4062 #include <sys/types.h>
4063 #include <sys/stat.h>
4064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4065 struct buf { int x; };
4066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4067 static char *e (p, i)
4068 char **p;
4069 int i;
4071 return p[i];
4073 static char *f (char * (*g) (char **, int), char **p, ...)
4075 char *s;
4076 va_list v;
4077 va_start (v,p);
4078 s = g (p, va_arg (v,int));
4079 va_end (v);
4080 return s;
4083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4084 function prototypes and stuff, but not '\xHH' hex character constants.
4085 These don't provoke an error unfortunately, instead are silently treated
4086 as 'x'. The following induces an error, until -std is added to get
4087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4088 array size at least. It's necessary to write '\x00'==0 to get something
4089 that's true only with -std. */
4090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4093 inside strings and character constants. */
4094 #define FOO(x) 'x'
4095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097 int test (int i, double x);
4098 struct s1 {int (*f) (int a);};
4099 struct s2 {int (*f) (double a);};
4100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 int argc;
4102 char **argv;
4104 main ()
4106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 return 0;
4110 _ACEOF
4111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114 CC="$ac_save_CC $ac_arg"
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4117 case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_compile") 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } && {
4129 test -z "$ac_c_werror_flag" ||
4130 test ! -s conftest.err
4131 } && test -s conftest.$ac_objext; then
4132 ac_cv_prog_cc_c89=$ac_arg
4133 else
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4140 rm -f core conftest.err conftest.$ac_objext
4141 test "x$ac_cv_prog_cc_c89" != "xno" && break
4142 done
4143 rm -f conftest.$ac_ext
4144 CC=$ac_save_CC
4147 # AC_CACHE_VAL
4148 case "x$ac_cv_prog_cc_c89" in
4150 { echo "$as_me:$LINENO: result: none needed" >&5
4151 echo "${ECHO_T}none needed" >&6; } ;;
4152 xno)
4153 { echo "$as_me:$LINENO: result: unsupported" >&5
4154 echo "${ECHO_T}unsupported" >&6; } ;;
4156 CC="$CC $ac_cv_prog_cc_c89"
4157 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4158 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4159 esac
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 # On Suns, sometimes $CPP names a directory.
4170 if test -n "$CPP" && test -d "$CPP"; then
4171 CPP=
4174 #### Some systems specify a CPP to use unless we are using GCC.
4175 #### Now that we know whether we are using GCC, we can decide whether
4176 #### to use that one.
4177 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4178 then
4179 CPP="$NON_GNU_CPP"
4182 #### Some systems specify a CC to use unless we are using GCC.
4183 #### Now that we know whether we are using GCC, we can decide whether
4184 #### to use that one.
4185 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4186 test x$cc_specified != xyes
4187 then
4188 CC="$NON_GNU_CC"
4191 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4192 then
4193 CC="$CC $GCC_TEST_OPTIONS"
4196 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4197 then
4198 CC="$CC $NON_GCC_TEST_OPTIONS"
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4211 CPP=
4213 if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4220 ac_preproc_ok=false
4221 for ac_c_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #ifdef __STDC__
4236 # include <limits.h>
4237 #else
4238 # include <assert.h>
4239 #endif
4240 Syntax error
4241 _ACEOF
4242 if { (ac_try="$ac_cpp conftest.$ac_ext"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } >/dev/null && {
4255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 }; then
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # Broken: fails on valid input.
4264 continue
4267 rm -f conftest.err conftest.$ac_ext
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <ac_nonexistent.h>
4278 _ACEOF
4279 if { (ac_try="$ac_cpp conftest.$ac_ext"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } >/dev/null && {
4292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 }; then
4295 # Broken: success on invalid input.
4296 continue
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 # Passes both tests.
4302 ac_preproc_ok=:
4303 break
4306 rm -f conftest.err conftest.$ac_ext
4308 done
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then
4312 break
4315 done
4316 ac_cv_prog_CPP=$CPP
4319 CPP=$ac_cv_prog_CPP
4320 else
4321 ac_cv_prog_CPP=$CPP
4323 { echo "$as_me:$LINENO: result: $CPP" >&5
4324 echo "${ECHO_T}$CPP" >&6; }
4325 ac_preproc_ok=false
4326 for ac_c_preproc_warn_flag in '' yes
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #ifdef __STDC__
4341 # include <limits.h>
4342 #else
4343 # include <assert.h>
4344 #endif
4345 Syntax error
4346 _ACEOF
4347 if { (ac_try="$ac_cpp conftest.$ac_ext"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null && {
4360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 }; then
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 # Broken: fails on valid input.
4369 continue
4372 rm -f conftest.err conftest.$ac_ext
4374 # OK, works on sane cases. Now check whether nonexistent headers
4375 # can be detected and how.
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <ac_nonexistent.h>
4383 _ACEOF
4384 if { (ac_try="$ac_cpp conftest.$ac_ext"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null && {
4397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 }; then
4400 # Broken: success on invalid input.
4401 continue
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4411 rm -f conftest.err conftest.$ac_ext
4413 done
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then
4418 else
4419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4420 See \`config.log' for more details." >&5
4421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details." >&2;}
4423 { (exit 1); exit 1; }; }
4426 ac_ext=c
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4434 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4435 if test "${ac_cv_path_GREP+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 # Extract the first word of "grep ggrep" to use in msg output
4439 if test -z "$GREP"; then
4440 set dummy grep ggrep; ac_prog_name=$2
4441 if test "${ac_cv_path_GREP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4461 ac_count=0
4462 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4463 while :
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 ac_count=`expr $ac_count + 1`
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4484 $ac_path_GREP_found && break 3
4485 done
4486 done
4488 done
4489 IFS=$as_save_IFS
4494 GREP="$ac_cv_path_GREP"
4495 if test -z "$GREP"; then
4496 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4497 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4498 { (exit 1); exit 1; }; }
4501 else
4502 ac_cv_path_GREP=$GREP
4507 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4508 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { echo "$as_me:$LINENO: checking for egrep" >&5
4513 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 # Extract the first word of "egrep" to use in msg output
4521 if test -z "$EGREP"; then
4522 set dummy egrep; ac_prog_name=$2
4523 if test "${ac_cv_path_EGREP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_path_EGREP_found=false
4527 # Loop through the user's path and test for each of PROGNAME-LIST
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_prog in egrep; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4536 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4537 # Check for GNU ac_path_EGREP and select it if it is found.
4538 # Check for GNU $ac_path_EGREP
4539 case `"$ac_path_EGREP" --version 2>&1` in
4540 *GNU*)
4541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4543 ac_count=0
4544 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4545 while :
4547 cat "conftest.in" "conftest.in" >"conftest.tmp"
4548 mv "conftest.tmp" "conftest.in"
4549 cp "conftest.in" "conftest.nl"
4550 echo 'EGREP' >> "conftest.nl"
4551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4553 ac_count=`expr $ac_count + 1`
4554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4555 # Best one so far, save it but keep looking for a better one
4556 ac_cv_path_EGREP="$ac_path_EGREP"
4557 ac_path_EGREP_max=$ac_count
4559 # 10*(2^10) chars as input seems more than enough
4560 test $ac_count -gt 10 && break
4561 done
4562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 esac
4566 $ac_path_EGREP_found && break 3
4567 done
4568 done
4570 done
4571 IFS=$as_save_IFS
4576 EGREP="$ac_cv_path_EGREP"
4577 if test -z "$EGREP"; then
4578 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4579 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4580 { (exit 1); exit 1; }; }
4583 else
4584 ac_cv_path_EGREP=$EGREP
4590 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4591 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4592 EGREP="$ac_cv_path_EGREP"
4596 { echo "$as_me:$LINENO: checking for AIX" >&5
4597 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #ifdef _AIX
4606 #endif
4608 _ACEOF
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 $EGREP "yes" >/dev/null 2>&1; then
4611 { echo "$as_me:$LINENO: result: yes" >&5
4612 echo "${ECHO_T}yes" >&6; }
4613 cat >>confdefs.h <<\_ACEOF
4614 #define _ALL_SOURCE 1
4615 _ACEOF
4617 else
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4621 rm -f conftest*
4625 cat >>confdefs.h <<\_ACEOF
4626 #define _GNU_SOURCE 1
4627 _ACEOF
4631 ### Use -Wno-pointer-sign if the compiler supports it
4632 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4633 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4634 SAVE_CFLAGS="$CFLAGS"
4635 CFLAGS="$CFLAGS -Wno-pointer-sign"
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4644 main ()
4648 return 0;
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && {
4665 test -z "$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 } && test -s conftest.$ac_objext; then
4668 has_option=yes
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 has_option=no
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 if test $has_option = yes; then
4678 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4680 { echo "$as_me:$LINENO: result: $has_option" >&5
4681 echo "${ECHO_T}$has_option" >&6; }
4682 CFLAGS="$SAVE_CFLAGS"
4683 unset has_option
4684 unset SAVE_CFLAGS
4686 #### Some other nice autoconf tests.
4688 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4690 LN_S=$as_ln_s
4691 if test "$LN_S" = "ln -s"; then
4692 { echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6; }
4694 else
4695 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4696 echo "${ECHO_T}no, using $LN_S" >&6; }
4699 ac_ext=c
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4705 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4706 # On Suns, sometimes $CPP names a directory.
4707 if test -n "$CPP" && test -d "$CPP"; then
4708 CPP=
4710 if test -z "$CPP"; then
4711 if test "${ac_cv_prog_CPP+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 # Double quotes because CPP needs to be expanded
4715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4717 ac_preproc_ok=false
4718 for ac_c_preproc_warn_flag in '' yes
4720 # Use a header file that comes with gcc, so configuring glibc
4721 # with a fresh cross-compiler works.
4722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4723 # <limits.h> exists even on freestanding compilers.
4724 # On the NeXT, cc -E runs the code through the compiler's parser,
4725 # not just through cpp. "Syntax error" is here to catch this case.
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #ifdef __STDC__
4733 # include <limits.h>
4734 #else
4735 # include <assert.h>
4736 #endif
4737 Syntax error
4738 _ACEOF
4739 if { (ac_try="$ac_cpp conftest.$ac_ext"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null && {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 }; then
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Broken: fails on valid input.
4761 continue
4764 rm -f conftest.err conftest.$ac_ext
4766 # OK, works on sane cases. Now check whether nonexistent headers
4767 # can be detected and how.
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <ac_nonexistent.h>
4775 _ACEOF
4776 if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null && {
4789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 }; then
4792 # Broken: success on invalid input.
4793 continue
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 # Passes both tests.
4799 ac_preproc_ok=:
4800 break
4803 rm -f conftest.err conftest.$ac_ext
4805 done
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4809 break
4812 done
4813 ac_cv_prog_CPP=$CPP
4816 CPP=$ac_cv_prog_CPP
4817 else
4818 ac_cv_prog_CPP=$CPP
4820 { echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6; }
4822 ac_preproc_ok=false
4823 for ac_c_preproc_warn_flag in '' yes
4825 # Use a header file that comes with gcc, so configuring glibc
4826 # with a fresh cross-compiler works.
4827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 # <limits.h> exists even on freestanding compilers.
4829 # On the NeXT, cc -E runs the code through the compiler's parser,
4830 # not just through cpp. "Syntax error" is here to catch this case.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842 Syntax error
4843 _ACEOF
4844 if { (ac_try="$ac_cpp conftest.$ac_ext"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null && {
4857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 }; then
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Broken: fails on valid input.
4866 continue
4869 rm -f conftest.err conftest.$ac_ext
4871 # OK, works on sane cases. Now check whether nonexistent headers
4872 # can be detected and how.
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <ac_nonexistent.h>
4880 _ACEOF
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev/null && {
4894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 }; then
4897 # Broken: success on invalid input.
4898 continue
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 # Passes both tests.
4904 ac_preproc_ok=:
4905 break
4908 rm -f conftest.err conftest.$ac_ext
4910 done
4911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912 rm -f conftest.err conftest.$ac_ext
4913 if $ac_preproc_ok; then
4915 else
4916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4917 See \`config.log' for more details." >&5
4918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&2;}
4920 { (exit 1); exit 1; }; }
4923 ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 # Find a good install program. We prefer a C program (faster),
4930 # so one script is as good as another. But avoid the broken or
4931 # incompatible versions:
4932 # SysV /etc/install, /usr/sbin/install
4933 # SunOS /usr/etc/install
4934 # IRIX /sbin/install
4935 # AIX /bin/install
4936 # AmigaOS /C/install, which installs bootblocks on floppy discs
4937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4940 # OS/2's system install, which has a completely different semantic
4941 # ./install, which can be erroneously created by make from ./install.sh.
4942 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4944 if test -z "$INSTALL"; then
4945 if test "${ac_cv_path_install+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 # Account for people who put trailing slashes in PATH elements.
4954 case $as_dir/ in
4955 ./ | .// | /cC/* | \
4956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4958 /usr/ucb/* ) ;;
4960 # OSF1 and SCO ODT 3.0 have their own names for install.
4961 # Don't use installbsd from OSF since it installs stuff as root
4962 # by default.
4963 for ac_prog in ginstall scoinst install; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4966 if test $ac_prog = install &&
4967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4968 # AIX install. It has an incompatible calling convention.
4970 elif test $ac_prog = install &&
4971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4972 # program-specific install script used by HP pwplus--don't use.
4974 else
4975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4976 break 3
4979 done
4980 done
4982 esac
4983 done
4984 IFS=$as_save_IFS
4988 if test "${ac_cv_path_install+set}" = set; then
4989 INSTALL=$ac_cv_path_install
4990 else
4991 # As a last resort, use the slow shell script. Don't cache a
4992 # value for INSTALL within a source directory, because that will
4993 # break other packages using the cache if that directory is
4994 # removed, or if the value is a relative name.
4995 INSTALL=$ac_install_sh
4998 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4999 echo "${ECHO_T}$INSTALL" >&6; }
5001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5002 # It thinks the first close brace ends the variable substitution.
5003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5007 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5009 if test "x$RANLIB" = x; then
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_RANLIB+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 if test -n "$RANLIB"; then
5019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 RANLIB=$ac_cv_prog_RANLIB
5039 if test -n "$RANLIB"; then
5040 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5041 echo "${ECHO_T}$RANLIB" >&6; }
5042 else
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5049 if test -z "$ac_cv_prog_RANLIB"; then
5050 ac_ct_RANLIB=$RANLIB
5051 # Extract the first word of "ranlib", so it can be a program name with args.
5052 set dummy ranlib; ac_word=$2
5053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5055 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 if test -n "$ac_ct_RANLIB"; then
5059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_RANLIB="ranlib"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5079 if test -n "$ac_ct_RANLIB"; then
5080 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5081 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5082 else
5083 { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5087 if test "x$ac_ct_RANLIB" = x; then
5088 RANLIB=":"
5089 else
5090 case $cross_compiling:$ac_tool_warned in
5091 yes:)
5092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5093 whose name does not start with the host triplet. If you think this
5094 configuration is useful to you, please write to autoconf@gnu.org." >&5
5095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5096 whose name does not start with the host triplet. If you think this
5097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 RANLIB=$ac_ct_RANLIB
5102 else
5103 RANLIB="$ac_cv_prog_RANLIB"
5107 # Extract the first word of "install-info", so it can be a program name with args.
5108 set dummy install-info; ac_word=$2
5109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5111 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 case $INSTALL_INFO in
5115 [\\/]* | ?:[\\/]*)
5116 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5130 done
5131 done
5132 IFS=$as_save_IFS
5135 esac
5137 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5138 if test -n "$INSTALL_INFO"; then
5139 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5140 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5141 else
5142 { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5147 # Extract the first word of "install-info", so it can be a program name with args.
5148 set dummy install-info; ac_word=$2
5149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5151 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 case $INSTALL_INFO in
5155 [\\/]* | ?:[\\/]*)
5156 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in /usr/sbin
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5175 esac
5177 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5178 if test -n "$INSTALL_INFO"; then
5179 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5180 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5181 else
5182 { echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 case $INSTALL_INFO in
5195 [\\/]* | ?:[\\/]*)
5196 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in /sbin
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5214 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5216 esac
5218 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5219 if test -n "$INSTALL_INFO"; then
5220 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5221 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5222 else
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "gzip", so it can be a program name with args.
5229 set dummy gzip; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 case $GZIP_PROG in
5236 [\\/]* | ?:[\\/]*)
5237 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5256 esac
5258 GZIP_PROG=$ac_cv_path_GZIP_PROG
5259 if test -n "$GZIP_PROG"; then
5260 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5261 echo "${ECHO_T}$GZIP_PROG" >&6; }
5262 else
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5270 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5271 then
5272 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5275 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5276 then
5277 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5281 late_LDFLAGS=$LDFLAGS
5282 if test "$GCC" = yes; then
5283 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5284 else
5285 LDFLAGS="$LDFLAGS -znocombreloc"
5288 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5289 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5290 cat >conftest.$ac_ext <<_ACEOF
5291 main(){return 0;}
5292 _ACEOF
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (ac_try="$ac_link"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_link") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest$ac_exeext &&
5310 $as_test_x conftest$ac_exeext; then
5311 { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 LDFLAGS=$late_LDFLAGS
5318 { echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6; }
5322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323 conftest$ac_exeext conftest.$ac_ext
5325 #### Extract some information from the operating system and machine files.
5327 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5328 - which libraries the lib-src programs will want, and
5329 - whether the GNU malloc routines are usable..." >&5
5330 echo "$as_me: checking the machine- and system-dependent files to find out
5331 - which libraries the lib-src programs will want, and
5332 - whether the GNU malloc routines are usable..." >&6;}
5334 ### First figure out CFLAGS (which we use for running the compiler here)
5335 ### and REAL_CFLAGS (which we use for real compilation).
5336 ### The two are the same except on a few systems, where they are made
5337 ### different to work around various lossages. For example,
5338 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5339 ### as implying static linking.
5341 ### If the CFLAGS env var is specified, we use that value
5342 ### instead of the default.
5344 ### It's not important that this name contain the PID; you can't run
5345 ### two configures in the same directory and have anything work
5346 ### anyway.
5347 tempcname="conftest.c"
5349 echo '
5350 #include "'${srcdir}'/src/'${opsysfile}'"
5351 #include "'${srcdir}'/src/'${machfile}'"
5352 #ifndef LIBS_MACHINE
5353 #define LIBS_MACHINE
5354 #endif
5355 #ifndef LIBS_SYSTEM
5356 #define LIBS_SYSTEM
5357 #endif
5358 #ifndef C_SWITCH_SYSTEM
5359 #define C_SWITCH_SYSTEM
5360 #endif
5361 #ifndef C_SWITCH_MACHINE
5362 #define C_SWITCH_MACHINE
5363 #endif
5364 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5365 configure___ c_switch_system=C_SWITCH_SYSTEM
5366 configure___ c_switch_machine=C_SWITCH_MACHINE
5368 #ifndef LIB_X11_LIB
5369 #define LIB_X11_LIB -lX11
5370 #endif
5372 #ifndef LIBX11_MACHINE
5373 #define LIBX11_MACHINE
5374 #endif
5376 #ifndef LIBX11_SYSTEM
5377 #define LIBX11_SYSTEM
5378 #endif
5379 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5381 #ifdef UNEXEC
5382 configure___ unexec=UNEXEC
5383 #else
5384 configure___ unexec=unexec.o
5385 #endif
5387 #ifdef SYSTEM_MALLOC
5388 configure___ system_malloc=yes
5389 #else
5390 configure___ system_malloc=no
5391 #endif
5393 #ifdef USE_MMAP_FOR_BUFFERS
5394 configure___ use_mmap_for_buffers=yes
5395 #else
5396 configure___ use_mmap_for_buffers=no
5397 #endif
5399 #ifndef C_DEBUG_SWITCH
5400 #define C_DEBUG_SWITCH -g
5401 #endif
5403 #ifndef C_OPTIMIZE_SWITCH
5404 #ifdef __GNUC__
5405 #define C_OPTIMIZE_SWITCH -O2
5406 #else
5407 #define C_OPTIMIZE_SWITCH -O
5408 #endif
5409 #endif
5411 #ifndef C_WARNINGS_SWITCH
5412 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5413 #endif
5415 #ifndef LD_SWITCH_MACHINE
5416 #define LD_SWITCH_MACHINE
5417 #endif
5419 #ifndef LD_SWITCH_SYSTEM
5420 #define LD_SWITCH_SYSTEM
5421 #endif
5423 #ifndef LD_SWITCH_X_SITE_AUX
5424 #define LD_SWITCH_X_SITE_AUX
5425 #endif
5427 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5428 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5430 #ifdef THIS_IS_CONFIGURE
5432 /* Get the CFLAGS for tests in configure. */
5433 #ifdef __GNUC__
5434 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5435 #else
5436 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5437 #endif
5439 #else /* not THIS_IS_CONFIGURE */
5441 /* Get the CFLAGS for real compilation. */
5442 #ifdef __GNUC__
5443 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5444 #else
5445 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5446 #endif
5448 #endif /* not THIS_IS_CONFIGURE */
5449 ' > ${tempcname}
5451 # The value of CPP is a quoted variable reference, so we need to do this
5452 # to get its actual value...
5453 CPP=`eval "echo $CPP"`
5454 eval `${CPP} -Isrc ${tempcname} \
5455 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5456 if test "x$SPECIFIED_CFLAGS" = x; then
5457 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5458 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5459 else
5460 REAL_CFLAGS="$CFLAGS"
5462 rm ${tempcname}
5464 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5466 ### Make sure subsequent tests use flags consistent with the build flags.
5468 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5469 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5470 else
5471 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5476 # Check whether --enable-largefile was given.
5477 if test "${enable_largefile+set}" = set; then
5478 enableval=$enable_largefile;
5481 if test "$enable_largefile" != no; then
5483 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5484 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5485 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 ac_cv_sys_largefile_CC=no
5489 if test "$GCC" != yes; then
5490 ac_save_CC=$CC
5491 while :; do
5492 # IRIX 6.2 and later do not support large files by default,
5493 # so use the C compiler's -n32 option if that helps.
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5508 ? 1 : -1];
5510 main ()
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 break
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext
5543 CC="$CC -n32"
5544 rm -f conftest.$ac_objext
5545 if { (ac_try="$ac_compile"
5546 case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_compile") 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_c_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest.$ac_objext; then
5561 ac_cv_sys_largefile_CC=' -n32'; break
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5569 rm -f core conftest.err conftest.$ac_objext
5570 break
5571 done
5572 CC=$ac_save_CC
5573 rm -f conftest.$ac_ext
5576 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5577 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5578 if test "$ac_cv_sys_largefile_CC" != no; then
5579 CC=$CC$ac_cv_sys_largefile_CC
5582 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5583 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 while :; do
5588 cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 /* Check that off_t can represent 2**63 - 1 correctly.
5596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5597 since some C++ compilers masquerading as C compilers
5598 incorrectly reject 9223372036854775807. */
5599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5601 && LARGE_OFF_T % 2147483647 == 1)
5602 ? 1 : -1];
5604 main ()
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5613 case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_sys_file_offset_bits=no; break
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #define _FILE_OFFSET_BITS 64
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5654 main ()
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 ac_cv_sys_file_offset_bits=64; break
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_cv_sys_file_offset_bits=unknown
5688 break
5689 done
5691 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5693 case $ac_cv_sys_file_offset_bits in #(
5694 no | unknown) ;;
5696 cat >>confdefs.h <<_ACEOF
5697 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5698 _ACEOF
5700 esac
5701 rm -f conftest*
5702 if test $ac_cv_sys_file_offset_bits = unknown; then
5703 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5704 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5705 if test "${ac_cv_sys_large_files+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 while :; do
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5723 ? 1 : -1];
5725 main ()
5729 return 0;
5731 _ACEOF
5732 rm -f conftest.$ac_objext
5733 if { (ac_try="$ac_compile"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && {
5746 test -z "$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 } && test -s conftest.$ac_objext; then
5749 ac_cv_sys_large_files=no; break
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #define _LARGE_FILES 1
5765 #include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5773 ? 1 : -1];
5775 main ()
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 ac_cv_sys_large_files=1; break
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_cv_sys_large_files=unknown
5809 break
5810 done
5812 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5813 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5814 case $ac_cv_sys_large_files in #(
5815 no | unknown) ;;
5817 cat >>confdefs.h <<_ACEOF
5818 #define _LARGE_FILES $ac_cv_sys_large_files
5819 _ACEOF
5821 esac
5822 rm -f conftest*
5828 ### The standard library on x86-64 GNU/Linux distributions can
5829 ### be located in either /usr/lib64 or /usr/lib.
5830 case "${canonical}" in
5831 x86_64-*-linux-gnu* )
5832 if test -d /usr/lib64; then
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_X86_64_LIB64_DIR 1
5836 _ACEOF
5839 esac
5844 if test "${with_sound}" != "no"; then
5845 # Sound support for GNU/Linux and the free BSDs.
5846 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5848 if test "${ac_cv_header_stdc+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <stdlib.h>
5858 #include <stdarg.h>
5859 #include <string.h>
5860 #include <float.h>
5863 main ()
5867 return 0;
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 ac_cv_header_stdc=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_header_stdc=no
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 if test $ac_cv_header_stdc = yes; then
5898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <string.h>
5907 _ACEOF
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "memchr" >/dev/null 2>&1; then
5911 else
5912 ac_cv_header_stdc=no
5914 rm -f conftest*
5918 if test $ac_cv_header_stdc = yes; then
5919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 #include <stdlib.h>
5928 _ACEOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev/null 2>&1; then
5932 else
5933 ac_cv_header_stdc=no
5935 rm -f conftest*
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then
5943 else
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ctype.h>
5951 #include <stdlib.h>
5952 #if ((' ' & 0x0FF) == 0x020)
5953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5955 #else
5956 # define ISLOWER(c) \
5957 (('a' <= (c) && (c) <= 'i') \
5958 || ('j' <= (c) && (c) <= 'r') \
5959 || ('s' <= (c) && (c) <= 'z'))
5960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5961 #endif
5963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5965 main ()
5967 int i;
5968 for (i = 0; i < 256; i++)
5969 if (XOR (islower (i), ISLOWER (i))
5970 || toupper (i) != TOUPPER (i))
5971 return 2;
5972 return 0;
5974 _ACEOF
5975 rm -f conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5996 else
5997 echo "$as_me: program exited with status $ac_status" >&5
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ( exit $ac_status )
6002 ac_cv_header_stdc=no
6004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6012 if test $ac_cv_header_stdc = yes; then
6014 cat >>confdefs.h <<\_ACEOF
6015 #define STDC_HEADERS 1
6016 _ACEOF
6020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6031 inttypes.h stdint.h unistd.h
6033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6047 #include <$ac_header>
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 eval "$as_ac_Header=yes"
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 eval "$as_ac_Header=no"
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 ac_res=`eval echo '${'$as_ac_Header'}'`
6077 { echo "$as_me:$LINENO: result: $ac_res" >&5
6078 echo "${ECHO_T}$ac_res" >&6; }
6079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6080 cat >>confdefs.h <<_ACEOF
6081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6082 _ACEOF
6086 done
6092 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 ac_res=`eval echo '${'$as_ac_Header'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 else
6105 # Is the header compilable?
6106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 #include <$ac_header>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 ac_header_compiler=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_header_compiler=no
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6; }
6146 # Is the header present?
6147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <$ac_header>
6156 _ACEOF
6157 if { (ac_try="$ac_cpp conftest.$ac_ext"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null && {
6170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 }; then
6173 ac_header_preproc=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_header_preproc=no
6181 rm -f conftest.err conftest.$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6; }
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6187 yes:no: )
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc=yes
6194 no:yes:* )
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6209 esac
6210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 eval "$as_ac_Header=\$ac_header_preproc"
6217 ac_res=`eval echo '${'$as_ac_Header'}'`
6218 { echo "$as_me:$LINENO: result: $ac_res" >&5
6219 echo "${ECHO_T}$ac_res" >&6; }
6222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6223 cat >>confdefs.h <<_ACEOF
6224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225 _ACEOF
6229 done
6231 # Emulation library used on NetBSD.
6232 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6233 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6234 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 ac_check_lib_save_LIBS=$LIBS
6238 LIBS="-lossaudio $LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 /* Override any GCC internal prototype to avoid an error.
6247 Use char because int might match the return type of a GCC
6248 builtin and then its argument prototype would still apply. */
6249 #ifdef __cplusplus
6250 extern "C"
6251 #endif
6252 char _oss_ioctl ();
6254 main ()
6256 return _oss_ioctl ();
6258 return 0;
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (ac_try="$ac_link"
6263 case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_link") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest$ac_exeext &&
6278 $as_test_x conftest$ac_exeext; then
6279 ac_cv_lib_ossaudio__oss_ioctl=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_cv_lib_ossaudio__oss_ioctl=no
6287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6288 conftest$ac_exeext conftest.$ac_ext
6289 LIBS=$ac_check_lib_save_LIBS
6291 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6292 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6293 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6294 LIBSOUND=-lossaudio
6295 else
6296 LIBSOUND=
6301 ALSA_REQUIRED=1.0.0
6302 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6303 if test "X${with_pkg_config_prog}" != X; then
6304 PKG_CONFIG="${with_pkg_config_prog}"
6307 succeeded=no
6309 if test -z "$PKG_CONFIG"; then
6310 # Extract the first word of "pkg-config", so it can be a program name with args.
6311 set dummy pkg-config; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 case $PKG_CONFIG in
6318 [\\/]* | ?:[\\/]*)
6319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6339 esac
6341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6342 if test -n "$PKG_CONFIG"; then
6343 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6344 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6345 else
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6353 if test "$PKG_CONFIG" = "no" ; then
6354 HAVE_ALSA=no
6355 else
6356 PKG_CONFIG_MIN_VERSION=0.9.0
6357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6358 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6359 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6361 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6362 { echo "$as_me:$LINENO: result: yes" >&5
6363 echo "${ECHO_T}yes" >&6; }
6364 succeeded=yes
6366 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6367 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6368 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6369 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6370 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6372 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6373 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6374 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6375 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6376 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6377 else
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 ALSA_CFLAGS=""
6381 ALSA_LIBS=""
6382 ## If we have a custom action on failure, don't print errors, but
6383 ## do set a variable so people can do so.
6384 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6390 else
6391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6396 if test $succeeded = yes; then
6397 HAVE_ALSA=yes
6398 else
6399 HAVE_ALSA=no
6402 if test $HAVE_ALSA = yes; then
6403 SAVE_CFLAGS="$CFLAGS"
6404 SAVE_LDFLAGS="$LDFLAGS"
6405 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6406 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <asoundlib.h>
6415 main ()
6417 snd_lib_error_set_handler (0);
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 emacs_alsa_normal=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 emacs_alsa_normal=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 if test "$emacs_alsa_normal" != yes; then
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <alsa/asoundlib.h>
6457 main ()
6459 snd_lib_error_set_handler (0);
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (ac_try="$ac_compile"
6466 case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compile") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest.$ac_objext; then
6481 emacs_alsa_subdir=yes
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 emacs_alsa_subdir=no
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 if test "$emacs_alsa_subdir" != yes; then
6491 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6492 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6493 { (exit 1); exit 1; }; }
6495 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6498 CFLAGS="$SAVE_CFLAGS"
6499 LDFLAGS="$SAVE_LDFLAGS"
6500 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6501 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_ALSA 1
6505 _ACEOF
6536 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6537 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6538 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6539 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6540 sys/utsname.h pwd.h
6542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_res=`eval echo '${'$as_ac_Header'}'`
6550 { echo "$as_me:$LINENO: result: $ac_res" >&5
6551 echo "${ECHO_T}$ac_res" >&6; }
6552 else
6553 # Is the header compilable?
6554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6563 #include <$ac_header>
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6567 case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570 esac
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && {
6579 test -z "$ac_c_werror_flag" ||
6580 test ! -s conftest.err
6581 } && test -s conftest.$ac_objext; then
6582 ac_header_compiler=yes
6583 else
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 ac_header_compiler=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6592 echo "${ECHO_T}$ac_header_compiler" >&6; }
6594 # Is the header present?
6595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <$ac_header>
6604 _ACEOF
6605 if { (ac_try="$ac_cpp conftest.$ac_ext"
6606 case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609 esac
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } >/dev/null && {
6618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 }; then
6621 ac_header_preproc=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_header_preproc=no
6629 rm -f conftest.err conftest.$ac_ext
6630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6631 echo "${ECHO_T}$ac_header_preproc" >&6; }
6633 # So? What about this header?
6634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6635 yes:no: )
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6640 ac_header_preproc=yes
6642 no:yes:* )
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6657 esac
6658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 eval "$as_ac_Header=\$ac_header_preproc"
6665 ac_res=`eval echo '${'$as_ac_Header'}'`
6666 { echo "$as_me:$LINENO: result: $ac_res" >&5
6667 echo "${ECHO_T}$ac_res" >&6; }
6670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 _ACEOF
6677 done
6680 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6681 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <sys/personality.h>
6690 main ()
6692 personality (PER_LINUX32)
6694 return 0;
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 emacs_cv_personality_linux32=yes
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 emacs_cv_personality_linux32=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6724 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6726 if test $emacs_cv_personality_linux32 = yes; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_PERSONALITY_LINUX32 1
6730 _ACEOF
6735 for ac_header in term.h
6737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 #include <$ac_header>
6750 _ACEOF
6751 if { (ac_try="$ac_cpp conftest.$ac_ext"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } >/dev/null && {
6764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 }; then
6767 eval "$as_ac_Header=yes"
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 eval "$as_ac_Header=no"
6775 rm -f conftest.err conftest.$ac_ext
6777 ac_res=`eval echo '${'$as_ac_Header'}'`
6778 { echo "$as_me:$LINENO: result: $ac_res" >&5
6779 echo "${ECHO_T}$ac_res" >&6; }
6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783 _ACEOF
6787 done
6789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6791 if test "${ac_cv_header_stdc+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #include <stdlib.h>
6801 #include <stdarg.h>
6802 #include <string.h>
6803 #include <float.h>
6806 main ()
6810 return 0;
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (ac_try="$ac_compile"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_compile") 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest.$ac_objext; then
6830 ac_cv_header_stdc=yes
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_header_stdc=no
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 if test $ac_cv_header_stdc = yes; then
6841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #include <string.h>
6850 _ACEOF
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 $EGREP "memchr" >/dev/null 2>&1; then
6854 else
6855 ac_cv_header_stdc=no
6857 rm -f conftest*
6861 if test $ac_cv_header_stdc = yes; then
6862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <stdlib.h>
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "free" >/dev/null 2>&1; then
6875 else
6876 ac_cv_header_stdc=no
6878 rm -f conftest*
6882 if test $ac_cv_header_stdc = yes; then
6883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6884 if test "$cross_compiling" = yes; then
6886 else
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 #include <ctype.h>
6894 #include <stdlib.h>
6895 #if ((' ' & 0x0FF) == 0x020)
6896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6898 #else
6899 # define ISLOWER(c) \
6900 (('a' <= (c) && (c) <= 'i') \
6901 || ('j' <= (c) && (c) <= 'r') \
6902 || ('s' <= (c) && (c) <= 'z'))
6903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6904 #endif
6906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6908 main ()
6910 int i;
6911 for (i = 0; i < 256; i++)
6912 if (XOR (islower (i), ISLOWER (i))
6913 || toupper (i) != TOUPPER (i))
6914 return 2;
6915 return 0;
6917 _ACEOF
6918 rm -f conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6939 else
6940 echo "$as_me: program exited with status $ac_status" >&5
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ( exit $ac_status )
6945 ac_cv_header_stdc=no
6947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6955 if test $ac_cv_header_stdc = yes; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define STDC_HEADERS 1
6959 _ACEOF
6963 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6964 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6965 if test "${ac_cv_header_time+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <sys/time.h>
6976 #include <time.h>
6979 main ()
6981 if ((struct tm *) 0)
6982 return 0;
6984 return 0;
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_header_time=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_header_time=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7015 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7016 if test $ac_cv_header_time = yes; then
7018 cat >>confdefs.h <<\_ACEOF
7019 #define TIME_WITH_SYS_TIME 1
7020 _ACEOF
7024 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7025 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7026 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7037 main ()
7039 #ifndef sys_siglist
7040 (void) sys_siglist;
7041 #endif
7044 return 0;
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (ac_try="$ac_compile"
7049 case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052 esac
7053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_cv_have_decl_sys_siglist=yes
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_cv_have_decl_sys_siglist=no
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7075 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7076 if test $ac_cv_have_decl_sys_siglist = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_DECL_SYS_SIGLIST 1
7080 _ACEOF
7083 else
7084 cat >>confdefs.h <<_ACEOF
7085 #define HAVE_DECL_SYS_SIGLIST 0
7086 _ACEOF
7092 if test $ac_cv_have_decl_sys_siglist != yes; then
7093 # For Tru64, at least:
7094 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7095 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7096 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h. */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 $ac_includes_default
7107 main ()
7109 #ifndef __sys_siglist
7110 (void) __sys_siglist;
7111 #endif
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7119 case "(($ac_try" in
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7122 esac
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
7134 ac_cv_have_decl___sys_siglist=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_have_decl___sys_siglist=no
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7145 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7146 if test $ac_cv_have_decl___sys_siglist = yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_DECL___SYS_SIGLIST 1
7150 _ACEOF
7153 else
7154 cat >>confdefs.h <<_ACEOF
7155 #define HAVE_DECL___SYS_SIGLIST 0
7156 _ACEOF
7162 if test $ac_cv_have_decl___sys_siglist = yes; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define sys_siglist __sys_siglist
7166 _ACEOF
7170 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7171 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7172 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <sys/types.h>
7182 #include <sys/wait.h>
7183 #ifndef WEXITSTATUS
7184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7185 #endif
7186 #ifndef WIFEXITED
7187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7188 #endif
7191 main ()
7193 int s;
7194 wait (&s);
7195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_header_sys_wait_h=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_header_sys_wait_h=no
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7228 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7229 if test $ac_cv_header_sys_wait_h = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_SYS_WAIT_H 1
7233 _ACEOF
7238 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7239 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7240 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #ifdef TIME_WITH_SYS_TIME
7250 #include <sys/time.h>
7251 #include <time.h>
7252 #else
7253 #ifdef HAVE_SYS_TIME_H
7254 #include <sys/time.h>
7255 #else
7256 #include <time.h>
7257 #endif
7258 #endif
7259 #ifdef HAVE_UTIME_H
7260 #include <utime.h>
7261 #endif
7263 main ()
7265 static struct utimbuf x; x.actime = x.modtime;
7267 return 0;
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 emacs_cv_struct_utimbuf=yes
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 emacs_cv_struct_utimbuf=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7298 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7299 if test $emacs_cv_struct_utimbuf = yes; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define HAVE_STRUCT_UTIMBUF 1
7303 _ACEOF
7307 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7308 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7309 if test "${ac_cv_type_signal+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 #include <sys/types.h>
7319 #include <signal.h>
7322 main ()
7324 return *(signal (0, 0)) (0) == 1;
7326 return 0;
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7331 case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_type_signal=int
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_cv_type_signal=void
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7357 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7359 cat >>confdefs.h <<_ACEOF
7360 #define RETSIGTYPE $ac_cv_type_signal
7361 _ACEOF
7365 { echo "$as_me:$LINENO: checking for speed_t" >&5
7366 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7367 if test "${emacs_cv_speed_t+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <termios.h>
7378 main ()
7380 speed_t x = 1;
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 emacs_cv_speed_t=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 emacs_cv_speed_t=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7413 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7414 if test $emacs_cv_speed_t = yes; then
7416 cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_SPEED_T 1
7418 _ACEOF
7422 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7423 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7424 if test "${emacs_cv_struct_timeval+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #ifdef TIME_WITH_SYS_TIME
7434 #include <sys/time.h>
7435 #include <time.h>
7436 #else
7437 #ifdef HAVE_SYS_TIME_H
7438 #include <sys/time.h>
7439 #else
7440 #include <time.h>
7441 #endif
7442 #endif
7444 main ()
7446 static struct timeval x; x.tv_sec = x.tv_usec;
7448 return 0;
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7453 case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456 esac
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_compile") 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_c_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest.$ac_objext; then
7468 emacs_cv_struct_timeval=yes
7469 else
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 emacs_cv_struct_timeval=no
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7479 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7480 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7481 if test $emacs_cv_struct_timeval = yes; then
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_TIMEVAL 1
7485 _ACEOF
7489 { echo "$as_me:$LINENO: checking for struct exception" >&5
7490 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7491 if test "${emacs_cv_struct_exception+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 #include <math.h>
7502 main ()
7504 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7506 return 0;
7508 _ACEOF
7509 rm -f conftest.$ac_objext
7510 if { (ac_try="$ac_compile"
7511 case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514 esac
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_compile") 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && {
7523 test -z "$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 } && test -s conftest.$ac_objext; then
7526 emacs_cv_struct_exception=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 emacs_cv_struct_exception=no
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7537 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7538 HAVE_EXCEPTION=$emacs_cv_struct_exception
7539 if test $emacs_cv_struct_exception != yes; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define NO_MATHERR 1
7543 _ACEOF
7548 for ac_header in sys/socket.h
7550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_res=`eval echo '${'$as_ac_Header'}'`
7558 { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7560 else
7561 # Is the header compilable?
7562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #include <$ac_header>
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <$ac_header>
7612 _ACEOF
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7614 case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev/null && {
7626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 }; then
7629 ac_header_preproc=yes
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_header_preproc=no
7637 rm -f conftest.err conftest.$ac_ext
7638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7639 echo "${ECHO_T}$ac_header_preproc" >&6; }
7641 # So? What about this header?
7642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7643 yes:no: )
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7648 ac_header_preproc=yes
7650 no:yes:* )
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7665 esac
7666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 eval "$as_ac_Header=\$ac_header_preproc"
7673 ac_res=`eval echo '${'$as_ac_Header'}'`
7674 { echo "$as_me:$LINENO: result: $ac_res" >&5
7675 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 _ACEOF
7685 done
7688 for ac_header in net/if.h
7690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 #if HAVE_SYS_SOCKET_H
7704 #include <sys/socket.h>
7705 #endif
7707 #include <$ac_header>
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 eval "$as_ac_Header=yes"
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 eval "$as_ac_Header=no"
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 ac_res=`eval echo '${'$as_ac_Header'}'`
7737 { echo "$as_me:$LINENO: result: $ac_res" >&5
7738 echo "${ECHO_T}$ac_res" >&6; }
7739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7740 cat >>confdefs.h <<_ACEOF
7741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742 _ACEOF
7746 done
7749 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7750 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7751 if test "${ac_cv_struct_tm+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7761 #include <time.h>
7764 main ()
7766 struct tm tm;
7767 int *p = &tm.tm_sec;
7768 return !p;
7770 return 0;
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_cv_struct_tm=time.h
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_struct_tm=sys/time.h
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7801 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7802 if test $ac_cv_struct_tm = sys/time.h; then
7804 cat >>confdefs.h <<\_ACEOF
7805 #define TM_IN_SYS_TIME 1
7806 _ACEOF
7810 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7811 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7812 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <sys/types.h>
7822 #include <$ac_cv_struct_tm>
7826 main ()
7828 static struct tm ac_aggr;
7829 if (ac_aggr.tm_zone)
7830 return 0;
7832 return 0;
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_cv_member_struct_tm_tm_zone=yes
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 #include <sys/types.h>
7864 #include <$ac_cv_struct_tm>
7868 main ()
7870 static struct tm ac_aggr;
7871 if (sizeof ac_aggr.tm_zone)
7872 return 0;
7874 return 0;
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (ac_try="$ac_compile"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 ac_cv_member_struct_tm_tm_zone=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_member_struct_tm_tm_zone=no
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7908 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7909 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7911 cat >>confdefs.h <<_ACEOF
7912 #define HAVE_STRUCT_TM_TM_ZONE 1
7913 _ACEOF
7918 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_TM_ZONE 1
7922 _ACEOF
7924 else
7925 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7926 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7927 if test "${ac_cv_have_decl_tzname+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 #include <time.h>
7939 main ()
7941 #ifndef tzname
7942 (void) tzname;
7943 #endif
7946 return 0;
7948 _ACEOF
7949 rm -f conftest.$ac_objext
7950 if { (ac_try="$ac_compile"
7951 case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_compile") 2>conftest.er1
7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } && {
7963 test -z "$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 } && test -s conftest.$ac_objext; then
7966 ac_cv_have_decl_tzname=yes
7967 else
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_have_decl_tzname=no
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7977 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7978 if test $ac_cv_have_decl_tzname = yes; then
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_TZNAME 1
7982 _ACEOF
7985 else
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DECL_TZNAME 0
7988 _ACEOF
7994 { echo "$as_me:$LINENO: checking for tzname" >&5
7995 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7996 if test "${ac_cv_var_tzname+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 #include <time.h>
8006 #if !HAVE_DECL_TZNAME
8007 extern char *tzname[];
8008 #endif
8011 main ()
8013 return tzname[0][0];
8015 return 0;
8017 _ACEOF
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (ac_try="$ac_link"
8020 case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023 esac
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_link") 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } && {
8032 test -z "$ac_c_werror_flag" ||
8033 test ! -s conftest.err
8034 } && test -s conftest$ac_exeext &&
8035 $as_test_x conftest$ac_exeext; then
8036 ac_cv_var_tzname=yes
8037 else
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_cv_var_tzname=no
8044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8045 conftest$ac_exeext conftest.$ac_ext
8047 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8048 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8049 if test $ac_cv_var_tzname = yes; then
8051 cat >>confdefs.h <<\_ACEOF
8052 #define HAVE_TZNAME 1
8053 _ACEOF
8058 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8059 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8060 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <time.h>
8072 main ()
8074 static struct tm ac_aggr;
8075 if (ac_aggr.tm_gmtoff)
8076 return 0;
8078 return 0;
8080 _ACEOF
8081 rm -f conftest.$ac_objext
8082 if { (ac_try="$ac_compile"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_compile") 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest.$ac_objext; then
8098 ac_cv_member_struct_tm_tm_gmtoff=yes
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 #include <time.h>
8112 main ()
8114 static struct tm ac_aggr;
8115 if (sizeof ac_aggr.tm_gmtoff)
8116 return 0;
8118 return 0;
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8123 case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8138 ac_cv_member_struct_tm_tm_gmtoff=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_member_struct_tm_tm_gmtoff=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8152 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8153 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_TM_GMTOFF 1
8157 _ACEOF
8161 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8162 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8163 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8175 #endif
8176 #if HAVE_NET_IF_H
8177 #include <net/if.h>
8178 #endif
8181 main ()
8183 static struct ifreq ac_aggr;
8184 if (ac_aggr.ifr_flags)
8185 return 0;
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.$ac_objext; then
8207 ac_cv_member_struct_ifreq_ifr_flags=yes
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h. */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 $ac_includes_default
8219 #if HAVE_SYS_SOCKET_H
8220 #include <sys/socket.h>
8221 #endif
8222 #if HAVE_NET_IF_H
8223 #include <net/if.h>
8224 #endif
8227 main ()
8229 static struct ifreq ac_aggr;
8230 if (sizeof ac_aggr.ifr_flags)
8231 return 0;
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8238 case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241 esac
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_compile") 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest.$ac_objext; then
8253 ac_cv_member_struct_ifreq_ifr_flags=yes
8254 else
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_cv_member_struct_ifreq_ifr_flags=no
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8267 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8268 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8270 cat >>confdefs.h <<_ACEOF
8271 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8272 _ACEOF
8276 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8277 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8278 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #if HAVE_SYS_SOCKET_H
8289 #include <sys/socket.h>
8290 #endif
8291 #if HAVE_NET_IF_H
8292 #include <net/if.h>
8293 #endif
8296 main ()
8298 static struct ifreq ac_aggr;
8299 if (ac_aggr.ifr_hwaddr)
8300 return 0;
8302 return 0;
8304 _ACEOF
8305 rm -f conftest.$ac_objext
8306 if { (ac_try="$ac_compile"
8307 case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_compile") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest.$ac_objext; then
8322 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8323 else
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 $ac_includes_default
8334 #if HAVE_SYS_SOCKET_H
8335 #include <sys/socket.h>
8336 #endif
8337 #if HAVE_NET_IF_H
8338 #include <net/if.h>
8339 #endif
8342 main ()
8344 static struct ifreq ac_aggr;
8345 if (sizeof ac_aggr.ifr_hwaddr)
8346 return 0;
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8353 case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8382 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8383 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8387 _ACEOF
8391 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8392 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8393 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8405 #endif
8406 #if HAVE_NET_IF_H
8407 #include <net/if.h>
8408 #endif
8411 main ()
8413 static struct ifreq ac_aggr;
8414 if (ac_aggr.ifr_netmask)
8415 return 0;
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8437 ac_cv_member_struct_ifreq_ifr_netmask=yes
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 $ac_includes_default
8449 #if HAVE_SYS_SOCKET_H
8450 #include <sys/socket.h>
8451 #endif
8452 #if HAVE_NET_IF_H
8453 #include <net/if.h>
8454 #endif
8457 main ()
8459 static struct ifreq ac_aggr;
8460 if (sizeof ac_aggr.ifr_netmask)
8461 return 0;
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.$ac_objext; then
8483 ac_cv_member_struct_ifreq_ifr_netmask=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_cv_member_struct_ifreq_ifr_netmask=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8497 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8498 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8502 _ACEOF
8506 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8507 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8508 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 #if HAVE_SYS_SOCKET_H
8519 #include <sys/socket.h>
8520 #endif
8521 #if HAVE_NET_IF_H
8522 #include <net/if.h>
8523 #endif
8526 main ()
8528 static struct ifreq ac_aggr;
8529 if (ac_aggr.ifr_broadaddr)
8530 return 0;
8532 return 0;
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (ac_try="$ac_compile"
8537 case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_compile") 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest.$ac_objext; then
8552 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8564 #if HAVE_SYS_SOCKET_H
8565 #include <sys/socket.h>
8566 #endif
8567 #if HAVE_NET_IF_H
8568 #include <net/if.h>
8569 #endif
8572 main ()
8574 static struct ifreq ac_aggr;
8575 if (sizeof ac_aggr.ifr_broadaddr)
8576 return 0;
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8583 case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8599 else
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8612 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8613 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8617 _ACEOF
8621 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8622 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8623 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 $ac_includes_default
8633 #if HAVE_SYS_SOCKET_H
8634 #include <sys/socket.h>
8635 #endif
8636 #if HAVE_NET_IF_H
8637 #include <net/if.h>
8638 #endif
8641 main ()
8643 static struct ifreq ac_aggr;
8644 if (ac_aggr.ifr_addr)
8645 return 0;
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_addr=yes
8668 else
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8681 #endif
8682 #if HAVE_NET_IF_H
8683 #include <net/if.h>
8684 #endif
8687 main ()
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_addr)
8691 return 0;
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 ac_cv_member_struct_ifreq_ifr_addr=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_cv_member_struct_ifreq_ifr_addr=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8727 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8728 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8732 _ACEOF
8739 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8740 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8741 if test "$ac_cv_prog_cc_c89" != no; then
8742 { echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6; }
8745 cat >>confdefs.h <<\_ACEOF
8746 #define PROTOTYPES 1
8747 _ACEOF
8750 cat >>confdefs.h <<\_ACEOF
8751 #define __PROTOTYPES 1
8752 _ACEOF
8754 else
8755 { echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6; }
8759 { echo "$as_me:$LINENO: checking for working volatile" >&5
8760 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8761 if test "${ac_cv_c_volatile+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8772 main ()
8775 volatile int x;
8776 int * volatile y = (int *) 0;
8777 return !x && !y;
8779 return 0;
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (ac_try="$ac_compile"
8784 case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8799 ac_cv_c_volatile=yes
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_c_volatile=no
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8810 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8811 if test $ac_cv_c_volatile = no; then
8813 cat >>confdefs.h <<\_ACEOF
8814 #define volatile
8815 _ACEOF
8819 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8820 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8821 if test "${ac_cv_c_const+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8832 main ()
8834 /* FIXME: Include the comments suggested by Paul. */
8835 #ifndef __cplusplus
8836 /* Ultrix mips cc rejects this. */
8837 typedef int charset[2];
8838 const charset cs;
8839 /* SunOS 4.1.1 cc rejects this. */
8840 char const *const *pcpcc;
8841 char **ppc;
8842 /* NEC SVR4.0.2 mips cc rejects this. */
8843 struct point {int x, y;};
8844 static struct point const zero = {0,0};
8845 /* AIX XL C 1.02.0.0 rejects this.
8846 It does not let you subtract one const X* pointer from another in
8847 an arm of an if-expression whose if-part is not a constant
8848 expression */
8849 const char *g = "string";
8850 pcpcc = &g + (g ? g-g : 0);
8851 /* HPUX 7.0 cc rejects these. */
8852 ++pcpcc;
8853 ppc = (char**) pcpcc;
8854 pcpcc = (char const *const *) ppc;
8855 { /* SCO 3.2v4 cc rejects this. */
8856 char *t;
8857 char const *s = 0 ? (char *) 0 : (char const *) 0;
8859 *t++ = 0;
8860 if (s) return 0;
8862 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8863 int x[] = {25, 17};
8864 const int *foo = &x[0];
8865 ++foo;
8867 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8868 typedef const int *iptr;
8869 iptr p = 0;
8870 ++p;
8872 { /* AIX XL C 1.02.0.0 rejects this saying
8873 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8874 struct s { int j; const int *ap[3]; };
8875 struct s *b; b->j = 5;
8877 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8878 const int foo = 10;
8879 if (!foo) return 0;
8881 return !cs[0] && !zero.x;
8882 #endif
8885 return 0;
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.$ac_objext; then
8905 ac_cv_c_const=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_cv_c_const=no
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8916 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8917 if test $ac_cv_c_const = no; then
8919 cat >>confdefs.h <<\_ACEOF
8920 #define const
8921 _ACEOF
8925 { echo "$as_me:$LINENO: checking for void * support" >&5
8926 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8927 if test "${emacs_cv_void_star+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8938 main ()
8940 void * foo;
8942 return 0;
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (ac_try="$ac_compile"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 emacs_cv_void_star=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 emacs_cv_void_star=no
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8973 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8974 if test $emacs_cv_void_star = yes; then
8975 cat >>confdefs.h <<\_ACEOF
8976 #define POINTER_TYPE void
8977 _ACEOF
8979 else
8980 cat >>confdefs.h <<\_ACEOF
8981 #define POINTER_TYPE char
8982 _ACEOF
8990 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8991 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8992 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8993 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 cat >conftest.make <<\_ACEOF
8997 SHELL = /bin/sh
8998 all:
8999 @echo '@@@%%%=$(MAKE)=@@@%%%'
9000 _ACEOF
9001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9003 *@@@%%%=?*=@@@%%%*)
9004 eval ac_cv_prog_make_${ac_make}_set=yes;;
9006 eval ac_cv_prog_make_${ac_make}_set=no;;
9007 esac
9008 rm -f conftest.make
9010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9011 { echo "$as_me:$LINENO: result: yes" >&5
9012 echo "${ECHO_T}yes" >&6; }
9013 SET_MAKE=
9014 else
9015 { echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6; }
9017 SET_MAKE="MAKE=${MAKE-make}"
9021 { echo "$as_me:$LINENO: checking for long file names" >&5
9022 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9023 if test "${ac_cv_sys_long_file_names+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 ac_cv_sys_long_file_names=yes
9027 # Test for long file names in all the places we know might matter:
9028 # . the current directory, where building will happen
9029 # $prefix/lib where we will be installing things
9030 # $exec_prefix/lib likewise
9031 # $TMPDIR if set, where it might want to write temporary files
9032 # /tmp where it might want to write temporary files
9033 # /var/tmp likewise
9034 # /usr/tmp likewise
9035 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9036 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9037 # in the usual case where exec_prefix is '${prefix}'.
9038 case $ac_dir in #(
9039 . | /* | ?:[\\/]*) ;; #(
9040 *) continue;;
9041 esac
9042 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9043 ac_xdir=$ac_dir/cf$$
9044 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9045 ac_tf1=$ac_xdir/conftest9012345
9046 ac_tf2=$ac_xdir/conftest9012346
9047 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9048 ac_cv_sys_long_file_names=no
9049 rm -f -r "$ac_xdir" 2>/dev/null
9050 test $ac_cv_sys_long_file_names = no && break
9051 done
9053 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9054 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9055 if test $ac_cv_sys_long_file_names = yes; then
9057 cat >>confdefs.h <<\_ACEOF
9058 #define HAVE_LONG_FILE_NAMES 1
9059 _ACEOF
9064 #### Choose a window system.
9066 { echo "$as_me:$LINENO: checking for X" >&5
9067 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9070 # Check whether --with-x was given.
9071 if test "${with_x+set}" = set; then
9072 withval=$with_x;
9075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9076 if test "x$with_x" = xno; then
9077 # The user explicitly disabled X.
9078 have_x=disabled
9079 else
9080 case $x_includes,$x_libraries in #(
9081 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9082 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9083 { (exit 1); exit 1; }; };; #(
9084 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 # One or both of the vars are not set, and there is no cached value.
9088 ac_x_includes=no ac_x_libraries=no
9089 rm -f -r conftest.dir
9090 if mkdir conftest.dir; then
9091 cd conftest.dir
9092 cat >Imakefile <<'_ACEOF'
9093 incroot:
9094 @echo incroot='${INCROOT}'
9095 usrlibdir:
9096 @echo usrlibdir='${USRLIBDIR}'
9097 libdir:
9098 @echo libdir='${LIBDIR}'
9099 _ACEOF
9100 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9102 for ac_var in incroot usrlibdir libdir; do
9103 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9104 done
9105 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9106 for ac_extension in a so sl; do
9107 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9108 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9109 ac_im_usrlibdir=$ac_im_libdir; break
9111 done
9112 # Screen out bogus values from the imake configuration. They are
9113 # bogus both because they are the default anyway, and because
9114 # using them would break gcc on systems where it needs fixed includes.
9115 case $ac_im_incroot in
9116 /usr/include) ac_x_includes= ;;
9117 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9118 esac
9119 case $ac_im_usrlibdir in
9120 /usr/lib | /lib) ;;
9121 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9122 esac
9124 cd ..
9125 rm -f -r conftest.dir
9128 # Standard set of common directories for X headers.
9129 # Check X11 before X11Rn because it is often a symlink to the current release.
9130 ac_x_header_dirs='
9131 /usr/X11/include
9132 /usr/X11R6/include
9133 /usr/X11R5/include
9134 /usr/X11R4/include
9136 /usr/include/X11
9137 /usr/include/X11R6
9138 /usr/include/X11R5
9139 /usr/include/X11R4
9141 /usr/local/X11/include
9142 /usr/local/X11R6/include
9143 /usr/local/X11R5/include
9144 /usr/local/X11R4/include
9146 /usr/local/include/X11
9147 /usr/local/include/X11R6
9148 /usr/local/include/X11R5
9149 /usr/local/include/X11R4
9151 /usr/X386/include
9152 /usr/x386/include
9153 /usr/XFree86/include/X11
9155 /usr/include
9156 /usr/local/include
9157 /usr/unsupported/include
9158 /usr/athena/include
9159 /usr/local/x11r5/include
9160 /usr/lpp/Xamples/include
9162 /usr/openwin/include
9163 /usr/openwin/share/include'
9165 if test "$ac_x_includes" = no; then
9166 # Guess where to find include files, by looking for Xlib.h.
9167 # First, try using that file with no special directory specified.
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <X11/Xlib.h>
9175 _ACEOF
9176 if { (ac_try="$ac_cpp conftest.$ac_ext"
9177 case "(($ac_try" in
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9180 esac
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } >/dev/null && {
9189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 }; then
9192 # We can compile using X headers with no special include directory.
9193 ac_x_includes=
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9198 for ac_dir in $ac_x_header_dirs; do
9199 if test -r "$ac_dir/X11/Xlib.h"; then
9200 ac_x_includes=$ac_dir
9201 break
9203 done
9206 rm -f conftest.err conftest.$ac_ext
9207 fi # $ac_x_includes = no
9209 if test "$ac_x_libraries" = no; then
9210 # Check for the libraries.
9211 # See if we find them without any special options.
9212 # Don't add to $LIBS permanently.
9213 ac_save_LIBS=$LIBS
9214 LIBS="-lX11 $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 #include <X11/Xlib.h>
9223 main ()
9225 XrmInitialize ()
9227 return 0;
9229 _ACEOF
9230 rm -f conftest.$ac_objext conftest$ac_exeext
9231 if { (ac_try="$ac_link"
9232 case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_link") 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext &&
9247 $as_test_x conftest$ac_exeext; then
9248 LIBS=$ac_save_LIBS
9249 # We can link X programs with no special library path.
9250 ac_x_libraries=
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 LIBS=$ac_save_LIBS
9256 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9258 # Don't even attempt the hair of trying to link an X program!
9259 for ac_extension in a so sl; do
9260 if test -r "$ac_dir/libX11.$ac_extension"; then
9261 ac_x_libraries=$ac_dir
9262 break 2
9264 done
9265 done
9268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9269 conftest$ac_exeext conftest.$ac_ext
9270 fi # $ac_x_libraries = no
9272 case $ac_x_includes,$ac_x_libraries in #(
9273 no,* | *,no | *\'*)
9274 # Didn't find X, or a directory has "'" in its name.
9275 ac_cv_have_x="have_x=no";; #(
9277 # Record where we found X for the cache.
9278 ac_cv_have_x="have_x=yes\
9279 ac_x_includes='$ac_x_includes'\
9280 ac_x_libraries='$ac_x_libraries'"
9281 esac
9283 ;; #(
9284 *) have_x=yes;;
9285 esac
9286 eval "$ac_cv_have_x"
9287 fi # $with_x != no
9289 if test "$have_x" != yes; then
9290 { echo "$as_me:$LINENO: result: $have_x" >&5
9291 echo "${ECHO_T}$have_x" >&6; }
9292 no_x=yes
9293 else
9294 # If each of the values was on the command line, it overrides each guess.
9295 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9296 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9297 # Update the cache value to reflect the command line values.
9298 ac_cv_have_x="have_x=yes\
9299 ac_x_includes='$x_includes'\
9300 ac_x_libraries='$x_libraries'"
9301 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9302 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9305 if test "$no_x" = yes; then
9306 window_system=none
9307 else
9308 window_system=x11
9311 if test "${x_libraries}" != NONE; then
9312 if test -n "${x_libraries}"; then
9313 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9314 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9316 x_default_search_path=""
9317 x_search_path=${x_libraries}
9318 if test -z "${x_search_path}"; then
9319 x_search_path=/usr/lib
9321 for x_library in `echo ${x_search_path}: | \
9322 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9323 x_search_path="\
9324 ${x_library}/X11/%L/%T/%N%C%S:\
9325 ${x_library}/X11/%l/%T/%N%C%S:\
9326 ${x_library}/X11/%T/%N%C%S:\
9327 ${x_library}/X11/%L/%T/%N%S:\
9328 ${x_library}/X11/%l/%T/%N%S:\
9329 ${x_library}/X11/%T/%N%S"
9330 if test x"${x_default_search_path}" = x; then
9331 x_default_search_path=${x_search_path}
9332 else
9333 x_default_search_path="${x_search_path}:${x_default_search_path}"
9335 done
9337 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9338 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9341 if test x"${x_includes}" = x; then
9342 bitmapdir=/usr/include/X11/bitmaps
9343 else
9344 # accumulate include directories that have X11 bitmap subdirectories
9345 bmd_acc="dummyval"
9346 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9347 if test -d "${bmd}/X11/bitmaps"; then
9348 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9350 if test -d "${bmd}/bitmaps"; then
9351 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9353 done
9354 if test ${bmd_acc} != "dummyval"; then
9355 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9359 HAVE_CARBON=no
9360 if test "${with_carbon}" != no; then
9361 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9362 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9363 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9364 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9368 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9369 else
9370 # Is the header compilable?
9371 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9372 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 $ac_includes_default
9380 #include <Carbon/Carbon.h>
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (ac_try="$ac_compile"
9384 case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_compile") 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest.$ac_objext; then
9399 ac_header_compiler=yes
9400 else
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404 ac_header_compiler=no
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9409 echo "${ECHO_T}$ac_header_compiler" >&6; }
9411 # Is the header present?
9412 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9413 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 #include <Carbon/Carbon.h>
9421 _ACEOF
9422 if { (ac_try="$ac_cpp conftest.$ac_ext"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null && {
9435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 }; then
9438 ac_header_preproc=yes
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_header_preproc=no
9446 rm -f conftest.err conftest.$ac_ext
9447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9448 echo "${ECHO_T}$ac_header_preproc" >&6; }
9450 # So? What about this header?
9451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9452 yes:no: )
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9457 ac_header_preproc=yes
9459 no:yes:* )
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9469 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9471 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9474 esac
9475 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9476 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9477 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9482 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9483 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9486 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9487 HAVE_CARBON=yes
9492 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9493 if test "${with_carbon+set}" != set \
9494 && test "${carbon_appdir_x+set}" != set; then
9495 for var in with_x with_x_toolkit with_gtk with_xim \
9496 with_xpm with_jpeg with_tiff with_gif with_png; do
9497 if eval test \"\${$var+set}\" = set; then
9498 HAVE_CARBON=no
9499 break
9501 done
9504 if test "${HAVE_CARBON}" = yes; then
9505 window_system=mac
9508 case "${window_system}" in
9509 x11 )
9510 HAVE_X_WINDOWS=yes
9511 HAVE_X11=yes
9512 case "${with_x_toolkit}" in
9513 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9514 motif ) USE_X_TOOLKIT=MOTIF ;;
9515 gtk ) with_gtk=yes
9516 USE_X_TOOLKIT=none ;;
9517 no ) USE_X_TOOLKIT=none ;;
9518 * ) USE_X_TOOLKIT=maybe ;;
9519 esac
9521 mac | none )
9522 HAVE_X_WINDOWS=no
9523 HAVE_X11=no
9524 USE_X_TOOLKIT=none
9526 esac
9528 ### If we're using X11, we should use the X menu package.
9529 HAVE_MENUS=no
9530 case ${HAVE_X11} in
9531 yes ) HAVE_MENUS=yes ;;
9532 esac
9534 if test "${opsys}" = "hpux9"; then
9535 case "${x_libraries}" in
9536 *X11R4* )
9537 opsysfile="s/hpux9-x11r4.h"
9539 esac
9542 if test "${opsys}" = "hpux9shr"; then
9543 case "${x_libraries}" in
9544 *X11R4* )
9545 opsysfile="s/hpux9shxr4.h"
9547 esac
9550 ### Compute the unexec source name from the object name.
9551 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9553 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9554 # Assume not, until told otherwise.
9555 GNU_MALLOC=yes
9556 doug_lea_malloc=yes
9557 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9558 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9559 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9570 #define malloc_get_state innocuous_malloc_get_state
9572 /* System header to define __stub macros and hopefully few prototypes,
9573 which can conflict with char malloc_get_state (); below.
9574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9575 <limits.h> exists even on freestanding compilers. */
9577 #ifdef __STDC__
9578 # include <limits.h>
9579 #else
9580 # include <assert.h>
9581 #endif
9583 #undef malloc_get_state
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char malloc_get_state ();
9592 /* The GNU C library defines this for functions which it implements
9593 to always fail with ENOSYS. Some functions are actually named
9594 something starting with __ and the normal name is an alias. */
9595 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9596 choke me
9597 #endif
9600 main ()
9602 return malloc_get_state ();
9604 return 0;
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (ac_try="$ac_link"
9609 case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_link") 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest$ac_exeext &&
9624 $as_test_x conftest$ac_exeext; then
9625 ac_cv_func_malloc_get_state=yes
9626 else
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_cv_func_malloc_get_state=no
9633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9634 conftest$ac_exeext conftest.$ac_ext
9636 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9637 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9638 if test $ac_cv_func_malloc_get_state = yes; then
9640 else
9641 doug_lea_malloc=no
9644 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9645 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9646 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9657 #define malloc_set_state innocuous_malloc_set_state
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char malloc_set_state (); below.
9661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662 <limits.h> exists even on freestanding compilers. */
9664 #ifdef __STDC__
9665 # include <limits.h>
9666 #else
9667 # include <assert.h>
9668 #endif
9670 #undef malloc_set_state
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char malloc_set_state ();
9679 /* The GNU C library defines this for functions which it implements
9680 to always fail with ENOSYS. Some functions are actually named
9681 something starting with __ and the normal name is an alias. */
9682 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9683 choke me
9684 #endif
9687 main ()
9689 return malloc_set_state ();
9691 return 0;
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest$ac_exeext &&
9711 $as_test_x conftest$ac_exeext; then
9712 ac_cv_func_malloc_set_state=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_cv_func_malloc_set_state=no
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721 conftest$ac_exeext conftest.$ac_ext
9723 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9724 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9725 if test $ac_cv_func_malloc_set_state = yes; then
9727 else
9728 doug_lea_malloc=no
9731 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9732 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9733 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 extern void (* __after_morecore_hook)();
9744 main ()
9746 __after_morecore_hook = 0
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext &&
9768 $as_test_x conftest$ac_exeext; then
9769 emacs_cv_var___after_morecore_hook=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 emacs_cv_var___after_morecore_hook=no
9777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9781 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9782 if test $emacs_cv_var___after_morecore_hook = no; then
9783 doug_lea_malloc=no
9785 if test "${system_malloc}" = "yes"; then
9786 GNU_MALLOC=no
9787 GNU_MALLOC_reason="
9788 (The GNU allocators don't work with this system configuration.)"
9790 if test "$doug_lea_malloc" = "yes" ; then
9791 if test "$GNU_MALLOC" = yes ; then
9792 GNU_MALLOC_reason="
9793 (Using Doug Lea's new malloc from the GNU C Library.)"
9796 cat >>confdefs.h <<\_ACEOF
9797 #define DOUG_LEA_MALLOC 1
9798 _ACEOF
9802 if test x"${REL_ALLOC}" = x; then
9803 REL_ALLOC=${GNU_MALLOC}
9809 for ac_header in stdlib.h unistd.h
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 ac_res=`eval echo '${'$as_ac_Header'}'`
9819 { echo "$as_me:$LINENO: result: $ac_res" >&5
9820 echo "${ECHO_T}$ac_res" >&6; }
9821 else
9822 # Is the header compilable?
9823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 #include <$ac_header>
9833 _ACEOF
9834 rm -f conftest.$ac_objext
9835 if { (ac_try="$ac_compile"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_compile") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest.$ac_objext; then
9851 ac_header_compiler=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_compiler=no
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861 echo "${ECHO_T}$ac_header_compiler" >&6; }
9863 # Is the header present?
9864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 #include <$ac_header>
9873 _ACEOF
9874 if { (ac_try="$ac_cpp conftest.$ac_ext"
9875 case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } >/dev/null && {
9887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 }; then
9890 ac_header_preproc=yes
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_header_preproc=no
9898 rm -f conftest.err conftest.$ac_ext
9899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9900 echo "${ECHO_T}$ac_header_preproc" >&6; }
9902 # So? What about this header?
9903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9904 yes:no: )
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9909 ac_header_preproc=yes
9911 no:yes:* )
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9926 esac
9927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 eval "$as_ac_Header=\$ac_header_preproc"
9934 ac_res=`eval echo '${'$as_ac_Header'}'`
9935 { echo "$as_me:$LINENO: result: $ac_res" >&5
9936 echo "${ECHO_T}$ac_res" >&6; }
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942 _ACEOF
9946 done
9949 for ac_func in getpagesize
9951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define $ac_func innocuous_$ac_func
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9972 #ifdef __STDC__
9973 # include <limits.h>
9974 #else
9975 # include <assert.h>
9976 #endif
9978 #undef $ac_func
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 char $ac_func ();
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_$ac_func || defined __stub___$ac_func
9991 choke me
9992 #endif
9995 main ()
9997 return $ac_func ();
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 eval "$as_ac_var=yes"
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 eval "$as_ac_var=no"
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10031 ac_res=`eval echo '${'$as_ac_var'}'`
10032 { echo "$as_me:$LINENO: result: $ac_res" >&5
10033 echo "${ECHO_T}$ac_res" >&6; }
10034 if test `eval echo '${'$as_ac_var'}'` = yes; then
10035 cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10037 _ACEOF
10040 done
10042 { echo "$as_me:$LINENO: checking for working mmap" >&5
10043 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10044 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047 if test "$cross_compiling" = yes; then
10048 ac_cv_func_mmap_fixed_mapped=no
10049 else
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 /* malloc might have been renamed as rpl_malloc. */
10058 #undef malloc
10060 /* Thanks to Mike Haertel and Jim Avera for this test.
10061 Here is a matrix of mmap possibilities:
10062 mmap private not fixed
10063 mmap private fixed at somewhere currently unmapped
10064 mmap private fixed at somewhere already mapped
10065 mmap shared not fixed
10066 mmap shared fixed at somewhere currently unmapped
10067 mmap shared fixed at somewhere already mapped
10068 For private mappings, we should verify that changes cannot be read()
10069 back from the file, nor mmap's back from the file at a different
10070 address. (There have been systems where private was not correctly
10071 implemented like the infamous i386 svr4.0, and systems where the
10072 VM page cache was not coherent with the file system buffer cache
10073 like early versions of FreeBSD and possibly contemporary NetBSD.)
10074 For shared mappings, we should conversely verify that changes get
10075 propagated back to all the places they're supposed to be.
10077 Grep wants private fixed already mapped.
10078 The main things grep needs to know about mmap are:
10079 * does it exist and is it safe to write into the mmap'd area
10080 * how to use it (BSD variants) */
10082 #include <fcntl.h>
10083 #include <sys/mman.h>
10085 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10086 char *malloc ();
10087 #endif
10089 /* This mess was copied from the GNU getpagesize.h. */
10090 #ifndef HAVE_GETPAGESIZE
10091 /* Assume that all systems that can run configure have sys/param.h. */
10092 # ifndef HAVE_SYS_PARAM_H
10093 # define HAVE_SYS_PARAM_H 1
10094 # endif
10096 # ifdef _SC_PAGESIZE
10097 # define getpagesize() sysconf(_SC_PAGESIZE)
10098 # else /* no _SC_PAGESIZE */
10099 # ifdef HAVE_SYS_PARAM_H
10100 # include <sys/param.h>
10101 # ifdef EXEC_PAGESIZE
10102 # define getpagesize() EXEC_PAGESIZE
10103 # else /* no EXEC_PAGESIZE */
10104 # ifdef NBPG
10105 # define getpagesize() NBPG * CLSIZE
10106 # ifndef CLSIZE
10107 # define CLSIZE 1
10108 # endif /* no CLSIZE */
10109 # else /* no NBPG */
10110 # ifdef NBPC
10111 # define getpagesize() NBPC
10112 # else /* no NBPC */
10113 # ifdef PAGESIZE
10114 # define getpagesize() PAGESIZE
10115 # endif /* PAGESIZE */
10116 # endif /* no NBPC */
10117 # endif /* no NBPG */
10118 # endif /* no EXEC_PAGESIZE */
10119 # else /* no HAVE_SYS_PARAM_H */
10120 # define getpagesize() 8192 /* punt totally */
10121 # endif /* no HAVE_SYS_PARAM_H */
10122 # endif /* no _SC_PAGESIZE */
10124 #endif /* no HAVE_GETPAGESIZE */
10127 main ()
10129 char *data, *data2, *data3;
10130 int i, pagesize;
10131 int fd;
10133 pagesize = getpagesize ();
10135 /* First, make a file with some known garbage in it. */
10136 data = (char *) malloc (pagesize);
10137 if (!data)
10138 return 1;
10139 for (i = 0; i < pagesize; ++i)
10140 *(data + i) = rand ();
10141 umask (0);
10142 fd = creat ("conftest.mmap", 0600);
10143 if (fd < 0)
10144 return 1;
10145 if (write (fd, data, pagesize) != pagesize)
10146 return 1;
10147 close (fd);
10149 /* Next, try to mmap the file at a fixed address which already has
10150 something else allocated at it. If we can, also make sure that
10151 we see the same garbage. */
10152 fd = open ("conftest.mmap", O_RDWR);
10153 if (fd < 0)
10154 return 1;
10155 data2 = (char *) malloc (2 * pagesize);
10156 if (!data2)
10157 return 1;
10158 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10159 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10160 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10161 return 1;
10162 for (i = 0; i < pagesize; ++i)
10163 if (*(data + i) != *(data2 + i))
10164 return 1;
10166 /* Finally, make sure that changes to the mapped area do not
10167 percolate back to the file as seen by read(). (This is a bug on
10168 some variants of i386 svr4.0.) */
10169 for (i = 0; i < pagesize; ++i)
10170 *(data2 + i) = *(data2 + i) + 1;
10171 data3 = (char *) malloc (pagesize);
10172 if (!data3)
10173 return 1;
10174 if (read (fd, data3, pagesize) != pagesize)
10175 return 1;
10176 for (i = 0; i < pagesize; ++i)
10177 if (*(data + i) != *(data3 + i))
10178 return 1;
10179 close (fd);
10180 return 0;
10182 _ACEOF
10183 rm -f conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_func_mmap_fixed_mapped=yes
10204 else
10205 echo "$as_me: program exited with status $ac_status" >&5
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ( exit $ac_status )
10210 ac_cv_func_mmap_fixed_mapped=no
10212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10217 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10218 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_MMAP 1
10223 _ACEOF
10226 rm -f conftest.mmap
10228 if test $use_mmap_for_buffers = yes; then
10229 REL_ALLOC=no
10232 LIBS="$libsrc_libs $LIBS"
10235 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10236 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldnet $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dnet_ntoa ();
10257 main ()
10259 return dnet_ntoa ();
10261 return 0;
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && {
10278 test -z "$ac_c_werror_flag" ||
10279 test ! -s conftest.err
10280 } && test -s conftest$ac_exeext &&
10281 $as_test_x conftest$ac_exeext; then
10282 ac_cv_lib_dnet_dnet_ntoa=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_lib_dnet_dnet_ntoa=no
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10295 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10296 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define HAVE_LIBDNET 1
10299 _ACEOF
10301 LIBS="-ldnet $LIBS"
10306 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10307 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10308 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311 ac_check_lib_save_LIBS=$LIBS
10312 LIBS="-lXbsd $LIBS"
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10322 main ()
10324 return main ();
10326 return 0;
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
10347 ac_cv_lib_Xbsd_main=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_lib_Xbsd_main=no
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10360 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10361 if test $ac_cv_lib_Xbsd_main = yes; then
10362 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10367 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10368 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10369 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 ac_check_lib_save_LIBS=$LIBS
10373 LIBS="-lpthreads $LIBS"
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char cma_open ();
10389 main ()
10391 return cma_open ();
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10414 ac_cv_lib_pthreads_cma_open=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_lib_pthreads_cma_open=no
10422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10427 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10428 if test $ac_cv_lib_pthreads_cma_open = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_LIBPTHREADS 1
10431 _ACEOF
10433 LIBS="-lpthreads $LIBS"
10438 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10439 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10440 if test -d /usr/X386/include; then
10441 HAVE_XFREE386=yes
10442 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10443 else
10444 HAVE_XFREE386=no
10446 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10447 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10450 case ${host_os} in
10451 aix*)
10452 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10453 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10454 if test "${gdb_cv_bigtoc+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10458 case $GCC in
10459 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10460 *) gdb_cv_bigtoc=-bbigtoc ;;
10461 esac
10463 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10472 main ()
10474 int i;
10476 return 0;
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 gdb_cv_bigtoc=
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10509 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10510 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10512 esac
10514 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10515 # used for the tests that follow. We set them back to REAL_CFLAGS and
10516 # REAL_CPPFLAGS later on.
10518 REAL_CPPFLAGS="$CPPFLAGS"
10520 if test "${HAVE_X11}" = "yes"; then
10521 DEFS="$C_SWITCH_X_SITE $DEFS"
10522 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10523 LIBS="$LIBX $LIBS"
10524 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10525 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10527 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10528 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10529 # but it's more convenient here to set LD_RUN_PATH
10530 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10531 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10532 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10533 export LD_RUN_PATH
10536 if test "${opsys}" = "gnu-linux"; then
10537 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10538 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10547 main ()
10549 XOpenDisplay ("foo");
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest$ac_exeext &&
10571 $as_test_x conftest$ac_exeext; then
10572 xlinux_first_failure=no
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 xlinux_first_failure=yes
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581 conftest$ac_exeext conftest.$ac_ext
10582 if test "${xlinux_first_failure}" = "yes"; then
10583 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10584 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10585 OLD_CPPFLAGS="$CPPFLAGS"
10586 OLD_LIBS="$LIBS"
10587 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10588 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10589 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10590 LIBS="$LIBS -b i486-linuxaout"
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10599 main ()
10601 XOpenDisplay ("foo");
10603 return 0;
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
10624 xlinux_second_failure=no
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 xlinux_second_failure=yes
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 if test "${xlinux_second_failure}" = "yes"; then
10635 # If we get the same failure with -b, there is no use adding -b.
10636 # So take it out. This plays safe.
10637 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10638 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10639 CPPFLAGS="$OLD_CPPFLAGS"
10640 LIBS="$OLD_LIBS"
10641 { echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6; }
10643 else
10644 { echo "$as_me:$LINENO: result: yes" >&5
10645 echo "${ECHO_T}yes" >&6; }
10647 else
10648 { echo "$as_me:$LINENO: result: no" >&5
10649 echo "${ECHO_T}no" >&6; }
10653 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10654 # header files included from there.
10655 { echo "$as_me:$LINENO: checking for Xkb" >&5
10656 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 #include <X11/Xlib.h>
10664 #include <X11/XKBlib.h>
10666 main ()
10668 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext &&
10690 $as_test_x conftest$ac_exeext; then
10691 emacs_xkb=yes
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 emacs_xkb=no
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700 conftest$ac_exeext conftest.$ac_ext
10701 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10702 echo "${ECHO_T}$emacs_xkb" >&6; }
10703 if test $emacs_xkb = yes; then
10705 cat >>confdefs.h <<\_ACEOF
10706 #define HAVE_XKBGETKEYBOARD 1
10707 _ACEOF
10715 for ac_func in XrmSetDatabase XScreenResourceString \
10716 XScreenNumberOfScreen XSetWMProtocols
10718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10732 #define $ac_func innocuous_$ac_func
10734 /* System header to define __stub macros and hopefully few prototypes,
10735 which can conflict with char $ac_func (); below.
10736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10737 <limits.h> exists even on freestanding compilers. */
10739 #ifdef __STDC__
10740 # include <limits.h>
10741 #else
10742 # include <assert.h>
10743 #endif
10745 #undef $ac_func
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char $ac_func ();
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined __stub_$ac_func || defined __stub___$ac_func
10758 choke me
10759 #endif
10762 main ()
10764 return $ac_func ();
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest$ac_exeext &&
10786 $as_test_x conftest$ac_exeext; then
10787 eval "$as_ac_var=yes"
10788 else
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 eval "$as_ac_var=no"
10795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10796 conftest$ac_exeext conftest.$ac_ext
10798 ac_res=`eval echo '${'$as_ac_var'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10801 if test `eval echo '${'$as_ac_var'}'` = yes; then
10802 cat >>confdefs.h <<_ACEOF
10803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10804 _ACEOF
10807 done
10811 if test "${window_system}" = "x11"; then
10812 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10813 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10814 if test "${emacs_cv_x11_version_6+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <X11/Xlib.h>
10825 main ()
10827 #if XlibSpecificationRelease < 6
10828 fail;
10829 #endif
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (ac_try="$ac_link"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext &&
10852 $as_test_x conftest$ac_exeext; then
10853 emacs_cv_x11_version_6=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 emacs_cv_x11_version_6=no
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10865 if test $emacs_cv_x11_version_6 = yes; then
10866 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10867 echo "${ECHO_T}6 or newer" >&6; }
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_X11R6 1
10871 _ACEOF
10873 else
10874 { echo "$as_me:$LINENO: result: before 6" >&5
10875 echo "${ECHO_T}before 6" >&6; }
10879 if test "${window_system}" = "x11"; then
10880 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10881 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10882 if test "${emacs_cv_x11_version_5+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <X11/Xlib.h>
10893 main ()
10895 #if XlibSpecificationRelease < 5
10896 fail;
10897 #endif
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext &&
10920 $as_test_x conftest$ac_exeext; then
10921 emacs_cv_x11_version_5=yes
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 emacs_cv_x11_version_5=no
10929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10930 conftest$ac_exeext conftest.$ac_ext
10933 if test $emacs_cv_x11_version_5 = yes; then
10934 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10935 echo "${ECHO_T}5 or newer" >&6; }
10936 HAVE_X11R5=yes
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_X11R5 1
10940 _ACEOF
10942 else
10943 HAVE_X11R5=no
10944 { echo "$as_me:$LINENO: result: before 5" >&5
10945 echo "${ECHO_T}before 5" >&6; }
10949 HAVE_GTK=no
10950 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10951 USE_X_TOOLKIT=none
10953 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10954 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10955 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10956 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10957 { (exit 1); exit 1; }; };
10959 GLIB_REQUIRED=2.6
10960 GTK_REQUIRED=2.6
10961 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10963 if test "X${with_pkg_config_prog}" != X; then
10964 PKG_CONFIG="${with_pkg_config_prog}"
10967 succeeded=no
10969 if test -z "$PKG_CONFIG"; then
10970 # Extract the first word of "pkg-config", so it can be a program name with args.
10971 set dummy pkg-config; ac_word=$2
10972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 case $PKG_CONFIG in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10993 done
10994 done
10995 IFS=$as_save_IFS
10997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10999 esac
11001 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11002 if test -n "$PKG_CONFIG"; then
11003 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11004 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11005 else
11006 { echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6; }
11013 if test "$PKG_CONFIG" = "no" ; then
11014 { { echo "$as_me:$LINENO: error:
11015 *** 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
11016 echo "$as_me: error:
11017 *** 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;}
11018 { (exit 1); exit 1; }; }
11019 else
11020 PKG_CONFIG_MIN_VERSION=0.9.0
11021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11022 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11023 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11025 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11026 { echo "$as_me:$LINENO: result: yes" >&5
11027 echo "${ECHO_T}yes" >&6; }
11028 succeeded=yes
11030 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11031 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11032 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11033 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11034 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11036 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11037 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11038 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11039 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11040 echo "${ECHO_T}$GTK_LIBS" >&6; }
11041 else
11042 { echo "$as_me:$LINENO: result: no" >&5
11043 echo "${ECHO_T}no" >&6; }
11044 GTK_CFLAGS=""
11045 GTK_LIBS=""
11046 ## If we have a custom action on failure, don't print errors, but
11047 ## do set a variable so people can do so.
11048 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11049 echo $GTK_PKG_ERRORS
11054 else
11055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11060 if test $succeeded = yes; then
11062 else
11063 { { 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
11064 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;}
11065 { (exit 1); exit 1; }; }
11070 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11071 CFLAGS="$CFLAGS $GTK_CFLAGS"
11072 LIBS="$GTK_LIBS $LIBS"
11073 GTK_COMPILES=no
11075 for ac_func in gtk_main
11077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11098 #ifdef __STDC__
11099 # include <limits.h>
11100 #else
11101 # include <assert.h>
11102 #endif
11104 #undef $ac_func
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char $ac_func ();
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11117 choke me
11118 #endif
11121 main ()
11123 return $ac_func ();
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146 eval "$as_ac_var=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 eval "$as_ac_var=no"
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11157 ac_res=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 _ACEOF
11164 GTK_COMPILES=yes
11166 done
11168 if test "${GTK_COMPILES}" != "yes"; then
11169 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11170 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11171 { (exit 1); exit 1; }; };
11174 HAVE_GTK=yes
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_GTK 1
11178 _ACEOF
11180 USE_X_TOOLKIT=none
11182 if test "$with_toolkit_scroll_bars" != no; then
11183 with_toolkit_scroll_bars=yes
11186 HAVE_GTK_MULTIDISPLAY=no
11188 for ac_func in gdk_display_open
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204 #define $ac_func innocuous_$ac_func
11206 /* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11211 #ifdef __STDC__
11212 # include <limits.h>
11213 #else
11214 # include <assert.h>
11215 #endif
11217 #undef $ac_func
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char $ac_func ();
11226 /* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229 #if defined __stub_$ac_func || defined __stub___$ac_func
11230 choke me
11231 #endif
11234 main ()
11236 return $ac_func ();
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
11259 eval "$as_ac_var=yes"
11260 else
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 eval "$as_ac_var=no"
11267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11270 ac_res=`eval echo '${'$as_ac_var'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276 _ACEOF
11277 HAVE_GTK_MULTIDISPLAY=yes
11279 done
11281 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11283 cat >>confdefs.h <<\_ACEOF
11284 #define HAVE_GTK_MULTIDISPLAY 1
11285 _ACEOF
11288 HAVE_GTK_FILE_SELECTION=no
11290 for ac_func in gtk_file_selection_new
11292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11306 #define $ac_func innocuous_$ac_func
11308 /* System header to define __stub macros and hopefully few prototypes,
11309 which can conflict with char $ac_func (); below.
11310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11311 <limits.h> exists even on freestanding compilers. */
11313 #ifdef __STDC__
11314 # include <limits.h>
11315 #else
11316 # include <assert.h>
11317 #endif
11319 #undef $ac_func
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char $ac_func ();
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined __stub_$ac_func || defined __stub___$ac_func
11332 choke me
11333 #endif
11336 main ()
11338 return $ac_func ();
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_link") 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest$ac_exeext &&
11360 $as_test_x conftest$ac_exeext; then
11361 eval "$as_ac_var=yes"
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 eval "$as_ac_var=no"
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370 conftest$ac_exeext conftest.$ac_ext
11372 ac_res=`eval echo '${'$as_ac_var'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11375 if test `eval echo '${'$as_ac_var'}'` = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 _ACEOF
11379 HAVE_GTK_FILE_SELECTION=yes
11381 done
11384 HAVE_GTK_FILE_CHOOSER=no
11386 for ac_func in gtk_file_chooser_dialog_new
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402 #define $ac_func innocuous_$ac_func
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11409 #ifdef __STDC__
11410 # include <limits.h>
11411 #else
11412 # include <assert.h>
11413 #endif
11415 #undef $ac_func
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char $ac_func ();
11424 /* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427 #if defined __stub_$ac_func || defined __stub___$ac_func
11428 choke me
11429 #endif
11432 main ()
11434 return $ac_func ();
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext &&
11456 $as_test_x conftest$ac_exeext; then
11457 eval "$as_ac_var=yes"
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 eval "$as_ac_var=no"
11465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11466 conftest$ac_exeext conftest.$ac_ext
11468 ac_res=`eval echo '${'$as_ac_var'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11474 _ACEOF
11475 HAVE_GTK_FILE_CHOOSER=yes
11477 done
11480 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11481 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_GTK_FILE_BOTH 1
11485 _ACEOF
11489 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11490 HAVE_GTK_AND_PTHREAD=no
11492 for ac_header in pthread.h
11494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 ac_res=`eval echo '${'$as_ac_Header'}'`
11502 { echo "$as_me:$LINENO: result: $ac_res" >&5
11503 echo "${ECHO_T}$ac_res" >&6; }
11504 else
11505 # Is the header compilable?
11506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 $ac_includes_default
11515 #include <$ac_header>
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest.$ac_objext; then
11534 ac_header_compiler=yes
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_header_compiler=no
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11544 echo "${ECHO_T}$ac_header_compiler" >&6; }
11546 # Is the header present?
11547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #include <$ac_header>
11556 _ACEOF
11557 if { (ac_try="$ac_cpp conftest.$ac_ext"
11558 case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } >/dev/null && {
11570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11572 }; then
11573 ac_header_preproc=yes
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_header_preproc=no
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585 # So? What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 yes:no: )
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592 ac_header_preproc=yes
11594 no:yes:* )
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11609 esac
11610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 eval "$as_ac_Header=\$ac_header_preproc"
11617 ac_res=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11623 cat >>confdefs.h <<_ACEOF
11624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11625 _ACEOF
11629 done
11631 if test "$ac_cv_header_pthread_h"; then
11632 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11633 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11634 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637 ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-lpthread $LIBS"
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char pthread_self ();
11654 main ()
11656 return pthread_self ();
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest$ac_exeext &&
11678 $as_test_x conftest$ac_exeext; then
11679 ac_cv_lib_pthread_pthread_self=yes
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_cv_lib_pthread_pthread_self=no
11687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11691 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11692 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11693 if test $ac_cv_lib_pthread_pthread_self = yes; then
11694 HAVE_GTK_AND_PTHREAD=yes
11698 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11699 case "${canonical}" in
11700 *-hpux*) ;;
11701 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11702 esac
11704 cat >>confdefs.h <<\_ACEOF
11705 #define HAVE_GTK_AND_PTHREAD 1
11706 _ACEOF
11712 ### Link with -lXft if available to work around a bug.
11713 HAVE_XFT=maybe
11714 if test "${HAVE_GTK}" = "yes"; then
11715 if test "X${with_pkg_config_prog}" != X; then
11716 PKG_CONFIG="${with_pkg_config_prog}"
11720 succeeded=no
11722 if test -z "$PKG_CONFIG"; then
11723 # Extract the first word of "pkg-config", so it can be a program name with args.
11724 set dummy pkg-config; ac_word=$2
11725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 case $PKG_CONFIG in
11731 [\\/]* | ?:[\\/]*)
11732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11746 done
11747 done
11748 IFS=$as_save_IFS
11750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11752 esac
11754 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11755 if test -n "$PKG_CONFIG"; then
11756 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11757 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11758 else
11759 { echo "$as_me:$LINENO: result: no" >&5
11760 echo "${ECHO_T}no" >&6; }
11766 if test "$PKG_CONFIG" = "no" ; then
11767 HAVE_XFT=no
11768 else
11769 PKG_CONFIG_MIN_VERSION=0.9.0
11770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11771 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11772 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11774 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11775 { echo "$as_me:$LINENO: result: yes" >&5
11776 echo "${ECHO_T}yes" >&6; }
11777 succeeded=yes
11779 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11780 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11781 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11782 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11783 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11785 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11786 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11787 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11788 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11789 echo "${ECHO_T}$XFT_LIBS" >&6; }
11790 else
11791 { echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6; }
11793 XFT_CFLAGS=""
11794 XFT_LIBS=""
11795 ## If we have a custom action on failure, don't print errors, but
11796 ## do set a variable so people can do so.
11797 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11803 else
11804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11809 if test $succeeded = yes; then
11811 else
11812 HAVE_XFT=no
11815 if test "$HAVE_XFT" != no; then
11816 OLD_CFLAGS="$CPPFLAGS"
11817 OLD_CPPFLAGS="$CFLAGS"
11818 OLD_LIBS="$LIBS"
11819 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11820 CFLAGS="$CFLAGS $XFT_CFLAGS"
11821 LIBS="$XFT_LIBS $LIBS"
11822 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11823 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11824 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11825 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11829 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11830 else
11831 # Is the header compilable?
11832 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11833 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 #include <X11/Xft/Xft.h>
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest.$ac_objext; then
11860 ac_header_compiler=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_compiler=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11870 echo "${ECHO_T}$ac_header_compiler" >&6; }
11872 # Is the header present?
11873 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11874 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <X11/Xft/Xft.h>
11882 _ACEOF
11883 if { (ac_try="$ac_cpp conftest.$ac_ext"
11884 case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } >/dev/null && {
11896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11898 }; then
11899 ac_header_preproc=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_header_preproc=no
11907 rm -f conftest.err conftest.$ac_ext
11908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909 echo "${ECHO_T}$ac_header_preproc" >&6; }
11911 # So? What about this header?
11912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11913 yes:no: )
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11918 ac_header_preproc=yes
11920 no:yes:* )
11921 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11922 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11924 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11926 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11928 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11930 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11932 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11935 esac
11936 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11937 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11938 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11943 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11944 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11947 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11948 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11949 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11950 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lXft $XFT_LIBS $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char XftFontOpen ();
11970 main ()
11972 return XftFontOpen ();
11974 return 0;
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext &&
11994 $as_test_x conftest$ac_exeext; then
11995 ac_cv_lib_Xft_XftFontOpen=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_lib_Xft_XftFontOpen=no
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12008 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12009 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12010 HAVE_XFT=yes
12017 if test "${HAVE_XFT}" = "yes"; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_XFT 1
12021 _ACEOF
12024 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12025 else
12026 CFLAGS="$OLD_CPPFLAGS"
12027 CFLAGS="$OLD_CFLAGS"
12028 LIBS="$OLD_LIBS"
12033 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12034 if test x"${HAVE_X11R5}" = xyes; then
12035 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12036 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12037 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12047 #include <X11/Intrinsic.h>
12048 #include <X11/Xaw/Simple.h>
12050 main ()
12054 return 0;
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (ac_try="$ac_link"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest$ac_exeext &&
12074 $as_test_x conftest$ac_exeext; then
12075 emacs_cv_x11_version_5_with_xaw=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 emacs_cv_x11_version_5_with_xaw=no
12083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12084 conftest$ac_exeext conftest.$ac_ext
12087 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12088 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12089 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12090 USE_X_TOOLKIT=LUCID
12091 else
12092 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12093 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12094 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12095 { (exit 1); exit 1; }; }
12096 else
12097 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12098 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12099 USE_X_TOOLKIT=none
12102 else
12103 USE_X_TOOLKIT=none
12107 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12109 if test "${USE_X_TOOLKIT}" != "none"; then
12110 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12111 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12112 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h. */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <X11/Intrinsic.h>
12123 main ()
12125 #if XtSpecificationRelease < 6
12126 fail;
12127 #endif
12130 return 0;
12132 _ACEOF
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (ac_try="$ac_link"
12135 case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_link") 2>conftest.er1
12141 ac_status=$?
12142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && {
12147 test -z "$ac_c_werror_flag" ||
12148 test ! -s conftest.err
12149 } && test -s conftest$ac_exeext &&
12150 $as_test_x conftest$ac_exeext; then
12151 emacs_cv_x11_toolkit_version_6=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 emacs_cv_x11_toolkit_version_6=no
12159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12160 conftest$ac_exeext conftest.$ac_ext
12163 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12164 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12165 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12166 echo "${ECHO_T}6 or newer" >&6; }
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_X11XTR6 1
12170 _ACEOF
12172 else
12173 { echo "$as_me:$LINENO: result: before 6" >&5
12174 echo "${ECHO_T}before 6" >&6; }
12177 OLDLIBS="$LIBS"
12178 if test x$HAVE_X11XTR6 = xyes; then
12179 LIBS="-lXt -lSM -lICE $LIBS"
12180 else
12181 LIBS="-lXt $LIBS"
12184 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12185 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12186 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lXmu $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char XmuConvertStandardSelection ();
12206 main ()
12208 return XmuConvertStandardSelection ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext &&
12230 $as_test_x conftest$ac_exeext; then
12231 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12244 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12245 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define HAVE_LIBXMU 1
12248 _ACEOF
12250 LIBS="-lXmu $LIBS"
12254 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12257 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12258 if test "${HAVE_X11}" = "yes"; then
12259 if test "${USE_X_TOOLKIT}" != "none"; then
12261 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12262 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12263 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lXext $LIBS"
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 /* Override any GCC internal prototype to avoid an error.
12276 Use char because int might match the return type of a GCC
12277 builtin and then its argument prototype would still apply. */
12278 #ifdef __cplusplus
12279 extern "C"
12280 #endif
12281 char XShapeQueryExtension ();
12283 main ()
12285 return XShapeQueryExtension ();
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (ac_try="$ac_link"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest$ac_exeext &&
12307 $as_test_x conftest$ac_exeext; then
12308 ac_cv_lib_Xext_XShapeQueryExtension=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_Xext_XShapeQueryExtension=no
12316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12321 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12322 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBXEXT 1
12325 _ACEOF
12327 LIBS="-lXext $LIBS"
12334 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12335 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12336 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12337 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <Xm/Xm.h>
12348 main ()
12350 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12351 int x = 5;
12352 #else
12353 Motif version prior to 2.1.
12354 #endif
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.$ac_objext; then
12376 emacs_cv_motif_version_2_1=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 emacs_cv_motif_version_2_1=no
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12387 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12388 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12389 if test $emacs_cv_motif_version_2_1 = yes; then
12390 HAVE_LIBXP=no
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_MOTIF_2_1 1
12394 _ACEOF
12396 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12397 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-lXp $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char XpCreateContext ();
12418 main ()
12420 return XpCreateContext ();
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_lib_Xp_XpCreateContext=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_lib_Xp_XpCreateContext=no
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12456 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12457 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12458 HAVE_LIBXP=yes
12461 if test ${HAVE_LIBXP} = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_LIBXP 1
12465 _ACEOF
12468 else
12469 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12470 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12471 if test "${emacs_cv_lesstif+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474 # We put this in CFLAGS temporarily to precede other -I options
12475 # that might be in CFLAGS temporarily.
12476 # We put this in CPPFLAGS where it precedes the other -I options.
12477 OLD_CPPFLAGS=$CPPFLAGS
12478 OLD_CFLAGS=$CFLAGS
12479 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12480 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12489 main ()
12491 int x = 5;
12493 return 0;
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (ac_try="$ac_compile"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_compile") 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && {
12510 test -z "$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 } && test -s conftest.$ac_objext; then
12513 emacs_cv_lesstif=yes
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 emacs_cv_lesstif=no
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12524 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12525 if test $emacs_cv_lesstif = yes; then
12526 # Make sure this -I option remains in CPPFLAGS after it is set
12527 # back to REAL_CPPFLAGS.
12528 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12529 # have those other -I options anyway. Ultimately, having this
12530 # directory ultimately in CPPFLAGS will be enough.
12531 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12532 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12533 else
12534 CFLAGS=$OLD_CFLAGS
12535 CPPFLAGS=$OLD_CPPFLAGS
12540 ### Is -lXaw3d available?
12541 HAVE_XAW3D=no
12542 if test "${HAVE_X11}" = "yes"; then
12543 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12544 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12545 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12546 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <X11/Xaw3d/Scrollbar.h>
12556 _ACEOF
12557 if { (ac_try="$ac_cpp conftest.$ac_ext"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } >/dev/null && {
12570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 }; then
12573 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12574 else
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12581 rm -f conftest.err conftest.$ac_ext
12583 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12584 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12585 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12586 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12587 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12588 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 ac_check_lib_save_LIBS=$LIBS
12592 LIBS="-lXaw3d $LIBS"
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char XawScrollbarSetThumb ();
12608 main ()
12610 return XawScrollbarSetThumb ();
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest$ac_exeext &&
12632 $as_test_x conftest$ac_exeext; then
12633 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LIBS=$ac_check_lib_save_LIBS
12645 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12646 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12647 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12648 HAVE_XAW3D=yes
12654 if test "${HAVE_XAW3D}" = "yes"; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_XAW3D 1
12658 _ACEOF
12666 USE_TOOLKIT_SCROLL_BARS=no
12667 if test "${with_toolkit_scroll_bars}" != "no"; then
12668 if test "${USE_X_TOOLKIT}" != "none"; then
12669 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12672 _ACEOF
12674 HAVE_XAW3D=no
12675 USE_TOOLKIT_SCROLL_BARS=yes
12676 elif test "${HAVE_XAW3D}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define USE_TOOLKIT_SCROLL_BARS 1
12679 _ACEOF
12681 USE_TOOLKIT_SCROLL_BARS=yes
12683 elif test "${HAVE_GTK}" = "yes"; then
12684 cat >>confdefs.h <<\_ACEOF
12685 #define USE_TOOLKIT_SCROLL_BARS 1
12686 _ACEOF
12688 USE_TOOLKIT_SCROLL_BARS=yes
12689 elif test "${HAVE_CARBON}" = "yes"; then
12690 cat >>confdefs.h <<\_ACEOF
12691 #define USE_TOOLKIT_SCROLL_BARS 1
12692 _ACEOF
12694 USE_TOOLKIT_SCROLL_BARS=yes
12698 cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12705 #include <X11/Xlib.h>
12706 #include <X11/Xresource.h>
12708 main ()
12710 XIMProc callback;
12712 return 0;
12714 _ACEOF
12715 rm -f conftest.$ac_objext
12716 if { (ac_try="$ac_compile"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_compile") 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest.$ac_objext; then
12732 HAVE_XIM=yes
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_XIM 1
12736 _ACEOF
12738 else
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 HAVE_XIM=no
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 if test "${with_xim}" != "no"; then
12750 cat >>confdefs.h <<\_ACEOF
12751 #define USE_XIM 1
12752 _ACEOF
12757 if test "${HAVE_XIM}" != "no"; then
12758 late_CFLAGS=$CFLAGS
12759 if test "$GCC" = yes; then
12760 CFLAGS="$CFLAGS --pedantic-errors"
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h. */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12769 #include <X11/Xlib.h>
12770 #include <X11/Xresource.h>
12772 main ()
12774 Display *display;
12775 XrmDatabase db;
12776 char *res_name;
12777 char *res_class;
12778 XIMProc callback;
12779 XPointer *client_data;
12780 #ifndef __GNUC__
12781 /* If we're not using GCC, it's probably not XFree86, and this is
12782 probably right, but we can't use something like --pedantic-errors. */
12783 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12784 char*, XIMProc, XPointer*);
12785 #endif
12786 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12787 client_data);
12789 return 0;
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 emacs_cv_arg6_star=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 if test "$emacs_cv_arg6_star" = yes; then
12820 cat >>confdefs.h <<\_ACEOF
12821 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12822 _ACEOF
12824 else
12825 cat >>confdefs.h <<\_ACEOF
12826 #define XRegisterIMInstantiateCallback_arg6 XPointer
12827 _ACEOF
12830 CFLAGS=$late_CFLAGS
12833 ### Use -lXpm if available, unless `--with-xpm=no'.
12834 HAVE_XPM=no
12835 if test "${HAVE_X11}" = "yes"; then
12836 if test "${with_xpm}" != "no"; then
12837 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12838 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12839 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12844 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12845 else
12846 # Is the header compilable?
12847 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12848 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 $ac_includes_default
12856 #include <X11/xpm.h>
12857 _ACEOF
12858 rm -f conftest.$ac_objext
12859 if { (ac_try="$ac_compile"
12860 case "(($ac_try" in
12861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12863 esac
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_compile") 2>conftest.er1
12866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && {
12872 test -z "$ac_c_werror_flag" ||
12873 test ! -s conftest.err
12874 } && test -s conftest.$ac_objext; then
12875 ac_header_compiler=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_header_compiler=no
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12885 echo "${ECHO_T}$ac_header_compiler" >&6; }
12887 # Is the header present?
12888 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12889 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <X11/xpm.h>
12897 _ACEOF
12898 if { (ac_try="$ac_cpp conftest.$ac_ext"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } >/dev/null && {
12911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 }; then
12914 ac_header_preproc=yes
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_header_preproc=no
12922 rm -f conftest.err conftest.$ac_ext
12923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12924 echo "${ECHO_T}$ac_header_preproc" >&6; }
12926 # So? What about this header?
12927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928 yes:no: )
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12933 ac_header_preproc=yes
12935 no:yes:* )
12936 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12937 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12939 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12941 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12943 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12945 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12947 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12950 esac
12951 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12952 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12953 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 ac_cv_header_X11_xpm_h=$ac_header_preproc
12958 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12959 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12962 if test $ac_cv_header_X11_xpm_h = yes; then
12963 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12964 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12965 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968 ac_check_lib_save_LIBS=$LIBS
12969 LIBS="-lXpm -lX11 $LIBS"
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h. */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char XpmReadFileToPixmap ();
12985 main ()
12987 return XpmReadFileToPixmap ();
12989 return 0;
12991 _ACEOF
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext &&
13009 $as_test_x conftest$ac_exeext; then
13010 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13011 else
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13023 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13024 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13025 HAVE_XPM=yes
13031 if test "${HAVE_XPM}" = "yes"; then
13032 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13033 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include "X11/xpm.h"
13041 #ifndef XpmReturnAllocPixels
13042 no_return_alloc_pixels
13043 #endif
13045 _ACEOF
13046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13047 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13048 HAVE_XPM=no
13049 else
13050 HAVE_XPM=yes
13052 rm -f conftest*
13055 if test "${HAVE_XPM}" = "yes"; then
13056 { echo "$as_me:$LINENO: result: yes" >&5
13057 echo "${ECHO_T}yes" >&6; }
13058 else
13059 { echo "$as_me:$LINENO: result: no" >&5
13060 echo "${ECHO_T}no" >&6; }
13065 if test "${HAVE_XPM}" = "yes"; then
13067 cat >>confdefs.h <<\_ACEOF
13068 #define HAVE_XPM 1
13069 _ACEOF
13074 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13075 HAVE_JPEG=no
13076 if test "${HAVE_X11}" = "yes"; then
13077 if test "${with_jpeg}" != "no"; then
13078 if test "${ac_cv_header_jerror_h+set}" = set; then
13079 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13080 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13081 if test "${ac_cv_header_jerror_h+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13086 else
13087 # Is the header compilable?
13088 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13089 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 $ac_includes_default
13097 #include <jerror.h>
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compile") 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.$ac_objext; then
13116 ac_header_compiler=yes
13117 else
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_header_compiler=no
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6; }
13128 # Is the header present?
13129 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13130 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <jerror.h>
13138 _ACEOF
13139 if { (ac_try="$ac_cpp conftest.$ac_ext"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } >/dev/null && {
13152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 }; then
13155 ac_header_preproc=yes
13156 else
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_header_preproc=no
13163 rm -f conftest.err conftest.$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13165 echo "${ECHO_T}$ac_header_preproc" >&6; }
13167 # So? What about this header?
13168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13169 yes:no: )
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13171 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13173 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13174 ac_header_preproc=yes
13176 no:yes:* )
13177 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13178 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13180 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13182 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13184 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13186 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13187 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13188 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13191 esac
13192 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13193 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13194 if test "${ac_cv_header_jerror_h+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197 ac_cv_header_jerror_h=$ac_header_preproc
13199 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13200 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13203 if test $ac_cv_header_jerror_h = yes; then
13204 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13205 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13206 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ljpeg $LIBS"
13211 cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h. */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221 #ifdef __cplusplus
13222 extern "C"
13223 #endif
13224 char jpeg_destroy_compress ();
13226 main ()
13228 return jpeg_destroy_compress ();
13230 return 0;
13232 _ACEOF
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_link") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext &&
13250 $as_test_x conftest$ac_exeext; then
13251 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13263 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13264 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13265 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13266 HAVE_JPEG=yes
13275 if test "${HAVE_JPEG}" = "yes"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_JPEG 1
13278 _ACEOF
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <jpeglib.h>
13287 version=JPEG_LIB_VERSION
13289 _ACEOF
13290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13291 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_JPEG 1
13294 _ACEOF
13296 else
13297 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13298 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13299 HAVE_JPEG=no
13301 rm -f conftest*
13306 ### Use -lpng if available, unless `--with-png=no'.
13307 HAVE_PNG=no
13308 if test "${HAVE_X11}" = "yes"; then
13309 if test "${with_png}" != "no"; then
13310 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13311 # in /usr/include/libpng.
13314 for ac_header in png.h libpng/png.h
13316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_res=`eval echo '${'$as_ac_Header'}'`
13324 { echo "$as_me:$LINENO: result: $ac_res" >&5
13325 echo "${ECHO_T}$ac_res" >&6; }
13326 else
13327 # Is the header compilable?
13328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13337 #include <$ac_header>
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest.$ac_objext; then
13356 ac_header_compiler=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_compiler=no
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13366 echo "${ECHO_T}$ac_header_compiler" >&6; }
13368 # Is the header present?
13369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include <$ac_header>
13378 _ACEOF
13379 if { (ac_try="$ac_cpp conftest.$ac_ext"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } >/dev/null && {
13392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13394 }; then
13395 ac_header_preproc=yes
13396 else
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_header_preproc=no
13403 rm -f conftest.err conftest.$ac_ext
13404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 echo "${ECHO_T}$ac_header_preproc" >&6; }
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13409 yes:no: )
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13414 ac_header_preproc=yes
13416 no:yes:* )
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13431 esac
13432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437 eval "$as_ac_Header=\$ac_header_preproc"
13439 ac_res=`eval echo '${'$as_ac_Header'}'`
13440 { echo "$as_me:$LINENO: result: $ac_res" >&5
13441 echo "${ECHO_T}$ac_res" >&6; }
13444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13447 _ACEOF
13451 done
13453 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13454 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13455 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lpng -lz -lm $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char png_get_channels ();
13476 main ()
13478 return png_get_channels ();
13480 return 0;
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (ac_try="$ac_link"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_link") 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest$ac_exeext &&
13500 $as_test_x conftest$ac_exeext; then
13501 ac_cv_lib_png_png_get_channels=yes
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_lib_png_png_get_channels=no
13509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13513 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13514 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13515 if test $ac_cv_lib_png_png_get_channels = yes; then
13516 HAVE_PNG=yes
13522 if test "${HAVE_PNG}" = "yes"; then
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_PNG 1
13526 _ACEOF
13531 ### Use -ltiff if available, unless `--with-tiff=no'.
13532 HAVE_TIFF=no
13533 if test "${HAVE_X11}" = "yes"; then
13534 if test "${with_tiff}" != "no"; then
13535 if test "${ac_cv_header_tiffio_h+set}" = set; then
13536 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13537 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_tiffio_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13543 else
13544 # Is the header compilable?
13545 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13546 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 $ac_includes_default
13554 #include <tiffio.h>
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest.$ac_objext; then
13573 ac_header_compiler=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_header_compiler=no
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13583 echo "${ECHO_T}$ac_header_compiler" >&6; }
13585 # Is the header present?
13586 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13587 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <tiffio.h>
13595 _ACEOF
13596 if { (ac_try="$ac_cpp conftest.$ac_ext"
13597 case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } >/dev/null && {
13609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13610 test ! -s conftest.err
13611 }; then
13612 ac_header_preproc=yes
13613 else
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ac_header_preproc=no
13620 rm -f conftest.err conftest.$ac_ext
13621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13622 echo "${ECHO_T}$ac_header_preproc" >&6; }
13624 # So? What about this header?
13625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13626 yes:no: )
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13628 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13630 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13631 ac_header_preproc=yes
13633 no:yes:* )
13634 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13635 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13637 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13639 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13641 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13643 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13645 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13648 esac
13649 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13650 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13651 if test "${ac_cv_header_tiffio_h+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 ac_cv_header_tiffio_h=$ac_header_preproc
13656 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13657 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13660 if test $ac_cv_header_tiffio_h = yes; then
13661 tifflibs="-lz -lm"
13662 # At least one tiff package requires the jpeg library.
13663 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13664 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13665 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ltiff $tifflibs $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char TIFFGetVersion ();
13686 main ()
13688 return TIFFGetVersion ();
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_tiff_TIFFGetVersion=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_cv_lib_tiff_TIFFGetVersion=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13724 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13725 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13726 HAVE_TIFF=yes
13734 if test "${HAVE_TIFF}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_TIFF 1
13738 _ACEOF
13743 ### Use -lgif if available, unless `--with-gif=no'.
13744 HAVE_GIF=no
13745 if test "${HAVE_X11}" = "yes"; then
13746 if test "${with_gif}" != "no"; then
13747 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13748 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13749 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13754 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13755 else
13756 # Is the header compilable?
13757 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13758 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 #include <gif_lib.h>
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_compile") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest.$ac_objext; then
13785 ac_header_compiler=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_header_compiler=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6; }
13797 # Is the header present?
13798 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13799 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <gif_lib.h>
13807 _ACEOF
13808 if { (ac_try="$ac_cpp conftest.$ac_ext"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } >/dev/null && {
13821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 }; then
13824 ac_header_preproc=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_header_preproc=no
13832 rm -f conftest.err conftest.$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6; }
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838 yes:no: )
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc=yes
13845 no:yes:* )
13846 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13860 esac
13861 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13862 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13863 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 ac_cv_header_gif_lib_h=$ac_header_preproc
13868 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13869 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13872 if test $ac_cv_header_gif_lib_h = yes; then
13873 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13874 # Earlier versions can crash Emacs.
13875 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13876 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lungif $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char EGifPutExtensionLast ();
13897 main ()
13899 return EGifPutExtensionLast ();
13901 return 0;
13903 _ACEOF
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (ac_try="$ac_link"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest$ac_exeext &&
13921 $as_test_x conftest$ac_exeext; then
13922 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_lib_ungif_EGifPutExtensionLast=no
13930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13934 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13935 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13936 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13937 HAVE_GIF=yes
13945 if test "${HAVE_GIF}" = "yes"; then
13947 cat >>confdefs.h <<\_ACEOF
13948 #define HAVE_GIF 1
13949 _ACEOF
13954 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13955 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13956 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13957 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13961 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13962 else
13963 # Is the header compilable?
13964 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13965 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 $ac_includes_default
13973 #include <malloc/malloc.h>
13974 _ACEOF
13975 rm -f conftest.$ac_objext
13976 if { (ac_try="$ac_compile"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_compile") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.$ac_objext; then
13992 ac_header_compiler=yes
13993 else
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13997 ac_header_compiler=no
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14002 echo "${ECHO_T}$ac_header_compiler" >&6; }
14004 # Is the header present?
14005 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14006 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <malloc/malloc.h>
14014 _ACEOF
14015 if { (ac_try="$ac_cpp conftest.$ac_ext"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } >/dev/null && {
14028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 }; then
14031 ac_header_preproc=yes
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_preproc=no
14039 rm -f conftest.err conftest.$ac_ext
14040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14041 echo "${ECHO_T}$ac_header_preproc" >&6; }
14043 # So? What about this header?
14044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14045 yes:no: )
14046 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14047 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14049 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14050 ac_header_preproc=yes
14052 no:yes:* )
14053 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14054 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14056 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14058 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14060 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14062 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14064 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14067 esac
14068 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14069 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14070 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14076 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14079 if test $ac_cv_header_malloc_malloc_h = yes; then
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_MALLOC_MALLOC_H 1
14083 _ACEOF
14089 ### Use Mac OS X Carbon API to implement GUI.
14090 if test "${HAVE_CARBON}" = "yes"; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_CARBON 1
14094 _ACEOF
14096 ## Specify the install directory
14097 carbon_appdir=
14098 if test "${carbon_appdir_x}" != ""; then
14099 case ${carbon_appdir_x} in
14100 y | ye | yes) carbon_appdir=/Applications ;;
14101 * ) carbon_appdir=${carbon_appdir_x} ;;
14102 esac
14104 # We also have mouse menus.
14105 HAVE_MENUS=yes
14108 ### Use session management (-lSM -lICE) if available
14109 HAVE_X_SM=no
14110 if test "${HAVE_X11}" = "yes"; then
14111 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14113 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14119 else
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14122 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <X11/SM/SMlib.h>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_compiler=no
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14163 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <X11/SM/SMlib.h>
14171 _ACEOF
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 }; then
14188 ac_header_preproc=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_header_preproc=no
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14202 yes:no: )
14203 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14206 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
14209 no:yes:* )
14210 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14219 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14224 esac
14225 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14226 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14236 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14237 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14238 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14239 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242 ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-lSM -lICE $LIBS"
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
14254 #ifdef __cplusplus
14255 extern "C"
14256 #endif
14257 char SmcOpenConnection ();
14259 main ()
14261 return SmcOpenConnection ();
14263 return 0;
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (ac_try="$ac_link"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } && {
14280 test -z "$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 } && test -s conftest$ac_exeext &&
14283 $as_test_x conftest$ac_exeext; then
14284 ac_cv_lib_SM_SmcOpenConnection=yes
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_cv_lib_SM_SmcOpenConnection=no
14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14293 conftest$ac_exeext conftest.$ac_ext
14294 LIBS=$ac_check_lib_save_LIBS
14296 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14297 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14298 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14299 HAVE_X_SM=yes
14306 if test "${HAVE_X_SM}" = "yes"; then
14308 cat >>confdefs.h <<\_ACEOF
14309 #define HAVE_X_SM 1
14310 _ACEOF
14312 case "$LIBS" in
14313 *-lSM*) ;;
14314 *) LIBS="-lSM -lICE $LIBS" ;;
14315 esac
14319 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14320 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14321 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14322 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h. */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <netdb.h>
14333 main ()
14335 return h_errno;
14337 return 0;
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (ac_try="$ac_link"
14342 case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_link") 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest$ac_exeext &&
14357 $as_test_x conftest$ac_exeext; then
14358 emacs_cv_netdb_declares_h_errno=yes
14359 else
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14363 emacs_cv_netdb_declares_h_errno=no
14366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14367 conftest$ac_exeext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14370 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14371 if test $emacs_cv_netdb_declares_h_errno = yes; then
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_H_ERRNO 1
14375 _ACEOF
14379 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14380 # for constant arguments. Useless!
14381 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14382 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14383 if test "${ac_cv_working_alloca_h+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <alloca.h>
14394 main ()
14396 char *p = (char *) alloca (2 * sizeof (int));
14397 if (p) return 0;
14399 return 0;
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_link") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest$ac_exeext &&
14419 $as_test_x conftest$ac_exeext; then
14420 ac_cv_working_alloca_h=yes
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_working_alloca_h=no
14428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14429 conftest$ac_exeext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14432 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14433 if test $ac_cv_working_alloca_h = yes; then
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_ALLOCA_H 1
14437 _ACEOF
14441 { echo "$as_me:$LINENO: checking for alloca" >&5
14442 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14443 if test "${ac_cv_func_alloca_works+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #ifdef __GNUC__
14453 # define alloca __builtin_alloca
14454 #else
14455 # ifdef _MSC_VER
14456 # include <malloc.h>
14457 # define alloca _alloca
14458 # else
14459 # ifdef HAVE_ALLOCA_H
14460 # include <alloca.h>
14461 # else
14462 # ifdef _AIX
14463 #pragma alloca
14464 # else
14465 # ifndef alloca /* predefined by HP cc +Olibcalls */
14466 char *alloca ();
14467 # endif
14468 # endif
14469 # endif
14470 # endif
14471 #endif
14474 main ()
14476 char *p = (char *) alloca (1);
14477 if (p) return 0;
14479 return 0;
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (ac_try="$ac_link"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_link") 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest$ac_exeext &&
14499 $as_test_x conftest$ac_exeext; then
14500 ac_cv_func_alloca_works=yes
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_cv_func_alloca_works=no
14508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14509 conftest$ac_exeext conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14512 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14514 if test $ac_cv_func_alloca_works = yes; then
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_ALLOCA 1
14518 _ACEOF
14520 else
14521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14522 # that cause trouble. Some versions do not even contain alloca or
14523 # contain a buggy version. If you still want to use their alloca,
14524 # use ar to extract alloca.o from them instead of compiling alloca.c.
14526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14528 cat >>confdefs.h <<\_ACEOF
14529 #define C_ALLOCA 1
14530 _ACEOF
14533 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14534 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14535 if test "${ac_cv_os_cray+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #if defined CRAY && ! defined CRAY2
14545 webecray
14546 #else
14547 wenotbecray
14548 #endif
14550 _ACEOF
14551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14552 $EGREP "webecray" >/dev/null 2>&1; then
14553 ac_cv_os_cray=yes
14554 else
14555 ac_cv_os_cray=no
14557 rm -f conftest*
14560 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14561 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14562 if test $ac_cv_os_cray = yes; then
14563 for ac_func in _getb67 GETB67 getb67; do
14564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14578 #define $ac_func innocuous_$ac_func
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char $ac_func (); below.
14582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583 <limits.h> exists even on freestanding compilers. */
14585 #ifdef __STDC__
14586 # include <limits.h>
14587 #else
14588 # include <assert.h>
14589 #endif
14591 #undef $ac_func
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 char $ac_func ();
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined __stub_$ac_func || defined __stub___$ac_func
14604 choke me
14605 #endif
14608 main ()
14610 return $ac_func ();
14612 return 0;
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 eval "$as_ac_var=yes"
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 eval "$as_ac_var=no"
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14644 ac_res=`eval echo '${'$as_ac_var'}'`
14645 { echo "$as_me:$LINENO: result: $ac_res" >&5
14646 echo "${ECHO_T}$ac_res" >&6; }
14647 if test `eval echo '${'$as_ac_var'}'` = yes; then
14649 cat >>confdefs.h <<_ACEOF
14650 #define CRAY_STACKSEG_END $ac_func
14651 _ACEOF
14653 break
14656 done
14659 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14660 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14661 if test "${ac_cv_c_stack_direction+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664 if test "$cross_compiling" = yes; then
14665 ac_cv_c_stack_direction=0
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14675 find_stack_direction ()
14677 static char *addr = 0;
14678 auto char dummy;
14679 if (addr == 0)
14681 addr = &dummy;
14682 return find_stack_direction ();
14684 else
14685 return (&dummy > addr) ? 1 : -1;
14689 main ()
14691 return find_stack_direction () < 0;
14693 _ACEOF
14694 rm -f conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14705 { (case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_try") 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_c_stack_direction=1
14715 else
14716 echo "$as_me: program exited with status $ac_status" >&5
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ( exit $ac_status )
14721 ac_cv_c_stack_direction=-1
14723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14729 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14731 cat >>confdefs.h <<_ACEOF
14732 #define STACK_DIRECTION $ac_cv_c_stack_direction
14733 _ACEOF
14739 # fmod, logb, and frexp are found in -lm on most systems.
14740 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14742 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14743 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14744 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lm $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14759 #ifdef __cplusplus
14760 extern "C"
14761 #endif
14762 char sqrt ();
14764 main ()
14766 return sqrt ();
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest$ac_exeext &&
14788 $as_test_x conftest$ac_exeext; then
14789 ac_cv_lib_m_sqrt=yes
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_cv_lib_m_sqrt=no
14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14798 conftest$ac_exeext conftest.$ac_ext
14799 LIBS=$ac_check_lib_save_LIBS
14801 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14802 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14803 if test $ac_cv_lib_m_sqrt = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_LIBM 1
14806 _ACEOF
14808 LIBS="-lm $LIBS"
14813 # Check for mail-locking functions in a "mail" library. Probably this should
14814 # have the same check as for liblockfile below.
14816 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14817 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14818 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lmail $LIBS"
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 char maillock ();
14838 main ()
14840 return maillock ();
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } && {
14859 test -z "$ac_c_werror_flag" ||
14860 test ! -s conftest.err
14861 } && test -s conftest$ac_exeext &&
14862 $as_test_x conftest$ac_exeext; then
14863 ac_cv_lib_mail_maillock=yes
14864 else
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_lib_mail_maillock=no
14871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14876 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14877 if test $ac_cv_lib_mail_maillock = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define HAVE_LIBMAIL 1
14880 _ACEOF
14882 LIBS="-lmail $LIBS"
14887 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14888 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14889 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892 ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-llockfile $LIBS"
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h. */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply. */
14904 #ifdef __cplusplus
14905 extern "C"
14906 #endif
14907 char maillock ();
14909 main ()
14911 return maillock ();
14913 return 0;
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 ac_cv_lib_lockfile_maillock=yes
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_lib_lockfile_maillock=no
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14946 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14947 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14948 if test $ac_cv_lib_lockfile_maillock = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_LIBLOCKFILE 1
14951 _ACEOF
14953 LIBS="-llockfile $LIBS"
14957 # If we have the shared liblockfile, assume we must use it for mail
14958 # locking (e.g. Debian). If we couldn't link against liblockfile
14959 # (no liblockfile.a installed), ensure that we don't need to.
14960 if test "$ac_cv_lib_lockfile_maillock" = no; then
14961 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14962 set dummy liblockfile.so; ac_word=$2
14963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14965 if test "${ac_cv_prog_liblockfile+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968 if test -n "$liblockfile"; then
14969 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14970 else
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14973 for as_dir in $as_dummy
14975 IFS=$as_save_IFS
14976 test -z "$as_dir" && as_dir=.
14977 for ac_exec_ext in '' $ac_executable_extensions; do
14978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14979 ac_cv_prog_liblockfile="yes"
14980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14981 break 2
14983 done
14984 done
14985 IFS=$as_save_IFS
14987 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14990 liblockfile=$ac_cv_prog_liblockfile
14991 if test -n "$liblockfile"; then
14992 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14993 echo "${ECHO_T}$liblockfile" >&6; }
14994 else
14995 { echo "$as_me:$LINENO: result: no" >&5
14996 echo "${ECHO_T}no" >&6; }
15000 if test $ac_cv_prog_liblockfile = yes; then
15001 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15002 This probably means that movemail could lose mail.
15003 There may be a \`development' package to install containing liblockfile." >&5
15004 echo "$as_me: error: Shared liblockfile found but can't link against it.
15005 This probably means that movemail could lose mail.
15006 There may be a \`development' package to install containing liblockfile." >&2;}
15007 { (exit 1); exit 1; }; }
15008 else :
15012 for ac_func in touchlock
15014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15028 #define $ac_func innocuous_$ac_func
15030 /* System header to define __stub macros and hopefully few prototypes,
15031 which can conflict with char $ac_func (); below.
15032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15033 <limits.h> exists even on freestanding compilers. */
15035 #ifdef __STDC__
15036 # include <limits.h>
15037 #else
15038 # include <assert.h>
15039 #endif
15041 #undef $ac_func
15043 /* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15046 #ifdef __cplusplus
15047 extern "C"
15048 #endif
15049 char $ac_func ();
15050 /* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053 #if defined __stub_$ac_func || defined __stub___$ac_func
15054 choke me
15055 #endif
15058 main ()
15060 return $ac_func ();
15062 return 0;
15064 _ACEOF
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest$ac_exeext &&
15082 $as_test_x conftest$ac_exeext; then
15083 eval "$as_ac_var=yes"
15084 else
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 eval "$as_ac_var=no"
15091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15092 conftest$ac_exeext conftest.$ac_ext
15094 ac_res=`eval echo '${'$as_ac_var'}'`
15095 { echo "$as_me:$LINENO: result: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15097 if test `eval echo '${'$as_ac_var'}'` = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15100 _ACEOF
15103 done
15106 for ac_header in maillock.h
15108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118 else
15119 # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15129 #include <$ac_header>
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest.$ac_objext; then
15148 ac_header_compiler=yes
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_header_compiler=no
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15158 echo "${ECHO_T}$ac_header_compiler" >&6; }
15160 # Is the header present?
15161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 #include <$ac_header>
15170 _ACEOF
15171 if { (ac_try="$ac_cpp conftest.$ac_ext"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } >/dev/null && {
15184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 }; then
15187 ac_header_preproc=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_preproc=no
15195 rm -f conftest.err conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6; }
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15201 yes:no: )
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15206 ac_header_preproc=yes
15208 no:yes:* )
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15223 esac
15224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 eval "$as_ac_Header=\$ac_header_preproc"
15231 ac_res=`eval echo '${'$as_ac_Header'}'`
15232 { echo "$as_me:$LINENO: result: $ac_res" >&5
15233 echo "${ECHO_T}$ac_res" >&6; }
15236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239 _ACEOF
15243 done
15315 for ac_func in gethostname getdomainname dup2 \
15316 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15317 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15318 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15319 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15320 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15321 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15322 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15323 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15346 #ifdef __STDC__
15347 # include <limits.h>
15348 #else
15349 # include <assert.h>
15350 #endif
15352 #undef $ac_func
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357 #ifdef __cplusplus
15358 extern "C"
15359 #endif
15360 char $ac_func ();
15361 /* The GNU C library defines this for functions which it implements
15362 to always fail with ENOSYS. Some functions are actually named
15363 something starting with __ and the normal name is an alias. */
15364 #if defined __stub_$ac_func || defined __stub___$ac_func
15365 choke me
15366 #endif
15369 main ()
15371 return $ac_func ();
15373 return 0;
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (ac_try="$ac_link"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_link") 2>conftest.er1
15384 ac_status=$?
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } && {
15390 test -z "$ac_c_werror_flag" ||
15391 test ! -s conftest.err
15392 } && test -s conftest$ac_exeext &&
15393 $as_test_x conftest$ac_exeext; then
15394 eval "$as_ac_var=yes"
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 eval "$as_ac_var=no"
15402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15403 conftest$ac_exeext conftest.$ac_ext
15405 ac_res=`eval echo '${'$as_ac_var'}'`
15406 { echo "$as_me:$LINENO: result: $ac_res" >&5
15407 echo "${ECHO_T}$ac_res" >&6; }
15408 if test `eval echo '${'$as_ac_var'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15411 _ACEOF
15414 done
15418 for ac_header in sys/un.h
15420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 ac_res=`eval echo '${'$as_ac_Header'}'`
15428 { echo "$as_me:$LINENO: result: $ac_res" >&5
15429 echo "${ECHO_T}$ac_res" >&6; }
15430 else
15431 # Is the header compilable?
15432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h. */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 $ac_includes_default
15441 #include <$ac_header>
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest.$ac_objext; then
15460 ac_header_compiler=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_header_compiler=no
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15470 echo "${ECHO_T}$ac_header_compiler" >&6; }
15472 # Is the header present?
15473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 #include <$ac_header>
15482 _ACEOF
15483 if { (ac_try="$ac_cpp conftest.$ac_ext"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487 esac
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null && {
15496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 }; then
15499 ac_header_preproc=yes
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_preproc=no
15507 rm -f conftest.err conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6; }
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15520 no:yes:* )
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15535 esac
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541 eval "$as_ac_Header=\$ac_header_preproc"
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15555 done
15562 for ac_header in $ac_header_list
15564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 ac_res=`eval echo '${'$as_ac_Header'}'`
15572 { echo "$as_me:$LINENO: result: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15574 else
15575 # Is the header compilable?
15576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h. */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 $ac_includes_default
15585 #include <$ac_header>
15586 _ACEOF
15587 rm -f conftest.$ac_objext
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_compile") 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest.$ac_objext; then
15604 ac_header_compiler=yes
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_compiler=no
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15614 echo "${ECHO_T}$ac_header_compiler" >&6; }
15616 # Is the header present?
15617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h. */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 #include <$ac_header>
15626 _ACEOF
15627 if { (ac_try="$ac_cpp conftest.$ac_ext"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev/null && {
15640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 }; then
15643 ac_header_preproc=yes
15644 else
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_header_preproc=no
15651 rm -f conftest.err conftest.$ac_ext
15652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15653 echo "${ECHO_T}$ac_header_preproc" >&6; }
15655 # So? What about this header?
15656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15657 yes:no: )
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15662 ac_header_preproc=yes
15664 no:yes:* )
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15679 esac
15680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 eval "$as_ac_Header=\$ac_header_preproc"
15687 ac_res=`eval echo '${'$as_ac_Header'}'`
15688 { echo "$as_me:$LINENO: result: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 _ACEOF
15699 done
15709 for ac_func in $ac_func_list
15711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15725 #define $ac_func innocuous_$ac_func
15727 /* System header to define __stub macros and hopefully few prototypes,
15728 which can conflict with char $ac_func (); below.
15729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15730 <limits.h> exists even on freestanding compilers. */
15732 #ifdef __STDC__
15733 # include <limits.h>
15734 #else
15735 # include <assert.h>
15736 #endif
15738 #undef $ac_func
15740 /* Override any GCC internal prototype to avoid an error.
15741 Use char because int might match the return type of a GCC
15742 builtin and then its argument prototype would still apply. */
15743 #ifdef __cplusplus
15744 extern "C"
15745 #endif
15746 char $ac_func ();
15747 /* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750 #if defined __stub_$ac_func || defined __stub___$ac_func
15751 choke me
15752 #endif
15755 main ()
15757 return $ac_func ();
15759 return 0;
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest$ac_exeext &&
15779 $as_test_x conftest$ac_exeext; then
15780 eval "$as_ac_var=yes"
15781 else
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 eval "$as_ac_var=no"
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15791 ac_res=`eval echo '${'$as_ac_var'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794 if test `eval echo '${'$as_ac_var'}'` = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15797 _ACEOF
15800 done
15818 { echo "$as_me:$LINENO: checking for working mktime" >&5
15819 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15820 if test "${ac_cv_func_working_mktime+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823 if test "$cross_compiling" = yes; then
15824 ac_cv_func_working_mktime=no
15825 else
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 /* Test program from Paul Eggert and Tony Leneis. */
15833 #ifdef TIME_WITH_SYS_TIME
15834 # include <sys/time.h>
15835 # include <time.h>
15836 #else
15837 # ifdef HAVE_SYS_TIME_H
15838 # include <sys/time.h>
15839 # else
15840 # include <time.h>
15841 # endif
15842 #endif
15844 #include <stdlib.h>
15846 #ifdef HAVE_UNISTD_H
15847 # include <unistd.h>
15848 #endif
15850 #ifndef HAVE_ALARM
15851 # define alarm(X) /* empty */
15852 #endif
15854 /* Work around redefinition to rpl_putenv by other config tests. */
15855 #undef putenv
15857 static time_t time_t_max;
15858 static time_t time_t_min;
15860 /* Values we'll use to set the TZ environment variable. */
15861 static char *tz_strings[] = {
15862 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15863 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15865 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15867 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15868 Based on a problem report from Andreas Jaeger. */
15869 static int
15870 spring_forward_gap ()
15872 /* glibc (up to about 1998-10-07) failed this test. */
15873 struct tm tm;
15875 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15876 instead of "TZ=America/Vancouver" in order to detect the bug even
15877 on systems that don't support the Olson extension, or don't have the
15878 full zoneinfo tables installed. */
15879 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15881 tm.tm_year = 98;
15882 tm.tm_mon = 3;
15883 tm.tm_mday = 5;
15884 tm.tm_hour = 2;
15885 tm.tm_min = 0;
15886 tm.tm_sec = 0;
15887 tm.tm_isdst = -1;
15888 return mktime (&tm) != (time_t) -1;
15891 static int
15892 mktime_test1 (now)
15893 time_t now;
15895 struct tm *lt;
15896 return ! (lt = localtime (&now)) || mktime (lt) == now;
15899 static int
15900 mktime_test (now)
15901 time_t now;
15903 return (mktime_test1 (now)
15904 && mktime_test1 ((time_t) (time_t_max - now))
15905 && mktime_test1 ((time_t) (time_t_min + now)));
15908 static int
15909 irix_6_4_bug ()
15911 /* Based on code from Ariel Faigon. */
15912 struct tm tm;
15913 tm.tm_year = 96;
15914 tm.tm_mon = 3;
15915 tm.tm_mday = 0;
15916 tm.tm_hour = 0;
15917 tm.tm_min = 0;
15918 tm.tm_sec = 0;
15919 tm.tm_isdst = -1;
15920 mktime (&tm);
15921 return tm.tm_mon == 2 && tm.tm_mday == 31;
15924 static int
15925 bigtime_test (j)
15926 int j;
15928 struct tm tm;
15929 time_t now;
15930 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15931 now = mktime (&tm);
15932 if (now != (time_t) -1)
15934 struct tm *lt = localtime (&now);
15935 if (! (lt
15936 && lt->tm_year == tm.tm_year
15937 && lt->tm_mon == tm.tm_mon
15938 && lt->tm_mday == tm.tm_mday
15939 && lt->tm_hour == tm.tm_hour
15940 && lt->tm_min == tm.tm_min
15941 && lt->tm_sec == tm.tm_sec
15942 && lt->tm_yday == tm.tm_yday
15943 && lt->tm_wday == tm.tm_wday
15944 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15945 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15946 return 0;
15948 return 1;
15951 static int
15952 year_2050_test ()
15954 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15955 ignoring leap seconds. */
15956 unsigned long int answer = 2527315200UL;
15958 struct tm tm;
15959 time_t t;
15960 tm.tm_year = 2050 - 1900;
15961 tm.tm_mon = 2 - 1;
15962 tm.tm_mday = 1;
15963 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15964 tm.tm_isdst = -1;
15966 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15967 instead of "TZ=America/Vancouver" in order to detect the bug even
15968 on systems that don't support the Olson extension, or don't have the
15969 full zoneinfo tables installed. */
15970 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15972 t = mktime (&tm);
15974 /* Check that the result is either a failure, or close enough
15975 to the correct answer that we can assume the discrepancy is
15976 due to leap seconds. */
15977 return (t == (time_t) -1
15978 || (0 < t && answer - 120 <= t && t <= answer + 120));
15982 main ()
15984 time_t t, delta;
15985 int i, j;
15987 /* This test makes some buggy mktime implementations loop.
15988 Give up after 60 seconds; a mktime slower than that
15989 isn't worth using anyway. */
15990 alarm (60);
15992 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15993 continue;
15994 time_t_max--;
15995 if ((time_t) -1 < 0)
15996 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15997 continue;
15998 delta = time_t_max / 997; /* a suitable prime number */
15999 for (i = 0; i < N_STRINGS; i++)
16001 if (tz_strings[i])
16002 putenv (tz_strings[i]);
16004 for (t = 0; t <= time_t_max - delta; t += delta)
16005 if (! mktime_test (t))
16006 return 1;
16007 if (! (mktime_test ((time_t) 1)
16008 && mktime_test ((time_t) (60 * 60))
16009 && mktime_test ((time_t) (60 * 60 * 24))))
16010 return 1;
16012 for (j = 1; 0 < j; j *= 2)
16013 if (! bigtime_test (j))
16014 return 1;
16015 if (! bigtime_test (j - 1))
16016 return 1;
16018 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16020 _ACEOF
16021 rm -f conftest$ac_exeext
16022 if { (ac_try="$ac_link"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_link") 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_cv_func_working_mktime=yes
16042 else
16043 echo "$as_me: program exited with status $ac_status" >&5
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ( exit $ac_status )
16048 ac_cv_func_working_mktime=no
16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16055 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16056 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16057 if test $ac_cv_func_working_mktime = no; then
16058 case " $LIBOBJS " in
16059 *" mktime.$ac_objext "* ) ;;
16060 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16062 esac
16066 if test "$ac_cv_func_working_mktime" = no; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define BROKEN_MKTIME 1
16070 _ACEOF
16074 ac_have_func=no # yes means we've found a way to get the load average.
16076 # Make sure getloadavg.c is where it belongs, at configure-time.
16077 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16078 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16079 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16080 { (exit 1); exit 1; }; }
16082 ac_save_LIBS=$LIBS
16084 # Check for getloadavg, but be sure not to touch the cache variable.
16085 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16086 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16087 if test "${ac_cv_func_getloadavg+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090 cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16098 #define getloadavg innocuous_getloadavg
16100 /* System header to define __stub macros and hopefully few prototypes,
16101 which can conflict with char getloadavg (); below.
16102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 <limits.h> exists even on freestanding compilers. */
16105 #ifdef __STDC__
16106 # include <limits.h>
16107 #else
16108 # include <assert.h>
16109 #endif
16111 #undef getloadavg
16113 /* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char getloadavg ();
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined __stub_getloadavg || defined __stub___getloadavg
16124 choke me
16125 #endif
16128 main ()
16130 return getloadavg ();
16132 return 0;
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_link") 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } && {
16149 test -z "$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16151 } && test -s conftest$ac_exeext &&
16152 $as_test_x conftest$ac_exeext; then
16153 ac_cv_func_getloadavg=yes
16154 else
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 ac_cv_func_getloadavg=no
16161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16162 conftest$ac_exeext conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16165 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16166 if test $ac_cv_func_getloadavg = yes; then
16167 exit 0
16168 else
16169 exit 1
16171 ) && ac_have_func=yes
16173 # On HPUX9, an unprivileged user can get load averages through this function.
16175 for ac_func in pstat_getdynamic
16177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16198 #ifdef __STDC__
16199 # include <limits.h>
16200 #else
16201 # include <assert.h>
16202 #endif
16204 #undef $ac_func
16206 /* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16209 #ifdef __cplusplus
16210 extern "C"
16211 #endif
16212 char $ac_func ();
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined __stub_$ac_func || defined __stub___$ac_func
16217 choke me
16218 #endif
16221 main ()
16223 return $ac_func ();
16225 return 0;
16227 _ACEOF
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (ac_try="$ac_link"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest$ac_exeext &&
16245 $as_test_x conftest$ac_exeext; then
16246 eval "$as_ac_var=yes"
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 eval "$as_ac_var=no"
16254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16255 conftest$ac_exeext conftest.$ac_ext
16257 ac_res=`eval echo '${'$as_ac_var'}'`
16258 { echo "$as_me:$LINENO: result: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16260 if test `eval echo '${'$as_ac_var'}'` = yes; then
16261 cat >>confdefs.h <<_ACEOF
16262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16263 _ACEOF
16266 done
16269 # Solaris has libkstat which does not require root.
16271 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16272 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276 ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lkstat $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288 #ifdef __cplusplus
16289 extern "C"
16290 #endif
16291 char kstat_open ();
16293 main ()
16295 return kstat_open ();
16297 return 0;
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_kstat_kstat_open=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_kstat_kstat_open=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16331 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16332 if test $ac_cv_lib_kstat_kstat_open = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_LIBKSTAT 1
16335 _ACEOF
16337 LIBS="-lkstat $LIBS"
16341 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16343 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16344 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16345 # to get the right answer into the cache.
16346 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16347 if test $ac_have_func = no; then
16348 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16349 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16350 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 ac_check_lib_save_LIBS=$LIBS
16354 LIBS="-lelf $LIBS"
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16365 #ifdef __cplusplus
16366 extern "C"
16367 #endif
16368 char elf_begin ();
16370 main ()
16372 return elf_begin ();
16374 return 0;
16376 _ACEOF
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (ac_try="$ac_link"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_link") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest$ac_exeext &&
16394 $as_test_x conftest$ac_exeext; then
16395 ac_cv_lib_elf_elf_begin=yes
16396 else
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_cv_lib_elf_elf_begin=no
16403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16404 conftest$ac_exeext conftest.$ac_ext
16405 LIBS=$ac_check_lib_save_LIBS
16407 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16408 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16409 if test $ac_cv_lib_elf_elf_begin = yes; then
16410 LIBS="-lelf $LIBS"
16414 if test $ac_have_func = no; then
16415 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16416 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16417 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420 ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-lkvm $LIBS"
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16432 #ifdef __cplusplus
16433 extern "C"
16434 #endif
16435 char kvm_open ();
16437 main ()
16439 return kvm_open ();
16441 return 0;
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_link") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext &&
16461 $as_test_x conftest$ac_exeext; then
16462 ac_cv_lib_kvm_kvm_open=yes
16463 else
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_lib_kvm_kvm_open=no
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16474 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16475 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16476 if test $ac_cv_lib_kvm_kvm_open = yes; then
16477 LIBS="-lkvm $LIBS"
16480 # Check for the 4.4BSD definition of getloadavg.
16481 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16482 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16483 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486 ac_check_lib_save_LIBS=$LIBS
16487 LIBS="-lutil $LIBS"
16488 cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h. */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16495 /* Override any GCC internal prototype to avoid an error.
16496 Use char because int might match the return type of a GCC
16497 builtin and then its argument prototype would still apply. */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 char getloadavg ();
16503 main ()
16505 return getloadavg ();
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (ac_try="$ac_link"
16512 case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_link") 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext &&
16527 $as_test_x conftest$ac_exeext; then
16528 ac_cv_lib_util_getloadavg=yes
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_lib_util_getloadavg=no
16536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16537 conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16540 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16541 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16542 if test $ac_cv_lib_util_getloadavg = yes; then
16543 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16548 if test $ac_have_func = no; then
16549 # There is a commonly available library for RS/6000 AIX.
16550 # Since it is not a standard part of AIX, it might be installed locally.
16551 ac_getloadavg_LIBS=$LIBS
16552 LIBS="-L/usr/local/lib $LIBS"
16553 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16554 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558 ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-lgetloadavg $LIBS"
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16570 #ifdef __cplusplus
16571 extern "C"
16572 #endif
16573 char getloadavg ();
16575 main ()
16577 return getloadavg ();
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 ac_cv_lib_getloadavg_getloadavg=yes
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_lib_getloadavg_getloadavg=no
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16610 LIBS=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16613 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16614 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16615 LIBS="-lgetloadavg $LIBS"
16616 else
16617 LIBS=$ac_getloadavg_LIBS
16622 # Make sure it is really in the library, if we think we found it,
16623 # otherwise set up the replacement function.
16625 for ac_func in getloadavg
16627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h. */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16641 #define $ac_func innocuous_$ac_func
16643 /* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char $ac_func (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
16648 #ifdef __STDC__
16649 # include <limits.h>
16650 #else
16651 # include <assert.h>
16652 #endif
16654 #undef $ac_func
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char $ac_func ();
16663 /* The GNU C library defines this for functions which it implements
16664 to always fail with ENOSYS. Some functions are actually named
16665 something starting with __ and the normal name is an alias. */
16666 #if defined __stub_$ac_func || defined __stub___$ac_func
16667 choke me
16668 #endif
16671 main ()
16673 return $ac_func ();
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 eval "$as_ac_var=yes"
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 eval "$as_ac_var=no"
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16707 ac_res=`eval echo '${'$as_ac_var'}'`
16708 { echo "$as_me:$LINENO: result: $ac_res" >&5
16709 echo "${ECHO_T}$ac_res" >&6; }
16710 if test `eval echo '${'$as_ac_var'}'` = yes; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16713 _ACEOF
16715 else
16716 case " $LIBOBJS " in
16717 *" getloadavg.$ac_objext "* ) ;;
16718 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16720 esac
16723 cat >>confdefs.h <<\_ACEOF
16724 #define C_GETLOADAVG 1
16725 _ACEOF
16727 # Figure out what our getloadavg.c needs.
16728 ac_have_func=no
16729 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16730 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16731 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16732 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16736 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16737 else
16738 # Is the header compilable?
16739 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16740 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 #include <sys/dg_sys_info.h>
16749 _ACEOF
16750 rm -f conftest.$ac_objext
16751 if { (ac_try="$ac_compile"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_compile") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest.$ac_objext; then
16767 ac_header_compiler=yes
16768 else
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_header_compiler=no
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16777 echo "${ECHO_T}$ac_header_compiler" >&6; }
16779 # Is the header present?
16780 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16781 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16782 cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h. */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <sys/dg_sys_info.h>
16789 _ACEOF
16790 if { (ac_try="$ac_cpp conftest.$ac_ext"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } >/dev/null && {
16803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16805 }; then
16806 ac_header_preproc=yes
16807 else
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_header_preproc=no
16814 rm -f conftest.err conftest.$ac_ext
16815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816 echo "${ECHO_T}$ac_header_preproc" >&6; }
16818 # So? What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16820 yes:no: )
16821 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16822 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16824 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16825 ac_header_preproc=yes
16827 no:yes:* )
16828 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16829 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16830 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16831 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16832 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16833 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16835 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16837 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16839 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16842 esac
16843 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16844 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16845 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16850 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16851 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16854 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16855 ac_have_func=yes
16857 cat >>confdefs.h <<\_ACEOF
16858 #define DGUX 1
16859 _ACEOF
16862 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16863 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16864 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867 ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-ldgc $LIBS"
16869 cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16876 /* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16879 #ifdef __cplusplus
16880 extern "C"
16881 #endif
16882 char dg_sys_info ();
16884 main ()
16886 return dg_sys_info ();
16888 return 0;
16890 _ACEOF
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_link") 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } && {
16905 test -z "$ac_c_werror_flag" ||
16906 test ! -s conftest.err
16907 } && test -s conftest$ac_exeext &&
16908 $as_test_x conftest$ac_exeext; then
16909 ac_cv_lib_dgc_dg_sys_info=yes
16910 else
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_cv_lib_dgc_dg_sys_info=no
16917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16918 conftest$ac_exeext conftest.$ac_ext
16919 LIBS=$ac_check_lib_save_LIBS
16921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16922 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16923 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16924 cat >>confdefs.h <<_ACEOF
16925 #define HAVE_LIBDGC 1
16926 _ACEOF
16928 LIBS="-ldgc $LIBS"
16936 if test "${ac_cv_header_locale_h+set}" = set; then
16937 { echo "$as_me:$LINENO: checking for locale.h" >&5
16938 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16939 if test "${ac_cv_header_locale_h+set}" = set; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16943 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16944 else
16945 # Is the header compilable?
16946 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16947 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 $ac_includes_default
16955 #include <locale.h>
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest.$ac_objext; then
16974 ac_header_compiler=yes
16975 else
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ac_header_compiler=no
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16984 echo "${ECHO_T}$ac_header_compiler" >&6; }
16986 # Is the header present?
16987 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16988 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 #include <locale.h>
16996 _ACEOF
16997 if { (ac_try="$ac_cpp conftest.$ac_ext"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17004 ac_status=$?
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } >/dev/null && {
17010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 }; then
17013 ac_header_preproc=yes
17014 else
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_header_preproc=no
17021 rm -f conftest.err conftest.$ac_ext
17022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17023 echo "${ECHO_T}$ac_header_preproc" >&6; }
17025 # So? What about this header?
17026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17027 yes:no: )
17028 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17029 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17031 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17032 ac_header_preproc=yes
17034 no:yes:* )
17035 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17036 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17038 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17040 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17042 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17044 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17046 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17049 esac
17050 { echo "$as_me:$LINENO: checking for locale.h" >&5
17051 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17052 if test "${ac_cv_header_locale_h+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055 ac_cv_header_locale_h=$ac_header_preproc
17057 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17058 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17064 for ac_func in setlocale
17066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17080 #define $ac_func innocuous_$ac_func
17082 /* System header to define __stub macros and hopefully few prototypes,
17083 which can conflict with char $ac_func (); below.
17084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17085 <limits.h> exists even on freestanding compilers. */
17087 #ifdef __STDC__
17088 # include <limits.h>
17089 #else
17090 # include <assert.h>
17091 #endif
17093 #undef $ac_func
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char $ac_func ();
17102 /* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105 #if defined __stub_$ac_func || defined __stub___$ac_func
17106 choke me
17107 #endif
17110 main ()
17112 return $ac_func ();
17114 return 0;
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext &&
17134 $as_test_x conftest$ac_exeext; then
17135 eval "$as_ac_var=yes"
17136 else
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 eval "$as_ac_var=no"
17143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17144 conftest$ac_exeext conftest.$ac_ext
17146 ac_res=`eval echo '${'$as_ac_var'}'`
17147 { echo "$as_me:$LINENO: result: $ac_res" >&5
17148 echo "${ECHO_T}$ac_res" >&6; }
17149 if test `eval echo '${'$as_ac_var'}'` = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17152 _ACEOF
17155 done
17158 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17159 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17160 # Irix 4.0.5F has the header but not the library.
17161 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17162 ac_have_func=yes
17164 cat >>confdefs.h <<\_ACEOF
17165 #define SVR4 1
17166 _ACEOF
17170 if test $ac_have_func = no; then
17171 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17172 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17173 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17174 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17178 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17179 else
17180 # Is the header compilable?
17181 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17182 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17183 cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h. */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 $ac_includes_default
17190 #include <inq_stats/cpustats.h>
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197 esac
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 ac_header_compiler=yes
17210 else
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_header_compiler=no
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17219 echo "${ECHO_T}$ac_header_compiler" >&6; }
17221 # Is the header present?
17222 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17223 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h. */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 #include <inq_stats/cpustats.h>
17231 _ACEOF
17232 if { (ac_try="$ac_cpp conftest.$ac_ext"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } >/dev/null && {
17245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 }; then
17248 ac_header_preproc=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_header_preproc=no
17256 rm -f conftest.err conftest.$ac_ext
17257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17258 echo "${ECHO_T}$ac_header_preproc" >&6; }
17260 # So? What about this header?
17261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17262 yes:no: )
17263 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17264 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17266 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17267 ac_header_preproc=yes
17269 no:yes:* )
17270 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17271 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17273 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17275 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17276 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17277 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17279 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17281 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17284 esac
17285 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17286 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17287 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17290 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17292 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17293 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17296 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17297 ac_have_func=yes
17299 cat >>confdefs.h <<\_ACEOF
17300 #define UMAX 1
17301 _ACEOF
17304 cat >>confdefs.h <<\_ACEOF
17305 #define UMAX4_3 1
17306 _ACEOF
17313 if test $ac_have_func = no; then
17314 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17315 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17316 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17317 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17321 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17322 else
17323 # Is the header compilable?
17324 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17325 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h. */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 $ac_includes_default
17333 #include <sys/cpustats.h>
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest.$ac_objext; then
17352 ac_header_compiler=yes
17353 else
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_header_compiler=no
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17362 echo "${ECHO_T}$ac_header_compiler" >&6; }
17364 # Is the header present?
17365 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17366 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 #include <sys/cpustats.h>
17374 _ACEOF
17375 if { (ac_try="$ac_cpp conftest.$ac_ext"
17376 case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } >/dev/null && {
17388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17389 test ! -s conftest.err
17390 }; then
17391 ac_header_preproc=yes
17392 else
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_header_preproc=no
17399 rm -f conftest.err conftest.$ac_ext
17400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17401 echo "${ECHO_T}$ac_header_preproc" >&6; }
17403 # So? What about this header?
17404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17405 yes:no: )
17406 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17407 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17408 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17409 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17410 ac_header_preproc=yes
17412 no:yes:* )
17413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17414 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17416 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17418 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17420 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17422 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17424 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17427 esac
17428 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17429 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17430 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17435 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17436 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17439 if test $ac_cv_header_sys_cpustats_h = yes; then
17440 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17441 #define UMAX 1
17442 _ACEOF
17449 if test $ac_have_func = no; then
17451 for ac_header in mach/mach.h
17453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 ac_res=`eval echo '${'$as_ac_Header'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 else
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 #include <$ac_header>
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_header_compiler=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17503 echo "${ECHO_T}$ac_header_compiler" >&6; }
17505 # Is the header present?
17506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <$ac_header>
17515 _ACEOF
17516 if { (ac_try="$ac_cpp conftest.$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17520 esac
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17523 ac_status=$?
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } >/dev/null && {
17529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17530 test ! -s conftest.err
17531 }; then
17532 ac_header_preproc=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_header_preproc=no
17540 rm -f conftest.err conftest.$ac_ext
17541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17542 echo "${ECHO_T}$ac_header_preproc" >&6; }
17544 # So? What about this header?
17545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17546 yes:no: )
17547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17551 ac_header_preproc=yes
17553 no:yes:* )
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17568 esac
17569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 eval "$as_ac_Header=\$ac_header_preproc"
17576 ac_res=`eval echo '${'$as_ac_Header'}'`
17577 { echo "$as_me:$LINENO: result: $ac_res" >&5
17578 echo "${ECHO_T}$ac_res" >&6; }
17581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17582 cat >>confdefs.h <<_ACEOF
17583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17584 _ACEOF
17588 done
17593 for ac_header in nlist.h
17595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 ac_res=`eval echo '${'$as_ac_Header'}'`
17603 { echo "$as_me:$LINENO: result: $ac_res" >&5
17604 echo "${ECHO_T}$ac_res" >&6; }
17605 else
17606 # Is the header compilable?
17607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 $ac_includes_default
17616 #include <$ac_header>
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest.$ac_objext; then
17635 ac_header_compiler=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_header_compiler=no
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17645 echo "${ECHO_T}$ac_header_compiler" >&6; }
17647 # Is the header present?
17648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 #include <$ac_header>
17657 _ACEOF
17658 if { (ac_try="$ac_cpp conftest.$ac_ext"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } >/dev/null && {
17671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17673 }; then
17674 ac_header_preproc=yes
17675 else
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_header_preproc=no
17682 rm -f conftest.err conftest.$ac_ext
17683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17684 echo "${ECHO_T}$ac_header_preproc" >&6; }
17686 # So? What about this header?
17687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17688 yes:no: )
17689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17693 ac_header_preproc=yes
17695 no:yes:* )
17696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17710 esac
17711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716 eval "$as_ac_Header=\$ac_header_preproc"
17718 ac_res=`eval echo '${'$as_ac_Header'}'`
17719 { echo "$as_me:$LINENO: result: $ac_res" >&5
17720 echo "${ECHO_T}$ac_res" >&6; }
17723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17724 cat >>confdefs.h <<_ACEOF
17725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17726 _ACEOF
17727 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17728 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17729 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 #include <nlist.h>
17741 main ()
17743 static struct nlist ac_aggr;
17744 if (ac_aggr.n_un.n_name)
17745 return 0;
17747 return 0;
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_compile") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest.$ac_objext; then
17767 ac_cv_member_struct_nlist_n_un_n_name=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h. */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 #include <nlist.h>
17781 main ()
17783 static struct nlist ac_aggr;
17784 if (sizeof ac_aggr.n_un.n_name)
17785 return 0;
17787 return 0;
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest.$ac_objext; then
17807 ac_cv_member_struct_nlist_n_un_n_name=yes
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_cv_member_struct_nlist_n_un_n_name=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17821 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17822 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17826 _ACEOF
17829 cat >>confdefs.h <<\_ACEOF
17830 #define NLIST_NAME_UNION 1
17831 _ACEOF
17838 done
17841 done
17844 # Some definitions of getloadavg require that the program be installed setgid.
17845 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17846 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17847 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17857 #ifdef LDAV_PRIVILEGED
17858 Yowza Am I SETGID yet
17859 #endif
17860 _ACEOF
17861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17862 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17863 ac_cv_func_getloadavg_setgid=yes
17864 else
17865 ac_cv_func_getloadavg_setgid=no
17867 rm -f conftest*
17870 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17871 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17872 if test $ac_cv_func_getloadavg_setgid = yes; then
17873 NEED_SETGID=true
17875 cat >>confdefs.h <<\_ACEOF
17876 #define GETLOADAVG_PRIVILEGED 1
17877 _ACEOF
17879 else
17880 NEED_SETGID=false
17883 if test $ac_cv_func_getloadavg_setgid = yes; then
17884 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17885 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17886 if test "${ac_cv_group_kmem+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17890 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17891 # If we got an error (system does not support symlinks), try without -L.
17892 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17893 ac_cv_group_kmem=`echo $ac_ls_output \
17894 | sed -ne 's/[ ][ ]*/ /g;
17895 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17896 / /s/.* //;p;'`
17899 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17900 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17901 KMEM_GROUP=$ac_cv_group_kmem
17903 if test "x$ac_save_LIBS" = x; then
17904 GETLOADAVG_LIBS=$LIBS
17905 else
17906 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17908 LIBS=$ac_save_LIBS
17912 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17913 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17914 if test "${ac_cv_sys_largefile_source+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 while :; do
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 #include <stdio.h>
17926 main ()
17928 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_sys_largefile_source=no; break
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 #define _LARGEFILE_SOURCE 1
17968 #include <stdio.h>
17970 main ()
17972 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17974 return 0;
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest$ac_exeext &&
17994 $as_test_x conftest$ac_exeext; then
17995 ac_cv_sys_largefile_source=1; break
17996 else
17997 echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
18003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004 conftest$ac_exeext conftest.$ac_ext
18005 ac_cv_sys_largefile_source=unknown
18006 break
18007 done
18009 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18010 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18011 case $ac_cv_sys_largefile_source in #(
18012 no | unknown) ;;
18014 cat >>confdefs.h <<_ACEOF
18015 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18016 _ACEOF
18018 esac
18019 rm -f conftest*
18021 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18022 # in glibc 2.1.3, but that breaks too many other things.
18023 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18024 if test $ac_cv_sys_largefile_source != unknown; then
18026 cat >>confdefs.h <<\_ACEOF
18027 #define HAVE_FSEEKO 1
18028 _ACEOF
18033 # Configure getopt.
18034 # getopt.m4 serial 10
18036 # The getopt module assume you want GNU getopt, with getopt_long etc,
18037 # rather than vanilla POSIX getopt. This means your your code should
18038 # always include <getopt.h> for the getopt prototypes.
18050 # Prerequisites of lib/getopt*.
18055 GETOPT_H=
18057 for ac_header in getopt.h
18059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 ac_res=`eval echo '${'$as_ac_Header'}'`
18067 { echo "$as_me:$LINENO: result: $ac_res" >&5
18068 echo "${ECHO_T}$ac_res" >&6; }
18069 else
18070 # Is the header compilable?
18071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 #include <$ac_header>
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (ac_try="$ac_compile"
18084 case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_compile") 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } && {
18096 test -z "$ac_c_werror_flag" ||
18097 test ! -s conftest.err
18098 } && test -s conftest.$ac_objext; then
18099 ac_header_compiler=yes
18100 else
18101 echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18104 ac_header_compiler=no
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18109 echo "${ECHO_T}$ac_header_compiler" >&6; }
18111 # Is the header present?
18112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h. */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <$ac_header>
18121 _ACEOF
18122 if { (ac_try="$ac_cpp conftest.$ac_ext"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } >/dev/null && {
18135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 }; then
18138 ac_header_preproc=yes
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_header_preproc=no
18146 rm -f conftest.err conftest.$ac_ext
18147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18148 echo "${ECHO_T}$ac_header_preproc" >&6; }
18150 # So? What about this header?
18151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18152 yes:no: )
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18157 ac_header_preproc=yes
18159 no:yes:* )
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18174 esac
18175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180 eval "$as_ac_Header=\$ac_header_preproc"
18182 ac_res=`eval echo '${'$as_ac_Header'}'`
18183 { echo "$as_me:$LINENO: result: $ac_res" >&5
18184 echo "${ECHO_T}$ac_res" >&6; }
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188 cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18190 _ACEOF
18192 else
18193 GETOPT_H=getopt.h
18196 done
18198 if test -z "$GETOPT_H"; then
18200 for ac_func in getopt_long_only
18202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18216 #define $ac_func innocuous_$ac_func
18218 /* System header to define __stub macros and hopefully few prototypes,
18219 which can conflict with char $ac_func (); below.
18220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221 <limits.h> exists even on freestanding compilers. */
18223 #ifdef __STDC__
18224 # include <limits.h>
18225 #else
18226 # include <assert.h>
18227 #endif
18229 #undef $ac_func
18231 /* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 char $ac_func ();
18238 /* The GNU C library defines this for functions which it implements
18239 to always fail with ENOSYS. Some functions are actually named
18240 something starting with __ and the normal name is an alias. */
18241 #if defined __stub_$ac_func || defined __stub___$ac_func
18242 choke me
18243 #endif
18246 main ()
18248 return $ac_func ();
18250 return 0;
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_link") 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && {
18267 test -z "$ac_c_werror_flag" ||
18268 test ! -s conftest.err
18269 } && test -s conftest$ac_exeext &&
18270 $as_test_x conftest$ac_exeext; then
18271 eval "$as_ac_var=yes"
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 eval "$as_ac_var=no"
18279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18280 conftest$ac_exeext conftest.$ac_ext
18282 ac_res=`eval echo '${'$as_ac_var'}'`
18283 { echo "$as_me:$LINENO: result: $ac_res" >&5
18284 echo "${ECHO_T}$ac_res" >&6; }
18285 if test `eval echo '${'$as_ac_var'}'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18288 _ACEOF
18290 else
18291 GETOPT_H=getopt.h
18293 done
18297 if test -z "$GETOPT_H"; then
18298 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18299 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18300 if test "${ac_cv_have_decl_optreset+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <getopt.h>
18312 main ()
18314 #ifndef optreset
18315 (void) optreset;
18316 #endif
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18339 ac_cv_have_decl_optreset=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_have_decl_optreset=no
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18350 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18351 if test $ac_cv_have_decl_optreset = yes; then
18352 GETOPT_H=getopt.h
18357 if test -z "$GETOPT_H"; then
18358 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18359 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18360 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363 if test "$cross_compiling" = yes; then
18364 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18365 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18366 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <getopt.h>
18378 main ()
18380 #ifndef getopt_clip
18381 (void) getopt_clip;
18382 #endif
18385 return 0;
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (ac_try="$ac_compile"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18405 ac_cv_have_decl_getopt_clip=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_have_decl_getopt_clip=no
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18416 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18417 if test $ac_cv_have_decl_getopt_clip = yes; then
18418 gl_cv_func_gnu_getopt=no
18419 else
18420 gl_cv_func_gnu_getopt=yes
18423 else
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <getopt.h>
18432 main ()
18435 char *myargv[3];
18436 myargv[0] = "conftest";
18437 myargv[1] = "-+";
18438 myargv[2] = 0;
18439 return getopt (2, myargv, "+a") != '?';
18442 return 0;
18444 _ACEOF
18445 rm -f conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 gl_cv_func_gnu_getopt=yes
18466 else
18467 echo "$as_me: program exited with status $ac_status" >&5
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ( exit $ac_status )
18472 gl_cv_func_gnu_getopt=no
18474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18479 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18480 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18481 if test "$gl_cv_func_gnu_getopt" = "no"; then
18482 GETOPT_H=getopt.h
18488 if test -n "$GETOPT_H"; then
18491 GETOPT_H=getopt.h
18493 cat >>confdefs.h <<\_ACEOF
18494 #define __GETOPT_PREFIX rpl_
18495 _ACEOF
18500 GETOPTOBJS='getopt.o getopt1.o'
18507 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18508 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18509 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512 # Use it with a single arg.
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 $ac_includes_default
18521 main ()
18523 getpgrp (0);
18525 return 0;
18527 _ACEOF
18528 rm -f conftest.$ac_objext
18529 if { (ac_try="$ac_compile"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_compile") 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && {
18542 test -z "$ac_c_werror_flag" ||
18543 test ! -s conftest.err
18544 } && test -s conftest.$ac_objext; then
18545 ac_cv_func_getpgrp_void=no
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_func_getpgrp_void=yes
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18557 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18558 if test $ac_cv_func_getpgrp_void = yes; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define GETPGRP_VOID 1
18562 _ACEOF
18568 for ac_func in strftime
18570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18584 #define $ac_func innocuous_$ac_func
18586 /* System header to define __stub macros and hopefully few prototypes,
18587 which can conflict with char $ac_func (); below.
18588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589 <limits.h> exists even on freestanding compilers. */
18591 #ifdef __STDC__
18592 # include <limits.h>
18593 #else
18594 # include <assert.h>
18595 #endif
18597 #undef $ac_func
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char $ac_func ();
18606 /* The GNU C library defines this for functions which it implements
18607 to always fail with ENOSYS. Some functions are actually named
18608 something starting with __ and the normal name is an alias. */
18609 #if defined __stub_$ac_func || defined __stub___$ac_func
18610 choke me
18611 #endif
18614 main ()
18616 return $ac_func ();
18618 return 0;
18620 _ACEOF
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext &&
18638 $as_test_x conftest$ac_exeext; then
18639 eval "$as_ac_var=yes"
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 eval "$as_ac_var=no"
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18650 ac_res=`eval echo '${'$as_ac_var'}'`
18651 { echo "$as_me:$LINENO: result: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18653 if test `eval echo '${'$as_ac_var'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18656 _ACEOF
18658 else
18659 # strftime is in -lintl on SCO UNIX.
18660 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18661 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18662 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665 ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-lintl $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18677 #ifdef __cplusplus
18678 extern "C"
18679 #endif
18680 char strftime ();
18682 main ()
18684 return strftime ();
18686 return 0;
18688 _ACEOF
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext &&
18706 $as_test_x conftest$ac_exeext; then
18707 ac_cv_lib_intl_strftime=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_lib_intl_strftime=no
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18719 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18720 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18721 if test $ac_cv_lib_intl_strftime = yes; then
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_STRFTIME 1
18724 _ACEOF
18726 LIBS="-lintl $LIBS"
18730 done
18733 # UNIX98 PTYs.
18735 for ac_func in grantpt
18737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751 #define $ac_func innocuous_$ac_func
18753 /* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func (); below.
18755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756 <limits.h> exists even on freestanding compilers. */
18758 #ifdef __STDC__
18759 # include <limits.h>
18760 #else
18761 # include <assert.h>
18762 #endif
18764 #undef $ac_func
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char $ac_func ();
18773 /* The GNU C library defines this for functions which it implements
18774 to always fail with ENOSYS. Some functions are actually named
18775 something starting with __ and the normal name is an alias. */
18776 #if defined __stub_$ac_func || defined __stub___$ac_func
18777 choke me
18778 #endif
18781 main ()
18783 return $ac_func ();
18785 return 0;
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } && {
18802 test -z "$ac_c_werror_flag" ||
18803 test ! -s conftest.err
18804 } && test -s conftest$ac_exeext &&
18805 $as_test_x conftest$ac_exeext; then
18806 eval "$as_ac_var=yes"
18807 else
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 eval "$as_ac_var=no"
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 conftest$ac_exeext conftest.$ac_ext
18817 ac_res=`eval echo '${'$as_ac_var'}'`
18818 { echo "$as_me:$LINENO: result: $ac_res" >&5
18819 echo "${ECHO_T}$ac_res" >&6; }
18820 if test `eval echo '${'$as_ac_var'}'` = yes; then
18821 cat >>confdefs.h <<_ACEOF
18822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18823 _ACEOF
18826 done
18829 # PTY-related GNU extensions.
18831 for ac_func in getpt
18833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18847 #define $ac_func innocuous_$ac_func
18849 /* System header to define __stub macros and hopefully few prototypes,
18850 which can conflict with char $ac_func (); below.
18851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18852 <limits.h> exists even on freestanding compilers. */
18854 #ifdef __STDC__
18855 # include <limits.h>
18856 #else
18857 # include <assert.h>
18858 #endif
18860 #undef $ac_func
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 char $ac_func ();
18869 /* The GNU C library defines this for functions which it implements
18870 to always fail with ENOSYS. Some functions are actually named
18871 something starting with __ and the normal name is an alias. */
18872 #if defined __stub_$ac_func || defined __stub___$ac_func
18873 choke me
18874 #endif
18877 main ()
18879 return $ac_func ();
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (ac_try="$ac_link"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_link") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest$ac_exeext &&
18901 $as_test_x conftest$ac_exeext; then
18902 eval "$as_ac_var=yes"
18903 else
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 eval "$as_ac_var=no"
18910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18911 conftest$ac_exeext conftest.$ac_ext
18913 ac_res=`eval echo '${'$as_ac_var'}'`
18914 { echo "$as_me:$LINENO: result: $ac_res" >&5
18915 echo "${ECHO_T}$ac_res" >&6; }
18916 if test `eval echo '${'$as_ac_var'}'` = yes; then
18917 cat >>confdefs.h <<_ACEOF
18918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18919 _ACEOF
18922 done
18925 # Check this now, so that we will NOT find the above functions in ncurses.
18926 # That is because we have not set up to link ncurses in lib-src.
18927 # It's better to believe a function is not available
18928 # than to expect to find it in ncurses.
18930 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18931 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18932 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lncurses $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char tparm ();
18952 main ()
18954 return tparm ();
18956 return 0;
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && {
18973 test -z "$ac_c_werror_flag" ||
18974 test ! -s conftest.err
18975 } && test -s conftest$ac_exeext &&
18976 $as_test_x conftest$ac_exeext; then
18977 ac_cv_lib_ncurses_tparm=yes
18978 else
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_lib_ncurses_tparm=no
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986 conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18989 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18990 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18991 if test $ac_cv_lib_ncurses_tparm = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_LIBNCURSES 1
18994 _ACEOF
18996 LIBS="-lncurses $LIBS"
19001 # Do we need the Hesiod library to provide the support routines?
19002 if test "$with_hesiod" = yes ; then
19003 # Don't set $LIBS here -- see comments above.
19004 resolv=no
19005 { echo "$as_me:$LINENO: checking for res_send" >&5
19006 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19007 if test "${ac_cv_func_res_send+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19018 #define res_send innocuous_res_send
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char res_send (); below.
19022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023 <limits.h> exists even on freestanding compilers. */
19025 #ifdef __STDC__
19026 # include <limits.h>
19027 #else
19028 # include <assert.h>
19029 #endif
19031 #undef res_send
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 char res_send ();
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined __stub_res_send || defined __stub___res_send
19044 choke me
19045 #endif
19048 main ()
19050 return res_send ();
19052 return 0;
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 ac_cv_func_res_send=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_func_res_send=no
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19085 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19086 if test $ac_cv_func_res_send = yes; then
19088 else
19089 { echo "$as_me:$LINENO: checking for __res_send" >&5
19090 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19091 if test "${ac_cv_func___res_send+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19102 #define __res_send innocuous___res_send
19104 /* System header to define __stub macros and hopefully few prototypes,
19105 which can conflict with char __res_send (); below.
19106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19107 <limits.h> exists even on freestanding compilers. */
19109 #ifdef __STDC__
19110 # include <limits.h>
19111 #else
19112 # include <assert.h>
19113 #endif
19115 #undef __res_send
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 char __res_send ();
19124 /* The GNU C library defines this for functions which it implements
19125 to always fail with ENOSYS. Some functions are actually named
19126 something starting with __ and the normal name is an alias. */
19127 #if defined __stub___res_send || defined __stub_____res_send
19128 choke me
19129 #endif
19132 main ()
19134 return __res_send ();
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (ac_try="$ac_link"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_link") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest$ac_exeext &&
19156 $as_test_x conftest$ac_exeext; then
19157 ac_cv_func___res_send=yes
19158 else
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_func___res_send=no
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19168 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19169 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19170 if test $ac_cv_func___res_send = yes; then
19172 else
19173 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19174 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19175 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178 ac_check_lib_save_LIBS=$LIBS
19179 LIBS="-lresolv $LIBS"
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19190 #ifdef __cplusplus
19191 extern "C"
19192 #endif
19193 char res_send ();
19195 main ()
19197 return res_send ();
19199 return 0;
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest$ac_exeext &&
19219 $as_test_x conftest$ac_exeext; then
19220 ac_cv_lib_resolv_res_send=yes
19221 else
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_lib_resolv_res_send=no
19228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19232 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19233 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19234 if test $ac_cv_lib_resolv_res_send = yes; then
19235 resolv=yes
19236 else
19237 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19238 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19239 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242 ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-lresolv $LIBS"
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19254 #ifdef __cplusplus
19255 extern "C"
19256 #endif
19257 char __res_send ();
19259 main ()
19261 return __res_send ();
19263 return 0;
19265 _ACEOF
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (ac_try="$ac_link"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_link") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest$ac_exeext &&
19283 $as_test_x conftest$ac_exeext; then
19284 ac_cv_lib_resolv___res_send=yes
19285 else
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ac_cv_lib_resolv___res_send=no
19292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19293 conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_check_lib_save_LIBS
19296 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19297 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19298 if test $ac_cv_lib_resolv___res_send = yes; then
19299 resolv=yes
19308 if test "$resolv" = yes ; then
19309 RESOLVLIB=-lresolv
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_LIBRESOLV 1
19313 _ACEOF
19315 else
19316 RESOLVLIB=
19318 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19319 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19320 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define hes_getmailhost innocuous_hes_getmailhost
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char hes_getmailhost (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19338 #ifdef __STDC__
19339 # include <limits.h>
19340 #else
19341 # include <assert.h>
19342 #endif
19344 #undef hes_getmailhost
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char hes_getmailhost ();
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19357 choke me
19358 #endif
19361 main ()
19363 return hes_getmailhost ();
19365 return 0;
19367 _ACEOF
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func_hes_getmailhost=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_func_hes_getmailhost=no
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19397 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19398 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19399 if test $ac_cv_func_hes_getmailhost = yes; then
19401 else
19402 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19403 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lhesiod $RESOLVLIB $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char hes_getmailhost ();
19424 main ()
19426 return hes_getmailhost ();
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_hesiod_hes_getmailhost=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_hesiod_hes_getmailhost=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19462 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19463 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_LIBHESIOD 1
19467 _ACEOF
19469 else
19477 # These tell us which Kerberos-related libraries to use.
19478 if test "${with_kerberos+set}" = set; then
19480 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19481 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19482 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 ac_check_lib_save_LIBS=$LIBS
19486 LIBS="-lcom_err $LIBS"
19487 cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h. */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19494 /* Override any GCC internal prototype to avoid an error.
19495 Use char because int might match the return type of a GCC
19496 builtin and then its argument prototype would still apply. */
19497 #ifdef __cplusplus
19498 extern "C"
19499 #endif
19500 char com_err ();
19502 main ()
19504 return com_err ();
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 ac_cv_lib_com_err_com_err=yes
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_cv_lib_com_err_com_err=no
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19540 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19541 if test $ac_cv_lib_com_err_com_err = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_LIBCOM_ERR 1
19544 _ACEOF
19546 LIBS="-lcom_err $LIBS"
19551 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19552 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19553 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 ac_check_lib_save_LIBS=$LIBS
19557 LIBS="-lk5crypto $LIBS"
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h. */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char mit_des_cbc_encrypt ();
19573 main ()
19575 return mit_des_cbc_encrypt ();
19577 return 0;
19579 _ACEOF
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_link") 2>conftest.er1
19588 ac_status=$?
19589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } && {
19594 test -z "$ac_c_werror_flag" ||
19595 test ! -s conftest.err
19596 } && test -s conftest$ac_exeext &&
19597 $as_test_x conftest$ac_exeext; then
19598 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607 conftest$ac_exeext conftest.$ac_ext
19608 LIBS=$ac_check_lib_save_LIBS
19610 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19611 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19612 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define HAVE_LIBK5CRYPTO 1
19615 _ACEOF
19617 LIBS="-lk5crypto $LIBS"
19622 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19623 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19624 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627 ac_check_lib_save_LIBS=$LIBS
19628 LIBS="-lcrypto $LIBS"
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19636 /* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19639 #ifdef __cplusplus
19640 extern "C"
19641 #endif
19642 char mit_des_cbc_encrypt ();
19644 main ()
19646 return mit_des_cbc_encrypt ();
19648 return 0;
19650 _ACEOF
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656 esac
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest$ac_exeext &&
19668 $as_test_x conftest$ac_exeext; then
19669 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19679 LIBS=$ac_check_lib_save_LIBS
19681 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19682 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19683 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define HAVE_LIBCRYPTO 1
19686 _ACEOF
19688 LIBS="-lcrypto $LIBS"
19693 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19694 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19695 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698 ac_check_lib_save_LIBS=$LIBS
19699 LIBS="-lkrb5 $LIBS"
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 char krb5_init_context ();
19715 main ()
19717 return krb5_init_context ();
19719 return 0;
19721 _ACEOF
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (ac_try="$ac_link"
19724 case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_link") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext &&
19739 $as_test_x conftest$ac_exeext; then
19740 ac_cv_lib_krb5_krb5_init_context=yes
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_cv_lib_krb5_krb5_init_context=no
19748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19749 conftest$ac_exeext conftest.$ac_ext
19750 LIBS=$ac_check_lib_save_LIBS
19752 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19753 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19754 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE_LIBKRB5 1
19757 _ACEOF
19759 LIBS="-lkrb5 $LIBS"
19763 if test "${with_kerberos5+set}" != set; then
19765 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19766 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19767 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-ldes425 $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char des_cbc_encrypt ();
19787 main ()
19789 return des_cbc_encrypt ();
19791 return 0;
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_des425_des_cbc_encrypt=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_lib_des425_des_cbc_encrypt=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19825 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19826 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_LIBDES425 1
19829 _ACEOF
19831 LIBS="-ldes425 $LIBS"
19833 else
19835 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19836 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19837 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 else
19840 ac_check_lib_save_LIBS=$LIBS
19841 LIBS="-ldes $LIBS"
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19849 /* Override any GCC internal prototype to avoid an error.
19850 Use char because int might match the return type of a GCC
19851 builtin and then its argument prototype would still apply. */
19852 #ifdef __cplusplus
19853 extern "C"
19854 #endif
19855 char des_cbc_encrypt ();
19857 main ()
19859 return des_cbc_encrypt ();
19861 return 0;
19863 _ACEOF
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext &&
19881 $as_test_x conftest$ac_exeext; then
19882 ac_cv_lib_des_des_cbc_encrypt=yes
19883 else
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_lib_des_des_cbc_encrypt=no
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891 conftest$ac_exeext conftest.$ac_ext
19892 LIBS=$ac_check_lib_save_LIBS
19894 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19895 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19896 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19897 cat >>confdefs.h <<_ACEOF
19898 #define HAVE_LIBDES 1
19899 _ACEOF
19901 LIBS="-ldes $LIBS"
19908 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19909 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19910 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lkrb4 $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char krb_get_cred ();
19930 main ()
19932 return krb_get_cred ();
19934 return 0;
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 ac_cv_lib_krb4_krb_get_cred=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_lib_krb4_krb_get_cred=no
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19967 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19969 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define HAVE_LIBKRB4 1
19972 _ACEOF
19974 LIBS="-lkrb4 $LIBS"
19976 else
19978 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19979 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19980 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983 ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lkrb $LIBS"
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19992 /* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19995 #ifdef __cplusplus
19996 extern "C"
19997 #endif
19998 char krb_get_cred ();
20000 main ()
20002 return krb_get_cred ();
20004 return 0;
20006 _ACEOF
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (ac_try="$ac_link"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012 esac
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } && {
20021 test -z "$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20023 } && test -s conftest$ac_exeext &&
20024 $as_test_x conftest$ac_exeext; then
20025 ac_cv_lib_krb_krb_get_cred=yes
20026 else
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_lib_krb_krb_get_cred=no
20033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20038 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20039 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define HAVE_LIBKRB 1
20042 _ACEOF
20044 LIBS="-lkrb $LIBS"
20052 if test "${with_kerberos5+set}" = set; then
20054 for ac_header in krb5.h
20056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20066 else
20067 # Is the header compilable?
20068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 $ac_includes_default
20077 #include <$ac_header>
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (ac_try="$ac_compile"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest.$ac_objext; then
20096 ac_header_compiler=yes
20097 else
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_header_compiler=no
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20106 echo "${ECHO_T}$ac_header_compiler" >&6; }
20108 # Is the header present?
20109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h. */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 #include <$ac_header>
20118 _ACEOF
20119 if { (ac_try="$ac_cpp conftest.$ac_ext"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20123 esac
20124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } >/dev/null && {
20132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 }; then
20135 ac_header_preproc=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_preproc=no
20143 rm -f conftest.err conftest.$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20145 echo "${ECHO_T}$ac_header_preproc" >&6; }
20147 # So? What about this header?
20148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20149 yes:no: )
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20154 ac_header_preproc=yes
20156 no:yes:* )
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20171 esac
20172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 eval "$as_ac_Header=\$ac_header_preproc"
20179 ac_res=`eval echo '${'$as_ac_Header'}'`
20180 { echo "$as_me:$LINENO: result: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20187 _ACEOF
20191 done
20193 else
20195 for ac_header in des.h
20197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 ac_res=`eval echo '${'$as_ac_Header'}'`
20205 { echo "$as_me:$LINENO: result: $ac_res" >&5
20206 echo "${ECHO_T}$ac_res" >&6; }
20207 else
20208 # Is the header compilable?
20209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 $ac_includes_default
20218 #include <$ac_header>
20219 _ACEOF
20220 rm -f conftest.$ac_objext
20221 if { (ac_try="$ac_compile"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_header_compiler=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_header_compiler=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20247 echo "${ECHO_T}$ac_header_compiler" >&6; }
20249 # Is the header present?
20250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 #include <$ac_header>
20259 _ACEOF
20260 if { (ac_try="$ac_cpp conftest.$ac_ext"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } >/dev/null && {
20273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 }; then
20276 ac_header_preproc=yes
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 ac_header_preproc=no
20284 rm -f conftest.err conftest.$ac_ext
20285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20286 echo "${ECHO_T}$ac_header_preproc" >&6; }
20288 # So? What about this header?
20289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20290 yes:no: )
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20295 ac_header_preproc=yes
20297 no:yes:* )
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20312 esac
20313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318 eval "$as_ac_Header=\$ac_header_preproc"
20320 ac_res=`eval echo '${'$as_ac_Header'}'`
20321 { echo "$as_me:$LINENO: result: $ac_res" >&5
20322 echo "${ECHO_T}$ac_res" >&6; }
20325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20326 cat >>confdefs.h <<_ACEOF
20327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20328 _ACEOF
20330 else
20332 for ac_header in kerberosIV/des.h
20334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 ac_res=`eval echo '${'$as_ac_Header'}'`
20342 { echo "$as_me:$LINENO: result: $ac_res" >&5
20343 echo "${ECHO_T}$ac_res" >&6; }
20344 else
20345 # Is the header compilable?
20346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20355 #include <$ac_header>
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (ac_try="$ac_compile"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_compile") 2>conftest.er1
20365 ac_status=$?
20366 grep -v '^ *+' conftest.er1 >conftest.err
20367 rm -f conftest.er1
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest.$ac_objext; then
20374 ac_header_compiler=yes
20375 else
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_header_compiler=no
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20384 echo "${ECHO_T}$ac_header_compiler" >&6; }
20386 # Is the header present?
20387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 #include <$ac_header>
20396 _ACEOF
20397 if { (ac_try="$ac_cpp conftest.$ac_ext"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } >/dev/null && {
20410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 }; then
20413 ac_header_preproc=yes
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_header_preproc=no
20421 rm -f conftest.err conftest.$ac_ext
20422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20423 echo "${ECHO_T}$ac_header_preproc" >&6; }
20425 # So? What about this header?
20426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20427 yes:no: )
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20432 ac_header_preproc=yes
20434 no:yes:* )
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20449 esac
20450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455 eval "$as_ac_Header=\$ac_header_preproc"
20457 ac_res=`eval echo '${'$as_ac_Header'}'`
20458 { echo "$as_me:$LINENO: result: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20465 _ACEOF
20467 else
20469 for ac_header in kerberos/des.h
20471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 ac_res=`eval echo '${'$as_ac_Header'}'`
20479 { echo "$as_me:$LINENO: result: $ac_res" >&5
20480 echo "${ECHO_T}$ac_res" >&6; }
20481 else
20482 # Is the header compilable?
20483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20492 #include <$ac_header>
20493 _ACEOF
20494 rm -f conftest.$ac_objext
20495 if { (ac_try="$ac_compile"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_header_compiler=yes
20512 else
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_header_compiler=no
20519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20521 echo "${ECHO_T}$ac_header_compiler" >&6; }
20523 # Is the header present?
20524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h. */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 #include <$ac_header>
20533 _ACEOF
20534 if { (ac_try="$ac_cpp conftest.$ac_ext"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } >/dev/null && {
20547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 }; then
20550 ac_header_preproc=yes
20551 else
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_header_preproc=no
20558 rm -f conftest.err conftest.$ac_ext
20559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20560 echo "${ECHO_T}$ac_header_preproc" >&6; }
20562 # So? What about this header?
20563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20564 yes:no: )
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20569 ac_header_preproc=yes
20571 no:yes:* )
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20586 esac
20587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592 eval "$as_ac_Header=\$ac_header_preproc"
20594 ac_res=`eval echo '${'$as_ac_Header'}'`
20595 { echo "$as_me:$LINENO: result: $ac_res" >&5
20596 echo "${ECHO_T}$ac_res" >&6; }
20599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20602 _ACEOF
20606 done
20610 done
20614 done
20617 for ac_header in krb.h
20619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 ac_res=`eval echo '${'$as_ac_Header'}'`
20627 { echo "$as_me:$LINENO: result: $ac_res" >&5
20628 echo "${ECHO_T}$ac_res" >&6; }
20629 else
20630 # Is the header compilable?
20631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h. */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 $ac_includes_default
20640 #include <$ac_header>
20641 _ACEOF
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_compile") 2>conftest.er1
20650 ac_status=$?
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest.$ac_objext; then
20659 ac_header_compiler=yes
20660 else
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_compiler=no
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20669 echo "${ECHO_T}$ac_header_compiler" >&6; }
20671 # Is the header present?
20672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 #include <$ac_header>
20681 _ACEOF
20682 if { (ac_try="$ac_cpp conftest.$ac_ext"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } >/dev/null && {
20695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 }; then
20698 ac_header_preproc=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_header_preproc=no
20706 rm -f conftest.err conftest.$ac_ext
20707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20708 echo "${ECHO_T}$ac_header_preproc" >&6; }
20710 # So? What about this header?
20711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712 yes:no: )
20713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20717 ac_header_preproc=yes
20719 no:yes:* )
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20734 esac
20735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740 eval "$as_ac_Header=\$ac_header_preproc"
20742 ac_res=`eval echo '${'$as_ac_Header'}'`
20743 { echo "$as_me:$LINENO: result: $ac_res" >&5
20744 echo "${ECHO_T}$ac_res" >&6; }
20747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20748 cat >>confdefs.h <<_ACEOF
20749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20750 _ACEOF
20752 else
20754 for ac_header in kerberosIV/krb.h
20756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 ac_res=`eval echo '${'$as_ac_Header'}'`
20764 { echo "$as_me:$LINENO: result: $ac_res" >&5
20765 echo "${ECHO_T}$ac_res" >&6; }
20766 else
20767 # Is the header compilable?
20768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 $ac_includes_default
20777 #include <$ac_header>
20778 _ACEOF
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20796 ac_header_compiler=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_header_compiler=no
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20806 echo "${ECHO_T}$ac_header_compiler" >&6; }
20808 # Is the header present?
20809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20812 /* confdefs.h. */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 #include <$ac_header>
20818 _ACEOF
20819 if { (ac_try="$ac_cpp conftest.$ac_ext"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } >/dev/null && {
20832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 }; then
20835 ac_header_preproc=yes
20836 else
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_header_preproc=no
20843 rm -f conftest.err conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20845 echo "${ECHO_T}$ac_header_preproc" >&6; }
20847 # So? What about this header?
20848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20849 yes:no: )
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20854 ac_header_preproc=yes
20856 no:yes:* )
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20871 esac
20872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877 eval "$as_ac_Header=\$ac_header_preproc"
20879 ac_res=`eval echo '${'$as_ac_Header'}'`
20880 { echo "$as_me:$LINENO: result: $ac_res" >&5
20881 echo "${ECHO_T}$ac_res" >&6; }
20884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20885 cat >>confdefs.h <<_ACEOF
20886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20887 _ACEOF
20889 else
20891 for ac_header in kerberos/krb.h
20893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 ac_res=`eval echo '${'$as_ac_Header'}'`
20901 { echo "$as_me:$LINENO: result: $ac_res" >&5
20902 echo "${ECHO_T}$ac_res" >&6; }
20903 else
20904 # Is the header compilable?
20905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20907 cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h. */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 $ac_includes_default
20914 #include <$ac_header>
20915 _ACEOF
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest.$ac_objext; then
20933 ac_header_compiler=yes
20934 else
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_header_compiler=no
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20943 echo "${ECHO_T}$ac_header_compiler" >&6; }
20945 # Is the header present?
20946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 #include <$ac_header>
20955 _ACEOF
20956 if { (ac_try="$ac_cpp conftest.$ac_ext"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } >/dev/null && {
20969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 }; then
20972 ac_header_preproc=yes
20973 else
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_header_preproc=no
20980 rm -f conftest.err conftest.$ac_ext
20981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20982 echo "${ECHO_T}$ac_header_preproc" >&6; }
20984 # So? What about this header?
20985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20986 yes:no: )
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20991 ac_header_preproc=yes
20993 no:yes:* )
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21008 esac
21009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 eval "$as_ac_Header=\$ac_header_preproc"
21016 ac_res=`eval echo '${'$as_ac_Header'}'`
21017 { echo "$as_me:$LINENO: result: $ac_res" >&5
21018 echo "${ECHO_T}$ac_res" >&6; }
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21024 _ACEOF
21028 done
21032 done
21036 done
21040 for ac_header in com_err.h
21042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21052 else
21053 # Is the header compilable?
21054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21063 #include <$ac_header>
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6; }
21094 # Is the header present?
21095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21104 _ACEOF
21105 if { (ac_try="$ac_cpp conftest.$ac_ext"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 }; then
21121 ac_header_preproc=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6; }
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21135 yes:no: )
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21140 ac_header_preproc=yes
21142 no:yes:* )
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21157 esac
21158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163 eval "$as_ac_Header=\$ac_header_preproc"
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166 { echo "$as_me:$LINENO: result: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21173 _ACEOF
21177 done
21181 # Solaris requires -lintl if you want strerror (which calls dgettext)
21182 # to return localized messages.
21184 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21185 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21186 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189 ac_check_lib_save_LIBS=$LIBS
21190 LIBS="-lintl $LIBS"
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21201 #ifdef __cplusplus
21202 extern "C"
21203 #endif
21204 char dgettext ();
21206 main ()
21208 return dgettext ();
21210 return 0;
21212 _ACEOF
21213 rm -f conftest.$ac_objext conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_link") 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest$ac_exeext &&
21230 $as_test_x conftest$ac_exeext; then
21231 ac_cv_lib_intl_dgettext=yes
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_cv_lib_intl_dgettext=no
21239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21240 conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21243 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21244 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21245 if test $ac_cv_lib_intl_dgettext = yes; then
21246 cat >>confdefs.h <<_ACEOF
21247 #define HAVE_LIBINTL 1
21248 _ACEOF
21250 LIBS="-lintl $LIBS"
21255 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21256 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21257 if test "${emacs_cv_localtime_cache+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260 if test x$ac_cv_func_tzset = xyes; then
21261 if test "$cross_compiling" = yes; then
21262 # If we have tzset, assume the worst when cross-compiling.
21263 emacs_cv_localtime_cache=yes
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <time.h>
21272 extern char **environ;
21273 unset_TZ ()
21275 char **from, **to;
21276 for (to = from = environ; (*to = *from); from++)
21277 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21278 to++;
21280 char TZ_GMT0[] = "TZ=GMT0";
21281 char TZ_PST8[] = "TZ=PST8";
21282 main()
21284 time_t now = time ((time_t *) 0);
21285 int hour_GMT0, hour_unset;
21286 if (putenv (TZ_GMT0) != 0)
21287 exit (1);
21288 hour_GMT0 = localtime (&now)->tm_hour;
21289 unset_TZ ();
21290 hour_unset = localtime (&now)->tm_hour;
21291 if (putenv (TZ_PST8) != 0)
21292 exit (1);
21293 if (localtime (&now)->tm_hour == hour_GMT0)
21294 exit (1);
21295 unset_TZ ();
21296 if (localtime (&now)->tm_hour != hour_unset)
21297 exit (1);
21298 exit (0);
21300 _ACEOF
21301 rm -f conftest$ac_exeext
21302 if { (ac_try="$ac_link"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21306 esac
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_link") 2>&5
21309 ac_status=$?
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21312 { (case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_try") 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 emacs_cv_localtime_cache=no
21322 else
21323 echo "$as_me: program exited with status $ac_status" >&5
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ( exit $ac_status )
21328 emacs_cv_localtime_cache=yes
21330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21334 else
21335 # If we lack tzset, report that localtime does not cache TZ,
21336 # since we can't invalidate the cache if we don't have tzset.
21337 emacs_cv_localtime_cache=no
21340 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21341 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21342 if test $emacs_cv_localtime_cache = yes; then
21344 cat >>confdefs.h <<\_ACEOF
21345 #define LOCALTIME_CACHE 1
21346 _ACEOF
21350 if test "x$HAVE_TIMEVAL" = xyes; then
21352 for ac_func in gettimeofday
21354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21368 #define $ac_func innocuous_$ac_func
21370 /* System header to define __stub macros and hopefully few prototypes,
21371 which can conflict with char $ac_func (); below.
21372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373 <limits.h> exists even on freestanding compilers. */
21375 #ifdef __STDC__
21376 # include <limits.h>
21377 #else
21378 # include <assert.h>
21379 #endif
21381 #undef $ac_func
21383 /* Override any GCC internal prototype to avoid an error.
21384 Use char because int might match the return type of a GCC
21385 builtin and then its argument prototype would still apply. */
21386 #ifdef __cplusplus
21387 extern "C"
21388 #endif
21389 char $ac_func ();
21390 /* The GNU C library defines this for functions which it implements
21391 to always fail with ENOSYS. Some functions are actually named
21392 something starting with __ and the normal name is an alias. */
21393 #if defined __stub_$ac_func || defined __stub___$ac_func
21394 choke me
21395 #endif
21398 main ()
21400 return $ac_func ();
21402 return 0;
21404 _ACEOF
21405 rm -f conftest.$ac_objext conftest$ac_exeext
21406 if { (ac_try="$ac_link"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_link") 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest$ac_exeext &&
21422 $as_test_x conftest$ac_exeext; then
21423 eval "$as_ac_var=yes"
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 eval "$as_ac_var=no"
21431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432 conftest$ac_exeext conftest.$ac_ext
21434 ac_res=`eval echo '${'$as_ac_var'}'`
21435 { echo "$as_me:$LINENO: result: $ac_res" >&5
21436 echo "${ECHO_T}$ac_res" >&6; }
21437 if test `eval echo '${'$as_ac_var'}'` = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21440 _ACEOF
21443 done
21445 if test $ac_cv_func_gettimeofday = yes; then
21446 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21447 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21448 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h. */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21458 #ifdef TIME_WITH_SYS_TIME
21459 #include <sys/time.h>
21460 #include <time.h>
21461 #else
21462 #ifdef HAVE_SYS_TIME_H
21463 #include <sys/time.h>
21464 #else
21465 #include <time.h>
21466 #endif
21467 #endif
21469 main ()
21471 struct timeval time;
21472 gettimeofday (&time, 0);
21474 return 0;
21476 _ACEOF
21477 rm -f conftest.$ac_objext
21478 if { (ac_try="$ac_compile"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 emacs_cv_gettimeofday_two_arguments=yes
21495 else
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 emacs_cv_gettimeofday_two_arguments=no
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21505 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21506 if test $emacs_cv_gettimeofday_two_arguments = no; then
21508 cat >>confdefs.h <<\_ACEOF
21509 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21510 _ACEOF
21516 ok_so_far=yes
21517 { echo "$as_me:$LINENO: checking for socket" >&5
21518 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21519 if test "${ac_cv_func_socket+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21530 #define socket innocuous_socket
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char socket (); below.
21534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535 <limits.h> exists even on freestanding compilers. */
21537 #ifdef __STDC__
21538 # include <limits.h>
21539 #else
21540 # include <assert.h>
21541 #endif
21543 #undef socket
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21548 #ifdef __cplusplus
21549 extern "C"
21550 #endif
21551 char socket ();
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined __stub_socket || defined __stub___socket
21556 choke me
21557 #endif
21560 main ()
21562 return socket ();
21564 return 0;
21566 _ACEOF
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext &&
21584 $as_test_x conftest$ac_exeext; then
21585 ac_cv_func_socket=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_func_socket=no
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21597 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21598 if test $ac_cv_func_socket = yes; then
21600 else
21601 ok_so_far=no
21604 if test $ok_so_far = yes; then
21605 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21606 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21607 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21608 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21612 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21613 else
21614 # Is the header compilable?
21615 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21616 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21617 cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h. */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 $ac_includes_default
21624 #include <netinet/in.h>
21625 _ACEOF
21626 rm -f conftest.$ac_objext
21627 if { (ac_try="$ac_compile"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_compile") 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && {
21640 test -z "$ac_c_werror_flag" ||
21641 test ! -s conftest.err
21642 } && test -s conftest.$ac_objext; then
21643 ac_header_compiler=yes
21644 else
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_header_compiler=no
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21653 echo "${ECHO_T}$ac_header_compiler" >&6; }
21655 # Is the header present?
21656 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21657 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h. */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 #include <netinet/in.h>
21665 _ACEOF
21666 if { (ac_try="$ac_cpp conftest.$ac_ext"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } >/dev/null && {
21679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 }; then
21682 ac_header_preproc=yes
21683 else
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_header_preproc=no
21690 rm -f conftest.err conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21692 echo "${ECHO_T}$ac_header_preproc" >&6; }
21694 # So? What about this header?
21695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21696 yes:no: )
21697 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21698 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21700 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21701 ac_header_preproc=yes
21703 no:yes:* )
21704 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21705 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21707 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21709 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21711 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21713 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21714 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21715 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21718 esac
21719 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21720 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21721 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724 ac_cv_header_netinet_in_h=$ac_header_preproc
21726 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21727 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21730 if test $ac_cv_header_netinet_in_h = yes; then
21732 else
21733 ok_so_far=no
21738 if test $ok_so_far = yes; then
21739 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21740 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21741 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21742 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21746 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21747 else
21748 # Is the header compilable?
21749 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21750 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21758 #include <arpa/inet.h>
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_header_compiler=yes
21778 else
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_compiler=no
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21787 echo "${ECHO_T}$ac_header_compiler" >&6; }
21789 # Is the header present?
21790 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21791 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <arpa/inet.h>
21799 _ACEOF
21800 if { (ac_try="$ac_cpp conftest.$ac_ext"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } >/dev/null && {
21813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 }; then
21816 ac_header_preproc=yes
21817 else
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_preproc=no
21824 rm -f conftest.err conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21826 echo "${ECHO_T}$ac_header_preproc" >&6; }
21828 # So? What about this header?
21829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21830 yes:no: )
21831 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21832 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21834 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21835 ac_header_preproc=yes
21837 no:yes:* )
21838 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21839 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21841 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21843 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21845 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21847 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21849 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21852 esac
21853 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21854 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21855 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 ac_cv_header_arpa_inet_h=$ac_header_preproc
21860 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21861 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21864 if test $ac_cv_header_arpa_inet_h = yes; then
21866 else
21867 ok_so_far=no
21872 if test $ok_so_far = yes; then
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_INET_SOCKETS 1
21876 _ACEOF
21881 for ac_header in sys/ioctl.h
21883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 ac_res=`eval echo '${'$as_ac_Header'}'`
21891 { echo "$as_me:$LINENO: result: $ac_res" >&5
21892 echo "${ECHO_T}$ac_res" >&6; }
21893 else
21894 # Is the header compilable?
21895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 #include <$ac_header>
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21914 ac_status=$?
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21923 ac_header_compiler=yes
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ac_header_compiler=no
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21933 echo "${ECHO_T}$ac_header_compiler" >&6; }
21935 # Is the header present?
21936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21938 cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h. */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <$ac_header>
21945 _ACEOF
21946 if { (ac_try="$ac_cpp conftest.$ac_ext"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21950 esac
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } >/dev/null && {
21959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21961 }; then
21962 ac_header_preproc=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_preproc=no
21970 rm -f conftest.err conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21972 echo "${ECHO_T}$ac_header_preproc" >&6; }
21974 # So? What about this header?
21975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21976 yes:no: )
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21981 ac_header_preproc=yes
21983 no:yes:* )
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21998 esac
21999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 eval "$as_ac_Header=\$ac_header_preproc"
22006 ac_res=`eval echo '${'$as_ac_Header'}'`
22007 { echo "$as_me:$LINENO: result: $ac_res" >&5
22008 echo "${ECHO_T}$ac_res" >&6; }
22011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22012 cat >>confdefs.h <<_ACEOF
22013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22014 _ACEOF
22018 done
22021 if test -f /usr/lpp/X11/bin/smt.exp; then
22023 cat >>confdefs.h <<\_ACEOF
22024 #define HAVE_AIX_SMT_EXP 1
22025 _ACEOF
22029 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22030 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22031 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22032 { echo "$as_me:$LINENO: result: yes" >&5
22033 echo "${ECHO_T}yes" >&6; }
22035 cat >>confdefs.h <<\_ACEOF
22036 #define HAVE_DEV_PTMX 1
22037 _ACEOF
22039 else
22040 { echo "$as_me:$LINENO: result: no" >&5
22041 echo "${ECHO_T}no" >&6; }
22044 { echo "$as_me:$LINENO: checking for pid_t" >&5
22045 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22046 if test "${ac_cv_type_pid_t+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22056 typedef pid_t ac__type_new_;
22058 main ()
22060 if ((ac__type_new_ *) 0)
22061 return 0;
22062 if (sizeof (ac__type_new_))
22063 return 0;
22065 return 0;
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22076 ac_status=$?
22077 grep -v '^ *+' conftest.er1 >conftest.err
22078 rm -f conftest.er1
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22085 ac_cv_type_pid_t=yes
22086 else
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_cv_type_pid_t=no
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22097 if test $ac_cv_type_pid_t = yes; then
22099 else
22101 cat >>confdefs.h <<_ACEOF
22102 #define pid_t int
22103 _ACEOF
22108 for ac_header in vfork.h
22110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22117 ac_res=`eval echo '${'$as_ac_Header'}'`
22118 { echo "$as_me:$LINENO: result: $ac_res" >&5
22119 echo "${ECHO_T}$ac_res" >&6; }
22120 else
22121 # Is the header compilable?
22122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22124 cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h. */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 $ac_includes_default
22131 #include <$ac_header>
22132 _ACEOF
22133 rm -f conftest.$ac_objext
22134 if { (ac_try="$ac_compile"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_compile") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest.$ac_objext; then
22150 ac_header_compiler=yes
22151 else
22152 echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ac_header_compiler=no
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22160 echo "${ECHO_T}$ac_header_compiler" >&6; }
22162 # Is the header present?
22163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <$ac_header>
22172 _ACEOF
22173 if { (ac_try="$ac_cpp conftest.$ac_ext"
22174 case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22180 ac_status=$?
22181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } >/dev/null && {
22186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 }; then
22189 ac_header_preproc=yes
22190 else
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_header_preproc=no
22197 rm -f conftest.err conftest.$ac_ext
22198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22199 echo "${ECHO_T}$ac_header_preproc" >&6; }
22201 # So? What about this header?
22202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22203 yes:no: )
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22208 ac_header_preproc=yes
22210 no:yes:* )
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22225 esac
22226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231 eval "$as_ac_Header=\$ac_header_preproc"
22233 ac_res=`eval echo '${'$as_ac_Header'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22241 _ACEOF
22245 done
22249 for ac_func in fork vfork
22251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22265 #define $ac_func innocuous_$ac_func
22267 /* System header to define __stub macros and hopefully few prototypes,
22268 which can conflict with char $ac_func (); below.
22269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22270 <limits.h> exists even on freestanding compilers. */
22272 #ifdef __STDC__
22273 # include <limits.h>
22274 #else
22275 # include <assert.h>
22276 #endif
22278 #undef $ac_func
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22283 #ifdef __cplusplus
22284 extern "C"
22285 #endif
22286 char $ac_func ();
22287 /* The GNU C library defines this for functions which it implements
22288 to always fail with ENOSYS. Some functions are actually named
22289 something starting with __ and the normal name is an alias. */
22290 #if defined __stub_$ac_func || defined __stub___$ac_func
22291 choke me
22292 #endif
22295 main ()
22297 return $ac_func ();
22299 return 0;
22301 _ACEOF
22302 rm -f conftest.$ac_objext conftest$ac_exeext
22303 if { (ac_try="$ac_link"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_link") 2>conftest.er1
22310 ac_status=$?
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest$ac_exeext &&
22319 $as_test_x conftest$ac_exeext; then
22320 eval "$as_ac_var=yes"
22321 else
22322 echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22325 eval "$as_ac_var=no"
22328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22329 conftest$ac_exeext conftest.$ac_ext
22331 ac_res=`eval echo '${'$as_ac_var'}'`
22332 { echo "$as_me:$LINENO: result: $ac_res" >&5
22333 echo "${ECHO_T}$ac_res" >&6; }
22334 if test `eval echo '${'$as_ac_var'}'` = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 _ACEOF
22340 done
22342 if test "x$ac_cv_func_fork" = xyes; then
22343 { echo "$as_me:$LINENO: checking for working fork" >&5
22344 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22345 if test "${ac_cv_func_fork_works+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 if test "$cross_compiling" = yes; then
22349 ac_cv_func_fork_works=cross
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22359 main ()
22362 /* By Ruediger Kuhlmann. */
22363 return fork () < 0;
22366 return 0;
22368 _ACEOF
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_link") 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_cv_func_fork_works=yes
22390 else
22391 echo "$as_me: program exited with status $ac_status" >&5
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ( exit $ac_status )
22396 ac_cv_func_fork_works=no
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22403 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22404 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22406 else
22407 ac_cv_func_fork_works=$ac_cv_func_fork
22409 if test "x$ac_cv_func_fork_works" = xcross; then
22410 case $host in
22411 *-*-amigaos* | *-*-msdosdjgpp*)
22412 # Override, as these systems have only a dummy fork() stub
22413 ac_cv_func_fork_works=no
22416 ac_cv_func_fork_works=yes
22418 esac
22419 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22420 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22422 ac_cv_func_vfork_works=$ac_cv_func_vfork
22423 if test "x$ac_cv_func_vfork" = xyes; then
22424 { echo "$as_me:$LINENO: checking for working vfork" >&5
22425 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22426 if test "${ac_cv_func_vfork_works+set}" = set; then
22427 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 else
22429 if test "$cross_compiling" = yes; then
22430 ac_cv_func_vfork_works=cross
22431 else
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h. */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 /* Thanks to Paul Eggert for this test. */
22439 $ac_includes_default
22440 #include <sys/wait.h>
22441 #ifdef HAVE_VFORK_H
22442 # include <vfork.h>
22443 #endif
22444 /* On some sparc systems, changes by the child to local and incoming
22445 argument registers are propagated back to the parent. The compiler
22446 is told about this with #include <vfork.h>, but some compilers
22447 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22448 static variable whose address is put into a register that is
22449 clobbered by the vfork. */
22450 static void
22451 #ifdef __cplusplus
22452 sparc_address_test (int arg)
22453 # else
22454 sparc_address_test (arg) int arg;
22455 #endif
22457 static pid_t child;
22458 if (!child) {
22459 child = vfork ();
22460 if (child < 0) {
22461 perror ("vfork");
22462 _exit(2);
22464 if (!child) {
22465 arg = getpid();
22466 write(-1, "", 0);
22467 _exit (arg);
22473 main ()
22475 pid_t parent = getpid ();
22476 pid_t child;
22478 sparc_address_test (0);
22480 child = vfork ();
22482 if (child == 0) {
22483 /* Here is another test for sparc vfork register problems. This
22484 test uses lots of local variables, at least as many local
22485 variables as main has allocated so far including compiler
22486 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22487 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22488 reuse the register of parent for one of the local variables,
22489 since it will think that parent can't possibly be used any more
22490 in this routine. Assigning to the local variable will thus
22491 munge parent in the parent process. */
22492 pid_t
22493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22495 /* Convince the compiler that p..p7 are live; otherwise, it might
22496 use the same hardware register for all 8 local variables. */
22497 if (p != p1 || p != p2 || p != p3 || p != p4
22498 || p != p5 || p != p6 || p != p7)
22499 _exit(1);
22501 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22502 from child file descriptors. If the child closes a descriptor
22503 before it execs or exits, this munges the parent's descriptor
22504 as well. Test for this by closing stdout in the child. */
22505 _exit(close(fileno(stdout)) != 0);
22506 } else {
22507 int status;
22508 struct stat st;
22510 while (wait(&status) != child)
22512 return (
22513 /* Was there some problem with vforking? */
22514 child < 0
22516 /* Did the child fail? (This shouldn't happen.) */
22517 || status
22519 /* Did the vfork/compiler bug occur? */
22520 || parent != getpid()
22522 /* Did the file descriptor bug occur? */
22523 || fstat(fileno(stdout), &st) != 0
22527 _ACEOF
22528 rm -f conftest$ac_exeext
22529 if { (ac_try="$ac_link"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539 { (case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_try") 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 ac_cv_func_vfork_works=yes
22549 else
22550 echo "$as_me: program exited with status $ac_status" >&5
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ( exit $ac_status )
22555 ac_cv_func_vfork_works=no
22557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22562 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22563 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22566 if test "x$ac_cv_func_fork_works" = xcross; then
22567 ac_cv_func_vfork_works=$ac_cv_func_vfork
22568 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22569 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22572 if test "x$ac_cv_func_vfork_works" = xyes; then
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_WORKING_VFORK 1
22576 _ACEOF
22578 else
22580 cat >>confdefs.h <<\_ACEOF
22581 #define vfork fork
22582 _ACEOF
22585 if test "x$ac_cv_func_fork_works" = xyes; then
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_WORKING_FORK 1
22589 _ACEOF
22594 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22595 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22596 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599 cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h. */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 #include <langinfo.h>
22607 main ()
22609 char* cs = nl_langinfo(CODESET);
22611 return 0;
22613 _ACEOF
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_link") 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext &&
22631 $as_test_x conftest$ac_exeext; then
22632 emacs_cv_langinfo_codeset=yes
22633 else
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 emacs_cv_langinfo_codeset=no
22640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22641 conftest$ac_exeext conftest.$ac_ext
22644 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22645 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22646 if test $emacs_cv_langinfo_codeset = yes; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_LANGINFO_CODESET 1
22650 _ACEOF
22654 { echo "$as_me:$LINENO: checking for size_t" >&5
22655 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22656 if test "${ac_cv_type_size_t+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 $ac_includes_default
22666 typedef size_t ac__type_new_;
22668 main ()
22670 if ((ac__type_new_ *) 0)
22671 return 0;
22672 if (sizeof (ac__type_new_))
22673 return 0;
22675 return 0;
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_type_size_t=yes
22696 else
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_cv_type_size_t=no
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22706 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22707 if test $ac_cv_type_size_t = yes; then
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_SIZE_T 1
22711 _ACEOF
22717 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22718 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22719 if test "${ac_cv_type_mbstate_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 $ac_includes_default
22729 # include <wchar.h>
22731 main ()
22733 mbstate_t x; return sizeof x;
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22746 ac_status=$?
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_cv_type_mbstate_t=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_cv_type_mbstate_t=no
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22766 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22767 if test $ac_cv_type_mbstate_t = yes; then
22769 cat >>confdefs.h <<\_ACEOF
22770 #define HAVE_MBSTATE_T 1
22771 _ACEOF
22773 else
22775 cat >>confdefs.h <<\_ACEOF
22776 #define mbstate_t int
22777 _ACEOF
22781 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22782 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22783 if test "${emacs_cv_c_restrict+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 void fred (int *restrict x);
22794 main ()
22798 return 0;
22800 _ACEOF
22801 rm -f conftest.$ac_objext
22802 if { (ac_try="$ac_compile"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_compile") 2>conftest.er1
22809 ac_status=$?
22810 grep -v '^ *+' conftest.er1 >conftest.err
22811 rm -f conftest.er1
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } && {
22815 test -z "$ac_c_werror_flag" ||
22816 test ! -s conftest.err
22817 } && test -s conftest.$ac_objext; then
22818 emacs_cv_c_restrict=yes
22819 else
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h. */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 void fred (int *__restrict x);
22831 main ()
22835 return 0;
22837 _ACEOF
22838 rm -f conftest.$ac_objext
22839 if { (ac_try="$ac_compile"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 emacs_cv_c_restrict=__restrict
22856 else
22857 echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 emacs_cv_c_restrict=no
22863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22869 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22870 case "$emacs_cv_c_restrict" in
22871 yes) emacs_restrict=restrict;;
22872 no) emacs_restrict="";;
22873 *) emacs_restrict="$emacs_cv_c_restrict";;
22874 esac
22875 if test "$emacs_restrict" != __restrict; then
22877 cat >>confdefs.h <<_ACEOF
22878 #define __restrict $emacs_restrict
22879 _ACEOF
22883 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22884 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22885 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888 cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h. */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 void fred (int x[__restrict]);
22896 main ()
22900 return 0;
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 emacs_cv_c_restrict_arr=yes
22921 else
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 emacs_cv_c_restrict_arr=no
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22931 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22932 if test "$emacs_cv_c_restrict_arr" = yes; then
22934 cat >>confdefs.h <<\_ACEOF
22935 #define __restrict_arr __restrict
22936 _ACEOF
22942 # Set up the CFLAGS for real compilation, so we can substitute it.
22943 CFLAGS="$REAL_CFLAGS"
22944 CPPFLAGS="$REAL_CPPFLAGS"
22946 #### Find out which version of Emacs this is.
22947 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22948 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22949 if test x"${version}" = x; then
22950 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22951 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22952 { (exit 1); exit 1; }; }
22955 ### Specify what sort of things we'll be editing into Makefile and config.h.
22956 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22992 cat >>confdefs.h <<_ACEOF
22993 #define EMACS_CONFIGURATION "${canonical}"
22994 _ACEOF
22997 cat >>confdefs.h <<_ACEOF
22998 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22999 _ACEOF
23002 cat >>confdefs.h <<_ACEOF
23003 #define config_machfile "${machfile}"
23004 _ACEOF
23007 cat >>confdefs.h <<_ACEOF
23008 #define config_opsysfile "${opsysfile}"
23009 _ACEOF
23012 cat >>confdefs.h <<_ACEOF
23013 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23014 _ACEOF
23017 cat >>confdefs.h <<_ACEOF
23018 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23019 _ACEOF
23022 cat >>confdefs.h <<_ACEOF
23023 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23024 _ACEOF
23027 cat >>confdefs.h <<_ACEOF
23028 #define UNEXEC_SRC ${UNEXEC_SRC}
23029 _ACEOF
23032 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_X_WINDOWS 1
23036 _ACEOF
23039 if test "${USE_X_TOOLKIT}" != "none" ; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define USE_X_TOOLKIT 1
23043 _ACEOF
23046 if test "${HAVE_X11}" = "yes" ; then
23048 cat >>confdefs.h <<\_ACEOF
23049 #define HAVE_X11 1
23050 _ACEOF
23053 if test "${HAVE_XFREE386}" = "yes" ; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_XFREE386 1
23057 _ACEOF
23060 if test "${HAVE_MENUS}" = "yes" ; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define HAVE_MENUS 1
23064 _ACEOF
23067 if test "${GNU_MALLOC}" = "yes" ; then
23069 cat >>confdefs.h <<\_ACEOF
23070 #define GNU_MALLOC 1
23071 _ACEOF
23074 if test "${REL_ALLOC}" = "yes" ; then
23076 cat >>confdefs.h <<\_ACEOF
23077 #define REL_ALLOC 1
23078 _ACEOF
23086 #### Report on what we decided to do.
23087 #### Report GTK as a toolkit, even if it doesn't use Xt.
23088 #### It makes printing result more understandable as using GTK sets
23089 #### toolkit_scroll_bars to yes by default.
23090 if test "${HAVE_GTK}" = "yes"; then
23091 USE_X_TOOLKIT=GTK
23094 echo "
23095 Configured for \`${canonical}'.
23097 Where should the build process find the source code? ${srcdir}
23098 What operating system and machine description files should Emacs use?
23099 \`${opsysfile}' and \`${machfile}'
23100 What compiler should emacs be built with? ${CC} ${CFLAGS}
23101 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23102 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23103 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23104 What window system should Emacs use? ${window_system}
23105 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23107 if test -n "${x_includes}"; then
23108 echo " Where do we find X Windows header files? ${x_includes}"
23109 else
23110 echo " Where do we find X Windows header files? Standard dirs"
23112 if test -n "${x_libraries}"; then
23113 echo " Where do we find X Windows libraries? ${x_libraries}"
23114 else
23115 echo " Where do we find X Windows libraries? Standard dirs"
23118 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23119 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23120 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23121 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23122 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23123 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23124 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23125 echo
23127 if test $USE_XASSERTS = yes; then
23128 echo " Compiling with asserts turned on."
23129 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23130 echo
23133 if test "$USE_X_TOOLKIT" = GTK; then
23134 case "$canonical" in
23135 *cygwin*)
23136 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23137 will probably get a crash on startup. If this happens, please use another
23138 toolkit for Emacs. See etc/PROBLEMS for more information."
23140 esac
23145 # Remove any trailing slashes in these variables.
23146 test "${prefix}" != NONE &&
23147 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23148 test "${exec_prefix}" != NONE &&
23149 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23151 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23152 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23153 ## from Makefile.c can correctly provide the arg `-traditional' to the
23154 ## C preprocessor.
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 yes..yes
23163 _ACEOF
23164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23165 $EGREP "yes..yes" >/dev/null 2>&1; then
23166 CPP_NEED_TRADITIONAL=no
23167 else
23168 CPP_NEED_TRADITIONAL=yes
23170 rm -f conftest*
23173 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"
23175 ac_config_commands="$ac_config_commands default"
23177 cat >confcache <<\_ACEOF
23178 # This file is a shell script that caches the results of configure
23179 # tests run on this system so they can be shared between configure
23180 # scripts and configure runs, see configure's option --config-cache.
23181 # It is not useful on other systems. If it contains results you don't
23182 # want to keep, you may remove or edit it.
23184 # config.status only pays attention to the cache file if you give it
23185 # the --recheck option to rerun configure.
23187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23189 # following values.
23191 _ACEOF
23193 # The following way of writing the cache mishandles newlines in values,
23194 # but we know of no workaround that is simple, portable, and efficient.
23195 # So, we kill variables containing newlines.
23196 # Ultrix sh set writes to stderr and can't be redirected directly,
23197 # and sets the high bit in the cache file unless we assign to the vars.
23199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23200 eval ac_val=\$$ac_var
23201 case $ac_val in #(
23202 *${as_nl}*)
23203 case $ac_var in #(
23204 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23205 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23206 esac
23207 case $ac_var in #(
23208 _ | IFS | as_nl) ;; #(
23209 *) $as_unset $ac_var ;;
23210 esac ;;
23211 esac
23212 done
23214 (set) 2>&1 |
23215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23216 *${as_nl}ac_space=\ *)
23217 # `set' does not quote correctly, so add quotes (double-quote
23218 # substitution turns \\\\ into \\, and sed turns \\ into \).
23219 sed -n \
23220 "s/'/'\\\\''/g;
23221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23222 ;; #(
23224 # `set' quotes correctly as required by POSIX, so do not add quotes.
23225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23227 esac |
23228 sort
23230 sed '
23231 /^ac_cv_env_/b end
23232 t clear
23233 :clear
23234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23235 t end
23236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23237 :end' >>confcache
23238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23239 if test -w "$cache_file"; then
23240 test "x$cache_file" != "x/dev/null" &&
23241 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23242 echo "$as_me: updating cache $cache_file" >&6;}
23243 cat confcache >$cache_file
23244 else
23245 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23246 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23249 rm -f confcache
23251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23252 # Let make expand exec_prefix.
23253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23255 DEFS=-DHAVE_CONFIG_H
23257 ac_libobjs=
23258 ac_ltlibobjs=
23259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23260 # 1. Remove the extension, and $U if already installed.
23261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23262 ac_i=`echo "$ac_i" | sed "$ac_script"`
23263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23264 # will be set to the directory where LIBOBJS objects are built.
23265 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23266 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23267 done
23268 LIBOBJS=$ac_libobjs
23270 LTLIBOBJS=$ac_ltlibobjs
23274 : ${CONFIG_STATUS=./config.status}
23275 ac_clean_files_save=$ac_clean_files
23276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23277 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23278 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23279 cat >$CONFIG_STATUS <<_ACEOF
23280 #! $SHELL
23281 # Generated by $as_me.
23282 # Run this file to recreate the current configuration.
23283 # Compiler output produced by configure, useful for debugging
23284 # configure, is in config.log if it exists.
23286 debug=false
23287 ac_cs_recheck=false
23288 ac_cs_silent=false
23289 SHELL=\${CONFIG_SHELL-$SHELL}
23290 _ACEOF
23292 cat >>$CONFIG_STATUS <<\_ACEOF
23293 ## --------------------- ##
23294 ## M4sh Initialization. ##
23295 ## --------------------- ##
23297 # Be more Bourne compatible
23298 DUALCASE=1; export DUALCASE # for MKS sh
23299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23300 emulate sh
23301 NULLCMD=:
23302 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23303 # is contrary to our usage. Disable this feature.
23304 alias -g '${1+"$@"}'='"$@"'
23305 setopt NO_GLOB_SUBST
23306 else
23307 case `(set -o) 2>/dev/null` in
23308 *posix*) set -o posix ;;
23309 esac
23316 # PATH needs CR
23317 # Avoid depending upon Character Ranges.
23318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23321 as_cr_digits='0123456789'
23322 as_cr_alnum=$as_cr_Letters$as_cr_digits
23324 # The user is always right.
23325 if test "${PATH_SEPARATOR+set}" != set; then
23326 echo "#! /bin/sh" >conf$$.sh
23327 echo "exit 0" >>conf$$.sh
23328 chmod +x conf$$.sh
23329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23330 PATH_SEPARATOR=';'
23331 else
23332 PATH_SEPARATOR=:
23334 rm -f conf$$.sh
23337 # Support unset when possible.
23338 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23339 as_unset=unset
23340 else
23341 as_unset=false
23345 # IFS
23346 # We need space, tab and new line, in precisely that order. Quoting is
23347 # there to prevent editors from complaining about space-tab.
23348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23349 # splitting by setting IFS to empty value.)
23350 as_nl='
23352 IFS=" "" $as_nl"
23354 # Find who we are. Look in the path if we contain no directory separator.
23355 case $0 in
23356 *[\\/]* ) as_myself=$0 ;;
23357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23358 for as_dir in $PATH
23360 IFS=$as_save_IFS
23361 test -z "$as_dir" && as_dir=.
23362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23363 done
23364 IFS=$as_save_IFS
23367 esac
23368 # We did not find ourselves, most probably we were run as `sh COMMAND'
23369 # in which case we are not to be found in the path.
23370 if test "x$as_myself" = x; then
23371 as_myself=$0
23373 if test ! -f "$as_myself"; then
23374 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23375 { (exit 1); exit 1; }
23378 # Work around bugs in pre-3.0 UWIN ksh.
23379 for as_var in ENV MAIL MAILPATH
23380 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23381 done
23382 PS1='$ '
23383 PS2='> '
23384 PS4='+ '
23386 # NLS nuisances.
23387 for as_var in \
23388 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23389 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23390 LC_TELEPHONE LC_TIME
23392 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23393 eval $as_var=C; export $as_var
23394 else
23395 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23397 done
23399 # Required to use basename.
23400 if expr a : '\(a\)' >/dev/null 2>&1 &&
23401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23402 as_expr=expr
23403 else
23404 as_expr=false
23407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23408 as_basename=basename
23409 else
23410 as_basename=false
23414 # Name of the executable.
23415 as_me=`$as_basename -- "$0" ||
23416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23417 X"$0" : 'X\(//\)$' \| \
23418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23419 echo X/"$0" |
23420 sed '/^.*\/\([^/][^/]*\)\/*$/{
23421 s//\1/
23424 /^X\/\(\/\/\)$/{
23425 s//\1/
23428 /^X\/\(\/\).*/{
23429 s//\1/
23432 s/.*/./; q'`
23434 # CDPATH.
23435 $as_unset CDPATH
23439 as_lineno_1=$LINENO
23440 as_lineno_2=$LINENO
23441 test "x$as_lineno_1" != "x$as_lineno_2" &&
23442 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23444 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23445 # uniformly replaced by the line number. The first 'sed' inserts a
23446 # line-number line after each line using $LINENO; the second 'sed'
23447 # does the real work. The second script uses 'N' to pair each
23448 # line-number line with the line containing $LINENO, and appends
23449 # trailing '-' during substitution so that $LINENO is not a special
23450 # case at line end.
23451 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23452 # scripts with optimization help from Paolo Bonzini. Blame Lee
23453 # E. McMahon (1931-1989) for sed's syntax. :-)
23454 sed -n '
23456 /[$]LINENO/=
23457 ' <$as_myself |
23458 sed '
23459 s/[$]LINENO.*/&-/
23460 t lineno
23462 :lineno
23464 :loop
23465 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23466 t loop
23467 s/-\n.*//
23468 ' >$as_me.lineno &&
23469 chmod +x "$as_me.lineno" ||
23470 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23471 { (exit 1); exit 1; }; }
23473 # Don't try to exec as it changes $[0], causing all sort of problems
23474 # (the dirname of $[0] is not the place where we might find the
23475 # original and so on. Autoconf is especially sensitive to this).
23476 . "./$as_me.lineno"
23477 # Exit status is that of the last command.
23478 exit
23482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23483 as_dirname=dirname
23484 else
23485 as_dirname=false
23488 ECHO_C= ECHO_N= ECHO_T=
23489 case `echo -n x` in
23490 -n*)
23491 case `echo 'x\c'` in
23492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23493 *) ECHO_C='\c';;
23494 esac;;
23496 ECHO_N='-n';;
23497 esac
23499 if expr a : '\(a\)' >/dev/null 2>&1 &&
23500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23501 as_expr=expr
23502 else
23503 as_expr=false
23506 rm -f conf$$ conf$$.exe conf$$.file
23507 if test -d conf$$.dir; then
23508 rm -f conf$$.dir/conf$$.file
23509 else
23510 rm -f conf$$.dir
23511 mkdir conf$$.dir
23513 echo >conf$$.file
23514 if ln -s conf$$.file conf$$ 2>/dev/null; then
23515 as_ln_s='ln -s'
23516 # ... but there are two gotchas:
23517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23519 # In both cases, we have to default to `cp -p'.
23520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23521 as_ln_s='cp -p'
23522 elif ln conf$$.file conf$$ 2>/dev/null; then
23523 as_ln_s=ln
23524 else
23525 as_ln_s='cp -p'
23527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23528 rmdir conf$$.dir 2>/dev/null
23530 if mkdir -p . 2>/dev/null; then
23531 as_mkdir_p=:
23532 else
23533 test -d ./-p && rmdir ./-p
23534 as_mkdir_p=false
23537 if test -x / >/dev/null 2>&1; then
23538 as_test_x='test -x'
23539 else
23540 if ls -dL / >/dev/null 2>&1; then
23541 as_ls_L_option=L
23542 else
23543 as_ls_L_option=
23545 as_test_x='
23546 eval sh -c '\''
23547 if test -d "$1"; then
23548 test -d "$1/.";
23549 else
23550 case $1 in
23551 -*)set "./$1";;
23552 esac;
23553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23554 ???[sx]*):;;*)false;;esac;fi
23555 '\'' sh
23558 as_executable_p=$as_test_x
23560 # Sed expression to map a string onto a valid CPP name.
23561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23563 # Sed expression to map a string onto a valid variable name.
23564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23567 exec 6>&1
23569 # Save the log message, to keep $[0] and so on meaningful, and to
23570 # report actual input values of CONFIG_FILES etc. instead of their
23571 # values after options handling.
23572 ac_log="
23573 This file was extended by $as_me, which was
23574 generated by GNU Autoconf 2.61. Invocation command line was
23576 CONFIG_FILES = $CONFIG_FILES
23577 CONFIG_HEADERS = $CONFIG_HEADERS
23578 CONFIG_LINKS = $CONFIG_LINKS
23579 CONFIG_COMMANDS = $CONFIG_COMMANDS
23580 $ $0 $@
23582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23585 _ACEOF
23587 cat >>$CONFIG_STATUS <<_ACEOF
23588 # Files that config.status was made for.
23589 config_files="$ac_config_files"
23590 config_headers="$ac_config_headers"
23591 config_commands="$ac_config_commands"
23593 _ACEOF
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23596 ac_cs_usage="\
23597 \`$as_me' instantiates files from templates according to the
23598 current configuration.
23600 Usage: $0 [OPTIONS] [FILE]...
23602 -h, --help print this help, then exit
23603 -V, --version print version number and configuration settings, then exit
23604 -q, --quiet do not print progress messages
23605 -d, --debug don't remove temporary files
23606 --recheck update $as_me by reconfiguring in the same conditions
23607 --file=FILE[:TEMPLATE]
23608 instantiate the configuration file FILE
23609 --header=FILE[:TEMPLATE]
23610 instantiate the configuration header FILE
23612 Configuration files:
23613 $config_files
23615 Configuration headers:
23616 $config_headers
23618 Configuration commands:
23619 $config_commands
23621 Report bugs to <bug-autoconf@gnu.org>."
23623 _ACEOF
23624 cat >>$CONFIG_STATUS <<_ACEOF
23625 ac_cs_version="\\
23626 config.status
23627 configured by $0, generated by GNU Autoconf 2.61,
23628 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23630 Copyright (C) 2006 Free Software Foundation, Inc.
23631 This config.status script is free software; the Free Software Foundation
23632 gives unlimited permission to copy, distribute and modify it."
23634 ac_pwd='$ac_pwd'
23635 srcdir='$srcdir'
23636 INSTALL='$INSTALL'
23637 _ACEOF
23639 cat >>$CONFIG_STATUS <<\_ACEOF
23640 # If no file are specified by the user, then we need to provide default
23641 # value. By we need to know if files were specified by the user.
23642 ac_need_defaults=:
23643 while test $# != 0
23645 case $1 in
23646 --*=*)
23647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23649 ac_shift=:
23652 ac_option=$1
23653 ac_optarg=$2
23654 ac_shift=shift
23656 esac
23658 case $ac_option in
23659 # Handling of the options.
23660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23661 ac_cs_recheck=: ;;
23662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23663 echo "$ac_cs_version"; exit ;;
23664 --debug | --debu | --deb | --de | --d | -d )
23665 debug=: ;;
23666 --file | --fil | --fi | --f )
23667 $ac_shift
23668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23669 ac_need_defaults=false;;
23670 --header | --heade | --head | --hea )
23671 $ac_shift
23672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23673 ac_need_defaults=false;;
23674 --he | --h)
23675 # Conflict between --help and --header
23676 { echo "$as_me: error: ambiguous option: $1
23677 Try \`$0 --help' for more information." >&2
23678 { (exit 1); exit 1; }; };;
23679 --help | --hel | -h )
23680 echo "$ac_cs_usage"; exit ;;
23681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23683 ac_cs_silent=: ;;
23685 # This is an error.
23686 -*) { echo "$as_me: error: unrecognized option: $1
23687 Try \`$0 --help' for more information." >&2
23688 { (exit 1); exit 1; }; } ;;
23690 *) ac_config_targets="$ac_config_targets $1"
23691 ac_need_defaults=false ;;
23693 esac
23694 shift
23695 done
23697 ac_configure_extra_args=
23699 if $ac_cs_silent; then
23700 exec 6>/dev/null
23701 ac_configure_extra_args="$ac_configure_extra_args --silent"
23704 _ACEOF
23705 cat >>$CONFIG_STATUS <<_ACEOF
23706 if \$ac_cs_recheck; then
23707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23708 CONFIG_SHELL=$SHELL
23709 export CONFIG_SHELL
23710 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23713 _ACEOF
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23715 exec 5>>config.log
23717 echo
23718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23719 ## Running $as_me. ##
23720 _ASBOX
23721 echo "$ac_log"
23722 } >&5
23724 _ACEOF
23725 cat >>$CONFIG_STATUS <<_ACEOF
23727 # INIT-COMMANDS
23729 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23731 _ACEOF
23733 cat >>$CONFIG_STATUS <<\_ACEOF
23735 # Handling of arguments.
23736 for ac_config_target in $ac_config_targets
23738 case $ac_config_target in
23739 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23741 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23742 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23743 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23744 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23745 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23746 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23747 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23748 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23749 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23750 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23752 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23753 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23754 { (exit 1); exit 1; }; };;
23755 esac
23756 done
23759 # If the user did not use the arguments to specify the items to instantiate,
23760 # then the envvar interface is used. Set only those that are not.
23761 # We use the long form for the default assignment because of an extremely
23762 # bizarre bug on SunOS 4.1.3.
23763 if $ac_need_defaults; then
23764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23769 # Have a temporary directory for convenience. Make it in the build tree
23770 # simply because there is no reason against having it here, and in addition,
23771 # creating and moving files from /tmp can sometimes cause problems.
23772 # Hook for its removal unless debugging.
23773 # Note that there is a small window in which the directory will not be cleaned:
23774 # after its creation but before its name has been assigned to `$tmp'.
23775 $debug ||
23777 tmp=
23778 trap 'exit_status=$?
23779 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23781 trap '{ (exit 1); exit 1; }' 1 2 13 15
23783 # Create a (secure) tmp directory for tmp files.
23786 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23787 test -n "$tmp" && test -d "$tmp"
23788 } ||
23790 tmp=./conf$$-$RANDOM
23791 (umask 077 && mkdir "$tmp")
23792 } ||
23794 echo "$me: cannot create a temporary directory in ." >&2
23795 { (exit 1); exit 1; }
23799 # Set up the sed scripts for CONFIG_FILES section.
23802 # No need to generate the scripts if there are no CONFIG_FILES.
23803 # This happens for instance when ./config.status config.h
23804 if test -n "$CONFIG_FILES"; then
23806 _ACEOF
23810 ac_delim='%!_!# '
23811 for ac_last_try in false false false false false :; do
23812 cat >conf$$subs.sed <<_ACEOF
23813 SHELL!$SHELL$ac_delim
23814 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23815 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23816 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23817 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23818 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23819 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23820 exec_prefix!$exec_prefix$ac_delim
23821 prefix!$prefix$ac_delim
23822 program_transform_name!$program_transform_name$ac_delim
23823 bindir!$bindir$ac_delim
23824 sbindir!$sbindir$ac_delim
23825 libexecdir!$libexecdir$ac_delim
23826 datarootdir!$datarootdir$ac_delim
23827 datadir!$datadir$ac_delim
23828 sysconfdir!$sysconfdir$ac_delim
23829 sharedstatedir!$sharedstatedir$ac_delim
23830 localstatedir!$localstatedir$ac_delim
23831 includedir!$includedir$ac_delim
23832 oldincludedir!$oldincludedir$ac_delim
23833 docdir!$docdir$ac_delim
23834 infodir!$infodir$ac_delim
23835 htmldir!$htmldir$ac_delim
23836 dvidir!$dvidir$ac_delim
23837 pdfdir!$pdfdir$ac_delim
23838 psdir!$psdir$ac_delim
23839 libdir!$libdir$ac_delim
23840 localedir!$localedir$ac_delim
23841 mandir!$mandir$ac_delim
23842 DEFS!$DEFS$ac_delim
23843 ECHO_C!$ECHO_C$ac_delim
23844 ECHO_N!$ECHO_N$ac_delim
23845 ECHO_T!$ECHO_T$ac_delim
23846 LIBS!$LIBS$ac_delim
23847 build_alias!$build_alias$ac_delim
23848 host_alias!$host_alias$ac_delim
23849 target_alias!$target_alias$ac_delim
23850 MAINT!$MAINT$ac_delim
23851 build!$build$ac_delim
23852 build_cpu!$build_cpu$ac_delim
23853 build_vendor!$build_vendor$ac_delim
23854 build_os!$build_os$ac_delim
23855 host!$host$ac_delim
23856 host_cpu!$host_cpu$ac_delim
23857 host_vendor!$host_vendor$ac_delim
23858 host_os!$host_os$ac_delim
23859 CC!$CC$ac_delim
23860 CFLAGS!$CFLAGS$ac_delim
23861 LDFLAGS!$LDFLAGS$ac_delim
23862 CPPFLAGS!$CPPFLAGS$ac_delim
23863 ac_ct_CC!$ac_ct_CC$ac_delim
23864 EXEEXT!$EXEEXT$ac_delim
23865 OBJEXT!$OBJEXT$ac_delim
23866 CPP!$CPP$ac_delim
23867 GREP!$GREP$ac_delim
23868 EGREP!$EGREP$ac_delim
23869 LN_S!$LN_S$ac_delim
23870 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23871 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23872 INSTALL_DATA!$INSTALL_DATA$ac_delim
23873 RANLIB!$RANLIB$ac_delim
23874 INSTALL_INFO!$INSTALL_INFO$ac_delim
23875 GZIP_PROG!$GZIP_PROG$ac_delim
23876 LIBSOUND!$LIBSOUND$ac_delim
23877 PKG_CONFIG!$PKG_CONFIG$ac_delim
23878 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23879 ALSA_LIBS!$ALSA_LIBS$ac_delim
23880 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23881 SET_MAKE!$SET_MAKE$ac_delim
23882 XMKMF!$XMKMF$ac_delim
23883 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23884 GTK_LIBS!$GTK_LIBS$ac_delim
23885 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23886 XFT_LIBS!$XFT_LIBS$ac_delim
23887 ALLOCA!$ALLOCA$ac_delim
23888 liblockfile!$liblockfile$ac_delim
23889 LIBOBJS!$LIBOBJS$ac_delim
23890 NEED_SETGID!$NEED_SETGID$ac_delim
23891 KMEM_GROUP!$KMEM_GROUP$ac_delim
23892 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23893 GETOPT_H!$GETOPT_H$ac_delim
23894 GETOPTOBJS!$GETOPTOBJS$ac_delim
23895 version!$version$ac_delim
23896 configuration!$configuration$ac_delim
23897 canonical!$canonical$ac_delim
23898 srcdir!$srcdir$ac_delim
23899 lispdir!$lispdir$ac_delim
23900 locallisppath!$locallisppath$ac_delim
23901 lisppath!$lisppath$ac_delim
23902 x_default_search_path!$x_default_search_path$ac_delim
23903 etcdir!$etcdir$ac_delim
23904 archlibdir!$archlibdir$ac_delim
23905 bitmapdir!$bitmapdir$ac_delim
23906 gamedir!$gamedir$ac_delim
23907 gameuser!$gameuser$ac_delim
23908 c_switch_system!$c_switch_system$ac_delim
23909 c_switch_machine!$c_switch_machine$ac_delim
23910 _ACEOF
23912 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23913 break
23914 elif $ac_last_try; then
23915 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23916 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23917 { (exit 1); exit 1; }; }
23918 else
23919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23921 done
23923 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23924 if test -n "$ac_eof"; then
23925 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23926 ac_eof=`expr $ac_eof + 1`
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23932 _ACEOF
23933 sed '
23934 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23935 s/^/s,@/; s/!/@,|#_!!_#|/
23938 s/'"$ac_delim"'$/,g/; t
23939 s/$/\\/; p
23940 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23941 ' >>$CONFIG_STATUS <conf$$subs.sed
23942 rm -f conf$$subs.sed
23943 cat >>$CONFIG_STATUS <<_ACEOF
23944 CEOF$ac_eof
23945 _ACEOF
23948 ac_delim='%!_!# '
23949 for ac_last_try in false false false false false :; do
23950 cat >conf$$subs.sed <<_ACEOF
23951 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23952 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23953 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23954 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23955 machfile!$machfile$ac_delim
23956 opsysfile!$opsysfile$ac_delim
23957 carbon_appdir!$carbon_appdir$ac_delim
23958 LTLIBOBJS!$LTLIBOBJS$ac_delim
23959 _ACEOF
23961 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23962 break
23963 elif $ac_last_try; then
23964 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23965 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23966 { (exit 1); exit 1; }; }
23967 else
23968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23970 done
23972 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23973 if test -n "$ac_eof"; then
23974 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23975 ac_eof=`expr $ac_eof + 1`
23978 cat >>$CONFIG_STATUS <<_ACEOF
23979 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23981 _ACEOF
23982 sed '
23983 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23984 s/^/s,@/; s/!/@,|#_!!_#|/
23987 s/'"$ac_delim"'$/,g/; t
23988 s/$/\\/; p
23989 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23990 ' >>$CONFIG_STATUS <conf$$subs.sed
23991 rm -f conf$$subs.sed
23992 cat >>$CONFIG_STATUS <<_ACEOF
23993 :end
23994 s/|#_!!_#|//g
23995 CEOF$ac_eof
23996 _ACEOF
23999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24001 # trailing colons and then remove the whole line if VPATH becomes empty
24002 # (actually we leave an empty line to preserve line numbers).
24003 if test "x$srcdir" = x.; then
24004 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24005 s/:*\$(srcdir):*/:/
24006 s/:*\${srcdir}:*/:/
24007 s/:*@srcdir@:*/:/
24008 s/^\([^=]*=[ ]*\):*/\1/
24009 s/:*$//
24010 s/^[^=]*=[ ]*$//
24014 cat >>$CONFIG_STATUS <<\_ACEOF
24015 fi # test -n "$CONFIG_FILES"
24018 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24020 case $ac_tag in
24021 :[FHLC]) ac_mode=$ac_tag; continue;;
24022 esac
24023 case $ac_mode$ac_tag in
24024 :[FHL]*:*);;
24025 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24026 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24027 { (exit 1); exit 1; }; };;
24028 :[FH]-) ac_tag=-:-;;
24029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24030 esac
24031 ac_save_IFS=$IFS
24032 IFS=:
24033 set x $ac_tag
24034 IFS=$ac_save_IFS
24035 shift
24036 ac_file=$1
24037 shift
24039 case $ac_mode in
24040 :L) ac_source=$1;;
24041 :[FH])
24042 ac_file_inputs=
24043 for ac_f
24045 case $ac_f in
24046 -) ac_f="$tmp/stdin";;
24047 *) # Look for the file first in the build tree, then in the source tree
24048 # (if the path is not absolute). The absolute path cannot be DOS-style,
24049 # because $ac_f cannot contain `:'.
24050 test -f "$ac_f" ||
24051 case $ac_f in
24052 [\\/$]*) false;;
24053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24054 esac ||
24055 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24056 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24057 { (exit 1); exit 1; }; };;
24058 esac
24059 ac_file_inputs="$ac_file_inputs $ac_f"
24060 done
24062 # Let's still pretend it is `configure' which instantiates (i.e., don't
24063 # use $as_me), people would be surprised to read:
24064 # /* config.h. Generated by config.status. */
24065 configure_input="Generated from "`IFS=:
24066 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24067 if test x"$ac_file" != x-; then
24068 configure_input="$ac_file. $configure_input"
24069 { echo "$as_me:$LINENO: creating $ac_file" >&5
24070 echo "$as_me: creating $ac_file" >&6;}
24073 case $ac_tag in
24074 *:-:* | *:-) cat >"$tmp/stdin";;
24075 esac
24077 esac
24079 ac_dir=`$as_dirname -- "$ac_file" ||
24080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24081 X"$ac_file" : 'X\(//\)[^/]' \| \
24082 X"$ac_file" : 'X\(//\)$' \| \
24083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24084 echo X"$ac_file" |
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24086 s//\1/
24089 /^X\(\/\/\)[^/].*/{
24090 s//\1/
24093 /^X\(\/\/\)$/{
24094 s//\1/
24097 /^X\(\/\).*/{
24098 s//\1/
24101 s/.*/./; q'`
24102 { as_dir="$ac_dir"
24103 case $as_dir in #(
24104 -*) as_dir=./$as_dir;;
24105 esac
24106 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24107 as_dirs=
24108 while :; do
24109 case $as_dir in #(
24110 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24111 *) as_qdir=$as_dir;;
24112 esac
24113 as_dirs="'$as_qdir' $as_dirs"
24114 as_dir=`$as_dirname -- "$as_dir" ||
24115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24116 X"$as_dir" : 'X\(//\)[^/]' \| \
24117 X"$as_dir" : 'X\(//\)$' \| \
24118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24119 echo X"$as_dir" |
24120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24121 s//\1/
24124 /^X\(\/\/\)[^/].*/{
24125 s//\1/
24128 /^X\(\/\/\)$/{
24129 s//\1/
24132 /^X\(\/\).*/{
24133 s//\1/
24136 s/.*/./; q'`
24137 test -d "$as_dir" && break
24138 done
24139 test -z "$as_dirs" || eval "mkdir $as_dirs"
24140 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24142 { (exit 1); exit 1; }; }; }
24143 ac_builddir=.
24145 case "$ac_dir" in
24146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149 # A ".." for each directory in $ac_dir_suffix.
24150 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24151 case $ac_top_builddir_sub in
24152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24154 esac ;;
24155 esac
24156 ac_abs_top_builddir=$ac_pwd
24157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24158 # for backward compatibility:
24159 ac_top_builddir=$ac_top_build_prefix
24161 case $srcdir in
24162 .) # We are building in place.
24163 ac_srcdir=.
24164 ac_top_srcdir=$ac_top_builddir_sub
24165 ac_abs_top_srcdir=$ac_pwd ;;
24166 [\\/]* | ?:[\\/]* ) # Absolute name.
24167 ac_srcdir=$srcdir$ac_dir_suffix;
24168 ac_top_srcdir=$srcdir
24169 ac_abs_top_srcdir=$srcdir ;;
24170 *) # Relative name.
24171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24172 ac_top_srcdir=$ac_top_build_prefix$srcdir
24173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24174 esac
24175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24178 case $ac_mode in
24181 # CONFIG_FILE
24184 case $INSTALL in
24185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24187 esac
24188 _ACEOF
24190 cat >>$CONFIG_STATUS <<\_ACEOF
24191 # If the template does not know about datarootdir, expand it.
24192 # FIXME: This hack should be removed a few years after 2.60.
24193 ac_datarootdir_hack=; ac_datarootdir_seen=
24195 case `sed -n '/datarootdir/ {
24199 /@datadir@/p
24200 /@docdir@/p
24201 /@infodir@/p
24202 /@localedir@/p
24203 /@mandir@/p
24204 ' $ac_file_inputs` in
24205 *datarootdir*) ac_datarootdir_seen=yes;;
24206 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24207 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24208 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24209 _ACEOF
24210 cat >>$CONFIG_STATUS <<_ACEOF
24211 ac_datarootdir_hack='
24212 s&@datadir@&$datadir&g
24213 s&@docdir@&$docdir&g
24214 s&@infodir@&$infodir&g
24215 s&@localedir@&$localedir&g
24216 s&@mandir@&$mandir&g
24217 s&\\\${datarootdir}&$datarootdir&g' ;;
24218 esac
24219 _ACEOF
24221 # Neutralize VPATH when `$srcdir' = `.'.
24222 # Shell code in configure.ac might set extrasub.
24223 # FIXME: do we really want to maintain this feature?
24224 cat >>$CONFIG_STATUS <<_ACEOF
24225 sed "$ac_vpsub
24226 $extrasub
24227 _ACEOF
24228 cat >>$CONFIG_STATUS <<\_ACEOF
24230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24231 s&@configure_input@&$configure_input&;t t
24232 s&@top_builddir@&$ac_top_builddir_sub&;t t
24233 s&@srcdir@&$ac_srcdir&;t t
24234 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24235 s&@top_srcdir@&$ac_top_srcdir&;t t
24236 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24237 s&@builddir@&$ac_builddir&;t t
24238 s&@abs_builddir@&$ac_abs_builddir&;t t
24239 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24240 s&@INSTALL@&$ac_INSTALL&;t t
24241 $ac_datarootdir_hack
24242 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24244 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24245 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24246 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24247 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24248 which seems to be undefined. Please make sure it is defined." >&5
24249 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24250 which seems to be undefined. Please make sure it is defined." >&2;}
24252 rm -f "$tmp/stdin"
24253 case $ac_file in
24254 -) cat "$tmp/out"; rm -f "$tmp/out";;
24255 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24256 esac
24260 # CONFIG_HEADER
24262 _ACEOF
24264 # Transform confdefs.h into a sed script `conftest.defines', that
24265 # substitutes the proper values into config.h.in to produce config.h.
24266 rm -f conftest.defines conftest.tail
24267 # First, append a space to every undef/define line, to ease matching.
24268 echo 's/$/ /' >conftest.defines
24269 # Then, protect against being on the right side of a sed subst, or in
24270 # an unquoted here document, in config.status. If some macros were
24271 # called several times there might be several #defines for the same
24272 # symbol, which is useless. But do not sort them, since the last
24273 # AC_DEFINE must be honored.
24274 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24275 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24276 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24277 # PARAMS is the parameter list in the macro definition--in most cases, it's
24278 # just an empty string.
24279 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24280 ac_dB='\\)[ (].*,\\1define\\2'
24281 ac_dC=' '
24282 ac_dD=' ,'
24284 uniq confdefs.h |
24285 sed -n '
24286 t rset
24287 :rset
24288 s/^[ ]*#[ ]*define[ ][ ]*//
24289 t ok
24292 s/[\\&,]/\\&/g
24293 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24294 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24295 ' >>conftest.defines
24297 # Remove the space that was appended to ease matching.
24298 # Then replace #undef with comments. This is necessary, for
24299 # example, in the case of _POSIX_SOURCE, which is predefined and required
24300 # on some systems where configure will not decide to define it.
24301 # (The regexp can be short, since the line contains either #define or #undef.)
24302 echo 's/ $//
24303 s,^[ #]*u.*,/* & */,' >>conftest.defines
24305 # Break up conftest.defines:
24306 ac_max_sed_lines=50
24308 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24309 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24310 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24311 # et cetera.
24312 ac_in='$ac_file_inputs'
24313 ac_out='"$tmp/out1"'
24314 ac_nxt='"$tmp/out2"'
24316 while :
24318 # Write a here document:
24319 cat >>$CONFIG_STATUS <<_ACEOF
24320 # First, check the format of the line:
24321 cat >"\$tmp/defines.sed" <<\\CEOF
24322 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24323 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24325 :def
24326 _ACEOF
24327 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24328 echo 'CEOF
24329 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24330 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24331 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24332 grep . conftest.tail >/dev/null || break
24333 rm -f conftest.defines
24334 mv conftest.tail conftest.defines
24335 done
24336 rm -f conftest.defines conftest.tail
24338 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24339 cat >>$CONFIG_STATUS <<\_ACEOF
24340 if test x"$ac_file" != x-; then
24341 echo "/* $configure_input */" >"$tmp/config.h"
24342 cat "$ac_result" >>"$tmp/config.h"
24343 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24344 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24345 echo "$as_me: $ac_file is unchanged" >&6;}
24346 else
24347 rm -f $ac_file
24348 mv "$tmp/config.h" $ac_file
24350 else
24351 echo "/* $configure_input */"
24352 cat "$ac_result"
24354 rm -f "$tmp/out12"
24357 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24358 echo "$as_me: executing $ac_file commands" >&6;}
24360 esac
24363 case $ac_file$ac_mode in
24364 "default":C)
24366 ### Make the necessary directories, if they don't exist.
24367 for dir in etc lisp ; do
24368 test -d ${dir} || mkdir ${dir}
24369 done
24371 # Build src/Makefile from ${srcdir}/src/Makefile.c
24372 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24373 # This must be done after src/config.h is built, since we rely on that file.
24375 # Now get this: Some word that is part of the ${srcdir} directory name
24376 # or the ${configuration} value might, just might, happen to be an
24377 # identifier like `sun4' or `i386' or something, and be predefined by
24378 # the C preprocessor to some helpful value like 1, or maybe the empty
24379 # string. Needless to say consequent macro substitutions are less
24380 # than conducive to the makefile finding the correct directory.
24381 undefs="`echo $top_srcdir $configuration $canonical |
24382 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24383 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24386 echo creating src/epaths.h
24387 ${MAKE-make} epaths-force
24389 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24390 # `..' to `. .' unless invoked with -traditional
24392 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24393 CPPFLAGS="$CPPFLAGS -traditional"
24396 echo creating lib-src/Makefile
24397 ( cd lib-src
24398 rm -f junk.c junk1.c junk2.c
24399 sed -e '/start of cpp stuff/q' \
24400 < Makefile.c > junk1.c
24401 sed -e '1,/start of cpp stuff/d'\
24402 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24403 < Makefile.c > junk.c
24404 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24405 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24406 cat junk1.c junk2.c > Makefile.new
24407 rm -f junk.c junk1.c junk2.c
24408 chmod 444 Makefile.new
24409 mv -f Makefile.new Makefile
24412 echo creating src/Makefile
24413 ( cd src
24414 rm -f junk.c junk1.c junk2.c
24415 sed -e '/start of cpp stuff/q' \
24416 < Makefile.c > junk1.c
24417 sed -e '1,/start of cpp stuff/d'\
24418 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24419 < Makefile.c > junk.c
24420 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24421 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24422 cat junk1.c junk2.c > Makefile.new
24423 rm -f junk.c junk1.c junk2.c
24424 chmod 444 Makefile.new
24425 mv -f Makefile.new Makefile
24428 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24429 echo creating src/.gdbinit
24430 echo source $srcdir/src/.gdbinit > src/.gdbinit
24433 # This is how we know whether to re-run configure in certain cases.
24434 touch src/config.stamp
24438 esac
24439 done # for ac_tag
24442 { (exit 0); exit 0; }
24443 _ACEOF
24444 chmod +x $CONFIG_STATUS
24445 ac_clean_files=$ac_clean_files_save
24448 # configure is writing to config.log, and then calls config.status.
24449 # config.status does its own redirection, appending to config.log.
24450 # Unfortunately, on DOS this fails, as config.log is still kept open
24451 # by configure, so config.status won't be able to write to it; its
24452 # output is simply discarded. So we exec the FD to /dev/null,
24453 # effectively closing config.log, so it can be properly (re)opened and
24454 # appended to by config.status. When coming back to configure, we
24455 # need to make the FD available again.
24456 if test "$no_create" != yes; then
24457 ac_cs_success=:
24458 ac_config_status_args=
24459 test "$silent" = yes &&
24460 ac_config_status_args="$ac_config_status_args --quiet"
24461 exec 5>/dev/null
24462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24463 exec 5>>config.log
24464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24465 # would make configure fail if this is the last instruction.
24466 $ac_cs_success || { (exit 1); exit 1; }