* configure.in: Use HAVE_GPM instead of HAVE_GPM_H and implement
[emacs.git] / configure
blob4dfb335313f2f952be133079f95bfd94de8865ae
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1352 Some influential environment variables:
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1356 nonstandard directory <lib dir>
1357 LIBS libraries to pass to the linker, e.g. -l<library>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1360 CPP C preprocessor
1361 XMKMF Path to xmkmf, Makefile generator for X Window System
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 _ACEOF
1367 ac_status=$?
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.61
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434 exit
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1443 $ $0 $@
1445 _ACEOF
1446 exec 5>>config.log
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1470 _ASUNAME
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1481 } >&5
1483 cat >&5 <<_ACEOF
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1490 _ACEOF
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1504 for ac_arg
1506 case $ac_arg in
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1510 continue ;;
1511 *\'*)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513 esac
1514 case $ac_pass in
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1520 else
1521 case $ac_arg in
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 esac
1530 -* ) ac_must_keep_next=true ;;
1531 esac
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1535 esac
1536 done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1549 echo
1551 cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1570 esac ;;
1571 esac
1572 done
1573 (set) 2>&1 |
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1576 sed -n \
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 ;; #(
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1583 esac |
1584 sort
1586 echo
1588 cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593 echo
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1604 if test -n "$ac_subst_files"; then
1605 cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1622 if test -s confdefs.h; then
1623 cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628 echo
1629 cat confdefs.h
1630 echo
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1635 } >&5
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 exit $exit_status
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1685 shift
1686 for ac_site_file
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1694 done
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1707 else
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1725 set,)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,set)
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1733 ,);;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1739 echo "$as_me: former value: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1741 echo "$as_me: current value: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 esac
1756 done
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1800 _ACEOF
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 rm -f conftest.sed
1805 lispdir='${datadir}/emacs/${version}/lisp'
1806 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1807 '${datadir}/emacs/site-lisp'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1809 etcdir='${datadir}/emacs/${version}/etc'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs/${version}/etc'
1812 gamedir='${localstatedir}/games/emacs'
1814 gameuser=games
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1819 withval=$with_gcc;
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1828 _ACEOF
1830 else :
1832 else
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1835 _ACEOF
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1845 #define KERBEROS 1
1846 _ACEOF
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1857 with_kerberos=yes
1858 cat >>confdefs.h <<\_ACEOF
1859 #define KERBEROS 1
1860 _ACEOF
1864 cat >>confdefs.h <<\_ACEOF
1865 #define KERBEROS5 1
1866 _ACEOF
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1876 cat >>confdefs.h <<\_ACEOF
1877 #define HESIOD 1
1878 _ACEOF
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=athena ;;
1896 n | no ) val=no ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1903 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1904 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1906 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1907 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1910 esac
1911 with_x_toolkit=$val
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1918 withval=$with_xpm;
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1924 withval=$with_jpeg;
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1930 withval=$with_tiff;
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1936 withval=$with_gif;
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1942 withval=$with_png;
1946 # Check whether --with-gpm was given.
1947 if test "${with_gpm+set}" = set; then
1948 withval=$with_gpm;
1952 # Check whether --with-gtk was given.
1953 if test "${with_gtk+set}" = set; then
1954 withval=$with_gtk;
1958 # Check whether --with-pkg-config-prog was given.
1959 if test "${with_pkg_config_prog+set}" = set; then
1960 withval=$with_pkg_config_prog;
1964 # Check whether --with-toolkit-scroll-bars was given.
1965 if test "${with_toolkit_scroll_bars+set}" = set; then
1966 withval=$with_toolkit_scroll_bars;
1970 # Check whether --with-xim was given.
1971 if test "${with_xim+set}" = set; then
1972 withval=$with_xim;
1976 # Check whether --with-carbon was given.
1977 if test "${with_carbon+set}" = set; then
1978 withval=$with_carbon;
1981 # Check whether --enable-carbon-app was given.
1982 if test "${enable_carbon_app+set}" = set; then
1983 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1987 # Check whether --enable-asserts was given.
1988 if test "${enable_asserts+set}" = set; then
1989 enableval=$enable_asserts; USE_XASSERTS=$enableval
1990 else
1991 USE_XASSERTS=no
1995 # Check whether --enable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1998 else
1999 USE_MAINTAINER_MODE=no
2002 if test $USE_MAINTAINER_MODE = yes; then
2003 MAINT=
2004 else
2005 MAINT=#
2009 # Check whether --enable-locallisppath was given.
2010 if test "${enable_locallisppath+set}" = set; then
2011 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2012 locallisppath=
2013 elif test "${enableval}" != "yes"; then
2014 locallisppath=${enableval}
2019 #### Make srcdir absolute, if it isn't already. It's important to
2020 #### avoid running the path through pwd unnecessarily, since pwd can
2021 #### give you automounter prefixes, which can go away. We do all this
2022 #### so Emacs can find its files when run uninstalled.
2023 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2024 unset CDPATH
2025 case "${srcdir}" in
2026 /* ) ;;
2028 ## We may be able to use the $PWD environment variable to make this
2029 ## absolute. But sometimes PWD is inaccurate.
2030 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2031 ## but that tested only for a well-formed and valid PWD,
2032 ## it did not object when PWD was well-formed and valid but just wrong.
2033 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2034 then
2035 srcdir="$PWD"
2036 else
2037 srcdir="`(cd ${srcdir}; pwd)`"
2040 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2041 esac
2043 #### Check if the source directory already has a configured system in it.
2044 if test `pwd` != `(cd ${srcdir} && pwd)` \
2045 && test -f "${srcdir}/src/config.h" ; then
2046 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&5
2052 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2053 as a build directory right now; it has been configured in its own
2054 right. To configure in another directory as well, you MUST
2055 use GNU make. If you do not have GNU make, then you must
2056 now do \`make distclean' in ${srcdir},
2057 and then run $0 again." >&2;}
2060 #### Given the configuration name, set machfile and opsysfile to the
2061 #### names of the m/*.h and s/*.h files we should use.
2063 ### Canonicalize the configuration name.
2065 ac_aux_dir=
2066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067 if test -f "$ac_dir/install-sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 break
2071 elif test -f "$ac_dir/install.sh"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 break
2075 elif test -f "$ac_dir/shtool"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 break
2080 done
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149 else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 canonical=$host
2180 configuration=${host_alias-$host}
2184 ### If you add support for a new configuration, add code to this
2185 ### switch statement to recognize your configuration name and select
2186 ### the appropriate operating system and machine description files.
2188 ### You would hope that you could choose an m/*.h file pretty much
2189 ### based on the machine portion of the configuration name, and an s-
2190 ### file based on the operating system portion. However, it turns out
2191 ### that each m/*.h file is pretty manufacturer-specific - for
2192 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2193 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2194 ### machines. So we basically have to have a special case for each
2195 ### configuration name.
2197 ### As far as handling version numbers on operating systems is
2198 ### concerned, make sure things will fail in a fixable way. If
2199 ### /etc/MACHINES doesn't say anything about version numbers, be
2200 ### prepared to handle anything reasonably. If version numbers
2201 ### matter, be sure /etc/MACHINES says something about it.
2203 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2204 ### "System V Release 4"; he writes, "The old convention encouraged
2205 ### confusion between `system' and `release' levels'."
2207 machine='' opsys='' unported=no
2208 case "${canonical}" in
2210 ## FreeBSD ports
2211 *-*-freebsd* )
2212 opsys=freebsd
2213 case "${canonical}" in
2214 alpha*-*-freebsd*) machine=alpha ;;
2215 ia64-*-freebsd*) machine=ia64 ;;
2216 sparc64-*-freebsd*) machine=sparc ;;
2217 powerpc-*-freebsd*) machine=macppc ;;
2218 i[3456]86-*-freebsd*) machine=intel386 ;;
2219 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2220 esac
2223 ## NetBSD ports
2224 *-*-netbsd* )
2225 opsys=netbsd
2226 if test -f /usr/lib/crti.o; then
2228 cat >>confdefs.h <<\_ACEOF
2229 #define HAVE_CRTIN
2230 _ACEOF
2234 case "${canonical}" in
2235 alpha*-*-netbsd*) machine=alpha ;;
2236 i[3456]86-*-netbsd*) machine=intel386 ;;
2237 m68k-*-netbsd*)
2238 # This is somewhat bogus.
2239 machine=hp9000s300 ;;
2240 mips-*-netbsd*) machine=pmax ;;
2241 mipsel-*-netbsd*) machine=pmax ;;
2242 mipseb-*-netbsd*) machine=pmax ;;
2243 ns32k-*-netbsd*) machine=ns32000 ;;
2244 powerpc-*-netbsd*) machine=macppc ;;
2245 sparc*-*-netbsd*) machine=sparc ;;
2246 vax-*-netbsd*) machine=vax ;;
2247 arm-*-netbsd*) machine=arm ;;
2248 x86_64-*-netbsd*) machine=amdx86-64 ;;
2249 hppa-*-netbsd*) machine=hp800 ;;
2250 shle-*-netbsd*) machine=sh3el ;;
2251 esac
2254 ## OpenBSD ports
2255 *-*-openbsd* )
2256 opsys=openbsd
2257 case "${canonical}" in
2258 alpha*-*-openbsd*) machine=alpha ;;
2259 arm-*-openbsd*) machine=arm ;;
2260 hppa-*-openbsd*) machine=hp9000s300 ;;
2261 i386-*-openbsd*) machine=intel386 ;;
2262 m68k-*-openbsd*) machine=hp9000s300 ;;
2263 m88k-*-openbsd*) machine=aviion ;;
2264 mips64-*-openbsd*) machine=mips64 ;;
2265 powerpc-*-openbsd*) machine=macppc ;;
2266 sh-*-openbsd*) machine=sh3el ;;
2267 sparc*-*-openbsd*) machine=sparc ;;
2268 vax-*-openbsd*) machine=vax ;;
2269 x86_64-*-openbsd*) machine=amdx86-64 ;;
2270 esac
2273 ## LynxOS ports
2274 *-*-lynxos* )
2275 opsys=lynxos
2276 case "${canonical}" in
2277 i[3456]86-*-lynxos*) machine=intel386 ;;
2278 powerpc-*-lynxos*) machine=powerpc ;;
2279 esac
2282 ## Acorn RISCiX:
2283 arm-acorn-riscix1.1* )
2284 machine=acorn opsys=riscix1-1
2286 arm-acorn-riscix1.2* | arm-acorn-riscix )
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine=acorn opsys=riscix12
2292 ## BSDI ports
2293 *-*-bsdi* )
2294 opsys=bsdi
2295 case "${canonical}" in
2296 i[345]86-*-bsdi*) machine=intel386 ;;
2297 sparc-*-bsdi*) machine=sparc ;;
2298 powerpc-*-bsdi*) machine=macppc ;;
2299 esac
2300 case "${canonical}" in
2301 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2302 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2303 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2304 *-*-bsdi3* ) opsys=bsdos3 ;;
2305 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2306 esac
2309 ## Alliant machines
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2315 fx80-alliant-* )
2316 machine=alliant4 opsys=bsd4-2
2318 i860-alliant-* )
2319 machine=alliant-2800 opsys=bsd4-3
2322 ## Alpha (DEC) machines.
2323 alpha*-dec-osf* )
2324 machine=alpha opsys=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP=/usr/bin/cpp
2333 case "${canonical}" in
2334 alpha*-dec-osf[5-9]*)
2335 opsys=osf5-0 ;;
2336 esac
2339 alpha*-*-linux-gnu* )
2340 machine=alpha opsys=gnu-linux
2343 arm*-*-linux-gnu* )
2344 machine=arm opsys=gnu-linux
2347 ## Altos 3068
2348 m68*-altos-sysv* )
2349 machine=altos opsys=usg5-2
2352 ## Amdahl UTS
2353 580-amdahl-sysv* )
2354 machine=amdahl opsys=usg5-2-2
2357 ## Apollo, Domain/OS
2358 m68*-apollo-* )
2359 machine=apollo opsys=bsd4-3
2362 ## Apple Darwin / Mac OS X
2363 *-apple-darwin* )
2364 case "${canonical}" in
2365 i[3456]86-* ) machine=intel386 ;;
2366 powerpc-* ) machine=powermac ;;
2367 * ) unported=yes ;;
2368 esac
2369 opsys=darwin
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw/include && test -d /sw/lib; then
2374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 we32k-att-sysv* )
2382 machine=att3b opsys=usg5-2-2
2385 ## AT&T 3b1 - The Mighty Unix PC!
2386 m68*-att-sysv* )
2387 machine=7300 opsys=usg5-2-2
2390 ## Bull dpx20
2391 rs6000-bull-bosx* )
2392 machine=ibmrs6000 opsys=aix3-2
2395 ## Bull dpx2
2396 m68*-bull-sysv3* )
2397 machine=dpx2 opsys=usg5-3
2400 ## Bull sps7
2401 m68*-bull-sysv2* )
2402 machine=sps7 opsys=usg5-2
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2407 ## Celerity
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd* )
2412 machine=celerity opsys=bsd4-2
2415 ## Clipper
2416 ## What operating systems does this chip run that Emacs has been
2417 ## tested on?
2418 clipper-* )
2419 machine=clipper
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2424 ## Compaq Nonstop
2425 mips-compaq-nonstopux* )
2426 machine=nonstopux opsys=nonstopux
2429 ## Convex
2430 *-convex-bsd* | *-convex-convexos* )
2431 machine=convex opsys=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP="cc -E -P"
2436 ## Cubix QBx/386
2437 i[3456]86-cubix-sysv* )
2438 machine=intel386 opsys=usg5-3
2441 ## Cydra 5
2442 cydra*-cydrome-sysv* )
2443 machine=cydra5 opsys=usg5-3
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2453 machine=aviion opsys=dgux4
2455 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine=aviion opsys=dgux5-4-3
2460 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2461 machine=aviion opsys=dgux5-4r2
2463 m88k-dg-dgux* )
2464 machine=aviion opsys=dgux
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i[345]86-dg-dguxR4* )
2471 machine=aviion-intel opsys=dgux4
2474 ## DECstations
2475 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2476 machine=pmax opsys=bsd4-2
2478 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2479 machine=pmax opsys=bsd4-3
2481 mips-dec-ultrix* )
2482 machine=pmax opsys=ultrix4-3
2484 mips-dec-osf* )
2485 machine=pmax opsys=osf1
2487 mips-dec-mach_bsd4.3* )
2488 machine=pmax opsys=mach-bsd4-3
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv* | m68000-motorola-sysv* )
2493 machine=delta opsys=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2495 then
2496 if test -s /etc/167config
2497 then CC="gnucc -m68040"
2498 else CC="gnucc -m68881"
2500 else
2501 if test -z "`type gcc | grep 'not found'`"
2502 then CC=gcc
2503 else CC=cc
2507 m88k-motorola-sysv4* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine=delta88k opsys=usg5-4-2
2514 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2515 machine=delta88k opsys=usg5-3
2518 ## Dual machines
2519 m68*-dual-sysv* )
2520 machine=dual opsys=usg5-2
2522 m68*-dual-uniplus* )
2523 machine=dual opsys=unipl5-2
2526 ## Elxsi 6400
2527 elxsi-elxsi-sysv* )
2528 machine=elxsi opsys=usg5-2
2531 ## Encore machines
2532 ns16k-encore-bsd* )
2533 machine=ns16000 opsys=umax
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2539 ## Gould Power Node and NP1
2540 pn-gould-bsd4.2* )
2541 machine=gould opsys=bsd4-2
2543 pn-gould-bsd4.3* )
2544 machine=gould opsys=bsd4-3
2546 np1-gould-bsd* )
2547 machine=gould-np1 opsys=bsd4-3
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2552 m88k-harris-cxux* )
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2556 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2557 esac
2558 NON_GNU_CPP="/lib/cpp"
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 m68k-harris-cxux* )
2562 machine=nh3000 opsys=cxux
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix )
2566 machine=nh6000 opsys=powerunix
2567 NON_GNU_CPP="cc -Xo -E -P"
2569 ## SR2001/SR2201 running HI-UX/MPP
2570 hppa1.1-hitachi-hiuxmpp* )
2571 machine=sr2k opsys=hiuxmpp
2573 hppa1.1-hitachi-hiuxwe2* )
2574 machine=sr2k opsys=hiuxwe2
2576 ## Honeywell XPS100
2577 xps*-honeywell-sysv* )
2578 machine=xps100 opsys=usg5-2
2581 ## HP 9000 series 200 or 300
2582 m68*-hp-bsd* )
2583 machine=hp9000s300 opsys=bsd4-3
2585 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2586 m68*-hp-hpux* )
2587 case "`uname -r`" in
2588 ## Someone's system reports A.B8.05 for this.
2589 ## I wonder what other possibilities there are.
2590 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2591 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2592 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2593 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2594 *) machine=hp9000s300 opsys=hpux ;;
2595 esac
2598 ## HP 9000 series 700 and 800, running HP/UX
2599 hppa*-hp-hpux7* )
2600 machine=hp800 opsys=hpux
2602 hppa*-hp-hpux8* )
2603 machine=hp800 opsys=hpux8
2605 hppa*-hp-hpux9shr* )
2606 machine=hp800 opsys=hpux9shr
2608 hppa*-hp-hpux9* )
2609 machine=hp800 opsys=hpux9
2611 hppa*-hp-hpux10.2* )
2612 machine=hp800 opsys=hpux10-20
2614 hppa*-hp-hpux10* )
2615 machine=hp800 opsys=hpux10
2617 hppa*-hp-hpux1[1-9]* )
2618 machine=hp800 opsys=hpux11
2619 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2622 hppa*-*-linux-gnu* )
2623 machine=hp800 opsys=gnu-linux
2626 ## HP 9000 series 700 and 800, running HP/UX
2627 hppa*-hp-hpux* )
2628 ## Cross-compilation? Nah!
2629 case "`uname -r`" in
2630 ## Someone's system reports A.B8.05 for this.
2631 ## I wonder what other possibilities there are.
2632 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2633 *.08.* ) machine=hp800 opsys=hpux8 ;;
2634 *.09.* ) machine=hp800 opsys=hpux9 ;;
2635 *) machine=hp800 opsys=hpux10 ;;
2636 esac
2638 hppa*-*-nextstep* )
2639 machine=hp800 opsys=nextstep
2642 ## Orion machines
2643 orion-orion-bsd* )
2644 machine=orion opsys=bsd4-2
2646 clipper-orion-bsd* )
2647 machine=orion105 opsys=bsd4-2
2650 ## IBM machines
2651 i[3456]86-ibm-aix1.1* )
2652 machine=ibmps2-aix opsys=usg5-2-2
2654 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2655 machine=ibmps2-aix opsys=usg5-3
2657 i370-ibm-aix*)
2658 machine=ibm370aix opsys=usg5-3
2660 s390-*-linux-gnu* )
2661 machine=ibms390 opsys=gnu-linux
2663 s390x-*-linux-gnu* )
2664 machine=ibms390x opsys=gnu-linux
2666 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2667 machine=ibmrs6000 opsys=aix3-1
2669 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2670 machine=ibmrs6000 opsys=aix3-2-5
2672 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2673 machine=ibmrs6000 opsys=aix4-1
2675 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2676 machine=ibmrs6000 opsys=aix4-2
2678 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2679 machine=ibmrs6000 opsys=aix4-2
2681 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2682 machine=ibmrs6000 opsys=aix4-2
2684 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2685 machine=ibmrs6000 opsys=aix4
2687 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2688 machine=ibmrs6000 opsys=aix4-1
2690 rs6000-ibm-aix* | powerpc-ibm-aix* )
2691 machine=ibmrs6000 opsys=aix3-2
2693 romp-ibm-bsd4.3* )
2694 machine=ibmrt opsys=bsd4-3
2696 romp-ibm-bsd4.2* )
2697 machine=ibmrt opsys=bsd4-2
2699 romp-ibm-aos4.3* )
2700 machine=ibmrt opsys=bsd4-3
2702 romp-ibm-aos4.2* )
2703 machine=ibmrt opsys=bsd4-2
2705 romp-ibm-aos* )
2706 machine=ibmrt opsys=bsd4-3
2708 romp-ibm-bsd* )
2709 machine=ibmrt opsys=bsd4-3
2711 romp-ibm-aix* )
2712 machine=ibmrt-aix opsys=usg5-2-2
2715 ## Integrated Solutions `Optimum V'
2716 m68*-isi-bsd4.2* )
2717 machine=isi-ov opsys=bsd4-2
2719 m68*-isi-bsd4.3* )
2720 machine=isi-ov opsys=bsd4-3
2723 ## Intel 386 machines where we do care about the manufacturer
2724 i[3456]86-intsys-sysv* )
2725 machine=is386 opsys=usg5-2-2
2728 ## Prime EXL
2729 i[3456]86-prime-sysv* )
2730 machine=i386 opsys=usg5-3
2733 ## Sequent Symmetry running Dynix
2734 i[3456]86-sequent-bsd* )
2735 machine=symmetry opsys=bsd4-3
2738 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2739 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2740 machine=sequent-ptx opsys=ptx4
2741 NON_GNU_CPP=/lib/cpp
2744 ## Sequent Symmetry running DYNIX/ptx
2745 ## Use the old cpp rather than the newer ANSI one.
2746 i[3456]86-sequent-ptx* )
2747 machine=sequent-ptx opsys=ptx
2748 NON_GNU_CPP="/lib/cpp"
2751 ## ncr machine running svr4.3.
2752 i[3456]86-ncr-sysv4.3 )
2753 machine=ncr386 opsys=usg5-4-3
2756 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2757 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2758 i[3456]86-ncr-sysv* )
2759 machine=ncr386 opsys=usg5-4-2
2762 ## Intel Paragon OSF/1
2763 i860-intel-osf1* )
2764 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2767 ## Intel 860
2768 i860-*-sysv4* )
2769 machine=i860 opsys=usg5-4
2770 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2771 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2774 ## Macintosh PowerPC
2775 powerpc*-*-linux-gnu* )
2776 machine=macppc opsys=gnu-linux
2779 ## Masscomp machines
2780 m68*-masscomp-rtu* )
2781 machine=masscomp opsys=rtu
2784 ## Megatest machines
2785 m68*-megatest-bsd* )
2786 machine=mega68 opsys=bsd4-2
2789 ## Workstations sold by MIPS
2790 ## This is not necessarily all workstations using the MIPS processor -
2791 ## Irises are produced by SGI, and DECstations by DEC.
2793 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2794 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2795 ## it gives for choosing between the alternatives seems to be "Use
2796 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2797 ## the BSD world." I'll assume that these are instructions for
2798 ## handling two odd situations, and that every other situation
2799 ## should use mips.h and usg5-2-2, they being listed first.
2800 mips-mips-usg* )
2801 machine=mips4
2802 ## Fall through to the general code at the bottom to decide on the OS.
2804 mips-mips-riscos4* )
2805 machine=mips4 opsys=bsd4-3
2806 NON_GNU_CC="cc -systype bsd43"
2807 NON_GNU_CPP="cc -systype bsd43 -E"
2809 mips-mips-riscos5* )
2810 machine=mips4 opsys=riscos5
2811 NON_GNU_CC="cc -systype bsd43"
2812 NON_GNU_CPP="cc -systype bsd43 -E"
2814 mips-mips-bsd* )
2815 machine=mips opsys=bsd4-3
2817 mips-mips-* )
2818 machine=mips opsys=usg5-2-2
2821 ## NeXT
2822 m68*-next-* | m68k-*-nextstep* )
2823 machine=m68k opsys=nextstep
2826 ## The complete machine from National Semiconductor
2827 ns32k-ns-genix* )
2828 machine=ns32000 opsys=usg5-2
2831 ## NCR machines
2832 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2833 machine=tower32 opsys=usg5-2-2
2835 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2836 machine=tower32v3 opsys=usg5-3
2839 ## NEC EWS4800
2840 mips-nec-sysv4*)
2841 machine=ews4800 opsys=ux4800
2844 ## Nixdorf Targon 31
2845 m68*-nixdorf-sysv* )
2846 machine=targon31 opsys=usg5-2-2
2849 ## Nu (TI or LMI)
2850 m68*-nu-sysv* )
2851 machine=nu opsys=usg5-2
2854 ## Plexus
2855 m68*-plexus-sysv* )
2856 machine=plexus opsys=usg5-2
2859 ## Pyramid machines
2860 ## I don't really have any idea what sort of processor the Pyramid has,
2861 ## so I'm assuming it is its own architecture.
2862 pyramid-pyramid-bsd* )
2863 machine=pyramid opsys=bsd4-2
2866 ## Sequent Balance
2867 ns32k-sequent-bsd4.2* )
2868 machine=sequent opsys=bsd4-2
2870 ns32k-sequent-bsd4.3* )
2871 machine=sequent opsys=bsd4-3
2874 ## Siemens Nixdorf
2875 mips-siemens-sysv* | mips-sni-sysv*)
2876 machine=mips-siemens opsys=usg5-4
2877 NON_GNU_CC=/usr/ccs/bin/cc
2878 NON_GNU_CPP=/usr/ccs/lib/cpp
2881 ## Silicon Graphics machines
2882 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2883 m68*-sgi-iris3.5* )
2884 machine=irist opsys=iris3-5
2886 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2887 machine=irist opsys=iris3-6
2889 ## Iris 4D
2890 mips-sgi-irix3* )
2891 machine=iris4d opsys=irix3-3
2893 mips-sgi-irix4* )
2894 machine=iris4d opsys=irix4-0
2896 mips-sgi-irix6.5 )
2897 machine=iris4d opsys=irix6-5
2898 # Without defining _LANGUAGE_C, things get masked out in the headers
2899 # so that, for instance, grepping for `free' in stdlib.h fails and
2900 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2904 mips-sgi-irix6* )
2905 machine=iris4d opsys=irix6-0
2906 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2907 # but presumably it does no harm.
2908 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2909 # -32 probably isn't necessary in later v.6s -- anyone know which?
2910 NON_GCC_TEST_OPTIONS=-32
2912 mips-sgi-irix5.[01]* )
2913 machine=iris4d opsys=irix5-0
2915 mips-sgi-irix5* | mips-sgi-irix* )
2916 machine=iris4d opsys=irix5-2
2919 ## SONY machines
2920 m68*-sony-bsd4.2* )
2921 machine=news opsys=bsd4-2
2923 m68*-sony-bsd4.3* )
2924 machine=news opsys=bsd4-3
2926 m68*-sony-newsos3* | m68*-sony-news3*)
2927 machine=news opsys=bsd4-3
2929 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2930 machine=news-risc opsys=bsd4-3
2932 mips-sony-newsos6* )
2933 machine=news-r6 opsys=newsos6
2935 mips-sony-news* )
2936 machine=news-risc opsys=newsos5
2939 ## Stride
2940 m68*-stride-sysv* )
2941 machine=stride opsys=usg5-2
2944 ## Suns
2945 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2946 machine=sparc opsys=gnu-linux
2949 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2950 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2951 | rs6000-*-solaris2*)
2952 case "${canonical}" in
2953 m68*-sunos1* ) machine=sun1 ;;
2954 m68*-sunos2* ) machine=sun2 ;;
2955 m68* ) machine=sun3 ;;
2956 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2957 i[3456]86-*-* ) machine=intel386 ;;
2958 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2959 powerpcle* ) machine=powerpcle ;;
2960 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2961 sparc* ) machine=sparc ;;
2962 * ) unported=yes ;;
2963 esac
2964 case "${canonical}" in
2965 ## The Sun386 didn't get past 4.0.
2966 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2967 *-sunos4.0* ) opsys=sunos4-0 ;;
2968 *-sunos4.1.[3-9]*noshare )
2969 ## This name is sunos413 instead of sunos4-1-3
2970 ## to avoid a file name conflict on MSDOS.
2971 opsys=sunos413
2972 NON_GNU_CPP=/usr/lib/cpp
2973 NON_GCC_TEST_OPTIONS=-Bstatic
2974 GCC_TEST_OPTIONS=-static
2976 *-sunos4.1.[3-9]* | *-sunos4shr*)
2977 opsys=sunos4shr
2978 NON_GNU_CPP=/usr/lib/cpp
2980 *-sunos4* | *-sunos )
2981 opsys=sunos4-1
2982 NON_GCC_TEST_OPTIONS=-Bstatic
2983 GCC_TEST_OPTIONS=-static
2985 *-sunos5.3* | *-solaris2.3* )
2986 opsys=sol2-3
2987 NON_GNU_CPP=/usr/ccs/lib/cpp
2989 *-sunos5.4* | *-solaris2.4* )
2990 opsys=sol2-4
2991 NON_GNU_CPP=/usr/ccs/lib/cpp
2992 RANLIB="ar -ts"
2994 *-sunos5.5* | *-solaris2.5* )
2995 opsys=sol2-5
2996 NON_GNU_CPP=/usr/ccs/lib/cpp
2997 RANLIB="ar -ts"
2999 *-sunos5.6* | *-solaris2.6* )
3000 opsys=sol2-6
3001 NON_GNU_CPP=/usr/ccs/lib/cpp
3002 RANLIB="ar -ts"
3004 *-sunos5* | *-solaris* )
3005 opsys=sol2-6
3006 ## FIXME: make this into a proper fix that checks the compiler type,
3007 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3008 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3009 ## -Xs prevents spurious whitespace.
3010 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3011 else
3012 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 * ) opsys=bsd4-2 ;;
3016 esac
3017 ## Watch out for a compiler that we know will not work.
3018 case "${canonical}" in
3019 *-solaris* | *-sunos5* )
3020 if [ "x$CC" = x/usr/ucb/cc ]; then
3021 ## /usr/ucb/cc doesn't work;
3022 ## we should find some other compiler that does work.
3023 unset CC
3026 *) ;;
3027 esac
3029 sparc-*-nextstep* )
3030 machine=sparc opsys=nextstep
3033 ## Tadpole 68k
3034 m68*-tadpole-sysv* )
3035 machine=tad68k opsys=usg5-3
3038 ## Tahoe machines
3039 tahoe-tahoe-bsd4.2* )
3040 machine=tahoe opsys=bsd4-2
3042 tahoe-tahoe-bsd4.3* )
3043 machine=tahoe opsys=bsd4-3
3046 ## Tandem Integrity S2
3047 mips-tandem-sysv* )
3048 machine=tandem-s2 opsys=usg5-3
3051 ## Tektronix XD88
3052 m88k-tektronix-sysv3* )
3053 machine=tekxd88 opsys=usg5-3
3056 ## Tektronix 16000 box (6130?)
3057 ns16k-tektronix-bsd* )
3058 machine=ns16000 opsys=bsd4-2
3060 ## Tektronix 4300
3061 ## src/m/tek4300.h hints that this is a m68k machine.
3062 m68*-tektronix-bsd* )
3063 machine=tek4300 opsys=bsd4-3
3066 ## Titan P2 or P3
3067 ## We seem to have lost the machine-description file titan.h!
3068 titan-titan-sysv* )
3069 machine=titan opsys=usg5-3
3072 ## Ustation E30 (SS5E)
3073 m68*-unisys-uniplus* )
3074 machine=ustation opsystem=unipl5-2
3077 ## Vaxen.
3078 vax-dec-* )
3079 machine=vax
3080 case "${canonical}" in
3081 *-bsd4.1* ) opsys=bsd4-1 ;;
3082 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3083 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3084 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3085 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3086 *-vms* ) opsys=vms ;;
3087 * ) unported=yes
3088 esac
3091 ## Whitechapel MG1
3092 ns16k-whitechapel-* )
3093 machine=mg1
3094 ## We don't know what sort of OS runs on these; we'll let the
3095 ## operating system guessing code below try.
3098 ## Wicat
3099 m68*-wicat-sysv* )
3100 machine=wicat opsys=usg5-2
3103 ## IA-64
3104 ia64*-*-linux* )
3105 machine=ia64 opsys=gnu-linux
3108 ## Intel 386 machines where we don't care about the manufacturer
3109 i[3456]86-*-* )
3110 machine=intel386
3111 case "${canonical}" in
3112 *-cygwin ) opsys=cygwin ;;
3113 *-darwin* ) opsys=darwin
3114 CPP="${CC-cc} -E -no-cpp-precomp"
3116 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3117 *-isc2.2* ) opsys=isc2-2 ;;
3118 *-isc4.0* ) opsys=isc4-0 ;;
3119 *-isc4.* ) opsys=isc4-1
3120 GCC_TEST_OPTIONS=-posix
3121 NON_GCC_TEST_OPTIONS=-Xp
3123 *-isc* ) opsys=isc3-0 ;;
3124 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3125 *-esix* ) opsys=esix ;;
3126 *-xenix* ) opsys=xenix ;;
3127 *-linux-gnu* ) opsys=gnu-linux ;;
3128 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3129 *-sco3.2v5* ) opsys=sco5
3130 NON_GNU_CPP=/lib/cpp
3131 # Prevent -belf from being passed to $CPP.
3132 # /lib/cpp does not accept it.
3133 OVERRIDE_CPPFLAGS=" "
3135 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3136 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3137 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3138 *-386bsd* ) opsys=386bsd ;;
3139 *-nextstep* ) opsys=nextstep ;;
3140 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3141 esac
3144 ## m68k Linux-based GNU system
3145 m68k-*-linux-gnu* )
3146 machine=m68k opsys=gnu-linux
3149 ## Mips Linux-based GNU system
3150 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3151 machine=mips opsys=gnu-linux
3154 ## UXP/DS
3155 sparc-fujitsu-sysv4* )
3156 machine=sparc opsys=uxpds
3157 NON_GNU_CPP=/usr/ccs/lib/cpp
3158 RANLIB="ar -ts"
3161 ## UXP/V
3162 f301-fujitsu-uxpv4.1)
3163 machine=f301 opsys=uxpv
3166 ## AMD x86-64 Linux-based GNU system
3167 x86_64-*-linux-gnu* )
3168 machine=amdx86-64 opsys=gnu-linux
3171 ## Tensilica Xtensa Linux-based GNU system
3172 xtensa-*-linux-gnu* )
3173 machine=xtensa opsys=gnu-linux
3177 unported=yes
3179 esac
3181 ### If the code above didn't choose an operating system, just choose
3182 ### an operating system based on the configuration name. You really
3183 ### only want to use this when you have no idea what the right
3184 ### operating system is; if you know what operating systems a machine
3185 ### runs, it's cleaner to make it explicit in the case statement
3186 ### above.
3187 if test x"${opsys}" = x; then
3188 case "${canonical}" in
3189 *-gnu* ) opsys=gnu ;;
3190 *-bsd4.[01] ) opsys=bsd4-1 ;;
3191 *-bsd4.2 ) opsys=bsd4-2 ;;
3192 *-bsd4.3 ) opsys=bsd4-3 ;;
3193 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3194 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3195 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3196 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3197 *-sysv4.2uw* ) opsys=unixware ;;
3198 *-sysv5uw* ) opsys=unixware ;;
3199 *-sysv5OpenUNIX* ) opsys=unixware ;;
3200 *-sysv4.1* | *-sysvr4.1* )
3201 NON_GNU_CPP=/usr/lib/cpp
3202 opsys=usg5-4 ;;
3203 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3204 if [ x$NON_GNU_CPP = x ]; then
3205 if [ -f /usr/ccs/lib/cpp ]; then
3206 NON_GNU_CPP=/usr/ccs/lib/cpp
3207 else
3208 NON_GNU_CPP=/lib/cpp
3211 opsys=usg5-4-2 ;;
3212 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3214 unported=yes
3216 esac
3221 if test $unported = yes; then
3222 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3223 Check \`etc/MACHINES' for recognized configuration names." >&5
3224 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3225 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3226 { (exit 1); exit 1; }; }
3229 machfile="m/${machine}.h"
3230 opsysfile="s/${opsys}.h"
3233 #### Choose a compiler.
3234 test -n "$CC" && cc_specified=yes
3236 # Save the value of CFLAGS that the user specified.
3237 SPECIFIED_CFLAGS="$CFLAGS"
3239 case ${with_gcc} in
3240 "yes" ) CC="gcc" GCC=yes ;;
3241 "no" ) : ${CC=cc} ;;
3243 esac
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3271 done
3272 done
3273 IFS=$as_save_IFS
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3281 else
3282 { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3288 if test -z "$ac_cv_prog_CC"; then
3289 ac_ct_CC=$CC
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291 set dummy gcc; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_ac_ct_CC="gcc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6; }
3321 else
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3326 if test "x$ac_ct_CC" = x; then
3327 CC=""
3328 else
3329 case $cross_compiling:$ac_tool_warned in
3330 yes:)
3331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3332 whose name does not start with the host triplet. If you think this
3333 configuration is useful to you, please write to autoconf@gnu.org." >&5
3334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3335 whose name does not start with the host triplet. If you think this
3336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3341 else
3342 CC="$ac_cv_prog_CC"
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CC="${ac_tool_prefix}cc"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3368 done
3369 done
3370 IFS=$as_save_IFS
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3378 else
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 ac_prog_rejected=no
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected=yes
3407 continue
3409 ac_cv_prog_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3420 shift
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3425 shift
3426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { echo "$as_me:$LINENO: result: $CC" >&5
3434 echo "${ECHO_T}$CC" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog in cl.exe
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3467 done
3468 done
3469 IFS=$as_save_IFS
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3477 else
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3483 test -n "$CC" && break
3484 done
3486 if test -z "$CC"; then
3487 ac_ct_CC=$CC
3488 for ac_prog in cl.exe
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC="$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3520 echo "${ECHO_T}$ac_ct_CC" >&6; }
3521 else
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3527 test -n "$ac_ct_CC" && break
3528 done
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&5
3538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3539 whose name does not start with the host triplet. If you think this
3540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." >&5
3552 echo "$as_me: error: no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3556 # Provide some information about the compiler.
3557 echo "$as_me:$LINENO: checking for C compiler version" >&5
3558 ac_compiler=`set X $ac_compile; echo $2`
3559 { (ac_try="$ac_compiler --version >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compiler --version >&5") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try="$ac_compiler -v >&5"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -v >&5") 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579 { (ac_try="$ac_compiler -V >&5"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler -V >&5") 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3598 main ()
3602 return 0;
3604 _ACEOF
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3609 # of exeext.
3610 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3611 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3612 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3614 # List of possible output files, starting from the most likely.
3615 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3616 # only as a last resort. b.out is created by i960 compilers.
3617 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3619 # The IRIX 6 linker writes into existing files which may not be
3620 # executable, retaining their permissions. Remove them first so a
3621 # subsequent execution test works.
3622 ac_rmfiles=
3623 for ac_file in $ac_files
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3628 esac
3629 done
3630 rm -f $ac_rmfiles
3632 if { (ac_try="$ac_link_default"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_link_default") 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3645 # so that the user can short-circuit this test for compilers unknown to
3646 # Autoconf.
3647 for ac_file in $ac_files ''
3649 test -f "$ac_file" || continue
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3653 [ab].out )
3654 # We found the default executable, but exeext='' is most
3655 # certainly right.
3656 break;;
3657 *.* )
3658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3659 then :; else
3660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 # We set ac_cv_exeext here because the later test for it is not
3663 # safe: cross compilers may not add the suffix if given an `-o'
3664 # argument, so we may need to know it at that point already.
3665 # Even if this section looks crufty: it has the advantage of
3666 # actually working.
3667 break;;
3669 break;;
3670 esac
3671 done
3672 test "$ac_cv_exeext" = no && ac_cv_exeext=
3674 else
3675 ac_file=''
3678 { echo "$as_me:$LINENO: result: $ac_file" >&5
3679 echo "${ECHO_T}$ac_file" >&6; }
3680 if test -z "$ac_file"; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C compiler cannot create executables
3687 See \`config.log' for more details." >&2;}
3688 { (exit 77); exit 77; }; }
3691 ac_exeext=$ac_cv_exeext
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3696 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3697 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3698 # If not cross compiling, check that we can run a simple program.
3699 if test "$cross_compiling" != yes; then
3700 if { ac_try='./$ac_file'
3701 { (case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 cross_compiling=no
3711 else
3712 if test "$cross_compiling" = maybe; then
3713 cross_compiling=yes
3714 else
3715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3716 If you meant to cross compile, use \`--host'.
3717 See \`config.log' for more details." >&5
3718 echo "$as_me: error: cannot run C compiled programs.
3719 If you meant to cross compile, use \`--host'.
3720 See \`config.log' for more details." >&2;}
3721 { (exit 1); exit 1; }; }
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3728 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3733 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3734 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3735 echo "${ECHO_T}$cross_compiling" >&6; }
3737 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3738 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3739 if { (ac_try="$ac_link"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; then
3749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3751 # work properly (i.e., refer to `conftest.exe'), while it won't with
3752 # `rm'.
3753 for ac_file in conftest.exe conftest conftest.*; do
3754 test -f "$ac_file" || continue
3755 case $ac_file in
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758 break;;
3759 * ) break;;
3760 esac
3761 done
3762 else
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3770 rm -f conftest$ac_cv_exeext
3771 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3772 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3774 rm -f conftest.$ac_ext
3775 EXEEXT=$ac_cv_exeext
3776 ac_exeext=$EXEEXT
3777 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3779 if test "${ac_cv_objext+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3790 main ()
3794 return 0;
3796 _ACEOF
3797 rm -f conftest.o conftest.obj
3798 if { (ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 for ac_file in conftest.o conftest.obj conftest.*; do
3809 test -f "$ac_file" || continue;
3810 case $ac_file in
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813 break;;
3814 esac
3815 done
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details." >&5
3822 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details." >&2;}
3824 { (exit 1); exit 1; }; }
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3830 echo "${ECHO_T}$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3832 ac_objext=$OBJEXT
3833 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3846 main ()
3848 #ifndef __GNUC__
3849 choke me
3850 #endif
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 ac_compiler_gnu=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_compiler_gnu=no
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3887 GCC=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CFLAGS=${CFLAGS+set}
3889 ac_save_CFLAGS=$CFLAGS
3890 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3891 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3892 if test "${ac_cv_prog_cc_g+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
3897 ac_cv_prog_cc_g=no
3898 CFLAGS="-g"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 ac_cv_prog_cc_g=yes
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 CFLAGS=""
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3945 main ()
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3975 CFLAGS="-g"
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 main ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_prog_cc_g=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4042 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4043 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <stdarg.h>
4056 #include <stdio.h>
4057 #include <sys/types.h>
4058 #include <sys/stat.h>
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4063 char **p;
4064 int i;
4066 return p[i];
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4070 char *s;
4071 va_list v;
4072 va_start (v,p);
4073 s = g (p, va_arg (v,int));
4074 va_end (v);
4075 return s;
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4089 #define FOO(x) 'x'
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096 int argc;
4097 char **argv;
4099 main ()
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4103 return 0;
4105 _ACEOF
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest.$ac_objext; then
4127 ac_cv_prog_cc_c89=$ac_arg
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f core conftest.err conftest.$ac_objext
4136 test "x$ac_cv_prog_cc_c89" != "xno" && break
4137 done
4138 rm -f conftest.$ac_ext
4139 CC=$ac_save_CC
4142 # AC_CACHE_VAL
4143 case "x$ac_cv_prog_cc_c89" in
4145 { echo "$as_me:$LINENO: result: none needed" >&5
4146 echo "${ECHO_T}none needed" >&6; } ;;
4147 xno)
4148 { echo "$as_me:$LINENO: result: unsupported" >&5
4149 echo "${ECHO_T}unsupported" >&6; } ;;
4151 CC="$CC $ac_cv_prog_cc_c89"
4152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4154 esac
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4166 CPP=
4169 #### Some systems specify a CPP to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4173 then
4174 CPP="$NON_GNU_CPP"
4177 #### Some systems specify a CC to use unless we are using GCC.
4178 #### Now that we know whether we are using GCC, we can decide whether
4179 #### to use that one.
4180 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4181 test x$cc_specified != xyes
4182 then
4183 CC="$NON_GNU_CC"
4186 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4187 then
4188 CC="$CC $GCC_TEST_OPTIONS"
4191 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4192 then
4193 CC="$CC $NON_GCC_TEST_OPTIONS"
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4204 # On Suns, sometimes $CPP names a directory.
4205 if test -n "$CPP" && test -d "$CPP"; then
4206 CPP=
4208 if test -z "$CPP"; then
4209 if test "${ac_cv_prog_CPP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 # Double quotes because CPP needs to be expanded
4213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215 ac_preproc_ok=false
4216 for ac_c_preproc_warn_flag in '' yes
4218 # Use a header file that comes with gcc, so configuring glibc
4219 # with a fresh cross-compiler works.
4220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221 # <limits.h> exists even on freestanding compilers.
4222 # On the NeXT, cc -E runs the code through the compiler's parser,
4223 # not just through cpp. "Syntax error" is here to catch this case.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235 Syntax error
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # Broken: fails on valid input.
4259 continue
4262 rm -f conftest.err conftest.$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
4273 _ACEOF
4274 if { (ac_try="$ac_cpp conftest.$ac_ext"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 }; then
4290 # Broken: success on invalid input.
4291 continue
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4301 rm -f conftest.err conftest.$ac_ext
4303 done
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then
4307 break
4310 done
4311 ac_cv_prog_CPP=$CPP
4314 CPP=$ac_cv_prog_CPP
4315 else
4316 ac_cv_prog_CPP=$CPP
4318 { echo "$as_me:$LINENO: result: $CPP" >&5
4319 echo "${ECHO_T}$CPP" >&6; }
4320 ac_preproc_ok=false
4321 for ac_c_preproc_warn_flag in '' yes
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340 Syntax error
4341 _ACEOF
4342 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 }; then
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Broken: fails on valid input.
4364 continue
4367 rm -f conftest.err conftest.$ac_ext
4369 # OK, works on sane cases. Now check whether nonexistent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 }; then
4395 # Broken: success on invalid input.
4396 continue
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4406 rm -f conftest.err conftest.$ac_ext
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4413 else
4414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details." >&5
4416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4429 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 # Extract the first word of "grep ggrep" to use in msg output
4434 if test -z "$GREP"; then
4435 set dummy grep ggrep; ac_prog_name=$2
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_path_GREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in grep ggrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4450 # Check for GNU ac_path_GREP and select it if it is found.
4451 # Check for GNU $ac_path_GREP
4452 case `"$ac_path_GREP" --version 2>&1` in
4453 *GNU*)
4454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456 ac_count=0
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4458 while :
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'GREP' >> "conftest.nl"
4464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 ac_count=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_GREP="$ac_path_GREP"
4470 ac_path_GREP_max=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4483 done
4484 IFS=$as_save_IFS
4489 GREP="$ac_cv_path_GREP"
4490 if test -z "$GREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4496 else
4497 ac_cv_path_GREP=$GREP
4502 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
4507 { echo "$as_me:$LINENO: checking for egrep" >&5
4508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513 then ac_cv_path_EGREP="$GREP -E"
4514 else
4515 # Extract the first word of "egrep" to use in msg output
4516 if test -z "$EGREP"; then
4517 set dummy egrep; ac_prog_name=$2
4518 if test "${ac_cv_path_EGREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4535 *GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 ac_count=0
4539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4540 while :
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 ac_count=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 esac
4561 $ac_path_EGREP_found && break 3
4562 done
4563 done
4565 done
4566 IFS=$as_save_IFS
4571 EGREP="$ac_cv_path_EGREP"
4572 if test -z "$EGREP"; then
4573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4574 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4575 { (exit 1); exit 1; }; }
4578 else
4579 ac_cv_path_EGREP=$EGREP
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4587 EGREP="$ac_cv_path_EGREP"
4591 { echo "$as_me:$LINENO: checking for AIX" >&5
4592 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #ifdef _AIX
4601 #endif
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "yes" >/dev/null 2>&1; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _ALL_SOURCE 1
4610 _ACEOF
4612 else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4616 rm -f conftest*
4620 cat >>confdefs.h <<\_ACEOF
4621 #define _GNU_SOURCE 1
4622 _ACEOF
4626 ### Use -Wno-pointer-sign if the compiler supports it
4627 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4628 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4629 SAVE_CFLAGS="$CFLAGS"
4630 CFLAGS="$CFLAGS -Wno-pointer-sign"
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4639 main ()
4643 return 0;
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (ac_try="$ac_compile"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4663 has_option=yes
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 has_option=no
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $has_option = yes; then
4673 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4675 { echo "$as_me:$LINENO: result: $has_option" >&5
4676 echo "${ECHO_T}$has_option" >&6; }
4677 CFLAGS="$SAVE_CFLAGS"
4678 unset has_option
4679 unset SAVE_CFLAGS
4681 #### Some other nice autoconf tests.
4683 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4685 LN_S=$as_ln_s
4686 if test "$LN_S" = "ln -s"; then
4687 { echo "$as_me:$LINENO: result: yes" >&5
4688 echo "${ECHO_T}yes" >&6; }
4689 else
4690 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691 echo "${ECHO_T}no, using $LN_S" >&6; }
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4701 # On Suns, sometimes $CPP names a directory.
4702 if test -n "$CPP" && test -d "$CPP"; then
4703 CPP=
4705 if test -z "$CPP"; then
4706 if test "${ac_cv_prog_CPP+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 # Double quotes because CPP needs to be expanded
4710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4712 ac_preproc_ok=false
4713 for ac_c_preproc_warn_flag in '' yes
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #ifdef __STDC__
4728 # include <limits.h>
4729 #else
4730 # include <assert.h>
4731 #endif
4732 Syntax error
4733 _ACEOF
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 }; then
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 # Broken: fails on valid input.
4756 continue
4759 rm -f conftest.err conftest.$ac_ext
4761 # OK, works on sane cases. Now check whether nonexistent headers
4762 # can be detected and how.
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4770 _ACEOF
4771 if { (ac_try="$ac_cpp conftest.$ac_ext"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 }; then
4787 # Broken: success on invalid input.
4788 continue
4789 else
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 # Passes both tests.
4794 ac_preproc_ok=:
4795 break
4798 rm -f conftest.err conftest.$ac_ext
4800 done
4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802 rm -f conftest.err conftest.$ac_ext
4803 if $ac_preproc_ok; then
4804 break
4807 done
4808 ac_cv_prog_CPP=$CPP
4811 CPP=$ac_cv_prog_CPP
4812 else
4813 ac_cv_prog_CPP=$CPP
4815 { echo "$as_me:$LINENO: result: $CPP" >&5
4816 echo "${ECHO_T}$CPP" >&6; }
4817 ac_preproc_ok=false
4818 for ac_c_preproc_warn_flag in '' yes
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #ifdef __STDC__
4833 # include <limits.h>
4834 #else
4835 # include <assert.h>
4836 #endif
4837 Syntax error
4838 _ACEOF
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 }; then
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 # Broken: fails on valid input.
4861 continue
4864 rm -f conftest.err conftest.$ac_ext
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4875 _ACEOF
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4903 rm -f conftest.err conftest.$ac_ext
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then
4910 else
4911 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&5
4913 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4930 # AIX /bin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 # Account for people who put trailing slashes in PATH elements.
4949 case $as_dir/ in
4950 ./ | .// | /cC/* | \
4951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4953 /usr/ucb/* ) ;;
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4957 # by default.
4958 for ac_prog in ginstall scoinst install; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961 if test $ac_prog = install &&
4962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4965 elif test $ac_prog = install &&
4966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4969 else
4970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4971 break 3
4974 done
4975 done
4977 esac
4978 done
4979 IFS=$as_save_IFS
4983 if test "${ac_cv_path_install+set}" = set; then
4984 INSTALL=$ac_cv_path_install
4985 else
4986 # As a last resort, use the slow shell script. Don't cache a
4987 # value for INSTALL within a source directory, because that will
4988 # break other packages using the cache if that directory is
4989 # removed, or if the value is a relative name.
4990 INSTALL=$ac_install_sh
4993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4994 echo "${ECHO_T}$INSTALL" >&6; }
4996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4997 # It thinks the first close brace ends the variable substitution.
4998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5004 if test "x$RANLIB" = x; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 if test -n "$RANLIB"; then
5014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 RANLIB=$ac_cv_prog_RANLIB
5034 if test -n "$RANLIB"; then
5035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5036 echo "${ECHO_T}$RANLIB" >&6; }
5037 else
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5044 if test -z "$ac_cv_prog_RANLIB"; then
5045 ac_ct_RANLIB=$RANLIB
5046 # Extract the first word of "ranlib", so it can be a program name with args.
5047 set dummy ranlib; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053 if test -n "$ac_ct_RANLIB"; then
5054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_RANLIB="ranlib"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5074 if test -n "$ac_ct_RANLIB"; then
5075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5077 else
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5082 if test "x$ac_ct_RANLIB" = x; then
5083 RANLIB=":"
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5088 whose name does not start with the host triplet. If you think this
5089 configuration is useful to you, please write to autoconf@gnu.org." >&5
5090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 RANLIB=$ac_ct_RANLIB
5097 else
5098 RANLIB="$ac_cv_prog_RANLIB"
5102 # Extract the first word of "install-info", so it can be a program name with args.
5103 set dummy install-info; ac_word=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 case $INSTALL_INFO in
5110 [\\/]* | ?:[\\/]*)
5111 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5130 esac
5132 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5133 if test -n "$INSTALL_INFO"; then
5134 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5135 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 # Extract the first word of "install-info", so it can be a program name with args.
5143 set dummy install-info; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 case $INSTALL_INFO in
5150 [\\/]* | ?:[\\/]*)
5151 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in /usr/sbin
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5170 esac
5172 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5176 else
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182 # Extract the first word of "install-info", so it can be a program name with args.
5183 set dummy install-info; ac_word=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 case $INSTALL_INFO in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in /sbin
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5209 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5211 esac
5213 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5214 if test -n "$INSTALL_INFO"; then
5215 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5216 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5217 else
5218 { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5223 # Extract the first word of "gzip", so it can be a program name with args.
5224 set dummy gzip; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 case $GZIP_PROG in
5231 [\\/]* | ?:[\\/]*)
5232 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5251 esac
5253 GZIP_PROG=$ac_cv_path_GZIP_PROG
5254 if test -n "$GZIP_PROG"; then
5255 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5256 echo "${ECHO_T}$GZIP_PROG" >&6; }
5257 else
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5265 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5266 then
5267 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5270 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5271 then
5272 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5276 late_LDFLAGS=$LDFLAGS
5277 if test "$GCC" = yes; then
5278 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5279 else
5280 LDFLAGS="$LDFLAGS -znocombreloc"
5283 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5284 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5285 cat >conftest.$ac_ext <<_ACEOF
5286 main(){return 0;}
5287 _ACEOF
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (ac_try="$ac_link"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest$ac_exeext &&
5305 $as_test_x conftest$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 LDFLAGS=$late_LDFLAGS
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5320 #### Extract some information from the operating system and machine files.
5322 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5323 - which libraries the lib-src programs will want, and
5324 - whether the GNU malloc routines are usable..." >&5
5325 echo "$as_me: checking the machine- and system-dependent files to find out
5326 - which libraries the lib-src programs will want, and
5327 - whether the GNU malloc routines are usable..." >&6;}
5329 ### First figure out CFLAGS (which we use for running the compiler here)
5330 ### and REAL_CFLAGS (which we use for real compilation).
5331 ### The two are the same except on a few systems, where they are made
5332 ### different to work around various lossages. For example,
5333 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5334 ### as implying static linking.
5336 ### If the CFLAGS env var is specified, we use that value
5337 ### instead of the default.
5339 ### It's not important that this name contain the PID; you can't run
5340 ### two configures in the same directory and have anything work
5341 ### anyway.
5342 tempcname="conftest.c"
5344 echo '
5345 #include "'${srcdir}'/src/'${opsysfile}'"
5346 #include "'${srcdir}'/src/'${machfile}'"
5347 #ifndef LIBS_MACHINE
5348 #define LIBS_MACHINE
5349 #endif
5350 #ifndef LIBS_SYSTEM
5351 #define LIBS_SYSTEM
5352 #endif
5353 #ifndef C_SWITCH_SYSTEM
5354 #define C_SWITCH_SYSTEM
5355 #endif
5356 #ifndef C_SWITCH_MACHINE
5357 #define C_SWITCH_MACHINE
5358 #endif
5359 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5360 configure___ c_switch_system=C_SWITCH_SYSTEM
5361 configure___ c_switch_machine=C_SWITCH_MACHINE
5363 #ifndef LIB_X11_LIB
5364 #define LIB_X11_LIB -lX11
5365 #endif
5367 #ifndef LIBX11_MACHINE
5368 #define LIBX11_MACHINE
5369 #endif
5371 #ifndef LIBX11_SYSTEM
5372 #define LIBX11_SYSTEM
5373 #endif
5374 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5376 #ifdef UNEXEC
5377 configure___ unexec=UNEXEC
5378 #else
5379 configure___ unexec=unexec.o
5380 #endif
5382 #ifdef SYSTEM_MALLOC
5383 configure___ system_malloc=yes
5384 #else
5385 configure___ system_malloc=no
5386 #endif
5388 #ifdef USE_MMAP_FOR_BUFFERS
5389 configure___ use_mmap_for_buffers=yes
5390 #else
5391 configure___ use_mmap_for_buffers=no
5392 #endif
5394 #ifndef C_DEBUG_SWITCH
5395 #define C_DEBUG_SWITCH -g
5396 #endif
5398 #ifndef C_OPTIMIZE_SWITCH
5399 #ifdef __GNUC__
5400 #define C_OPTIMIZE_SWITCH -O2
5401 #else
5402 #define C_OPTIMIZE_SWITCH -O
5403 #endif
5404 #endif
5406 #ifndef C_WARNINGS_SWITCH
5407 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5408 #endif
5410 #ifndef LD_SWITCH_MACHINE
5411 #define LD_SWITCH_MACHINE
5412 #endif
5414 #ifndef LD_SWITCH_SYSTEM
5415 #define LD_SWITCH_SYSTEM
5416 #endif
5418 #ifndef LD_SWITCH_X_SITE_AUX
5419 #define LD_SWITCH_X_SITE_AUX
5420 #endif
5422 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5423 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5425 #ifdef THIS_IS_CONFIGURE
5427 /* Get the CFLAGS for tests in configure. */
5428 #ifdef __GNUC__
5429 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5430 #else
5431 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5432 #endif
5434 #else /* not THIS_IS_CONFIGURE */
5436 /* Get the CFLAGS for real compilation. */
5437 #ifdef __GNUC__
5438 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5439 #else
5440 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5441 #endif
5443 #endif /* not THIS_IS_CONFIGURE */
5444 ' > ${tempcname}
5446 # The value of CPP is a quoted variable reference, so we need to do this
5447 # to get its actual value...
5448 CPP=`eval "echo $CPP"`
5449 eval `${CPP} -Isrc ${tempcname} \
5450 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5451 if test "x$SPECIFIED_CFLAGS" = x; then
5452 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5453 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5454 else
5455 REAL_CFLAGS="$CFLAGS"
5457 rm ${tempcname}
5459 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5461 ### Make sure subsequent tests use flags consistent with the build flags.
5463 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5464 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5465 else
5466 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5471 # Check whether --enable-largefile was given.
5472 if test "${enable_largefile+set}" = set; then
5473 enableval=$enable_largefile;
5476 if test "$enable_largefile" != no; then
5478 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5479 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5480 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 ac_cv_sys_largefile_CC=no
5484 if test "$GCC" != yes; then
5485 ac_save_CC=$CC
5486 while :; do
5487 # IRIX 6.2 and later do not support large files by default,
5488 # so use the C compiler's -n32 option if that helps.
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5505 main ()
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 break
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5537 rm -f core conftest.err conftest.$ac_objext
5538 CC="$CC -n32"
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 ac_cv_sys_largefile_CC=' -n32'; break
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5564 rm -f core conftest.err conftest.$ac_objext
5565 break
5566 done
5567 CC=$ac_save_CC
5568 rm -f conftest.$ac_ext
5571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5572 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5573 if test "$ac_cv_sys_largefile_CC" != no; then
5574 CC=$CC$ac_cv_sys_largefile_CC
5577 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 while :; do
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592 since some C++ compilers masquerading as C compilers
5593 incorrectly reject 9223372036854775807. */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596 && LARGE_OFF_T % 2147483647 == 1)
5597 ? 1 : -1];
5599 main ()
5603 return 0;
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_file_offset_bits=no; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #define _FILE_OFFSET_BITS 64
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5647 ? 1 : -1];
5649 main ()
5653 return 0;
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_cv_sys_file_offset_bits=64; break
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 ac_cv_sys_file_offset_bits=unknown
5683 break
5684 done
5686 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5687 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5688 case $ac_cv_sys_file_offset_bits in #(
5689 no | unknown) ;;
5691 cat >>confdefs.h <<_ACEOF
5692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5693 _ACEOF
5695 esac
5696 rm -f conftest*
5697 if test $ac_cv_sys_file_offset_bits = unknown; then
5698 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5699 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5700 if test "${ac_cv_sys_large_files+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 while :; do
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5718 ? 1 : -1];
5720 main ()
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 ac_cv_sys_large_files=no; break
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5768 ? 1 : -1];
5770 main ()
5774 return 0;
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_sys_large_files=1; break
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cv_sys_large_files=unknown
5804 break
5805 done
5807 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5808 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5809 case $ac_cv_sys_large_files in #(
5810 no | unknown) ;;
5812 cat >>confdefs.h <<_ACEOF
5813 #define _LARGE_FILES $ac_cv_sys_large_files
5814 _ACEOF
5816 esac
5817 rm -f conftest*
5823 ### The standard library on x86-64 GNU/Linux distributions can
5824 ### be located in either /usr/lib64 or /usr/lib.
5825 case "${canonical}" in
5826 x86_64-*-linux-gnu* )
5827 if test -d /usr/lib64; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_X86_64_LIB64_DIR 1
5831 _ACEOF
5834 esac
5839 if test "${with_sound}" != "no"; then
5840 # Sound support for GNU/Linux and the free BSDs.
5841 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5843 if test "${ac_cv_header_stdc+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <stdlib.h>
5853 #include <stdarg.h>
5854 #include <string.h>
5855 #include <float.h>
5858 main ()
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_cv_header_stdc=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_cv_header_stdc=no
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 if test $ac_cv_header_stdc = yes; then
5893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <string.h>
5902 _ACEOF
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "memchr" >/dev/null 2>&1; then
5906 else
5907 ac_cv_header_stdc=no
5909 rm -f conftest*
5913 if test $ac_cv_header_stdc = yes; then
5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #include <stdlib.h>
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "free" >/dev/null 2>&1; then
5927 else
5928 ac_cv_header_stdc=no
5930 rm -f conftest*
5934 if test $ac_cv_header_stdc = yes; then
5935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5936 if test "$cross_compiling" = yes; then
5938 else
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <ctype.h>
5946 #include <stdlib.h>
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950 #else
5951 # define ISLOWER(c) \
5952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5956 #endif
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5960 main ()
5962 int i;
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
5965 || toupper (i) != TOUPPER (i))
5966 return 2;
5967 return 0;
5969 _ACEOF
5970 rm -f conftest$ac_exeext
5971 if { (ac_try="$ac_link"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_link") 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5991 else
5992 echo "$as_me: program exited with status $ac_status" >&5
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ( exit $ac_status )
5997 ac_cv_header_stdc=no
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6006 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6007 if test $ac_cv_header_stdc = yes; then
6009 cat >>confdefs.h <<\_ACEOF
6010 #define STDC_HEADERS 1
6011 _ACEOF
6015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6025 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6026 inttypes.h stdint.h unistd.h
6028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6042 #include <$ac_header>
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 eval "$as_ac_Header=yes"
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 eval "$as_ac_Header=no"
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ac_res=`eval echo '${'$as_ac_Header'}'`
6072 { echo "$as_me:$LINENO: result: $ac_res" >&5
6073 echo "${ECHO_T}$ac_res" >&6; }
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6077 _ACEOF
6081 done
6087 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_res=`eval echo '${'$as_ac_Header'}'`
6097 { echo "$as_me:$LINENO: result: $ac_res" >&5
6098 echo "${ECHO_T}$ac_res" >&6; }
6099 else
6100 # Is the header compilable?
6101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 #include <$ac_header>
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 ac_header_compiler=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_header_compiler=no
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6139 echo "${ECHO_T}$ac_header_compiler" >&6; }
6141 # Is the header present?
6142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <$ac_header>
6151 _ACEOF
6152 if { (ac_try="$ac_cpp conftest.$ac_ext"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null && {
6165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 }; then
6168 ac_header_preproc=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_preproc=no
6176 rm -f conftest.err conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178 echo "${ECHO_T}$ac_header_preproc" >&6; }
6180 # So? What about this header?
6181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 yes:no: )
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6189 no:yes:* )
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6204 esac
6205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 eval "$as_ac_Header=\$ac_header_preproc"
6212 ac_res=`eval echo '${'$as_ac_Header'}'`
6213 { echo "$as_me:$LINENO: result: $ac_res" >&5
6214 echo "${ECHO_T}$ac_res" >&6; }
6217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6220 _ACEOF
6224 done
6226 # Emulation library used on NetBSD.
6227 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6228 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6229 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lossaudio $LIBS"
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 char _oss_ioctl ();
6249 main ()
6251 return _oss_ioctl ();
6253 return 0;
6255 _ACEOF
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_link") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest$ac_exeext &&
6273 $as_test_x conftest$ac_exeext; then
6274 ac_cv_lib_ossaudio__oss_ioctl=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_cv_lib_ossaudio__oss_ioctl=no
6282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6283 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6286 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6287 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6288 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6289 LIBSOUND=-lossaudio
6290 else
6291 LIBSOUND=
6296 ALSA_REQUIRED=1.0.0
6297 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6298 if test "X${with_pkg_config_prog}" != X; then
6299 PKG_CONFIG="${with_pkg_config_prog}"
6302 succeeded=no
6304 if test -z "$PKG_CONFIG"; then
6305 # Extract the first word of "pkg-config", so it can be a program name with args.
6306 set dummy pkg-config; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 case $PKG_CONFIG in
6313 [\\/]* | ?:[\\/]*)
6314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6334 esac
6336 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6337 if test -n "$PKG_CONFIG"; then
6338 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6339 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6340 else
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6348 if test "$PKG_CONFIG" = "no" ; then
6349 HAVE_ALSA=no
6350 else
6351 PKG_CONFIG_MIN_VERSION=0.9.0
6352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6353 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6354 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6357 { echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6; }
6359 succeeded=yes
6361 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6362 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6363 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6364 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6365 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6367 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6368 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6369 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6370 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6371 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6372 else
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6375 ALSA_CFLAGS=""
6376 ALSA_LIBS=""
6377 ## If we have a custom action on failure, don't print errors, but
6378 ## do set a variable so people can do so.
6379 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6385 else
6386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6391 if test $succeeded = yes; then
6392 HAVE_ALSA=yes
6393 else
6394 HAVE_ALSA=no
6397 if test $HAVE_ALSA = yes; then
6398 SAVE_CFLAGS="$CFLAGS"
6399 SAVE_LDFLAGS="$LDFLAGS"
6400 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6401 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <asoundlib.h>
6410 main ()
6412 snd_lib_error_set_handler (0);
6414 return 0;
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 emacs_alsa_normal=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 emacs_alsa_normal=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 if test "$emacs_alsa_normal" != yes; then
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <alsa/asoundlib.h>
6452 main ()
6454 snd_lib_error_set_handler (0);
6456 return 0;
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6461 case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest.$ac_objext; then
6476 emacs_alsa_subdir=yes
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6481 emacs_alsa_subdir=no
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 if test "$emacs_alsa_subdir" != yes; then
6486 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6487 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6488 { (exit 1); exit 1; }; }
6490 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6493 CFLAGS="$SAVE_CFLAGS"
6494 LDFLAGS="$SAVE_LDFLAGS"
6495 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6496 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6498 cat >>confdefs.h <<\_ACEOF
6499 #define HAVE_ALSA 1
6500 _ACEOF
6532 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6533 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6534 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6535 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6536 sys/utsname.h pwd.h
6538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_res=`eval echo '${'$as_ac_Header'}'`
6546 { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6548 else
6549 # Is the header compilable?
6550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 #include <$ac_header>
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_header_compiler=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_compiler=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588 echo "${ECHO_T}$ac_header_compiler" >&6; }
6590 # Is the header present?
6591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <$ac_header>
6600 _ACEOF
6601 if { (ac_try="$ac_cpp conftest.$ac_ext"
6602 case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev/null && {
6614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 }; then
6617 ac_header_preproc=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_header_preproc=no
6625 rm -f conftest.err conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6; }
6629 # So? What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631 yes:no: )
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636 ac_header_preproc=yes
6638 no:yes:* )
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6653 esac
6654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 eval "$as_ac_Header=\$ac_header_preproc"
6661 ac_res=`eval echo '${'$as_ac_Header'}'`
6662 { echo "$as_me:$LINENO: result: $ac_res" >&5
6663 echo "${ECHO_T}$ac_res" >&6; }
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 _ACEOF
6673 done
6676 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6677 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/personality.h>
6686 main ()
6688 personality (PER_LINUX32)
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 emacs_cv_personality_linux32=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 emacs_cv_personality_linux32=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6720 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6722 if test $emacs_cv_personality_linux32 = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_PERSONALITY_LINUX32 1
6726 _ACEOF
6731 for ac_header in term.h
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <$ac_header>
6746 _ACEOF
6747 if { (ac_try="$ac_cpp conftest.$ac_ext"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } >/dev/null && {
6760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 }; then
6763 eval "$as_ac_Header=yes"
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 eval "$as_ac_Header=no"
6771 rm -f conftest.err conftest.$ac_ext
6773 ac_res=`eval echo '${'$as_ac_Header'}'`
6774 { echo "$as_me:$LINENO: result: $ac_res" >&5
6775 echo "${ECHO_T}$ac_res" >&6; }
6776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777 cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779 _ACEOF
6783 done
6785 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_stdc+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <stdlib.h>
6797 #include <stdarg.h>
6798 #include <string.h>
6799 #include <float.h>
6802 main ()
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_stdc=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 if test $ac_cv_header_stdc = yes; then
6837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 #include <string.h>
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 $EGREP "memchr" >/dev/null 2>&1; then
6850 else
6851 ac_cv_header_stdc=no
6853 rm -f conftest*
6857 if test $ac_cv_header_stdc = yes; then
6858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <stdlib.h>
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "free" >/dev/null 2>&1; then
6871 else
6872 ac_cv_header_stdc=no
6874 rm -f conftest*
6878 if test $ac_cv_header_stdc = yes; then
6879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6880 if test "$cross_compiling" = yes; then
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <ctype.h>
6890 #include <stdlib.h>
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6894 #else
6895 # define ISLOWER(c) \
6896 (('a' <= (c) && (c) <= 'i') \
6897 || ('j' <= (c) && (c) <= 'r') \
6898 || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900 #endif
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6904 main ()
6906 int i;
6907 for (i = 0; i < 256; i++)
6908 if (XOR (islower (i), ISLOWER (i))
6909 || toupper (i) != TOUPPER (i))
6910 return 2;
6911 return 0;
6913 _ACEOF
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6925 { (case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_try") 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6935 else
6936 echo "$as_me: program exited with status $ac_status" >&5
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ( exit $ac_status )
6941 ac_cv_header_stdc=no
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6949 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6950 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6951 if test $ac_cv_header_stdc = yes; then
6953 cat >>confdefs.h <<\_ACEOF
6954 #define STDC_HEADERS 1
6955 _ACEOF
6959 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6960 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_time+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <sys/types.h>
6971 #include <sys/time.h>
6972 #include <time.h>
6975 main ()
6977 if ((struct tm *) 0)
6978 return 0;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_header_time=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_header_time=no
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7011 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7012 if test $ac_cv_header_time = yes; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define TIME_WITH_SYS_TIME 1
7016 _ACEOF
7020 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7021 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7022 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7033 main ()
7035 #ifndef sys_siglist
7036 (void) sys_siglist;
7037 #endif
7040 return 0;
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_cv_have_decl_sys_siglist=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_have_decl_sys_siglist=no
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7071 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7072 if test $ac_cv_have_decl_sys_siglist = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_DECL_SYS_SIGLIST 1
7076 _ACEOF
7079 else
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_DECL_SYS_SIGLIST 0
7082 _ACEOF
7088 if test $ac_cv_have_decl_sys_siglist != yes; then
7089 # For Tru64, at least:
7090 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7091 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7092 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7103 main ()
7105 #ifndef __sys_siglist
7106 (void) __sys_siglist;
7107 #endif
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_have_decl___sys_siglist=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_have_decl___sys_siglist=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7141 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7142 if test $ac_cv_have_decl___sys_siglist = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_DECL___SYS_SIGLIST 1
7146 _ACEOF
7149 else
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_DECL___SYS_SIGLIST 0
7152 _ACEOF
7158 if test $ac_cv_have_decl___sys_siglist = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define sys_siglist __sys_siglist
7162 _ACEOF
7166 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7167 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7168 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/wait.h>
7179 #ifndef WEXITSTATUS
7180 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7181 #endif
7182 #ifndef WIFEXITED
7183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7184 #endif
7187 main ()
7189 int s;
7190 wait (&s);
7191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7193 return 0;
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_header_sys_wait_h=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_header_sys_wait_h=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7225 if test $ac_cv_header_sys_wait_h = yes; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_SYS_WAIT_H 1
7229 _ACEOF
7234 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7235 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7247 #include <time.h>
7248 #else
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7251 #else
7252 #include <time.h>
7253 #endif
7254 #endif
7255 #ifdef HAVE_UTIME_H
7256 #include <utime.h>
7257 #endif
7259 main ()
7261 static struct utimbuf x; x.actime = x.modtime;
7263 return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 emacs_cv_struct_utimbuf=yes
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 emacs_cv_struct_utimbuf=no
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7294 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7295 if test $emacs_cv_struct_utimbuf = yes; then
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_STRUCT_UTIMBUF 1
7299 _ACEOF
7303 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7304 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7305 if test "${ac_cv_type_signal+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 #include <signal.h>
7318 main ()
7320 return *(signal (0, 0)) (0) == 1;
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_type_signal=int
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_type_signal=void
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7353 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7355 cat >>confdefs.h <<_ACEOF
7356 #define RETSIGTYPE $ac_cv_type_signal
7357 _ACEOF
7361 { echo "$as_me:$LINENO: checking for speed_t" >&5
7362 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7363 if test "${emacs_cv_speed_t+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <termios.h>
7374 main ()
7376 speed_t x = 1;
7378 return 0;
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 emacs_cv_speed_t=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 emacs_cv_speed_t=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7409 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7410 if test $emacs_cv_speed_t = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_SPEED_T 1
7414 _ACEOF
7418 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7420 if test "${emacs_cv_struct_timeval+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #ifdef TIME_WITH_SYS_TIME
7430 #include <sys/time.h>
7431 #include <time.h>
7432 #else
7433 #ifdef HAVE_SYS_TIME_H
7434 #include <sys/time.h>
7435 #else
7436 #include <time.h>
7437 #endif
7438 #endif
7440 main ()
7442 static struct timeval x; x.tv_sec = x.tv_usec;
7444 return 0;
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 emacs_cv_struct_timeval=yes
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 emacs_cv_struct_timeval=no
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7475 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7476 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7477 if test $emacs_cv_struct_timeval = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_TIMEVAL 1
7481 _ACEOF
7485 { echo "$as_me:$LINENO: checking for struct exception" >&5
7486 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_exception+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <math.h>
7498 main ()
7500 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7502 return 0;
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 emacs_cv_struct_exception=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 emacs_cv_struct_exception=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7534 HAVE_EXCEPTION=$emacs_cv_struct_exception
7535 if test $emacs_cv_struct_exception != yes; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define NO_MATHERR 1
7539 _ACEOF
7544 for ac_header in sys/socket.h
7546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_res=`eval echo '${'$as_ac_Header'}'`
7554 { echo "$as_me:$LINENO: result: $ac_res" >&5
7555 echo "${ECHO_T}$ac_res" >&6; }
7556 else
7557 # Is the header compilable?
7558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #include <$ac_header>
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_header_compiler=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_header_compiler=no
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7596 echo "${ECHO_T}$ac_header_compiler" >&6; }
7598 # Is the header present?
7599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 #include <$ac_header>
7608 _ACEOF
7609 if { (ac_try="$ac_cpp conftest.$ac_ext"
7610 case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev/null && {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 }; then
7625 ac_header_preproc=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_header_preproc=no
7633 rm -f conftest.err conftest.$ac_ext
7634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6; }
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7639 yes:no: )
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc=yes
7646 no:yes:* )
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7661 esac
7662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 eval "$as_ac_Header=\$ac_header_preproc"
7669 ac_res=`eval echo '${'$as_ac_Header'}'`
7670 { echo "$as_me:$LINENO: result: $ac_res" >&5
7671 echo "${ECHO_T}$ac_res" >&6; }
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 _ACEOF
7681 done
7684 for ac_header in net/if.h
7686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 #if HAVE_SYS_SOCKET_H
7700 #include <sys/socket.h>
7701 #endif
7703 #include <$ac_header>
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 eval "$as_ac_Header=yes"
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 eval "$as_ac_Header=no"
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 ac_res=`eval echo '${'$as_ac_Header'}'`
7733 { echo "$as_me:$LINENO: result: $ac_res" >&5
7734 echo "${ECHO_T}$ac_res" >&6; }
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738 _ACEOF
7742 done
7745 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7746 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_struct_tm+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <sys/types.h>
7757 #include <time.h>
7760 main ()
7762 struct tm tm;
7763 int *p = &tm.tm_sec;
7764 return !p;
7766 return 0;
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_compile") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.$ac_objext; then
7786 ac_cv_struct_tm=time.h
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 ac_cv_struct_tm=sys/time.h
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7797 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7798 if test $ac_cv_struct_tm = sys/time.h; then
7800 cat >>confdefs.h <<\_ACEOF
7801 #define TM_IN_SYS_TIME 1
7802 _ACEOF
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7807 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <$ac_cv_struct_tm>
7822 main ()
7824 static struct tm ac_aggr;
7825 if (ac_aggr.tm_zone)
7826 return 0;
7828 return 0;
7830 _ACEOF
7831 rm -f conftest.$ac_objext
7832 if { (ac_try="$ac_compile"
7833 case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836 esac
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 ac_cv_member_struct_tm_tm_zone=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <sys/types.h>
7860 #include <$ac_cv_struct_tm>
7864 main ()
7866 static struct tm ac_aggr;
7867 if (sizeof ac_aggr.tm_zone)
7868 return 0;
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone=yes
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_cv_member_struct_tm_tm_zone=no
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7909 _ACEOF
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7918 _ACEOF
7920 else
7921 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <time.h>
7935 main ()
7937 #ifndef tzname
7938 (void) tzname;
7939 #endif
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest.$ac_objext; then
7962 ac_cv_have_decl_tzname=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_have_decl_tzname=no
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7974 if test $ac_cv_have_decl_tzname = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_TZNAME 1
7978 _ACEOF
7981 else
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_TZNAME 0
7984 _ACEOF
7990 { echo "$as_me:$LINENO: checking for tzname" >&5
7991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7992 if test "${ac_cv_var_tzname+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <time.h>
8002 #if !HAVE_DECL_TZNAME
8003 extern char *tzname[];
8004 #endif
8007 main ()
8009 return tzname[0][0];
8011 return 0;
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest$ac_exeext &&
8031 $as_test_x conftest$ac_exeext; then
8032 ac_cv_var_tzname=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_var_tzname=no
8040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 conftest$ac_exeext conftest.$ac_ext
8043 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8044 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8045 if test $ac_cv_var_tzname = yes; then
8047 cat >>confdefs.h <<\_ACEOF
8048 #define HAVE_TZNAME 1
8049 _ACEOF
8054 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8055 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8056 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <time.h>
8068 main ()
8070 static struct tm ac_aggr;
8071 if (ac_aggr.tm_gmtoff)
8072 return 0;
8074 return 0;
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_gmtoff=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <time.h>
8108 main ()
8110 static struct tm ac_aggr;
8111 if (sizeof ac_aggr.tm_gmtoff)
8112 return 0;
8114 return 0;
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_member_struct_tm_tm_gmtoff=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_member_struct_tm_tm_gmtoff=no
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8148 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8149 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8151 cat >>confdefs.h <<\_ACEOF
8152 #define HAVE_TM_GMTOFF 1
8153 _ACEOF
8157 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8158 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8159 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8169 #if HAVE_SYS_SOCKET_H
8170 #include <sys/socket.h>
8171 #endif
8172 #if HAVE_NET_IF_H
8173 #include <net/if.h>
8174 #endif
8177 main ()
8179 static struct ifreq ac_aggr;
8180 if (ac_aggr.ifr_flags)
8181 return 0;
8183 return 0;
8185 _ACEOF
8186 rm -f conftest.$ac_objext
8187 if { (ac_try="$ac_compile"
8188 case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_cv_member_struct_ifreq_ifr_flags=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h. */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8217 #endif
8218 #if HAVE_NET_IF_H
8219 #include <net/if.h>
8220 #endif
8223 main ()
8225 static struct ifreq ac_aggr;
8226 if (sizeof ac_aggr.ifr_flags)
8227 return 0;
8229 return 0;
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8234 case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_flags=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_member_struct_ifreq_ifr_flags=no
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8263 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8264 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8268 _ACEOF
8272 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8273 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8274 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #if HAVE_SYS_SOCKET_H
8285 #include <sys/socket.h>
8286 #endif
8287 #if HAVE_NET_IF_H
8288 #include <net/if.h>
8289 #endif
8292 main ()
8294 static struct ifreq ac_aggr;
8295 if (ac_aggr.ifr_hwaddr)
8296 return 0;
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8332 #endif
8333 #if HAVE_NET_IF_H
8334 #include <net/if.h>
8335 #endif
8338 main ()
8340 static struct ifreq ac_aggr;
8341 if (sizeof ac_aggr.ifr_hwaddr)
8342 return 0;
8344 return 0;
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8378 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8379 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8381 cat >>confdefs.h <<_ACEOF
8382 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8383 _ACEOF
8387 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8388 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8389 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8399 #if HAVE_SYS_SOCKET_H
8400 #include <sys/socket.h>
8401 #endif
8402 #if HAVE_NET_IF_H
8403 #include <net/if.h>
8404 #endif
8407 main ()
8409 static struct ifreq ac_aggr;
8410 if (ac_aggr.ifr_netmask)
8411 return 0;
8413 return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 ac_cv_member_struct_ifreq_ifr_netmask=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8447 #endif
8448 #if HAVE_NET_IF_H
8449 #include <net/if.h>
8450 #endif
8453 main ()
8455 static struct ifreq ac_aggr;
8456 if (sizeof ac_aggr.ifr_netmask)
8457 return 0;
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_netmask=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ac_cv_member_struct_ifreq_ifr_netmask=no
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8494 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8498 _ACEOF
8502 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8503 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8504 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 $ac_includes_default
8514 #if HAVE_SYS_SOCKET_H
8515 #include <sys/socket.h>
8516 #endif
8517 #if HAVE_NET_IF_H
8518 #include <net/if.h>
8519 #endif
8522 main ()
8524 static struct ifreq ac_aggr;
8525 if (ac_aggr.ifr_broadaddr)
8526 return 0;
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8533 case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8562 #endif
8563 #if HAVE_NET_IF_H
8564 #include <net/if.h>
8565 #endif
8568 main ()
8570 static struct ifreq ac_aggr;
8571 if (sizeof ac_aggr.ifr_broadaddr)
8572 return 0;
8574 return 0;
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8608 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8609 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8613 _ACEOF
8617 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8618 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8619 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #if HAVE_SYS_SOCKET_H
8630 #include <sys/socket.h>
8631 #endif
8632 #if HAVE_NET_IF_H
8633 #include <net/if.h>
8634 #endif
8637 main ()
8639 static struct ifreq ac_aggr;
8640 if (ac_aggr.ifr_addr)
8641 return 0;
8643 return 0;
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8648 case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_addr=yes
8664 else
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8677 #endif
8678 #if HAVE_NET_IF_H
8679 #include <net/if.h>
8680 #endif
8683 main ()
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_addr)
8687 return 0;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_addr=yes
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_cv_member_struct_ifreq_ifr_addr=no
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8723 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8724 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8728 _ACEOF
8735 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8736 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8737 if test "$ac_cv_prog_cc_c89" != no; then
8738 { echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6; }
8741 cat >>confdefs.h <<\_ACEOF
8742 #define PROTOTYPES 1
8743 _ACEOF
8746 cat >>confdefs.h <<\_ACEOF
8747 #define __PROTOTYPES 1
8748 _ACEOF
8750 else
8751 { echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6; }
8755 { echo "$as_me:$LINENO: checking for working volatile" >&5
8756 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8757 if test "${ac_cv_c_volatile+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8768 main ()
8771 volatile int x;
8772 int * volatile y = (int *) 0;
8773 return !x && !y;
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_c_volatile=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_c_volatile=no
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8806 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8807 if test $ac_cv_c_volatile = no; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define volatile
8811 _ACEOF
8815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8817 if test "${ac_cv_c_const+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8828 main ()
8830 /* FIXME: Include the comments suggested by Paul. */
8831 #ifndef __cplusplus
8832 /* Ultrix mips cc rejects this. */
8833 typedef int charset[2];
8834 const charset cs;
8835 /* SunOS 4.1.1 cc rejects this. */
8836 char const *const *pcpcc;
8837 char **ppc;
8838 /* NEC SVR4.0.2 mips cc rejects this. */
8839 struct point {int x, y;};
8840 static struct point const zero = {0,0};
8841 /* AIX XL C 1.02.0.0 rejects this.
8842 It does not let you subtract one const X* pointer from another in
8843 an arm of an if-expression whose if-part is not a constant
8844 expression */
8845 const char *g = "string";
8846 pcpcc = &g + (g ? g-g : 0);
8847 /* HPUX 7.0 cc rejects these. */
8848 ++pcpcc;
8849 ppc = (char**) pcpcc;
8850 pcpcc = (char const *const *) ppc;
8851 { /* SCO 3.2v4 cc rejects this. */
8852 char *t;
8853 char const *s = 0 ? (char *) 0 : (char const *) 0;
8855 *t++ = 0;
8856 if (s) return 0;
8858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8859 int x[] = {25, 17};
8860 const int *foo = &x[0];
8861 ++foo;
8863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8864 typedef const int *iptr;
8865 iptr p = 0;
8866 ++p;
8868 { /* AIX XL C 1.02.0.0 rejects this saying
8869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8870 struct s { int j; const int *ap[3]; };
8871 struct s *b; b->j = 5;
8873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8874 const int foo = 10;
8875 if (!foo) return 0;
8877 return !cs[0] && !zero.x;
8878 #endif
8881 return 0;
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8886 case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_c_const=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 ac_cv_c_const=no
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8913 if test $ac_cv_c_const = no; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define const
8917 _ACEOF
8921 { echo "$as_me:$LINENO: checking for void * support" >&5
8922 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8923 if test "${emacs_cv_void_star+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8934 main ()
8936 void * foo;
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 emacs_cv_void_star=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 emacs_cv_void_star=no
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8969 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8970 if test $emacs_cv_void_star = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE void
8973 _ACEOF
8975 else
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE char
8978 _ACEOF
8986 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8988 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.make <<\_ACEOF
8993 SHELL = /bin/sh
8994 all:
8995 @echo '@@@%%%=$(MAKE)=@@@%%%'
8996 _ACEOF
8997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8999 *@@@%%%=?*=@@@%%%*)
9000 eval ac_cv_prog_make_${ac_make}_set=yes;;
9002 eval ac_cv_prog_make_${ac_make}_set=no;;
9003 esac
9004 rm -f conftest.make
9006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9007 { echo "$as_me:$LINENO: result: yes" >&5
9008 echo "${ECHO_T}yes" >&6; }
9009 SET_MAKE=
9010 else
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013 SET_MAKE="MAKE=${MAKE-make}"
9017 { echo "$as_me:$LINENO: checking for long file names" >&5
9018 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9019 if test "${ac_cv_sys_long_file_names+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_cv_sys_long_file_names=yes
9023 # Test for long file names in all the places we know might matter:
9024 # . the current directory, where building will happen
9025 # $prefix/lib where we will be installing things
9026 # $exec_prefix/lib likewise
9027 # $TMPDIR if set, where it might want to write temporary files
9028 # /tmp where it might want to write temporary files
9029 # /var/tmp likewise
9030 # /usr/tmp likewise
9031 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9032 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9033 # in the usual case where exec_prefix is '${prefix}'.
9034 case $ac_dir in #(
9035 . | /* | ?:[\\/]*) ;; #(
9036 *) continue;;
9037 esac
9038 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9039 ac_xdir=$ac_dir/cf$$
9040 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9041 ac_tf1=$ac_xdir/conftest9012345
9042 ac_tf2=$ac_xdir/conftest9012346
9043 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9044 ac_cv_sys_long_file_names=no
9045 rm -f -r "$ac_xdir" 2>/dev/null
9046 test $ac_cv_sys_long_file_names = no && break
9047 done
9049 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9050 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9051 if test $ac_cv_sys_long_file_names = yes; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LONG_FILE_NAMES 1
9055 _ACEOF
9060 #### Choose a window system.
9062 { echo "$as_me:$LINENO: checking for X" >&5
9063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9066 # Check whether --with-x was given.
9067 if test "${with_x+set}" = set; then
9068 withval=$with_x;
9071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9072 if test "x$with_x" = xno; then
9073 # The user explicitly disabled X.
9074 have_x=disabled
9075 else
9076 case $x_includes,$x_libraries in #(
9077 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9079 { (exit 1); exit 1; }; };; #(
9080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 # One or both of the vars are not set, and there is no cached value.
9084 ac_x_includes=no ac_x_libraries=no
9085 rm -f -r conftest.dir
9086 if mkdir conftest.dir; then
9087 cd conftest.dir
9088 cat >Imakefile <<'_ACEOF'
9089 incroot:
9090 @echo incroot='${INCROOT}'
9091 usrlibdir:
9092 @echo usrlibdir='${USRLIBDIR}'
9093 libdir:
9094 @echo libdir='${LIBDIR}'
9095 _ACEOF
9096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9098 for ac_var in incroot usrlibdir libdir; do
9099 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9100 done
9101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9102 for ac_extension in a so sl; do
9103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9105 ac_im_usrlibdir=$ac_im_libdir; break
9107 done
9108 # Screen out bogus values from the imake configuration. They are
9109 # bogus both because they are the default anyway, and because
9110 # using them would break gcc on systems where it needs fixed includes.
9111 case $ac_im_incroot in
9112 /usr/include) ac_x_includes= ;;
9113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9114 esac
9115 case $ac_im_usrlibdir in
9116 /usr/lib | /lib) ;;
9117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9118 esac
9120 cd ..
9121 rm -f -r conftest.dir
9124 # Standard set of common directories for X headers.
9125 # Check X11 before X11Rn because it is often a symlink to the current release.
9126 ac_x_header_dirs='
9127 /usr/X11/include
9128 /usr/X11R6/include
9129 /usr/X11R5/include
9130 /usr/X11R4/include
9132 /usr/include/X11
9133 /usr/include/X11R6
9134 /usr/include/X11R5
9135 /usr/include/X11R4
9137 /usr/local/X11/include
9138 /usr/local/X11R6/include
9139 /usr/local/X11R5/include
9140 /usr/local/X11R4/include
9142 /usr/local/include/X11
9143 /usr/local/include/X11R6
9144 /usr/local/include/X11R5
9145 /usr/local/include/X11R4
9147 /usr/X386/include
9148 /usr/x386/include
9149 /usr/XFree86/include/X11
9151 /usr/include
9152 /usr/local/include
9153 /usr/unsupported/include
9154 /usr/athena/include
9155 /usr/local/x11r5/include
9156 /usr/lpp/Xamples/include
9158 /usr/openwin/include
9159 /usr/openwin/share/include'
9161 if test "$ac_x_includes" = no; then
9162 # Guess where to find include files, by looking for Xlib.h.
9163 # First, try using that file with no special directory specified.
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <X11/Xlib.h>
9171 _ACEOF
9172 if { (ac_try="$ac_cpp conftest.$ac_ext"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev/null && {
9185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 }; then
9188 # We can compile using X headers with no special include directory.
9189 ac_x_includes=
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 for ac_dir in $ac_x_header_dirs; do
9195 if test -r "$ac_dir/X11/Xlib.h"; then
9196 ac_x_includes=$ac_dir
9197 break
9199 done
9202 rm -f conftest.err conftest.$ac_ext
9203 fi # $ac_x_includes = no
9205 if test "$ac_x_libraries" = no; then
9206 # Check for the libraries.
9207 # See if we find them without any special options.
9208 # Don't add to $LIBS permanently.
9209 ac_save_LIBS=$LIBS
9210 LIBS="-lX11 $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <X11/Xlib.h>
9219 main ()
9221 XrmInitialize ()
9223 return 0;
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9244 LIBS=$ac_save_LIBS
9245 # We can link X programs with no special library path.
9246 ac_x_libraries=
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 LIBS=$ac_save_LIBS
9252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9254 # Don't even attempt the hair of trying to link an X program!
9255 for ac_extension in a so sl; do
9256 if test -r "$ac_dir/libX11.$ac_extension"; then
9257 ac_x_libraries=$ac_dir
9258 break 2
9260 done
9261 done
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi # $ac_x_libraries = no
9268 case $ac_x_includes,$ac_x_libraries in #(
9269 no,* | *,no | *\'*)
9270 # Didn't find X, or a directory has "'" in its name.
9271 ac_cv_have_x="have_x=no";; #(
9273 # Record where we found X for the cache.
9274 ac_cv_have_x="have_x=yes\
9275 ac_x_includes='$ac_x_includes'\
9276 ac_x_libraries='$ac_x_libraries'"
9277 esac
9279 ;; #(
9280 *) have_x=yes;;
9281 esac
9282 eval "$ac_cv_have_x"
9283 fi # $with_x != no
9285 if test "$have_x" != yes; then
9286 { echo "$as_me:$LINENO: result: $have_x" >&5
9287 echo "${ECHO_T}$have_x" >&6; }
9288 no_x=yes
9289 else
9290 # If each of the values was on the command line, it overrides each guess.
9291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9293 # Update the cache value to reflect the command line values.
9294 ac_cv_have_x="have_x=yes\
9295 ac_x_includes='$x_includes'\
9296 ac_x_libraries='$x_libraries'"
9297 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9301 if test "$no_x" = yes; then
9302 window_system=none
9303 else
9304 window_system=x11
9307 if test "${x_libraries}" != NONE; then
9308 if test -n "${x_libraries}"; then
9309 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9310 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9312 x_default_search_path=""
9313 x_search_path=${x_libraries}
9314 if test -z "${x_search_path}"; then
9315 x_search_path=/usr/lib
9317 for x_library in `echo ${x_search_path}: | \
9318 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9319 x_search_path="\
9320 ${x_library}/X11/%L/%T/%N%C%S:\
9321 ${x_library}/X11/%l/%T/%N%C%S:\
9322 ${x_library}/X11/%T/%N%C%S:\
9323 ${x_library}/X11/%L/%T/%N%S:\
9324 ${x_library}/X11/%l/%T/%N%S:\
9325 ${x_library}/X11/%T/%N%S"
9326 if test x"${x_default_search_path}" = x; then
9327 x_default_search_path=${x_search_path}
9328 else
9329 x_default_search_path="${x_search_path}:${x_default_search_path}"
9331 done
9333 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9334 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9337 if test x"${x_includes}" = x; then
9338 bitmapdir=/usr/include/X11/bitmaps
9339 else
9340 # accumulate include directories that have X11 bitmap subdirectories
9341 bmd_acc="dummyval"
9342 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9343 if test -d "${bmd}/X11/bitmaps"; then
9344 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9346 if test -d "${bmd}/bitmaps"; then
9347 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9349 done
9350 if test ${bmd_acc} != "dummyval"; then
9351 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9355 HAVE_CARBON=no
9356 if test "${with_carbon}" != no; then
9357 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9358 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9359 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9360 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9364 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9365 else
9366 # Is the header compilable?
9367 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9368 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <Carbon/Carbon.h>
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.$ac_objext; then
9395 ac_header_compiler=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ac_header_compiler=no
9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6; }
9407 # Is the header present?
9408 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9409 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <Carbon/Carbon.h>
9417 _ACEOF
9418 if { (ac_try="$ac_cpp conftest.$ac_ext"
9419 case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 }; then
9434 ac_header_preproc=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9442 rm -f conftest.err conftest.$ac_ext
9443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 echo "${ECHO_T}$ac_header_preproc" >&6; }
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9448 yes:no: )
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9455 no:yes:* )
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9470 esac
9471 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9472 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9473 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9482 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9483 HAVE_CARBON=yes
9488 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9489 if test "${with_carbon+set}" != set \
9490 && test "${carbon_appdir_x+set}" != set; then
9491 for var in with_x with_x_toolkit with_gtk with_xim \
9492 with_xpm with_jpeg with_tiff with_gif with_png; do
9493 if eval test \"\${$var+set}\" = set; then
9494 HAVE_CARBON=no
9495 break
9497 done
9500 if test "${HAVE_CARBON}" = yes; then
9501 window_system=mac
9504 case "${window_system}" in
9505 x11 )
9506 HAVE_X_WINDOWS=yes
9507 HAVE_X11=yes
9508 case "${with_x_toolkit}" in
9509 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9510 motif ) USE_X_TOOLKIT=MOTIF ;;
9511 gtk ) with_gtk=yes
9512 USE_X_TOOLKIT=none ;;
9513 no ) USE_X_TOOLKIT=none ;;
9514 * ) USE_X_TOOLKIT=maybe ;;
9515 esac
9517 mac | none )
9518 HAVE_X_WINDOWS=no
9519 HAVE_X11=no
9520 USE_X_TOOLKIT=none
9522 esac
9524 ### If we're using X11, we should use the X menu package.
9525 HAVE_MENUS=no
9526 case ${HAVE_X11} in
9527 yes ) HAVE_MENUS=yes ;;
9528 esac
9530 if test "${opsys}" = "hpux9"; then
9531 case "${x_libraries}" in
9532 *X11R4* )
9533 opsysfile="s/hpux9-x11r4.h"
9535 esac
9538 if test "${opsys}" = "hpux9shr"; then
9539 case "${x_libraries}" in
9540 *X11R4* )
9541 opsysfile="s/hpux9shxr4.h"
9543 esac
9546 ### Compute the unexec source name from the object name.
9547 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9549 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9550 # Assume not, until told otherwise.
9551 GNU_MALLOC=yes
9552 doug_lea_malloc=yes
9553 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9554 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9566 #define malloc_get_state innocuous_malloc_get_state
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char malloc_get_state (); below.
9570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571 <limits.h> exists even on freestanding compilers. */
9573 #ifdef __STDC__
9574 # include <limits.h>
9575 #else
9576 # include <assert.h>
9577 #endif
9579 #undef malloc_get_state
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char malloc_get_state ();
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9592 choke me
9593 #endif
9596 main ()
9598 return malloc_get_state ();
9600 return 0;
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9605 case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_link") 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest$ac_exeext &&
9620 $as_test_x conftest$ac_exeext; then
9621 ac_cv_func_malloc_get_state=yes
9622 else
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_func_malloc_get_state=no
9629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9630 conftest$ac_exeext conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9633 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9634 if test $ac_cv_func_malloc_get_state = yes; then
9636 else
9637 doug_lea_malloc=no
9640 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9641 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define malloc_set_state innocuous_malloc_set_state
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char malloc_set_state (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9666 #undef malloc_set_state
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char malloc_set_state ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9679 choke me
9680 #endif
9683 main ()
9685 return malloc_set_state ();
9687 return 0;
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 ac_cv_func_malloc_set_state=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_cv_func_malloc_set_state=no
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9719 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9720 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9721 if test $ac_cv_func_malloc_set_state = yes; then
9723 else
9724 doug_lea_malloc=no
9727 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9728 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9729 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 extern void (* __after_morecore_hook)();
9740 main ()
9742 __after_morecore_hook = 0
9744 return 0;
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
9765 emacs_cv_var___after_morecore_hook=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 emacs_cv_var___after_morecore_hook=no
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9776 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9777 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9778 if test $emacs_cv_var___after_morecore_hook = no; then
9779 doug_lea_malloc=no
9781 if test "${system_malloc}" = "yes"; then
9782 GNU_MALLOC=no
9783 GNU_MALLOC_reason="
9784 (The GNU allocators don't work with this system configuration.)"
9786 if test "$doug_lea_malloc" = "yes" ; then
9787 if test "$GNU_MALLOC" = yes ; then
9788 GNU_MALLOC_reason="
9789 (Using Doug Lea's new malloc from the GNU C Library.)"
9792 cat >>confdefs.h <<\_ACEOF
9793 #define DOUG_LEA_MALLOC 1
9794 _ACEOF
9798 if test x"${REL_ALLOC}" = x; then
9799 REL_ALLOC=${GNU_MALLOC}
9805 for ac_header in stdlib.h unistd.h
9807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_res=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9817 else
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9869 _ACEOF
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null && {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 }; then
9886 ac_header_preproc=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_header_preproc=no
9894 rm -f conftest.err conftest.$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9900 yes:no: )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc=yes
9907 no:yes:* )
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9922 esac
9923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 eval "$as_ac_Header=\$ac_header_preproc"
9930 ac_res=`eval echo '${'$as_ac_Header'}'`
9931 { echo "$as_me:$LINENO: result: $ac_res" >&5
9932 echo "${ECHO_T}$ac_res" >&6; }
9935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938 _ACEOF
9942 done
9945 for ac_func in getpagesize
9947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9961 #define $ac_func innocuous_$ac_func
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func (); below.
9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966 <limits.h> exists even on freestanding compilers. */
9968 #ifdef __STDC__
9969 # include <limits.h>
9970 #else
9971 # include <assert.h>
9972 #endif
9974 #undef $ac_func
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char $ac_func ();
9983 /* The GNU C library defines this for functions which it implements
9984 to always fail with ENOSYS. Some functions are actually named
9985 something starting with __ and the normal name is an alias. */
9986 #if defined __stub_$ac_func || defined __stub___$ac_func
9987 choke me
9988 #endif
9991 main ()
9993 return $ac_func ();
9995 return 0;
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (ac_try="$ac_link"
10000 case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_c_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest$ac_exeext &&
10015 $as_test_x conftest$ac_exeext; then
10016 eval "$as_ac_var=yes"
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 eval "$as_ac_var=no"
10024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025 conftest$ac_exeext conftest.$ac_ext
10027 ac_res=`eval echo '${'$as_ac_var'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_var'}'` = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10033 _ACEOF
10036 done
10038 { echo "$as_me:$LINENO: checking for working mmap" >&5
10039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 if test "$cross_compiling" = yes; then
10044 ac_cv_func_mmap_fixed_mapped=no
10045 else
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h. */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10053 /* malloc might have been renamed as rpl_malloc. */
10054 #undef malloc
10056 /* Thanks to Mike Haertel and Jim Avera for this test.
10057 Here is a matrix of mmap possibilities:
10058 mmap private not fixed
10059 mmap private fixed at somewhere currently unmapped
10060 mmap private fixed at somewhere already mapped
10061 mmap shared not fixed
10062 mmap shared fixed at somewhere currently unmapped
10063 mmap shared fixed at somewhere already mapped
10064 For private mappings, we should verify that changes cannot be read()
10065 back from the file, nor mmap's back from the file at a different
10066 address. (There have been systems where private was not correctly
10067 implemented like the infamous i386 svr4.0, and systems where the
10068 VM page cache was not coherent with the file system buffer cache
10069 like early versions of FreeBSD and possibly contemporary NetBSD.)
10070 For shared mappings, we should conversely verify that changes get
10071 propagated back to all the places they're supposed to be.
10073 Grep wants private fixed already mapped.
10074 The main things grep needs to know about mmap are:
10075 * does it exist and is it safe to write into the mmap'd area
10076 * how to use it (BSD variants) */
10078 #include <fcntl.h>
10079 #include <sys/mman.h>
10081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10082 char *malloc ();
10083 #endif
10085 /* This mess was copied from the GNU getpagesize.h. */
10086 #ifndef HAVE_GETPAGESIZE
10087 /* Assume that all systems that can run configure have sys/param.h. */
10088 # ifndef HAVE_SYS_PARAM_H
10089 # define HAVE_SYS_PARAM_H 1
10090 # endif
10092 # ifdef _SC_PAGESIZE
10093 # define getpagesize() sysconf(_SC_PAGESIZE)
10094 # else /* no _SC_PAGESIZE */
10095 # ifdef HAVE_SYS_PARAM_H
10096 # include <sys/param.h>
10097 # ifdef EXEC_PAGESIZE
10098 # define getpagesize() EXEC_PAGESIZE
10099 # else /* no EXEC_PAGESIZE */
10100 # ifdef NBPG
10101 # define getpagesize() NBPG * CLSIZE
10102 # ifndef CLSIZE
10103 # define CLSIZE 1
10104 # endif /* no CLSIZE */
10105 # else /* no NBPG */
10106 # ifdef NBPC
10107 # define getpagesize() NBPC
10108 # else /* no NBPC */
10109 # ifdef PAGESIZE
10110 # define getpagesize() PAGESIZE
10111 # endif /* PAGESIZE */
10112 # endif /* no NBPC */
10113 # endif /* no NBPG */
10114 # endif /* no EXEC_PAGESIZE */
10115 # else /* no HAVE_SYS_PARAM_H */
10116 # define getpagesize() 8192 /* punt totally */
10117 # endif /* no HAVE_SYS_PARAM_H */
10118 # endif /* no _SC_PAGESIZE */
10120 #endif /* no HAVE_GETPAGESIZE */
10123 main ()
10125 char *data, *data2, *data3;
10126 int i, pagesize;
10127 int fd;
10129 pagesize = getpagesize ();
10131 /* First, make a file with some known garbage in it. */
10132 data = (char *) malloc (pagesize);
10133 if (!data)
10134 return 1;
10135 for (i = 0; i < pagesize; ++i)
10136 *(data + i) = rand ();
10137 umask (0);
10138 fd = creat ("conftest.mmap", 0600);
10139 if (fd < 0)
10140 return 1;
10141 if (write (fd, data, pagesize) != pagesize)
10142 return 1;
10143 close (fd);
10145 /* Next, try to mmap the file at a fixed address which already has
10146 something else allocated at it. If we can, also make sure that
10147 we see the same garbage. */
10148 fd = open ("conftest.mmap", O_RDWR);
10149 if (fd < 0)
10150 return 1;
10151 data2 = (char *) malloc (2 * pagesize);
10152 if (!data2)
10153 return 1;
10154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10157 return 1;
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data2 + i))
10160 return 1;
10162 /* Finally, make sure that changes to the mapped area do not
10163 percolate back to the file as seen by read(). (This is a bug on
10164 some variants of i386 svr4.0.) */
10165 for (i = 0; i < pagesize; ++i)
10166 *(data2 + i) = *(data2 + i) + 1;
10167 data3 = (char *) malloc (pagesize);
10168 if (!data3)
10169 return 1;
10170 if (read (fd, data3, pagesize) != pagesize)
10171 return 1;
10172 for (i = 0; i < pagesize; ++i)
10173 if (*(data + i) != *(data3 + i))
10174 return 1;
10175 close (fd);
10176 return 0;
10178 _ACEOF
10179 rm -f conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10190 { (case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_mmap_fixed_mapped=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_mmap_fixed_mapped=no
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10217 cat >>confdefs.h <<\_ACEOF
10218 #define HAVE_MMAP 1
10219 _ACEOF
10222 rm -f conftest.mmap
10224 if test $use_mmap_for_buffers = yes; then
10225 REL_ALLOC=no
10228 LIBS="$libsrc_libs $LIBS"
10231 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10232 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10233 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-ldnet $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char dnet_ntoa ();
10253 main ()
10255 return dnet_ntoa ();
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest$ac_exeext &&
10277 $as_test_x conftest$ac_exeext; then
10278 ac_cv_lib_dnet_dnet_ntoa=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_cv_lib_dnet_dnet_ntoa=no
10286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LIBS=$ac_check_lib_save_LIBS
10290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10291 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10292 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10293 cat >>confdefs.h <<_ACEOF
10294 #define HAVE_LIBDNET 1
10295 _ACEOF
10297 LIBS="-ldnet $LIBS"
10302 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10303 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-lXbsd $LIBS"
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10318 main ()
10320 return main ();
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10343 ac_cv_lib_Xbsd_main=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_cv_lib_Xbsd_main=no
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10356 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10357 if test $ac_cv_lib_Xbsd_main = yes; then
10358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10363 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10364 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10365 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lpthreads $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10380 #ifdef __cplusplus
10381 extern "C"
10382 #endif
10383 char cma_open ();
10385 main ()
10387 return cma_open ();
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext &&
10409 $as_test_x conftest$ac_exeext; then
10410 ac_cv_lib_pthreads_cma_open=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_lib_pthreads_cma_open=no
10418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10423 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10424 if test $ac_cv_lib_pthreads_cma_open = yes; then
10425 cat >>confdefs.h <<_ACEOF
10426 #define HAVE_LIBPTHREADS 1
10427 _ACEOF
10429 LIBS="-lpthreads $LIBS"
10434 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10435 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10436 if test -d /usr/X386/include; then
10437 HAVE_XFREE386=yes
10438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10439 else
10440 HAVE_XFREE386=no
10442 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10443 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10446 case ${host_os} in
10447 aix*)
10448 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10449 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10450 if test "${gdb_cv_bigtoc+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10454 case $GCC in
10455 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10456 *) gdb_cv_bigtoc=-bbigtoc ;;
10457 esac
10459 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10468 main ()
10470 int i;
10472 return 0;
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 gdb_cv_bigtoc=
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10505 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10506 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10508 esac
10510 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10511 # used for the tests that follow. We set them back to REAL_CFLAGS and
10512 # REAL_CPPFLAGS later on.
10514 REAL_CPPFLAGS="$CPPFLAGS"
10516 if test "${HAVE_X11}" = "yes"; then
10517 DEFS="$C_SWITCH_X_SITE $DEFS"
10518 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10519 LIBS="$LIBX $LIBS"
10520 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10521 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10523 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10524 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10525 # but it's more convenient here to set LD_RUN_PATH
10526 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10527 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10528 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10529 export LD_RUN_PATH
10532 if test "${opsys}" = "gnu-linux"; then
10533 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10534 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10543 main ()
10545 XOpenDisplay ("foo");
10547 return 0;
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest$ac_exeext &&
10567 $as_test_x conftest$ac_exeext; then
10568 xlinux_first_failure=no
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 xlinux_first_failure=yes
10576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10577 conftest$ac_exeext conftest.$ac_ext
10578 if test "${xlinux_first_failure}" = "yes"; then
10579 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10580 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10581 OLD_CPPFLAGS="$CPPFLAGS"
10582 OLD_LIBS="$LIBS"
10583 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10584 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10585 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10586 LIBS="$LIBS -b i486-linuxaout"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10595 main ()
10597 XOpenDisplay ("foo");
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10620 xlinux_second_failure=no
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 xlinux_second_failure=yes
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 if test "${xlinux_second_failure}" = "yes"; then
10631 # If we get the same failure with -b, there is no use adding -b.
10632 # So take it out. This plays safe.
10633 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10634 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10635 CPPFLAGS="$OLD_CPPFLAGS"
10636 LIBS="$OLD_LIBS"
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10639 else
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10643 else
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10649 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10650 # header files included from there.
10651 { echo "$as_me:$LINENO: checking for Xkb" >&5
10652 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <X11/Xlib.h>
10660 #include <X11/XKBlib.h>
10662 main ()
10664 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10666 return 0;
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest$ac_exeext &&
10686 $as_test_x conftest$ac_exeext; then
10687 emacs_xkb=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 emacs_xkb=no
10695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext conftest.$ac_ext
10697 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10698 echo "${ECHO_T}$emacs_xkb" >&6; }
10699 if test $emacs_xkb = yes; then
10701 cat >>confdefs.h <<\_ACEOF
10702 #define HAVE_XKBGETKEYBOARD 1
10703 _ACEOF
10711 for ac_func in XrmSetDatabase XScreenResourceString \
10712 XScreenNumberOfScreen XSetWMProtocols
10714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728 #define $ac_func innocuous_$ac_func
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10735 #ifdef __STDC__
10736 # include <limits.h>
10737 #else
10738 # include <assert.h>
10739 #endif
10741 #undef $ac_func
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char $ac_func ();
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10754 choke me
10755 #endif
10758 main ()
10760 return $ac_func ();
10762 return 0;
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 eval "$as_ac_var=yes"
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 eval "$as_ac_var=no"
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 ac_res=`eval echo '${'$as_ac_var'}'`
10795 { echo "$as_me:$LINENO: result: $ac_res" >&5
10796 echo "${ECHO_T}$ac_res" >&6; }
10797 if test `eval echo '${'$as_ac_var'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10800 _ACEOF
10803 done
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10809 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_6+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <X11/Xlib.h>
10821 main ()
10823 #if XlibSpecificationRelease < 6
10824 fail;
10825 #endif
10828 return 0;
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext &&
10848 $as_test_x conftest$ac_exeext; then
10849 emacs_cv_x11_version_6=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 emacs_cv_x11_version_6=no
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10861 if test $emacs_cv_x11_version_6 = yes; then
10862 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10863 echo "${ECHO_T}6 or newer" >&6; }
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_X11R6 1
10867 _ACEOF
10869 else
10870 { echo "$as_me:$LINENO: result: before 6" >&5
10871 echo "${ECHO_T}before 6" >&6; }
10875 if test "${window_system}" = "x11"; then
10876 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10877 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10878 if test "${emacs_cv_x11_version_5+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <X11/Xlib.h>
10889 main ()
10891 #if XlibSpecificationRelease < 5
10892 fail;
10893 #endif
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 emacs_cv_x11_version_5=yes
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 emacs_cv_x11_version_5=no
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10929 if test $emacs_cv_x11_version_5 = yes; then
10930 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10931 echo "${ECHO_T}5 or newer" >&6; }
10932 HAVE_X11R5=yes
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE_X11R5 1
10936 _ACEOF
10938 else
10939 HAVE_X11R5=no
10940 { echo "$as_me:$LINENO: result: before 5" >&5
10941 echo "${ECHO_T}before 5" >&6; }
10945 HAVE_GTK=no
10946 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10947 USE_X_TOOLKIT=none
10949 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10950 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10951 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10952 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10953 { (exit 1); exit 1; }; };
10955 GLIB_REQUIRED=2.4
10956 GTK_REQUIRED=2.4
10957 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10959 if test "X${with_pkg_config_prog}" != X; then
10960 PKG_CONFIG="${with_pkg_config_prog}"
10963 succeeded=no
10965 if test -z "$PKG_CONFIG"; then
10966 # Extract the first word of "pkg-config", so it can be a program name with args.
10967 set dummy pkg-config; ac_word=$2
10968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 case $PKG_CONFIG in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10989 done
10990 done
10991 IFS=$as_save_IFS
10993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10995 esac
10997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10998 if test -n "$PKG_CONFIG"; then
10999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11001 else
11002 { echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6; }
11009 if test "$PKG_CONFIG" = "no" ; then
11010 { { echo "$as_me:$LINENO: error:
11011 *** 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
11012 echo "$as_me: error:
11013 *** 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;}
11014 { (exit 1); exit 1; }; }
11015 else
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11019 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11021 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11022 { echo "$as_me:$LINENO: result: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11024 succeeded=yes
11026 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11027 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11028 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11029 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11030 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11032 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11033 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11034 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11035 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11036 echo "${ECHO_T}$GTK_LIBS" >&6; }
11037 else
11038 { echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6; }
11040 GTK_CFLAGS=""
11041 GTK_LIBS=""
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11045 echo $GTK_PKG_ERRORS
11050 else
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11056 if test $succeeded = yes; then
11058 else
11059 { { 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
11060 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;}
11061 { (exit 1); exit 1; }; }
11066 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11067 CFLAGS="$CFLAGS $GTK_CFLAGS"
11068 LIBS="$GTK_LIBS $LIBS"
11069 GTK_COMPILES=no
11071 for ac_func in gtk_main
11073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define $ac_func innocuous_$ac_func
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char $ac_func (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11094 #ifdef __STDC__
11095 # include <limits.h>
11096 #else
11097 # include <assert.h>
11098 #endif
11100 #undef $ac_func
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char $ac_func ();
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined __stub_$ac_func || defined __stub___$ac_func
11113 choke me
11114 #endif
11117 main ()
11119 return $ac_func ();
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_link") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest$ac_exeext &&
11141 $as_test_x conftest$ac_exeext; then
11142 eval "$as_ac_var=yes"
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 eval "$as_ac_var=no"
11150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151 conftest$ac_exeext conftest.$ac_ext
11153 ac_res=`eval echo '${'$as_ac_var'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11156 if test `eval echo '${'$as_ac_var'}'` = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 _ACEOF
11160 GTK_COMPILES=yes
11162 done
11164 if test "${GTK_COMPILES}" != "yes"; then
11165 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11166 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11167 { (exit 1); exit 1; }; };
11170 HAVE_GTK=yes
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_GTK 1
11174 _ACEOF
11176 USE_X_TOOLKIT=none
11178 if test "$with_toolkit_scroll_bars" != no; then
11179 with_toolkit_scroll_bars=yes
11182 HAVE_GTK_MULTIDISPLAY=no
11184 for ac_func in gdk_display_open
11186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200 #define $ac_func innocuous_$ac_func
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11207 #ifdef __STDC__
11208 # include <limits.h>
11209 #else
11210 # include <assert.h>
11211 #endif
11213 #undef $ac_func
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char $ac_func ();
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined __stub_$ac_func || defined __stub___$ac_func
11226 choke me
11227 #endif
11230 main ()
11232 return $ac_func ();
11234 return 0;
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 eval "$as_ac_var=yes"
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_var=no"
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11266 ac_res=`eval echo '${'$as_ac_var'}'`
11267 { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11269 if test `eval echo '${'$as_ac_var'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11272 _ACEOF
11273 HAVE_GTK_MULTIDISPLAY=yes
11275 done
11277 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_GTK_MULTIDISPLAY 1
11281 _ACEOF
11284 HAVE_GTK_FILE_SELECTION=no
11286 for ac_func in gtk_file_selection_new
11288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11302 #define $ac_func innocuous_$ac_func
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func (); below.
11306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307 <limits.h> exists even on freestanding compilers. */
11309 #ifdef __STDC__
11310 # include <limits.h>
11311 #else
11312 # include <assert.h>
11313 #endif
11315 #undef $ac_func
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char $ac_func ();
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined __stub_$ac_func || defined __stub___$ac_func
11328 choke me
11329 #endif
11332 main ()
11334 return $ac_func ();
11336 return 0;
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_link") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest$ac_exeext &&
11356 $as_test_x conftest$ac_exeext; then
11357 eval "$as_ac_var=yes"
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 eval "$as_ac_var=no"
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366 conftest$ac_exeext conftest.$ac_ext
11368 ac_res=`eval echo '${'$as_ac_var'}'`
11369 { echo "$as_me:$LINENO: result: $ac_res" >&5
11370 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_var'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 _ACEOF
11375 HAVE_GTK_FILE_SELECTION=yes
11377 done
11380 HAVE_GTK_FILE_CHOOSER=no
11382 for ac_func in gtk_file_chooser_dialog_new
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11405 #ifdef __STDC__
11406 # include <limits.h>
11407 #else
11408 # include <assert.h>
11409 #endif
11411 #undef $ac_func
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char $ac_func ();
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 choke me
11425 #endif
11428 main ()
11430 return $ac_func ();
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext &&
11452 $as_test_x conftest$ac_exeext; then
11453 eval "$as_ac_var=yes"
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 eval "$as_ac_var=no"
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 ac_res=`eval echo '${'$as_ac_var'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11471 HAVE_GTK_FILE_CHOOSER=yes
11473 done
11476 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11477 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_GTK_FILE_BOTH 1
11481 _ACEOF
11485 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11486 HAVE_GTK_AND_PTHREAD=no
11488 for ac_header in pthread.h
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11500 else
11501 # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_compile") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest.$ac_objext; then
11530 ac_header_compiler=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_compiler=no
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <$ac_header>
11552 _ACEOF
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11568 }; then
11569 ac_header_preproc=yes
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_header_preproc=no
11577 rm -f conftest.err conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583 yes:no: )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11590 no:yes:* )
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605 esac
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11621 _ACEOF
11625 done
11627 if test "$ac_cv_header_pthread_h"; then
11628 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11629 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11630 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lpthread $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char pthread_self ();
11650 main ()
11652 return pthread_self ();
11654 return 0;
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext &&
11674 $as_test_x conftest$ac_exeext; then
11675 ac_cv_lib_pthread_pthread_self=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_lib_pthread_pthread_self=no
11683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11689 if test $ac_cv_lib_pthread_pthread_self = yes; then
11690 HAVE_GTK_AND_PTHREAD=yes
11694 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11695 GTK_LIBS="$GTK_LIBS -lpthread"
11697 cat >>confdefs.h <<\_ACEOF
11698 #define HAVE_GTK_AND_PTHREAD 1
11699 _ACEOF
11705 ### Link with -lXft if available to work around a bug.
11706 HAVE_XFT=maybe
11707 if test "${HAVE_GTK}" = "yes"; then
11708 if test "X${with_pkg_config_prog}" != X; then
11709 PKG_CONFIG="${with_pkg_config_prog}"
11713 succeeded=no
11715 if test -z "$PKG_CONFIG"; then
11716 # Extract the first word of "pkg-config", so it can be a program name with args.
11717 set dummy pkg-config; ac_word=$2
11718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723 case $PKG_CONFIG in
11724 [\\/]* | ?:[\\/]*)
11725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11739 done
11740 done
11741 IFS=$as_save_IFS
11743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11745 esac
11747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11748 if test -n "$PKG_CONFIG"; then
11749 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11750 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11751 else
11752 { echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6; }
11759 if test "$PKG_CONFIG" = "no" ; then
11760 HAVE_XFT=no
11761 else
11762 PKG_CONFIG_MIN_VERSION=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11765 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11767 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11768 { echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6; }
11770 succeeded=yes
11772 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11773 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11774 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11775 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11776 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11778 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11779 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11780 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11781 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11782 echo "${ECHO_T}$XFT_LIBS" >&6; }
11783 else
11784 { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11786 XFT_CFLAGS=""
11787 XFT_LIBS=""
11788 ## If we have a custom action on failure, don't print errors, but
11789 ## do set a variable so people can do so.
11790 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11796 else
11797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11802 if test $succeeded = yes; then
11804 else
11805 HAVE_XFT=no
11808 if test "$HAVE_XFT" != no; then
11809 OLD_CFLAGS="$CPPFLAGS"
11810 OLD_CPPFLAGS="$CFLAGS"
11811 OLD_LIBS="$LIBS"
11812 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11813 CFLAGS="$CFLAGS $XFT_CFLAGS"
11814 LIBS="$XFT_LIBS $LIBS"
11815 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11816 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11817 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11818 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11822 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11823 else
11824 # Is the header compilable?
11825 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11826 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 #include <X11/Xft/Xft.h>
11835 _ACEOF
11836 rm -f conftest.$ac_objext
11837 if { (ac_try="$ac_compile"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_header_compiler=yes
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_compiler=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6; }
11865 # Is the header present?
11866 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11867 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h. */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <X11/Xft/Xft.h>
11875 _ACEOF
11876 if { (ac_try="$ac_cpp conftest.$ac_ext"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev/null && {
11889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11890 test ! -s conftest.err
11891 }; then
11892 ac_header_preproc=yes
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_header_preproc=no
11900 rm -f conftest.err conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11902 echo "${ECHO_T}$ac_header_preproc" >&6; }
11904 # So? What about this header?
11905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11906 yes:no: )
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11911 ac_header_preproc=yes
11913 no:yes:* )
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11919 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11921 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11925 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11928 esac
11929 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11930 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11931 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11936 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11937 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11940 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11941 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11942 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11943 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lXft $XFT_LIBS $LIBS"
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 char XftFontOpen ();
11963 main ()
11965 return XftFontOpen ();
11967 return 0;
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
11988 ac_cv_lib_Xft_XftFontOpen=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_lib_Xft_XftFontOpen=no
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12001 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12002 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12003 HAVE_XFT=yes
12010 if test "${HAVE_XFT}" = "yes"; then
12012 cat >>confdefs.h <<\_ACEOF
12013 #define HAVE_XFT 1
12014 _ACEOF
12017 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12018 else
12019 CFLAGS="$OLD_CPPFLAGS"
12020 CFLAGS="$OLD_CFLAGS"
12021 LIBS="$OLD_LIBS"
12026 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12027 if test x"${HAVE_X11R5}" = xyes; then
12028 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12029 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12030 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12040 #include <X11/Intrinsic.h>
12041 #include <X11/Xaw/Simple.h>
12043 main ()
12047 return 0;
12049 _ACEOF
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_link") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest$ac_exeext &&
12067 $as_test_x conftest$ac_exeext; then
12068 emacs_cv_x11_version_5_with_xaw=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 emacs_cv_x11_version_5_with_xaw=no
12076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12077 conftest$ac_exeext conftest.$ac_ext
12080 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12081 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12082 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12083 USE_X_TOOLKIT=LUCID
12084 else
12085 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12086 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12087 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12088 { (exit 1); exit 1; }; }
12089 else
12090 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12091 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12092 USE_X_TOOLKIT=none
12095 else
12096 USE_X_TOOLKIT=none
12100 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12102 if test "${USE_X_TOOLKIT}" != "none"; then
12103 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12104 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12105 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <X11/Intrinsic.h>
12116 main ()
12118 #if XtSpecificationRelease < 6
12119 fail;
12120 #endif
12123 return 0;
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (ac_try="$ac_link"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest$ac_exeext &&
12143 $as_test_x conftest$ac_exeext; then
12144 emacs_cv_x11_toolkit_version_6=yes
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 emacs_cv_x11_toolkit_version_6=no
12152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12153 conftest$ac_exeext conftest.$ac_ext
12156 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12157 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12158 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12159 echo "${ECHO_T}6 or newer" >&6; }
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_X11XTR6 1
12163 _ACEOF
12165 else
12166 { echo "$as_me:$LINENO: result: before 6" >&5
12167 echo "${ECHO_T}before 6" >&6; }
12170 OLDLIBS="$LIBS"
12171 if test x$HAVE_X11XTR6 = xyes; then
12172 LIBS="-lXt -lSM -lICE $LIBS"
12173 else
12174 LIBS="-lXt $LIBS"
12177 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12178 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12179 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lXmu $LIBS"
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char XmuConvertStandardSelection ();
12199 main ()
12201 return XmuConvertStandardSelection ();
12203 return 0;
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext &&
12223 $as_test_x conftest$ac_exeext; then
12224 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12237 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12238 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define HAVE_LIBXMU 1
12241 _ACEOF
12243 LIBS="-lXmu $LIBS"
12247 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12250 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12251 if test "${HAVE_X11}" = "yes"; then
12252 if test "${USE_X_TOOLKIT}" != "none"; then
12254 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12255 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-lXext $LIBS"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h. */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 char XShapeQueryExtension ();
12276 main ()
12278 return XShapeQueryExtension ();
12280 return 0;
12282 _ACEOF
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } && {
12297 test -z "$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 } && test -s conftest$ac_exeext &&
12300 $as_test_x conftest$ac_exeext; then
12301 ac_cv_lib_Xext_XShapeQueryExtension=yes
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_cv_lib_Xext_XShapeQueryExtension=no
12309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12314 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12315 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_LIBXEXT 1
12318 _ACEOF
12320 LIBS="-lXext $LIBS"
12327 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12328 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12329 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12330 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 #include <Xm/Xm.h>
12341 main ()
12343 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12344 int x = 5;
12345 #else
12346 Motif version prior to 2.1.
12347 #endif
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.$ac_objext; then
12369 emacs_cv_motif_version_2_1=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 emacs_cv_motif_version_2_1=no
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12380 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12381 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12382 if test $emacs_cv_motif_version_2_1 = yes; then
12383 HAVE_LIBXP=no
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_MOTIF_2_1 1
12387 _ACEOF
12389 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12390 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12391 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lXp $LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char XpCreateContext ();
12411 main ()
12413 return XpCreateContext ();
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext &&
12435 $as_test_x conftest$ac_exeext; then
12436 ac_cv_lib_Xp_XpCreateContext=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_lib_Xp_XpCreateContext=no
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12449 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12450 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12451 HAVE_LIBXP=yes
12454 if test ${HAVE_LIBXP} = yes; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_LIBXP 1
12458 _ACEOF
12461 else
12462 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12463 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12464 if test "${emacs_cv_lesstif+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467 # We put this in CFLAGS temporarily to precede other -I options
12468 # that might be in CFLAGS temporarily.
12469 # We put this in CPPFLAGS where it precedes the other -I options.
12470 OLD_CPPFLAGS=$CPPFLAGS
12471 OLD_CFLAGS=$CFLAGS
12472 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12473 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12482 main ()
12484 int x = 5;
12486 return 0;
12488 _ACEOF
12489 rm -f conftest.$ac_objext
12490 if { (ac_try="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.$ac_objext; then
12506 emacs_cv_lesstif=yes
12507 else
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 emacs_cv_lesstif=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12517 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12518 if test $emacs_cv_lesstif = yes; then
12519 # Make sure this -I option remains in CPPFLAGS after it is set
12520 # back to REAL_CPPFLAGS.
12521 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12522 # have those other -I options anyway. Ultimately, having this
12523 # directory ultimately in CPPFLAGS will be enough.
12524 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12525 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12526 else
12527 CFLAGS=$OLD_CFLAGS
12528 CPPFLAGS=$OLD_CPPFLAGS
12533 ### Is -lXaw3d available?
12534 HAVE_XAW3D=no
12535 if test "${HAVE_X11}" = "yes"; then
12536 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12537 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12538 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12539 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include <X11/Xaw3d/Scrollbar.h>
12549 _ACEOF
12550 if { (ac_try="$ac_cpp conftest.$ac_ext"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev/null && {
12563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 }; then
12566 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12574 rm -f conftest.err conftest.$ac_ext
12576 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12577 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12578 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12579 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12580 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12581 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lXaw3d $LIBS"
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char XawScrollbarSetThumb ();
12601 main ()
12603 return XawScrollbarSetThumb ();
12605 return 0;
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_link") 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && {
12622 test -z "$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12624 } && test -s conftest$ac_exeext &&
12625 $as_test_x conftest$ac_exeext; then
12626 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12635 conftest$ac_exeext conftest.$ac_ext
12636 LIBS=$ac_check_lib_save_LIBS
12638 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12639 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12640 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12641 HAVE_XAW3D=yes
12647 if test "${HAVE_XAW3D}" = "yes"; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_XAW3D 1
12651 _ACEOF
12659 USE_TOOLKIT_SCROLL_BARS=no
12660 if test "${with_toolkit_scroll_bars}" != "no"; then
12661 if test "${USE_X_TOOLKIT}" != "none"; then
12662 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12665 _ACEOF
12667 HAVE_XAW3D=no
12668 USE_TOOLKIT_SCROLL_BARS=yes
12669 elif test "${HAVE_XAW3D}" = "yes"; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12672 _ACEOF
12674 USE_TOOLKIT_SCROLL_BARS=yes
12676 elif test "${HAVE_GTK}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define USE_TOOLKIT_SCROLL_BARS 1
12679 _ACEOF
12681 USE_TOOLKIT_SCROLL_BARS=yes
12682 elif test "${HAVE_CARBON}" = "yes"; then
12683 cat >>confdefs.h <<\_ACEOF
12684 #define USE_TOOLKIT_SCROLL_BARS 1
12685 _ACEOF
12687 USE_TOOLKIT_SCROLL_BARS=yes
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 #include <X11/Xlib.h>
12699 #include <X11/Xresource.h>
12701 main ()
12703 XIMProc callback;
12705 return 0;
12707 _ACEOF
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 HAVE_XIM=yes
12727 cat >>confdefs.h <<\_ACEOF
12728 #define HAVE_XIM 1
12729 _ACEOF
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 HAVE_XIM=no
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 if test "${with_xim}" != "no"; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define USE_XIM 1
12745 _ACEOF
12750 if test "${HAVE_XIM}" != "no"; then
12751 late_CFLAGS=$CFLAGS
12752 if test "$GCC" = yes; then
12753 CFLAGS="$CFLAGS --pedantic-errors"
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12762 #include <X11/Xlib.h>
12763 #include <X11/Xresource.h>
12765 main ()
12767 Display *display;
12768 XrmDatabase db;
12769 char *res_name;
12770 char *res_class;
12771 XIMProc callback;
12772 XPointer *client_data;
12773 #ifndef __GNUC__
12774 /* If we're not using GCC, it's probably not XFree86, and this is
12775 probably right, but we can't use something like --pedantic-errors. */
12776 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12777 char*, XIMProc, XPointer*);
12778 #endif
12779 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12780 client_data);
12782 return 0;
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.$ac_objext; then
12802 emacs_cv_arg6_star=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 if test "$emacs_cv_arg6_star" = yes; then
12813 cat >>confdefs.h <<\_ACEOF
12814 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12815 _ACEOF
12817 else
12818 cat >>confdefs.h <<\_ACEOF
12819 #define XRegisterIMInstantiateCallback_arg6 XPointer
12820 _ACEOF
12823 CFLAGS=$late_CFLAGS
12826 ### Use -lXpm if available, unless `--with-xpm=no'.
12827 HAVE_XPM=no
12828 if test "${HAVE_X11}" = "yes"; then
12829 if test "${with_xpm}" != "no"; then
12830 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12831 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12832 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12833 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12837 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12838 else
12839 # Is the header compilable?
12840 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12841 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12849 #include <X11/xpm.h>
12850 _ACEOF
12851 rm -f conftest.$ac_objext
12852 if { (ac_try="$ac_compile"
12853 case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_compile") 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest.$ac_objext; then
12868 ac_header_compiler=yes
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_header_compiler=no
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12878 echo "${ECHO_T}$ac_header_compiler" >&6; }
12880 # Is the header present?
12881 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12882 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <X11/xpm.h>
12890 _ACEOF
12891 if { (ac_try="$ac_cpp conftest.$ac_ext"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev/null && {
12904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 }; then
12907 ac_header_preproc=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_header_preproc=no
12915 rm -f conftest.err conftest.$ac_ext
12916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12917 echo "${ECHO_T}$ac_header_preproc" >&6; }
12919 # So? What about this header?
12920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12921 yes:no: )
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12926 ac_header_preproc=yes
12928 no:yes:* )
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12934 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12936 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12940 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12943 esac
12944 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12945 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12946 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949 ac_cv_header_X11_xpm_h=$ac_header_preproc
12951 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12952 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12955 if test $ac_cv_header_X11_xpm_h = yes; then
12956 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12957 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12958 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 ac_check_lib_save_LIBS=$LIBS
12962 LIBS="-lXpm -lX11 $LIBS"
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 char XpmReadFileToPixmap ();
12978 main ()
12980 return XpmReadFileToPixmap ();
12982 return 0;
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest$ac_exeext &&
13002 $as_test_x conftest$ac_exeext; then
13003 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13004 else
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13012 conftest$ac_exeext conftest.$ac_ext
13013 LIBS=$ac_check_lib_save_LIBS
13015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13016 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13017 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13018 HAVE_XPM=yes
13024 if test "${HAVE_XPM}" = "yes"; then
13025 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13026 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 #include "X11/xpm.h"
13034 #ifndef XpmReturnAllocPixels
13035 no_return_alloc_pixels
13036 #endif
13038 _ACEOF
13039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13041 HAVE_XPM=no
13042 else
13043 HAVE_XPM=yes
13045 rm -f conftest*
13048 if test "${HAVE_XPM}" = "yes"; then
13049 { echo "$as_me:$LINENO: result: yes" >&5
13050 echo "${ECHO_T}yes" >&6; }
13051 else
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13058 if test "${HAVE_XPM}" = "yes"; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_XPM 1
13062 _ACEOF
13067 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13068 HAVE_JPEG=no
13069 if test "${HAVE_X11}" = "yes"; then
13070 if test "${with_jpeg}" != "no"; then
13071 if test "${ac_cv_header_jerror_h+set}" = set; then
13072 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13073 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13074 if test "${ac_cv_header_jerror_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13079 else
13080 # Is the header compilable?
13081 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13082 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <jerror.h>
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } && {
13106 test -z "$ac_c_werror_flag" ||
13107 test ! -s conftest.err
13108 } && test -s conftest.$ac_objext; then
13109 ac_header_compiler=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_header_compiler=no
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6; }
13121 # Is the header present?
13122 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13123 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <jerror.h>
13131 _ACEOF
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null && {
13145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 }; then
13148 ac_header_preproc=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_header_preproc=no
13156 rm -f conftest.err conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 echo "${ECHO_T}$ac_header_preproc" >&6; }
13160 # So? What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13162 yes:no: )
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13166 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13167 ac_header_preproc=yes
13169 no:yes:* )
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13171 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13173 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13175 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13177 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13179 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13181 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13184 esac
13185 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13186 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13187 if test "${ac_cv_header_jerror_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 ac_cv_header_jerror_h=$ac_header_preproc
13192 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13196 if test $ac_cv_header_jerror_h = yes; then
13197 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13198 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13199 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-ljpeg $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h. */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 char jpeg_destroy_compress ();
13219 main ()
13221 return jpeg_destroy_compress ();
13223 return 0;
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest$ac_exeext &&
13243 $as_test_x conftest$ac_exeext; then
13244 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13245 else
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13257 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13258 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13259 HAVE_JPEG=yes
13268 if test "${HAVE_JPEG}" = "yes"; then
13269 cat >>confdefs.h <<\_ACEOF
13270 #define HAVE_JPEG 1
13271 _ACEOF
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <jpeglib.h>
13280 version=JPEG_LIB_VERSION
13282 _ACEOF
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_JPEG 1
13287 _ACEOF
13289 else
13290 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13291 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13292 HAVE_JPEG=no
13294 rm -f conftest*
13299 ### Use -lpng if available, unless `--with-png=no'.
13300 HAVE_PNG=no
13301 if test "${HAVE_X11}" = "yes"; then
13302 if test "${with_png}" != "no"; then
13303 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13304 # in /usr/include/libpng.
13307 for ac_header in png.h libpng/png.h
13309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_res=`eval echo '${'$as_ac_Header'}'`
13317 { echo "$as_me:$LINENO: result: $ac_res" >&5
13318 echo "${ECHO_T}$ac_res" >&6; }
13319 else
13320 # Is the header compilable?
13321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13323 cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h. */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 $ac_includes_default
13330 #include <$ac_header>
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (ac_try="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_header_compiler=yes
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_header_compiler=no
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6; }
13361 # Is the header present?
13362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <$ac_header>
13371 _ACEOF
13372 if { (ac_try="$ac_cpp conftest.$ac_ext"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev/null && {
13385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 }; then
13388 ac_header_preproc=yes
13389 else
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ac_header_preproc=no
13396 rm -f conftest.err conftest.$ac_ext
13397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13398 echo "${ECHO_T}$ac_header_preproc" >&6; }
13400 # So? What about this header?
13401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 yes:no: )
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13407 ac_header_preproc=yes
13409 no:yes:* )
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13424 esac
13425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 eval "$as_ac_Header=\$ac_header_preproc"
13432 ac_res=`eval echo '${'$as_ac_Header'}'`
13433 { echo "$as_me:$LINENO: result: $ac_res" >&5
13434 echo "${ECHO_T}$ac_res" >&6; }
13437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13438 cat >>confdefs.h <<_ACEOF
13439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13440 _ACEOF
13444 done
13446 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13447 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13448 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13449 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 ac_check_lib_save_LIBS=$LIBS
13453 LIBS="-lpng -lz -lm $LIBS"
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 char png_get_channels ();
13469 main ()
13471 return png_get_channels ();
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest$ac_exeext &&
13493 $as_test_x conftest$ac_exeext; then
13494 ac_cv_lib_png_png_get_channels=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_cv_lib_png_png_get_channels=no
13502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13503 conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13506 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13507 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13508 if test $ac_cv_lib_png_png_get_channels = yes; then
13509 HAVE_PNG=yes
13515 if test "${HAVE_PNG}" = "yes"; then
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_PNG 1
13519 _ACEOF
13524 ### Use -ltiff if available, unless `--with-tiff=no'.
13525 HAVE_TIFF=no
13526 if test "${HAVE_X11}" = "yes"; then
13527 if test "${with_tiff}" != "no"; then
13528 if test "${ac_cv_header_tiffio_h+set}" = set; then
13529 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13530 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_tiffio_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13536 else
13537 # Is the header compilable?
13538 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13539 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 #include <tiffio.h>
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (ac_try="$ac_compile"
13551 case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554 esac
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_compile") 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && {
13563 test -z "$ac_c_werror_flag" ||
13564 test ! -s conftest.err
13565 } && test -s conftest.$ac_objext; then
13566 ac_header_compiler=yes
13567 else
13568 echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13571 ac_header_compiler=no
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13576 echo "${ECHO_T}$ac_header_compiler" >&6; }
13578 # Is the header present?
13579 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13580 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #include <tiffio.h>
13588 _ACEOF
13589 if { (ac_try="$ac_cpp conftest.$ac_ext"
13590 case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } >/dev/null && {
13602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13603 test ! -s conftest.err
13604 }; then
13605 ac_header_preproc=yes
13606 else
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13610 ac_header_preproc=no
13613 rm -f conftest.err conftest.$ac_ext
13614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13615 echo "${ECHO_T}$ac_header_preproc" >&6; }
13617 # So? What about this header?
13618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13619 yes:no: )
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13621 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13623 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13624 ac_header_preproc=yes
13626 no:yes:* )
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13628 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13630 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13632 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13634 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13636 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13638 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13641 esac
13642 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13643 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13644 if test "${ac_cv_header_tiffio_h+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647 ac_cv_header_tiffio_h=$ac_header_preproc
13649 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13650 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13653 if test $ac_cv_header_tiffio_h = yes; then
13654 tifflibs="-lz -lm"
13655 # At least one tiff package requires the jpeg library.
13656 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13657 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13658 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13659 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-ltiff $tifflibs $LIBS"
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 /* Override any GCC internal prototype to avoid an error.
13672 Use char because int might match the return type of a GCC
13673 builtin and then its argument prototype would still apply. */
13674 #ifdef __cplusplus
13675 extern "C"
13676 #endif
13677 char TIFFGetVersion ();
13679 main ()
13681 return TIFFGetVersion ();
13683 return 0;
13685 _ACEOF
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (ac_try="$ac_link"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_link") 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest$ac_exeext &&
13703 $as_test_x conftest$ac_exeext; then
13704 ac_cv_lib_tiff_TIFFGetVersion=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 ac_cv_lib_tiff_TIFFGetVersion=no
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13713 conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13716 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13717 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13718 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13719 HAVE_TIFF=yes
13727 if test "${HAVE_TIFF}" = "yes"; then
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_TIFF 1
13731 _ACEOF
13736 ### Use -lgif if available, unless `--with-gif=no'.
13737 HAVE_GIF=no
13738 if test "${HAVE_X11}" = "yes"; then
13739 if test "${with_gif}" != "no"; then
13740 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13742 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13748 else
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13751 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13759 #include <gif_lib.h>
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (ac_try="$ac_compile"
13763 case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 ac_header_compiler=yes
13779 else
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_header_compiler=no
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13792 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <gif_lib.h>
13800 _ACEOF
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null && {
13814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 }; then
13817 ac_header_preproc=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_header_preproc=no
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 yes:no: )
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
13838 no:yes:* )
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13853 esac
13854 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13855 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 ac_cv_header_gif_lib_h=$ac_header_preproc
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13865 if test $ac_cv_header_gif_lib_h = yes; then
13866 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13867 # Earlier versions can crash Emacs.
13868 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13869 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13870 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 ac_check_lib_save_LIBS=$LIBS
13874 LIBS="-lungif $LIBS"
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char EGifPutExtensionLast ();
13890 main ()
13892 return EGifPutExtensionLast ();
13894 return 0;
13896 _ACEOF
13897 rm -f conftest.$ac_objext conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest$ac_exeext &&
13914 $as_test_x conftest$ac_exeext; then
13915 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_lib_ungif_EGifPutExtensionLast=no
13923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13924 conftest$ac_exeext conftest.$ac_ext
13925 LIBS=$ac_check_lib_save_LIBS
13927 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13928 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13929 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13930 HAVE_GIF=yes
13938 if test "${HAVE_GIF}" = "yes"; then
13940 cat >>confdefs.h <<\_ACEOF
13941 #define HAVE_GIF 1
13942 _ACEOF
13947 ### Use -lgpm if available, unless `--with-gpm=no'.
13948 HAVE_GPM=no
13949 if test "${with_gpm}" != "no"; then
13950 if test "${ac_cv_header_gpm_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13952 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_gpm_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13958 else
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13961 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13969 #include <gpm.h>
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (ac_try="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14002 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <gpm.h>
14010 _ACEOF
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null && {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14026 }; then
14027 ac_header_preproc=yes
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_header_preproc=no
14035 rm -f conftest.err conftest.$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14041 yes:no: )
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14045 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc=yes
14048 no:yes:* )
14049 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14058 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14063 esac
14064 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14065 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_gpm_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 ac_cv_header_gpm_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14075 if test $ac_cv_header_gpm_h = yes; then
14076 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14077 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14078 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 ac_check_lib_save_LIBS=$LIBS
14082 LIBS="-lgpm $LIBS"
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14093 #ifdef __cplusplus
14094 extern "C"
14095 #endif
14096 char Gpm_Open ();
14098 main ()
14100 return Gpm_Open ();
14102 return 0;
14104 _ACEOF
14105 rm -f conftest.$ac_objext conftest$ac_exeext
14106 if { (ac_try="$ac_link"
14107 case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_link") 2>conftest.er1
14113 ac_status=$?
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest$ac_exeext &&
14122 $as_test_x conftest$ac_exeext; then
14123 ac_cv_lib_gpm_Gpm_Open=yes
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_lib_gpm_Gpm_Open=no
14131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14136 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14137 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14138 HAVE_GPM=yes
14146 if test "${HAVE_GPM}" = "yes"; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define HAVE_GPM 1
14150 _ACEOF
14154 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14155 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14156 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14157 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14161 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14162 else
14163 # Is the header compilable?
14164 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14165 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h. */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 $ac_includes_default
14173 #include <malloc/malloc.h>
14174 _ACEOF
14175 rm -f conftest.$ac_objext
14176 if { (ac_try="$ac_compile"
14177 case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_compile") 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && {
14189 test -z "$ac_c_werror_flag" ||
14190 test ! -s conftest.err
14191 } && test -s conftest.$ac_objext; then
14192 ac_header_compiler=yes
14193 else
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 ac_header_compiler=no
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14202 echo "${ECHO_T}$ac_header_compiler" >&6; }
14204 # Is the header present?
14205 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14206 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14207 cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h. */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 #include <malloc/malloc.h>
14214 _ACEOF
14215 if { (ac_try="$ac_cpp conftest.$ac_ext"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } >/dev/null && {
14228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14229 test ! -s conftest.err
14230 }; then
14231 ac_header_preproc=yes
14232 else
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_header_preproc=no
14239 rm -f conftest.err conftest.$ac_ext
14240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14241 echo "${ECHO_T}$ac_header_preproc" >&6; }
14243 # So? What about this header?
14244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14245 yes:no: )
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14247 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14249 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14250 ac_header_preproc=yes
14252 no:yes:* )
14253 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14254 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14256 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14258 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14260 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14262 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14264 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14267 esac
14268 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14269 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14270 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14275 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14276 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14279 if test $ac_cv_header_malloc_malloc_h = yes; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_MALLOC_MALLOC_H 1
14283 _ACEOF
14289 ### Use Mac OS X Carbon API to implement GUI.
14290 if test "${HAVE_CARBON}" = "yes"; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_CARBON 1
14294 _ACEOF
14296 ## Specify the install directory
14297 carbon_appdir=
14298 if test "${carbon_appdir_x}" != ""; then
14299 case ${carbon_appdir_x} in
14300 y | ye | yes) carbon_appdir=/Applications ;;
14301 * ) carbon_appdir=${carbon_appdir_x} ;;
14302 esac
14304 # We also have mouse menus.
14305 HAVE_MENUS=yes
14308 ### Use session management (-lSM -lICE) if available
14309 HAVE_X_SM=no
14310 if test "${HAVE_X11}" = "yes"; then
14311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14312 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14313 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14314 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14318 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14319 else
14320 # Is the header compilable?
14321 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14322 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 #include <X11/SM/SMlib.h>
14331 _ACEOF
14332 rm -f conftest.$ac_objext
14333 if { (ac_try="$ac_compile"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_compile") 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest.$ac_objext; then
14349 ac_header_compiler=yes
14350 else
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_header_compiler=no
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359 echo "${ECHO_T}$ac_header_compiler" >&6; }
14361 # Is the header present?
14362 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14363 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <X11/SM/SMlib.h>
14371 _ACEOF
14372 if { (ac_try="$ac_cpp conftest.$ac_ext"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } >/dev/null && {
14385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 }; then
14388 ac_header_preproc=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_header_preproc=no
14396 rm -f conftest.err conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398 echo "${ECHO_T}$ac_header_preproc" >&6; }
14400 # So? What about this header?
14401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14402 yes:no: )
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14404 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14406 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14407 ac_header_preproc=yes
14409 no:yes:* )
14410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14411 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14413 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14415 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14417 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14419 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14421 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14424 esac
14425 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14426 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14427 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14436 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14437 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14438 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14439 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442 ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lSM -lICE $LIBS"
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char SmcOpenConnection ();
14459 main ()
14461 return SmcOpenConnection ();
14463 return 0;
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest$ac_exeext &&
14483 $as_test_x conftest$ac_exeext; then
14484 ac_cv_lib_SM_SmcOpenConnection=yes
14485 else
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_lib_SM_SmcOpenConnection=no
14492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14493 conftest$ac_exeext conftest.$ac_ext
14494 LIBS=$ac_check_lib_save_LIBS
14496 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14497 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14498 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14499 HAVE_X_SM=yes
14506 if test "${HAVE_X_SM}" = "yes"; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_X_SM 1
14510 _ACEOF
14512 case "$LIBS" in
14513 *-lSM*) ;;
14514 *) LIBS="-lSM -lICE $LIBS" ;;
14515 esac
14519 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14520 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14521 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14522 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <netdb.h>
14533 main ()
14535 return h_errno;
14537 return 0;
14539 _ACEOF
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (ac_try="$ac_link"
14542 case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_link") 2>conftest.er1
14548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext &&
14557 $as_test_x conftest$ac_exeext; then
14558 emacs_cv_netdb_declares_h_errno=yes
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 emacs_cv_netdb_declares_h_errno=no
14566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14567 conftest$ac_exeext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14570 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14571 if test $emacs_cv_netdb_declares_h_errno = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_H_ERRNO 1
14575 _ACEOF
14579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14580 # for constant arguments. Useless!
14581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14583 if test "${ac_cv_working_alloca_h+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <alloca.h>
14594 main ()
14596 char *p = (char *) alloca (2 * sizeof (int));
14597 if (p) return 0;
14599 return 0;
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext &&
14619 $as_test_x conftest$ac_exeext; then
14620 ac_cv_working_alloca_h=yes
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_cv_working_alloca_h=no
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629 conftest$ac_exeext conftest.$ac_ext
14631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14633 if test $ac_cv_working_alloca_h = yes; then
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_ALLOCA_H 1
14637 _ACEOF
14641 { echo "$as_me:$LINENO: checking for alloca" >&5
14642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14643 if test "${ac_cv_func_alloca_works+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #ifdef __GNUC__
14653 # define alloca __builtin_alloca
14654 #else
14655 # ifdef _MSC_VER
14656 # include <malloc.h>
14657 # define alloca _alloca
14658 # else
14659 # ifdef HAVE_ALLOCA_H
14660 # include <alloca.h>
14661 # else
14662 # ifdef _AIX
14663 #pragma alloca
14664 # else
14665 # ifndef alloca /* predefined by HP cc +Olibcalls */
14666 char *alloca ();
14667 # endif
14668 # endif
14669 # endif
14670 # endif
14671 #endif
14674 main ()
14676 char *p = (char *) alloca (1);
14677 if (p) return 0;
14679 return 0;
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && {
14696 test -z "$ac_c_werror_flag" ||
14697 test ! -s conftest.err
14698 } && test -s conftest$ac_exeext &&
14699 $as_test_x conftest$ac_exeext; then
14700 ac_cv_func_alloca_works=yes
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_func_alloca_works=no
14708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14709 conftest$ac_exeext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14714 if test $ac_cv_func_alloca_works = yes; then
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_ALLOCA 1
14718 _ACEOF
14720 else
14721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14722 # that cause trouble. Some versions do not even contain alloca or
14723 # contain a buggy version. If you still want to use their alloca,
14724 # use ar to extract alloca.o from them instead of compiling alloca.c.
14726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14728 cat >>confdefs.h <<\_ACEOF
14729 #define C_ALLOCA 1
14730 _ACEOF
14733 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14735 if test "${ac_cv_os_cray+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h. */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #if defined CRAY && ! defined CRAY2
14745 webecray
14746 #else
14747 wenotbecray
14748 #endif
14750 _ACEOF
14751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14752 $EGREP "webecray" >/dev/null 2>&1; then
14753 ac_cv_os_cray=yes
14754 else
14755 ac_cv_os_cray=no
14757 rm -f conftest*
14760 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14762 if test $ac_cv_os_cray = yes; then
14763 for ac_func in _getb67 GETB67 getb67; do
14764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14778 #define $ac_func innocuous_$ac_func
14780 /* System header to define __stub macros and hopefully few prototypes,
14781 which can conflict with char $ac_func (); below.
14782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14783 <limits.h> exists even on freestanding compilers. */
14785 #ifdef __STDC__
14786 # include <limits.h>
14787 #else
14788 # include <assert.h>
14789 #endif
14791 #undef $ac_func
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14796 #ifdef __cplusplus
14797 extern "C"
14798 #endif
14799 char $ac_func ();
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined __stub_$ac_func || defined __stub___$ac_func
14804 choke me
14805 #endif
14808 main ()
14810 return $ac_func ();
14812 return 0;
14814 _ACEOF
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_link") 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext &&
14832 $as_test_x conftest$ac_exeext; then
14833 eval "$as_ac_var=yes"
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 eval "$as_ac_var=no"
14841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14842 conftest$ac_exeext conftest.$ac_ext
14844 ac_res=`eval echo '${'$as_ac_var'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 #define CRAY_STACKSEG_END $ac_func
14851 _ACEOF
14853 break
14856 done
14859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14861 if test "${ac_cv_c_stack_direction+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 if test "$cross_compiling" = yes; then
14865 ac_cv_c_stack_direction=0
14866 else
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14875 find_stack_direction ()
14877 static char *addr = 0;
14878 auto char dummy;
14879 if (addr == 0)
14881 addr = &dummy;
14882 return find_stack_direction ();
14884 else
14885 return (&dummy > addr) ? 1 : -1;
14889 main ()
14891 return find_stack_direction () < 0;
14893 _ACEOF
14894 rm -f conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_c_stack_direction=1
14915 else
14916 echo "$as_me: program exited with status $ac_status" >&5
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 ac_cv_c_stack_direction=-1
14923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14931 cat >>confdefs.h <<_ACEOF
14932 #define STACK_DIRECTION $ac_cv_c_stack_direction
14933 _ACEOF
14939 # fmod, logb, and frexp are found in -lm on most systems.
14940 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14942 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14943 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14944 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 ac_check_lib_save_LIBS=$LIBS
14948 LIBS="-lm $LIBS"
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char sqrt ();
14964 main ()
14966 return sqrt ();
14968 return 0;
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext &&
14988 $as_test_x conftest$ac_exeext; then
14989 ac_cv_lib_m_sqrt=yes
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_m_sqrt=no
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15002 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15003 if test $ac_cv_lib_m_sqrt = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_LIBM 1
15006 _ACEOF
15008 LIBS="-lm $LIBS"
15013 # Check for mail-locking functions in a "mail" library. Probably this should
15014 # have the same check as for liblockfile below.
15016 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15017 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15018 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lmail $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 #endif
15036 char maillock ();
15038 main ()
15040 return maillock ();
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext &&
15062 $as_test_x conftest$ac_exeext; then
15063 ac_cv_lib_mail_maillock=yes
15064 else
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_mail_maillock=no
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15075 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15076 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15077 if test $ac_cv_lib_mail_maillock = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_LIBMAIL 1
15080 _ACEOF
15082 LIBS="-lmail $LIBS"
15087 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15088 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15089 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092 ac_check_lib_save_LIBS=$LIBS
15093 LIBS="-llockfile $LIBS"
15094 cat >conftest.$ac_ext <<_ACEOF
15095 /* confdefs.h. */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15101 /* Override any GCC internal prototype to avoid an error.
15102 Use char because int might match the return type of a GCC
15103 builtin and then its argument prototype would still apply. */
15104 #ifdef __cplusplus
15105 extern "C"
15106 #endif
15107 char maillock ();
15109 main ()
15111 return maillock ();
15113 return 0;
15115 _ACEOF
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (ac_try="$ac_link"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_link") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest$ac_exeext &&
15133 $as_test_x conftest$ac_exeext; then
15134 ac_cv_lib_lockfile_maillock=yes
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_cv_lib_lockfile_maillock=no
15142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143 conftest$ac_exeext conftest.$ac_ext
15144 LIBS=$ac_check_lib_save_LIBS
15146 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15147 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15148 if test $ac_cv_lib_lockfile_maillock = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_LIBLOCKFILE 1
15151 _ACEOF
15153 LIBS="-llockfile $LIBS"
15157 # If we have the shared liblockfile, assume we must use it for mail
15158 # locking (e.g. Debian). If we couldn't link against liblockfile
15159 # (no liblockfile.a installed), ensure that we don't need to.
15160 if test "$ac_cv_lib_lockfile_maillock" = no; then
15161 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15162 set dummy liblockfile.so; ac_word=$2
15163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15165 if test "${ac_cv_prog_liblockfile+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 if test -n "$liblockfile"; then
15169 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15170 else
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15173 for as_dir in $as_dummy
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15179 ac_cv_prog_liblockfile="yes"
15180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15181 break 2
15183 done
15184 done
15185 IFS=$as_save_IFS
15187 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15190 liblockfile=$ac_cv_prog_liblockfile
15191 if test -n "$liblockfile"; then
15192 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15193 echo "${ECHO_T}$liblockfile" >&6; }
15194 else
15195 { echo "$as_me:$LINENO: result: no" >&5
15196 echo "${ECHO_T}no" >&6; }
15200 if test $ac_cv_prog_liblockfile = yes; then
15201 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15202 This probably means that movemail could lose mail.
15203 There may be a \`development' package to install containing liblockfile." >&5
15204 echo "$as_me: error: Shared liblockfile found but can't link against it.
15205 This probably means that movemail could lose mail.
15206 There may be a \`development' package to install containing liblockfile." >&2;}
15207 { (exit 1); exit 1; }; }
15208 else :
15212 for ac_func in touchlock
15214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15228 #define $ac_func innocuous_$ac_func
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char $ac_func (); below.
15232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233 <limits.h> exists even on freestanding compilers. */
15235 #ifdef __STDC__
15236 # include <limits.h>
15237 #else
15238 # include <assert.h>
15239 #endif
15241 #undef $ac_func
15243 /* Override any GCC internal prototype to avoid an error.
15244 Use char because int might match the return type of a GCC
15245 builtin and then its argument prototype would still apply. */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 char $ac_func ();
15250 /* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253 #if defined __stub_$ac_func || defined __stub___$ac_func
15254 choke me
15255 #endif
15258 main ()
15260 return $ac_func ();
15262 return 0;
15264 _ACEOF
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (ac_try="$ac_link"
15267 case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270 esac
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_link") 2>conftest.er1
15273 ac_status=$?
15274 grep -v '^ *+' conftest.er1 >conftest.err
15275 rm -f conftest.er1
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && {
15279 test -z "$ac_c_werror_flag" ||
15280 test ! -s conftest.err
15281 } && test -s conftest$ac_exeext &&
15282 $as_test_x conftest$ac_exeext; then
15283 eval "$as_ac_var=yes"
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 eval "$as_ac_var=no"
15291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15292 conftest$ac_exeext conftest.$ac_ext
15294 ac_res=`eval echo '${'$as_ac_var'}'`
15295 { echo "$as_me:$LINENO: result: $ac_res" >&5
15296 echo "${ECHO_T}$ac_res" >&6; }
15297 if test `eval echo '${'$as_ac_var'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15300 _ACEOF
15303 done
15306 for ac_header in maillock.h
15308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15318 else
15319 # Is the header compilable?
15320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15329 #include <$ac_header>
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358 echo "${ECHO_T}$ac_header_compiler" >&6; }
15360 # Is the header present?
15361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <$ac_header>
15370 _ACEOF
15371 if { (ac_try="$ac_cpp conftest.$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } >/dev/null && {
15384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 }; then
15387 ac_header_preproc=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_preproc=no
15395 rm -f conftest.err conftest.$ac_ext
15396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6; }
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 yes:no: )
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
15408 no:yes:* )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15423 esac
15424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429 eval "$as_ac_Header=\$ac_header_preproc"
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15439 _ACEOF
15443 done
15515 for ac_func in gethostname getdomainname dup2 \
15516 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15517 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15518 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15519 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15520 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15521 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15522 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15523 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15552 #undef $ac_func
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char $ac_func ();
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15565 choke me
15566 #endif
15569 main ()
15571 return $ac_func ();
15573 return 0;
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 eval "$as_ac_var=no"
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15614 done
15618 for ac_header in sys/un.h
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15630 else
15631 # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest.$ac_objext; then
15660 ac_header_compiler=yes
15661 else
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_compiler=no
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15670 echo "${ECHO_T}$ac_header_compiler" >&6; }
15672 # Is the header present?
15673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <$ac_header>
15682 _ACEOF
15683 if { (ac_try="$ac_cpp conftest.$ac_ext"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } >/dev/null && {
15696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 }; then
15699 ac_header_preproc=yes
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 yes:no: )
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
15720 no:yes:* )
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15735 esac
15736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 eval "$as_ac_Header=\$ac_header_preproc"
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15751 _ACEOF
15755 done
15762 for ac_header in $ac_header_list
15764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 ac_res=`eval echo '${'$as_ac_Header'}'`
15772 { echo "$as_me:$LINENO: result: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15774 else
15775 # Is the header compilable?
15776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15786 _ACEOF
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_compile") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest.$ac_objext; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <$ac_header>
15826 _ACEOF
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null && {
15840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 }; then
15843 ac_header_preproc=yes
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_preproc=no
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 esac
15880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885 eval "$as_ac_Header=\$ac_header_preproc"
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 _ACEOF
15899 done
15909 for ac_func in $ac_func_list
15911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15925 #define $ac_func innocuous_$ac_func
15927 /* System header to define __stub macros and hopefully few prototypes,
15928 which can conflict with char $ac_func (); below.
15929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15930 <limits.h> exists even on freestanding compilers. */
15932 #ifdef __STDC__
15933 # include <limits.h>
15934 #else
15935 # include <assert.h>
15936 #endif
15938 #undef $ac_func
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15943 #ifdef __cplusplus
15944 extern "C"
15945 #endif
15946 char $ac_func ();
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined __stub_$ac_func || defined __stub___$ac_func
15951 choke me
15952 #endif
15955 main ()
15957 return $ac_func ();
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (ac_try="$ac_link"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_link") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext &&
15979 $as_test_x conftest$ac_exeext; then
15980 eval "$as_ac_var=yes"
15981 else
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 eval "$as_ac_var=no"
15988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15989 conftest$ac_exeext conftest.$ac_ext
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15997 _ACEOF
16000 done
16018 { echo "$as_me:$LINENO: checking for working mktime" >&5
16019 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16020 if test "${ac_cv_func_working_mktime+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023 if test "$cross_compiling" = yes; then
16024 ac_cv_func_working_mktime=no
16025 else
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 /* Test program from Paul Eggert and Tony Leneis. */
16033 #ifdef TIME_WITH_SYS_TIME
16034 # include <sys/time.h>
16035 # include <time.h>
16036 #else
16037 # ifdef HAVE_SYS_TIME_H
16038 # include <sys/time.h>
16039 # else
16040 # include <time.h>
16041 # endif
16042 #endif
16044 #include <stdlib.h>
16046 #ifdef HAVE_UNISTD_H
16047 # include <unistd.h>
16048 #endif
16050 #ifndef HAVE_ALARM
16051 # define alarm(X) /* empty */
16052 #endif
16054 /* Work around redefinition to rpl_putenv by other config tests. */
16055 #undef putenv
16057 static time_t time_t_max;
16058 static time_t time_t_min;
16060 /* Values we'll use to set the TZ environment variable. */
16061 static char *tz_strings[] = {
16062 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16063 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16065 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16067 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16068 Based on a problem report from Andreas Jaeger. */
16069 static int
16070 spring_forward_gap ()
16072 /* glibc (up to about 1998-10-07) failed this test. */
16073 struct tm tm;
16075 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16076 instead of "TZ=America/Vancouver" in order to detect the bug even
16077 on systems that don't support the Olson extension, or don't have the
16078 full zoneinfo tables installed. */
16079 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16081 tm.tm_year = 98;
16082 tm.tm_mon = 3;
16083 tm.tm_mday = 5;
16084 tm.tm_hour = 2;
16085 tm.tm_min = 0;
16086 tm.tm_sec = 0;
16087 tm.tm_isdst = -1;
16088 return mktime (&tm) != (time_t) -1;
16091 static int
16092 mktime_test1 (now)
16093 time_t now;
16095 struct tm *lt;
16096 return ! (lt = localtime (&now)) || mktime (lt) == now;
16099 static int
16100 mktime_test (now)
16101 time_t now;
16103 return (mktime_test1 (now)
16104 && mktime_test1 ((time_t) (time_t_max - now))
16105 && mktime_test1 ((time_t) (time_t_min + now)));
16108 static int
16109 irix_6_4_bug ()
16111 /* Based on code from Ariel Faigon. */
16112 struct tm tm;
16113 tm.tm_year = 96;
16114 tm.tm_mon = 3;
16115 tm.tm_mday = 0;
16116 tm.tm_hour = 0;
16117 tm.tm_min = 0;
16118 tm.tm_sec = 0;
16119 tm.tm_isdst = -1;
16120 mktime (&tm);
16121 return tm.tm_mon == 2 && tm.tm_mday == 31;
16124 static int
16125 bigtime_test (j)
16126 int j;
16128 struct tm tm;
16129 time_t now;
16130 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16131 now = mktime (&tm);
16132 if (now != (time_t) -1)
16134 struct tm *lt = localtime (&now);
16135 if (! (lt
16136 && lt->tm_year == tm.tm_year
16137 && lt->tm_mon == tm.tm_mon
16138 && lt->tm_mday == tm.tm_mday
16139 && lt->tm_hour == tm.tm_hour
16140 && lt->tm_min == tm.tm_min
16141 && lt->tm_sec == tm.tm_sec
16142 && lt->tm_yday == tm.tm_yday
16143 && lt->tm_wday == tm.tm_wday
16144 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16145 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16146 return 0;
16148 return 1;
16151 static int
16152 year_2050_test ()
16154 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16155 ignoring leap seconds. */
16156 unsigned long int answer = 2527315200UL;
16158 struct tm tm;
16159 time_t t;
16160 tm.tm_year = 2050 - 1900;
16161 tm.tm_mon = 2 - 1;
16162 tm.tm_mday = 1;
16163 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16164 tm.tm_isdst = -1;
16166 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16167 instead of "TZ=America/Vancouver" in order to detect the bug even
16168 on systems that don't support the Olson extension, or don't have the
16169 full zoneinfo tables installed. */
16170 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16172 t = mktime (&tm);
16174 /* Check that the result is either a failure, or close enough
16175 to the correct answer that we can assume the discrepancy is
16176 due to leap seconds. */
16177 return (t == (time_t) -1
16178 || (0 < t && answer - 120 <= t && t <= answer + 120));
16182 main ()
16184 time_t t, delta;
16185 int i, j;
16187 /* This test makes some buggy mktime implementations loop.
16188 Give up after 60 seconds; a mktime slower than that
16189 isn't worth using anyway. */
16190 alarm (60);
16192 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16193 continue;
16194 time_t_max--;
16195 if ((time_t) -1 < 0)
16196 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16197 continue;
16198 delta = time_t_max / 997; /* a suitable prime number */
16199 for (i = 0; i < N_STRINGS; i++)
16201 if (tz_strings[i])
16202 putenv (tz_strings[i]);
16204 for (t = 0; t <= time_t_max - delta; t += delta)
16205 if (! mktime_test (t))
16206 return 1;
16207 if (! (mktime_test ((time_t) 1)
16208 && mktime_test ((time_t) (60 * 60))
16209 && mktime_test ((time_t) (60 * 60 * 24))))
16210 return 1;
16212 for (j = 1; 0 < j; j *= 2)
16213 if (! bigtime_test (j))
16214 return 1;
16215 if (! bigtime_test (j - 1))
16216 return 1;
16218 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16220 _ACEOF
16221 rm -f conftest$ac_exeext
16222 if { (ac_try="$ac_link"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_link") 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_func_working_mktime=yes
16242 else
16243 echo "$as_me: program exited with status $ac_status" >&5
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ( exit $ac_status )
16248 ac_cv_func_working_mktime=no
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16256 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16257 if test $ac_cv_func_working_mktime = no; then
16258 case " $LIBOBJS " in
16259 *" mktime.$ac_objext "* ) ;;
16260 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16262 esac
16266 if test "$ac_cv_func_working_mktime" = no; then
16268 cat >>confdefs.h <<\_ACEOF
16269 #define BROKEN_MKTIME 1
16270 _ACEOF
16274 ac_have_func=no # yes means we've found a way to get the load average.
16276 # Make sure getloadavg.c is where it belongs, at configure-time.
16277 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16278 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16279 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16280 { (exit 1); exit 1; }; }
16282 ac_save_LIBS=$LIBS
16284 # Check for getloadavg, but be sure not to touch the cache variable.
16285 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16286 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16287 if test "${ac_cv_func_getloadavg+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16298 #define getloadavg innocuous_getloadavg
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char getloadavg (); below.
16302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303 <limits.h> exists even on freestanding compilers. */
16305 #ifdef __STDC__
16306 # include <limits.h>
16307 #else
16308 # include <assert.h>
16309 #endif
16311 #undef getloadavg
16313 /* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16316 #ifdef __cplusplus
16317 extern "C"
16318 #endif
16319 char getloadavg ();
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined __stub_getloadavg || defined __stub___getloadavg
16324 choke me
16325 #endif
16328 main ()
16330 return getloadavg ();
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 ac_cv_func_getloadavg=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_cv_func_getloadavg=no
16361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16362 conftest$ac_exeext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16365 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16366 if test $ac_cv_func_getloadavg = yes; then
16367 exit 0
16368 else
16369 exit 1
16371 ) && ac_have_func=yes
16373 # On HPUX9, an unprivileged user can get load averages through this function.
16375 for ac_func in pstat_getdynamic
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16404 #undef $ac_func
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char $ac_func ();
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16417 choke me
16418 #endif
16421 main ()
16423 return $ac_func ();
16425 return 0;
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 eval "$as_ac_var=yes"
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no"
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 _ACEOF
16466 done
16469 # Solaris has libkstat which does not require root.
16471 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16472 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16473 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lkstat $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char kstat_open ();
16493 main ()
16495 return kstat_open ();
16497 return 0;
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 ac_cv_lib_kstat_kstat_open=yes
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_cv_lib_kstat_kstat_open=no
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16530 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16531 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16532 if test $ac_cv_lib_kstat_kstat_open = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_LIBKSTAT 1
16535 _ACEOF
16537 LIBS="-lkstat $LIBS"
16541 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16545 # to get the right answer into the cache.
16546 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16547 if test $ac_have_func = no; then
16548 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16549 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16550 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553 ac_check_lib_save_LIBS=$LIBS
16554 LIBS="-lelf $LIBS"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char elf_begin ();
16570 main ()
16572 return elf_begin ();
16574 return 0;
16576 _ACEOF
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } && {
16591 test -z "$ac_c_werror_flag" ||
16592 test ! -s conftest.err
16593 } && test -s conftest$ac_exeext &&
16594 $as_test_x conftest$ac_exeext; then
16595 ac_cv_lib_elf_elf_begin=yes
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_cv_lib_elf_elf_begin=no
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16609 if test $ac_cv_lib_elf_elf_begin = yes; then
16610 LIBS="-lelf $LIBS"
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16616 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16617 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 ac_check_lib_save_LIBS=$LIBS
16621 LIBS="-lkvm $LIBS"
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16632 #ifdef __cplusplus
16633 extern "C"
16634 #endif
16635 char kvm_open ();
16637 main ()
16639 return kvm_open ();
16641 return 0;
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_kvm_kvm_open=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_kvm_kvm_open=no
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16675 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16676 if test $ac_cv_lib_kvm_kvm_open = yes; then
16677 LIBS="-lkvm $LIBS"
16680 # Check for the 4.4BSD definition of getloadavg.
16681 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16682 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-lutil $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char getloadavg ();
16703 main ()
16705 return getloadavg ();
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (ac_try="$ac_link"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 ac_cv_lib_util_getloadavg=yes
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_cv_lib_util_getloadavg=no
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16741 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16742 if test $ac_cv_lib_util_getloadavg = yes; then
16743 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16748 if test $ac_have_func = no; then
16749 # There is a commonly available library for RS/6000 AIX.
16750 # Since it is not a standard part of AIX, it might be installed locally.
16751 ac_getloadavg_LIBS=$LIBS
16752 LIBS="-L/usr/local/lib $LIBS"
16753 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16754 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16755 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lgetloadavg $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770 #ifdef __cplusplus
16771 extern "C"
16772 #endif
16773 char getloadavg ();
16775 main ()
16777 return getloadavg ();
16779 return 0;
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_getloadavg_getloadavg=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_lib_getloadavg_getloadavg=no
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16812 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16814 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16815 LIBS="-lgetloadavg $LIBS"
16816 else
16817 LIBS=$ac_getloadavg_LIBS
16822 # Make sure it is really in the library, if we think we found it,
16823 # otherwise set up the replacement function.
16825 for ac_func in getloadavg
16827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16848 #ifdef __STDC__
16849 # include <limits.h>
16850 #else
16851 # include <assert.h>
16852 #endif
16854 #undef $ac_func
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16859 #ifdef __cplusplus
16860 extern "C"
16861 #endif
16862 char $ac_func ();
16863 /* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
16866 #if defined __stub_$ac_func || defined __stub___$ac_func
16867 choke me
16868 #endif
16871 main ()
16873 return $ac_func ();
16875 return 0;
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16896 eval "$as_ac_var=yes"
16897 else
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 eval "$as_ac_var=no"
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16907 ac_res=`eval echo '${'$as_ac_var'}'`
16908 { echo "$as_me:$LINENO: result: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910 if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16913 _ACEOF
16915 else
16916 case " $LIBOBJS " in
16917 *" getloadavg.$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16920 esac
16923 cat >>confdefs.h <<\_ACEOF
16924 #define C_GETLOADAVG 1
16925 _ACEOF
16927 # Figure out what our getloadavg.c needs.
16928 ac_have_func=no
16929 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16930 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16931 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16932 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16936 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16937 else
16938 # Is the header compilable?
16939 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16940 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h. */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 $ac_includes_default
16948 #include <sys/dg_sys_info.h>
16949 _ACEOF
16950 rm -f conftest.$ac_objext
16951 if { (ac_try="$ac_compile"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16968 else
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_compiler=no
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6; }
16979 # Is the header present?
16980 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16981 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <sys/dg_sys_info.h>
16989 _ACEOF
16990 if { (ac_try="$ac_cpp conftest.$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 }; then
17006 ac_header_preproc=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 yes:no: )
17021 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17027 no:yes:* )
17028 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17042 esac
17043 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17044 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17045 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17050 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17051 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17054 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17055 ac_have_func=yes
17057 cat >>confdefs.h <<\_ACEOF
17058 #define DGUX 1
17059 _ACEOF
17062 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17063 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-ldgc $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char dg_sys_info ();
17084 main ()
17086 return dg_sys_info ();
17088 return 0;
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext &&
17108 $as_test_x conftest$ac_exeext; then
17109 ac_cv_lib_dgc_dg_sys_info=yes
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_lib_dgc_dg_sys_info=no
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17122 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17123 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17124 cat >>confdefs.h <<_ACEOF
17125 #define HAVE_LIBDGC 1
17126 _ACEOF
17128 LIBS="-ldgc $LIBS"
17136 if test "${ac_cv_header_locale_h+set}" = set; then
17137 { echo "$as_me:$LINENO: checking for locale.h" >&5
17138 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17139 if test "${ac_cv_header_locale_h+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17143 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17144 else
17145 # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17147 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17155 #include <locale.h>
17156 _ACEOF
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest.$ac_objext; then
17174 ac_header_compiler=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_header_compiler=no
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17184 echo "${ECHO_T}$ac_header_compiler" >&6; }
17186 # Is the header present?
17187 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17188 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h. */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <locale.h>
17196 _ACEOF
17197 if { (ac_try="$ac_cpp conftest.$ac_ext"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 }; then
17213 ac_header_preproc=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_preproc=no
17221 rm -f conftest.err conftest.$ac_ext
17222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17223 echo "${ECHO_T}$ac_header_preproc" >&6; }
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17227 yes:no: )
17228 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17229 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17230 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17231 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17232 ac_header_preproc=yes
17234 no:yes:* )
17235 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17236 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17238 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17240 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17242 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17244 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17246 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17249 esac
17250 { echo "$as_me:$LINENO: checking for locale.h" >&5
17251 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17252 if test "${ac_cv_header_locale_h+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 ac_cv_header_locale_h=$ac_header_preproc
17257 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17258 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17264 for ac_func in setlocale
17266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17287 #ifdef __STDC__
17288 # include <limits.h>
17289 #else
17290 # include <assert.h>
17291 #endif
17293 #undef $ac_func
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char $ac_func ();
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17306 choke me
17307 #endif
17310 main ()
17312 return $ac_func ();
17314 return 0;
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest$ac_exeext &&
17334 $as_test_x conftest$ac_exeext; then
17335 eval "$as_ac_var=yes"
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no"
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 _ACEOF
17355 done
17358 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17359 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17360 # Irix 4.0.5F has the header but not the library.
17361 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17362 ac_have_func=yes
17364 cat >>confdefs.h <<\_ACEOF
17365 #define SVR4 1
17366 _ACEOF
17370 if test $ac_have_func = no; then
17371 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17373 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17379 else
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17382 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <inq_stats/cpustats.h>
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest.$ac_objext; then
17409 ac_header_compiler=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17423 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <inq_stats/cpustats.h>
17431 _ACEOF
17432 if { (ac_try="$ac_cpp conftest.$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 }; then
17448 ac_header_preproc=yes
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_header_preproc=no
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17462 yes:no: )
17463 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17464 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17466 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17467 ac_header_preproc=yes
17469 no:yes:* )
17470 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17471 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17473 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17475 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17481 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17484 esac
17485 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17486 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17487 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17492 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17496 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17497 ac_have_func=yes
17499 cat >>confdefs.h <<\_ACEOF
17500 #define UMAX 1
17501 _ACEOF
17504 cat >>confdefs.h <<\_ACEOF
17505 #define UMAX4_3 1
17506 _ACEOF
17513 if test $ac_have_func = no; then
17514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17515 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17516 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17517 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17521 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17522 else
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17525 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <sys/cpustats.h>
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_header_compiler=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17566 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <sys/cpustats.h>
17574 _ACEOF
17575 if { (ac_try="$ac_cpp conftest.$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } >/dev/null && {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17590 }; then
17591 ac_header_preproc=yes
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_header_preproc=no
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17605 yes:no: )
17606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17607 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17609 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17610 ac_header_preproc=yes
17612 no:yes:* )
17613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17614 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17616 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17618 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17624 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17627 esac
17628 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17629 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17630 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17635 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17639 if test $ac_cv_header_sys_cpustats_h = yes; then
17640 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17641 #define UMAX 1
17642 _ACEOF
17649 if test $ac_have_func = no; then
17651 for ac_header in mach/mach.h
17653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_res=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17663 else
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <$ac_header>
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17684 ac_status=$?
17685 grep -v '^ *+' conftest.er1 >conftest.err
17686 rm -f conftest.er1
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17694 else
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_header_compiler=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <$ac_header>
17715 _ACEOF
17716 if { (ac_try="$ac_cpp conftest.$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev/null && {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 }; then
17732 ac_header_preproc=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_preproc=no
17740 rm -f conftest.err conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17746 yes:no: )
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17751 ac_header_preproc=yes
17753 no:yes:* )
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17768 esac
17769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774 eval "$as_ac_Header=\$ac_header_preproc"
17776 ac_res=`eval echo '${'$as_ac_Header'}'`
17777 { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17784 _ACEOF
17788 done
17793 for ac_header in nlist.h
17795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 ac_res=`eval echo '${'$as_ac_Header'}'`
17803 { echo "$as_me:$LINENO: result: $ac_res" >&5
17804 echo "${ECHO_T}$ac_res" >&6; }
17805 else
17806 # Is the header compilable?
17807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17816 #include <$ac_header>
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } && {
17832 test -z "$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 } && test -s conftest.$ac_objext; then
17835 ac_header_compiler=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_header_compiler=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6; }
17847 # Is the header present?
17848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
17857 _ACEOF
17858 if { (ac_try="$ac_cpp conftest.$ac_ext"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } >/dev/null && {
17871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 }; then
17874 ac_header_preproc=yes
17875 else
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_header_preproc=no
17882 rm -f conftest.err conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17884 echo "${ECHO_T}$ac_header_preproc" >&6; }
17886 # So? What about this header?
17887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17888 yes:no: )
17889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17893 ac_header_preproc=yes
17895 no:yes:* )
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17910 esac
17911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916 eval "$as_ac_Header=\$ac_header_preproc"
17918 ac_res=`eval echo '${'$as_ac_Header'}'`
17919 { echo "$as_me:$LINENO: result: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17926 _ACEOF
17927 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17928 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17929 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <nlist.h>
17941 main ()
17943 static struct nlist ac_aggr;
17944 if (ac_aggr.n_un.n_name)
17945 return 0;
17947 return 0;
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_cv_member_struct_nlist_n_un_n_name=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 #include <nlist.h>
17981 main ()
17983 static struct nlist ac_aggr;
17984 if (sizeof ac_aggr.n_un.n_name)
17985 return 0;
17987 return 0;
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_cv_member_struct_nlist_n_un_n_name=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_member_struct_nlist_n_un_n_name=no
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18021 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18022 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18026 _ACEOF
18029 cat >>confdefs.h <<\_ACEOF
18030 #define NLIST_NAME_UNION 1
18031 _ACEOF
18038 done
18041 done
18044 # Some definitions of getloadavg require that the program be installed setgid.
18045 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18046 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18047 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18057 #ifdef LDAV_PRIVILEGED
18058 Yowza Am I SETGID yet
18059 #endif
18060 _ACEOF
18061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18062 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18063 ac_cv_func_getloadavg_setgid=yes
18064 else
18065 ac_cv_func_getloadavg_setgid=no
18067 rm -f conftest*
18070 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18071 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18072 if test $ac_cv_func_getloadavg_setgid = yes; then
18073 NEED_SETGID=true
18075 cat >>confdefs.h <<\_ACEOF
18076 #define GETLOADAVG_PRIVILEGED 1
18077 _ACEOF
18079 else
18080 NEED_SETGID=false
18083 if test $ac_cv_func_getloadavg_setgid = yes; then
18084 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18085 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18086 if test "${ac_cv_group_kmem+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18090 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18091 # If we got an error (system does not support symlinks), try without -L.
18092 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18093 ac_cv_group_kmem=`echo $ac_ls_output \
18094 | sed -ne 's/[ ][ ]*/ /g;
18095 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18096 / /s/.* //;p;'`
18099 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18100 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18101 KMEM_GROUP=$ac_cv_group_kmem
18103 if test "x$ac_save_LIBS" = x; then
18104 GETLOADAVG_LIBS=$LIBS
18105 else
18106 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18108 LIBS=$ac_save_LIBS
18112 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18113 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18114 if test "${ac_cv_sys_largefile_source+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 while :; do
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <sys/types.h> /* for off_t */
18125 #include <stdio.h>
18127 main ()
18129 int (*fp) (FILE *, off_t, int) = fseeko;
18130 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18132 return 0;
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_c_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest$ac_exeext &&
18152 $as_test_x conftest$ac_exeext; then
18153 ac_cv_sys_largefile_source=no; break
18154 else
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162 conftest$ac_exeext conftest.$ac_ext
18163 cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h. */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 #define _LARGEFILE_SOURCE 1
18170 #include <sys/types.h> /* for off_t */
18171 #include <stdio.h>
18173 main ()
18175 int (*fp) (FILE *, off_t, int) = fseeko;
18176 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18178 return 0;
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_link") 2>conftest.er1
18189 ac_status=$?
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } && {
18195 test -z "$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 } && test -s conftest$ac_exeext &&
18198 $as_test_x conftest$ac_exeext; then
18199 ac_cv_sys_largefile_source=1; break
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18208 conftest$ac_exeext conftest.$ac_ext
18209 ac_cv_sys_largefile_source=unknown
18210 break
18211 done
18213 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18214 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18215 case $ac_cv_sys_largefile_source in #(
18216 no | unknown) ;;
18218 cat >>confdefs.h <<_ACEOF
18219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18220 _ACEOF
18222 esac
18223 rm -f conftest*
18225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18226 # in glibc 2.1.3, but that breaks too many other things.
18227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18228 if test $ac_cv_sys_largefile_source != unknown; then
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_FSEEKO 1
18232 _ACEOF
18237 # Configure getopt.
18238 # getopt.m4 serial 10
18240 # The getopt module assume you want GNU getopt, with getopt_long etc,
18241 # rather than vanilla POSIX getopt. This means your your code should
18242 # always include <getopt.h> for the getopt prototypes.
18254 # Prerequisites of lib/getopt*.
18259 GETOPT_H=
18261 for ac_header in getopt.h
18263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18273 else
18274 # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 $ac_includes_default
18284 #include <$ac_header>
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_header_compiler=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_header_compiler=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18313 echo "${ECHO_T}$ac_header_compiler" >&6; }
18315 # Is the header present?
18316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <$ac_header>
18325 _ACEOF
18326 if { (ac_try="$ac_cpp conftest.$ac_ext"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } >/dev/null && {
18339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 }; then
18342 ac_header_preproc=yes
18343 else
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_header_preproc=no
18350 rm -f conftest.err conftest.$ac_ext
18351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18352 echo "${ECHO_T}$ac_header_preproc" >&6; }
18354 # So? What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18356 yes:no: )
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18361 ac_header_preproc=yes
18363 no:yes:* )
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18378 esac
18379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384 eval "$as_ac_Header=\$ac_header_preproc"
18386 ac_res=`eval echo '${'$as_ac_Header'}'`
18387 { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18394 _ACEOF
18396 else
18397 GETOPT_H=getopt.h
18400 done
18402 if test -z "$GETOPT_H"; then
18404 for ac_func in getopt_long_only
18406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18420 #define $ac_func innocuous_$ac_func
18422 /* System header to define __stub macros and hopefully few prototypes,
18423 which can conflict with char $ac_func (); below.
18424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 <limits.h> exists even on freestanding compilers. */
18427 #ifdef __STDC__
18428 # include <limits.h>
18429 #else
18430 # include <assert.h>
18431 #endif
18433 #undef $ac_func
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 char $ac_func ();
18442 /* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined __stub_$ac_func || defined __stub___$ac_func
18446 choke me
18447 #endif
18450 main ()
18452 return $ac_func ();
18454 return 0;
18456 _ACEOF
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && {
18471 test -z "$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 } && test -s conftest$ac_exeext &&
18474 $as_test_x conftest$ac_exeext; then
18475 eval "$as_ac_var=yes"
18476 else
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 eval "$as_ac_var=no"
18483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18484 conftest$ac_exeext conftest.$ac_ext
18486 ac_res=`eval echo '${'$as_ac_var'}'`
18487 { echo "$as_me:$LINENO: result: $ac_res" >&5
18488 echo "${ECHO_T}$ac_res" >&6; }
18489 if test `eval echo '${'$as_ac_var'}'` = yes; then
18490 cat >>confdefs.h <<_ACEOF
18491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18492 _ACEOF
18494 else
18495 GETOPT_H=getopt.h
18497 done
18501 if test -z "$GETOPT_H"; then
18502 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18503 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18504 if test "${ac_cv_have_decl_optreset+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 #include <getopt.h>
18516 main ()
18518 #ifndef optreset
18519 (void) optreset;
18520 #endif
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_compile") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest.$ac_objext; then
18543 ac_cv_have_decl_optreset=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_have_decl_optreset=no
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18554 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18555 if test $ac_cv_have_decl_optreset = yes; then
18556 GETOPT_H=getopt.h
18561 if test -z "$GETOPT_H"; then
18562 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18563 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18564 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567 if test "$cross_compiling" = yes; then
18568 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18569 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18570 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 #include <getopt.h>
18582 main ()
18584 #ifndef getopt_clip
18585 (void) getopt_clip;
18586 #endif
18589 return 0;
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest.$ac_objext; then
18609 ac_cv_have_decl_getopt_clip=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_have_decl_getopt_clip=no
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18619 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18620 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18621 if test $ac_cv_have_decl_getopt_clip = yes; then
18622 gl_cv_func_gnu_getopt=no
18623 else
18624 gl_cv_func_gnu_getopt=yes
18627 else
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #include <getopt.h>
18636 main ()
18639 char *myargv[3];
18640 myargv[0] = "conftest";
18641 myargv[1] = "-+";
18642 myargv[2] = 0;
18643 return getopt (2, myargv, "+a") != '?';
18646 return 0;
18648 _ACEOF
18649 rm -f conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_link") 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18660 { (case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_try") 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 gl_cv_func_gnu_getopt=yes
18670 else
18671 echo "$as_me: program exited with status $ac_status" >&5
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ( exit $ac_status )
18676 gl_cv_func_gnu_getopt=no
18678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18684 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18685 if test "$gl_cv_func_gnu_getopt" = "no"; then
18686 GETOPT_H=getopt.h
18692 if test -n "$GETOPT_H"; then
18695 GETOPT_H=getopt.h
18697 cat >>confdefs.h <<\_ACEOF
18698 #define __GETOPT_PREFIX rpl_
18699 _ACEOF
18704 GETOPTOBJS='getopt.o getopt1.o'
18711 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18712 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18713 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 # Use it with a single arg.
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 $ac_includes_default
18725 main ()
18727 getpgrp (0);
18729 return 0;
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_compile") 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest.$ac_objext; then
18749 ac_cv_func_getpgrp_void=no
18750 else
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_func_getpgrp_void=yes
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18761 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18762 if test $ac_cv_func_getpgrp_void = yes; then
18764 cat >>confdefs.h <<\_ACEOF
18765 #define GETPGRP_VOID 1
18766 _ACEOF
18772 for ac_func in strftime
18774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18788 #define $ac_func innocuous_$ac_func
18790 /* System header to define __stub macros and hopefully few prototypes,
18791 which can conflict with char $ac_func (); below.
18792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18793 <limits.h> exists even on freestanding compilers. */
18795 #ifdef __STDC__
18796 # include <limits.h>
18797 #else
18798 # include <assert.h>
18799 #endif
18801 #undef $ac_func
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 char $ac_func ();
18810 /* The GNU C library defines this for functions which it implements
18811 to always fail with ENOSYS. Some functions are actually named
18812 something starting with __ and the normal name is an alias. */
18813 #if defined __stub_$ac_func || defined __stub___$ac_func
18814 choke me
18815 #endif
18818 main ()
18820 return $ac_func ();
18822 return 0;
18824 _ACEOF
18825 rm -f conftest.$ac_objext conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext &&
18842 $as_test_x conftest$ac_exeext; then
18843 eval "$as_ac_var=yes"
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 eval "$as_ac_var=no"
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18854 ac_res=`eval echo '${'$as_ac_var'}'`
18855 { echo "$as_me:$LINENO: result: $ac_res" >&5
18856 echo "${ECHO_T}$ac_res" >&6; }
18857 if test `eval echo '${'$as_ac_var'}'` = yes; then
18858 cat >>confdefs.h <<_ACEOF
18859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18860 _ACEOF
18862 else
18863 # strftime is in -lintl on SCO UNIX.
18864 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18865 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18866 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lintl $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char strftime ();
18886 main ()
18888 return strftime ();
18890 return 0;
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_intl_strftime=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_intl_strftime=no
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18924 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18925 if test $ac_cv_lib_intl_strftime = yes; then
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_STRFTIME 1
18928 _ACEOF
18930 LIBS="-lintl $LIBS"
18934 done
18937 # UNIX98 PTYs.
18939 for ac_func in grantpt
18941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h. */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18955 #define $ac_func innocuous_$ac_func
18957 /* System header to define __stub macros and hopefully few prototypes,
18958 which can conflict with char $ac_func (); below.
18959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18960 <limits.h> exists even on freestanding compilers. */
18962 #ifdef __STDC__
18963 # include <limits.h>
18964 #else
18965 # include <assert.h>
18966 #endif
18968 #undef $ac_func
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 char $ac_func ();
18977 /* The GNU C library defines this for functions which it implements
18978 to always fail with ENOSYS. Some functions are actually named
18979 something starting with __ and the normal name is an alias. */
18980 #if defined __stub_$ac_func || defined __stub___$ac_func
18981 choke me
18982 #endif
18985 main ()
18987 return $ac_func ();
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 eval "$as_ac_var=yes"
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 eval "$as_ac_var=no"
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19021 ac_res=`eval echo '${'$as_ac_var'}'`
19022 { echo "$as_me:$LINENO: result: $ac_res" >&5
19023 echo "${ECHO_T}$ac_res" >&6; }
19024 if test `eval echo '${'$as_ac_var'}'` = yes; then
19025 cat >>confdefs.h <<_ACEOF
19026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19027 _ACEOF
19030 done
19033 # PTY-related GNU extensions.
19035 for ac_func in getpt
19037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19051 #define $ac_func innocuous_$ac_func
19053 /* System header to define __stub macros and hopefully few prototypes,
19054 which can conflict with char $ac_func (); below.
19055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19056 <limits.h> exists even on freestanding compilers. */
19058 #ifdef __STDC__
19059 # include <limits.h>
19060 #else
19061 # include <assert.h>
19062 #endif
19064 #undef $ac_func
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19069 #ifdef __cplusplus
19070 extern "C"
19071 #endif
19072 char $ac_func ();
19073 /* The GNU C library defines this for functions which it implements
19074 to always fail with ENOSYS. Some functions are actually named
19075 something starting with __ and the normal name is an alias. */
19076 #if defined __stub_$ac_func || defined __stub___$ac_func
19077 choke me
19078 #endif
19081 main ()
19083 return $ac_func ();
19085 return 0;
19087 _ACEOF
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (ac_try="$ac_link"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_link") 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest$ac_exeext &&
19105 $as_test_x conftest$ac_exeext; then
19106 eval "$as_ac_var=yes"
19107 else
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 eval "$as_ac_var=no"
19114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19115 conftest$ac_exeext conftest.$ac_ext
19117 ac_res=`eval echo '${'$as_ac_var'}'`
19118 { echo "$as_me:$LINENO: result: $ac_res" >&5
19119 echo "${ECHO_T}$ac_res" >&6; }
19120 if test `eval echo '${'$as_ac_var'}'` = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19123 _ACEOF
19126 done
19129 # Check this now, so that we will NOT find the above functions in ncurses.
19130 # That is because we have not set up to link ncurses in lib-src.
19131 # It's better to believe a function is not available
19132 # than to expect to find it in ncurses.
19134 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19135 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19136 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 ac_check_lib_save_LIBS=$LIBS
19140 LIBS="-lncurses $LIBS"
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19148 /* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19151 #ifdef __cplusplus
19152 extern "C"
19153 #endif
19154 char tparm ();
19156 main ()
19158 return tparm ();
19160 return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_link") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } && {
19177 test -z "$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 } && test -s conftest$ac_exeext &&
19180 $as_test_x conftest$ac_exeext; then
19181 ac_cv_lib_ncurses_tparm=yes
19182 else
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_cv_lib_ncurses_tparm=no
19189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19190 conftest$ac_exeext conftest.$ac_ext
19191 LIBS=$ac_check_lib_save_LIBS
19193 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19194 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19195 if test $ac_cv_lib_ncurses_tparm = yes; then
19196 cat >>confdefs.h <<_ACEOF
19197 #define HAVE_LIBNCURSES 1
19198 _ACEOF
19200 LIBS="-lncurses $LIBS"
19205 # Do we need the Hesiod library to provide the support routines?
19206 if test "$with_hesiod" = yes ; then
19207 # Don't set $LIBS here -- see comments above.
19208 resolv=no
19209 { echo "$as_me:$LINENO: checking for res_send" >&5
19210 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19211 if test "${ac_cv_func_res_send+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h. */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19222 #define res_send innocuous_res_send
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char res_send (); below.
19226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227 <limits.h> exists even on freestanding compilers. */
19229 #ifdef __STDC__
19230 # include <limits.h>
19231 #else
19232 # include <assert.h>
19233 #endif
19235 #undef res_send
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char res_send ();
19244 /* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
19247 #if defined __stub_res_send || defined __stub___res_send
19248 choke me
19249 #endif
19252 main ()
19254 return res_send ();
19256 return 0;
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest$ac_exeext &&
19276 $as_test_x conftest$ac_exeext; then
19277 ac_cv_func_res_send=yes
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_func_res_send=no
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286 conftest$ac_exeext conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19289 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19290 if test $ac_cv_func_res_send = yes; then
19292 else
19293 { echo "$as_me:$LINENO: checking for __res_send" >&5
19294 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19295 if test "${ac_cv_func___res_send+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h. */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19306 #define __res_send innocuous___res_send
19308 /* System header to define __stub macros and hopefully few prototypes,
19309 which can conflict with char __res_send (); below.
19310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19311 <limits.h> exists even on freestanding compilers. */
19313 #ifdef __STDC__
19314 # include <limits.h>
19315 #else
19316 # include <assert.h>
19317 #endif
19319 #undef __res_send
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char __res_send ();
19328 /* The GNU C library defines this for functions which it implements
19329 to always fail with ENOSYS. Some functions are actually named
19330 something starting with __ and the normal name is an alias. */
19331 #if defined __stub___res_send || defined __stub_____res_send
19332 choke me
19333 #endif
19336 main ()
19338 return __res_send ();
19340 return 0;
19342 _ACEOF
19343 rm -f conftest.$ac_objext conftest$ac_exeext
19344 if { (ac_try="$ac_link"
19345 case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19348 esac
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_link") 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest$ac_exeext &&
19360 $as_test_x conftest$ac_exeext; then
19361 ac_cv_func___res_send=yes
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_cv_func___res_send=no
19369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19370 conftest$ac_exeext conftest.$ac_ext
19372 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19373 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19374 if test $ac_cv_func___res_send = yes; then
19376 else
19377 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19378 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382 ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lresolv $LIBS"
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char res_send ();
19399 main ()
19401 return res_send ();
19403 return 0;
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest$ac_exeext &&
19423 $as_test_x conftest$ac_exeext; then
19424 ac_cv_lib_resolv_res_send=yes
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_cv_lib_resolv_res_send=no
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19437 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19438 if test $ac_cv_lib_resolv_res_send = yes; then
19439 resolv=yes
19440 else
19441 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19442 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19443 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lresolv $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char __res_send ();
19463 main ()
19465 return __res_send ();
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 ac_cv_lib_resolv___res_send=yes
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_lib_resolv___res_send=no
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19501 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19502 if test $ac_cv_lib_resolv___res_send = yes; then
19503 resolv=yes
19512 if test "$resolv" = yes ; then
19513 RESOLVLIB=-lresolv
19515 cat >>confdefs.h <<\_ACEOF
19516 #define HAVE_LIBRESOLV 1
19517 _ACEOF
19519 else
19520 RESOLVLIB=
19522 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19523 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19524 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535 #define hes_getmailhost innocuous_hes_getmailhost
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char hes_getmailhost (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19542 #ifdef __STDC__
19543 # include <limits.h>
19544 #else
19545 # include <assert.h>
19546 #endif
19548 #undef hes_getmailhost
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char hes_getmailhost ();
19557 /* The GNU C library defines this for functions which it implements
19558 to always fail with ENOSYS. Some functions are actually named
19559 something starting with __ and the normal name is an alias. */
19560 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19561 choke me
19562 #endif
19565 main ()
19567 return hes_getmailhost ();
19569 return 0;
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_func_hes_getmailhost=yes
19591 else
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_func_hes_getmailhost=no
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19601 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19602 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19603 if test $ac_cv_func_hes_getmailhost = yes; then
19605 else
19606 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19607 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19608 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611 ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-lhesiod $RESOLVLIB $LIBS"
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h. */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char hes_getmailhost ();
19628 main ()
19630 return hes_getmailhost ();
19632 return 0;
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (ac_try="$ac_link"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_link") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext &&
19652 $as_test_x conftest$ac_exeext; then
19653 ac_cv_lib_hesiod_hes_getmailhost=yes
19654 else
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_lib_hesiod_hes_getmailhost=no
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19666 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19667 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_LIBHESIOD 1
19671 _ACEOF
19673 else
19681 # These tell us which Kerberos-related libraries to use.
19682 if test "${with_kerberos+set}" = set; then
19684 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19685 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19686 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lcom_err $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 char com_err ();
19706 main ()
19708 return com_err ();
19710 return 0;
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 ac_cv_lib_com_err_com_err=yes
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_lib_com_err_com_err=no
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19744 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19745 if test $ac_cv_lib_com_err_com_err = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBCOM_ERR 1
19748 _ACEOF
19750 LIBS="-lcom_err $LIBS"
19755 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19756 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19757 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760 ac_check_lib_save_LIBS=$LIBS
19761 LIBS="-lk5crypto $LIBS"
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 char mit_des_cbc_encrypt ();
19777 main ()
19779 return mit_des_cbc_encrypt ();
19781 return 0;
19783 _ACEOF
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_link") 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } && {
19798 test -z "$ac_c_werror_flag" ||
19799 test ! -s conftest.err
19800 } && test -s conftest$ac_exeext &&
19801 $as_test_x conftest$ac_exeext; then
19802 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19803 else
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19811 conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS
19814 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19815 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19816 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818 #define HAVE_LIBK5CRYPTO 1
19819 _ACEOF
19821 LIBS="-lk5crypto $LIBS"
19826 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19828 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831 ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lcrypto $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19840 /* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 char mit_des_cbc_encrypt ();
19848 main ()
19850 return mit_des_cbc_encrypt ();
19852 return 0;
19854 _ACEOF
19855 rm -f conftest.$ac_objext conftest$ac_exeext
19856 if { (ac_try="$ac_link"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_link") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest$ac_exeext &&
19872 $as_test_x conftest$ac_exeext; then
19873 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19885 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19886 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19887 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19888 cat >>confdefs.h <<_ACEOF
19889 #define HAVE_LIBCRYPTO 1
19890 _ACEOF
19892 LIBS="-lcrypto $LIBS"
19897 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19898 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19899 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902 ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-lkrb5 $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char krb5_init_context ();
19919 main ()
19921 return krb5_init_context ();
19923 return 0;
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_lib_krb5_krb5_init_context=yes
19945 else
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_lib_krb5_krb5_init_context=no
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS=$ac_check_lib_save_LIBS
19956 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19957 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19958 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_LIBKRB5 1
19961 _ACEOF
19963 LIBS="-lkrb5 $LIBS"
19967 if test "${with_kerberos5+set}" != set; then
19969 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19970 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19971 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974 ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-ldes425 $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any GCC internal prototype to avoid an error.
19984 Use char because int might match the return type of a GCC
19985 builtin and then its argument prototype would still apply. */
19986 #ifdef __cplusplus
19987 extern "C"
19988 #endif
19989 char des_cbc_encrypt ();
19991 main ()
19993 return des_cbc_encrypt ();
19995 return 0;
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_link") 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest$ac_exeext &&
20015 $as_test_x conftest$ac_exeext; then
20016 ac_cv_lib_des425_des_cbc_encrypt=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_lib_des425_des_cbc_encrypt=no
20024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20025 conftest$ac_exeext conftest.$ac_ext
20026 LIBS=$ac_check_lib_save_LIBS
20028 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20029 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20030 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_LIBDES425 1
20033 _ACEOF
20035 LIBS="-ldes425 $LIBS"
20037 else
20039 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20040 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20041 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044 ac_check_lib_save_LIBS=$LIBS
20045 LIBS="-ldes $LIBS"
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h. */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20056 #ifdef __cplusplus
20057 extern "C"
20058 #endif
20059 char des_cbc_encrypt ();
20061 main ()
20063 return des_cbc_encrypt ();
20065 return 0;
20067 _ACEOF
20068 rm -f conftest.$ac_objext conftest$ac_exeext
20069 if { (ac_try="$ac_link"
20070 case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_link") 2>conftest.er1
20076 ac_status=$?
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } && {
20082 test -z "$ac_c_werror_flag" ||
20083 test ! -s conftest.err
20084 } && test -s conftest$ac_exeext &&
20085 $as_test_x conftest$ac_exeext; then
20086 ac_cv_lib_des_des_cbc_encrypt=yes
20087 else
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_cv_lib_des_des_cbc_encrypt=no
20094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20099 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20100 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_LIBDES 1
20103 _ACEOF
20105 LIBS="-ldes $LIBS"
20112 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20113 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20114 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-lkrb4 $LIBS"
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129 #ifdef __cplusplus
20130 extern "C"
20131 #endif
20132 char krb_get_cred ();
20134 main ()
20136 return krb_get_cred ();
20138 return 0;
20140 _ACEOF
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest$ac_exeext &&
20158 $as_test_x conftest$ac_exeext; then
20159 ac_cv_lib_krb4_krb_get_cred=yes
20160 else
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_krb4_krb_get_cred=no
20167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20172 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20173 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_LIBKRB4 1
20176 _ACEOF
20178 LIBS="-lkrb4 $LIBS"
20180 else
20182 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20183 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187 ac_check_lib_save_LIBS=$LIBS
20188 LIBS="-lkrb $LIBS"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20199 #ifdef __cplusplus
20200 extern "C"
20201 #endif
20202 char krb_get_cred ();
20204 main ()
20206 return krb_get_cred ();
20208 return 0;
20210 _ACEOF
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_link") 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && {
20225 test -z "$ac_c_werror_flag" ||
20226 test ! -s conftest.err
20227 } && test -s conftest$ac_exeext &&
20228 $as_test_x conftest$ac_exeext; then
20229 ac_cv_lib_krb_krb_get_cred=yes
20230 else
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_lib_krb_krb_get_cred=no
20237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20242 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20243 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define HAVE_LIBKRB 1
20246 _ACEOF
20248 LIBS="-lkrb $LIBS"
20256 if test "${with_kerberos5+set}" = set; then
20258 for ac_header in krb5.h
20260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 ac_res=`eval echo '${'$as_ac_Header'}'`
20268 { echo "$as_me:$LINENO: result: $ac_res" >&5
20269 echo "${ECHO_T}$ac_res" >&6; }
20270 else
20271 # Is the header compilable?
20272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <$ac_header>
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_compile") 2>conftest.er1
20291 ac_status=$?
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } && {
20297 test -z "$ac_c_werror_flag" ||
20298 test ! -s conftest.err
20299 } && test -s conftest.$ac_objext; then
20300 ac_header_compiler=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_header_compiler=no
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20310 echo "${ECHO_T}$ac_header_compiler" >&6; }
20312 # Is the header present?
20313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <$ac_header>
20322 _ACEOF
20323 if { (ac_try="$ac_cpp conftest.$ac_ext"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } >/dev/null && {
20336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 }; then
20339 ac_header_preproc=yes
20340 else
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_preproc=no
20347 rm -f conftest.err conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6; }
20351 # So? What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 yes:no: )
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
20360 no:yes:* )
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20375 esac
20376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 eval "$as_ac_Header=\$ac_header_preproc"
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20389 cat >>confdefs.h <<_ACEOF
20390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20391 _ACEOF
20395 done
20397 else
20399 for ac_header in des.h
20401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20411 else
20412 # Is the header compilable?
20413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20422 #include <$ac_header>
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_header_compiler=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_compiler=no
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20451 echo "${ECHO_T}$ac_header_compiler" >&6; }
20453 # Is the header present?
20454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h. */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <$ac_header>
20463 _ACEOF
20464 if { (ac_try="$ac_cpp conftest.$ac_ext"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } >/dev/null && {
20477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 }; then
20480 ac_header_preproc=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6; }
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494 yes:no: )
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499 ac_header_preproc=yes
20501 no:yes:* )
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20516 esac
20517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522 eval "$as_ac_Header=\$ac_header_preproc"
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525 { echo "$as_me:$LINENO: result: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532 _ACEOF
20534 else
20536 for ac_header in kerberosIV/des.h
20538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546 { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20548 else
20549 # Is the header compilable?
20550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (ac_try="$ac_compile"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_compile") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest.$ac_objext; then
20578 ac_header_compiler=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_compiler=no
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20588 echo "${ECHO_T}$ac_header_compiler" >&6; }
20590 # Is the header present?
20591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h. */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <$ac_header>
20600 _ACEOF
20601 if { (ac_try="$ac_cpp conftest.$ac_ext"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null && {
20614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 }; then
20617 ac_header_preproc=yes
20618 else
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_header_preproc=no
20625 rm -f conftest.err conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20627 echo "${ECHO_T}$ac_header_preproc" >&6; }
20629 # So? What about this header?
20630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20631 yes:no: )
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20636 ac_header_preproc=yes
20638 no:yes:* )
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20653 esac
20654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659 eval "$as_ac_Header=\$ac_header_preproc"
20661 ac_res=`eval echo '${'$as_ac_Header'}'`
20662 { echo "$as_me:$LINENO: result: $ac_res" >&5
20663 echo "${ECHO_T}$ac_res" >&6; }
20666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20669 _ACEOF
20671 else
20673 for ac_header in kerberos/des.h
20675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20685 else
20686 # Is the header compilable?
20687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20689 cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h. */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 $ac_includes_default
20696 #include <$ac_header>
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20715 ac_header_compiler=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_header_compiler=no
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20725 echo "${ECHO_T}$ac_header_compiler" >&6; }
20727 # Is the header present?
20728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h. */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <$ac_header>
20737 _ACEOF
20738 if { (ac_try="$ac_cpp conftest.$ac_ext"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } >/dev/null && {
20751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 }; then
20754 ac_header_preproc=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_preproc=no
20762 rm -f conftest.err conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20764 echo "${ECHO_T}$ac_header_preproc" >&6; }
20766 # So? What about this header?
20767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20768 yes:no: )
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20773 ac_header_preproc=yes
20775 no:yes:* )
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20790 esac
20791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796 eval "$as_ac_Header=\$ac_header_preproc"
20798 ac_res=`eval echo '${'$as_ac_Header'}'`
20799 { echo "$as_me:$LINENO: result: $ac_res" >&5
20800 echo "${ECHO_T}$ac_res" >&6; }
20803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20806 _ACEOF
20810 done
20814 done
20818 done
20821 for ac_header in krb.h
20823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 ac_res=`eval echo '${'$as_ac_Header'}'`
20831 { echo "$as_me:$LINENO: result: $ac_res" >&5
20832 echo "${ECHO_T}$ac_res" >&6; }
20833 else
20834 # Is the header compilable?
20835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h. */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 $ac_includes_default
20844 #include <$ac_header>
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20864 else
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_compiler=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20873 echo "${ECHO_T}$ac_header_compiler" >&6; }
20875 # Is the header present?
20876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <$ac_header>
20885 _ACEOF
20886 if { (ac_try="$ac_cpp conftest.$ac_ext"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 }; then
20902 ac_header_preproc=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_header_preproc=no
20910 rm -f conftest.err conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6; }
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20916 yes:no: )
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20921 ac_header_preproc=yes
20923 no:yes:* )
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20938 esac
20939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 eval "$as_ac_Header=\$ac_header_preproc"
20946 ac_res=`eval echo '${'$as_ac_Header'}'`
20947 { echo "$as_me:$LINENO: result: $ac_res" >&5
20948 echo "${ECHO_T}$ac_res" >&6; }
20951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20952 cat >>confdefs.h <<_ACEOF
20953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20954 _ACEOF
20956 else
20958 for ac_header in kerberosIV/krb.h
20960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 ac_res=`eval echo '${'$as_ac_Header'}'`
20968 { echo "$as_me:$LINENO: result: $ac_res" >&5
20969 echo "${ECHO_T}$ac_res" >&6; }
20970 else
20971 # Is the header compilable?
20972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 $ac_includes_default
20981 #include <$ac_header>
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (ac_try="$ac_compile"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_compile") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest.$ac_objext; then
21000 ac_header_compiler=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_header_compiler=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21010 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012 # Is the header present?
21013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <$ac_header>
21022 _ACEOF
21023 if { (ac_try="$ac_cpp conftest.$ac_ext"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } >/dev/null && {
21036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 }; then
21039 ac_header_preproc=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_preproc=no
21047 rm -f conftest.err conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21049 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051 # So? What about this header?
21052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21053 yes:no: )
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21058 ac_header_preproc=yes
21060 no:yes:* )
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21075 esac
21076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081 eval "$as_ac_Header=\$ac_header_preproc"
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21091 _ACEOF
21093 else
21095 for ac_header in kerberos/krb.h
21097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 ac_res=`eval echo '${'$as_ac_Header'}'`
21105 { echo "$as_me:$LINENO: result: $ac_res" >&5
21106 echo "${ECHO_T}$ac_res" >&6; }
21107 else
21108 # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 #include <$ac_header>
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_header_compiler=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_compiler=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21147 echo "${ECHO_T}$ac_header_compiler" >&6; }
21149 # Is the header present?
21150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <$ac_header>
21159 _ACEOF
21160 if { (ac_try="$ac_cpp conftest.$ac_ext"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } >/dev/null && {
21173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 }; then
21176 ac_header_preproc=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_preproc=no
21184 rm -f conftest.err conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21186 echo "${ECHO_T}$ac_header_preproc" >&6; }
21188 # So? What about this header?
21189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21190 yes:no: )
21191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21195 ac_header_preproc=yes
21197 no:yes:* )
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21212 esac
21213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 eval "$as_ac_Header=\$ac_header_preproc"
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21228 _ACEOF
21232 done
21236 done
21240 done
21244 for ac_header in com_err.h
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 else
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21308 _ACEOF
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 }; then
21325 ac_header_preproc=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21339 yes:no: )
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344 ac_header_preproc=yes
21346 no:yes:* )
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21361 esac
21362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 eval "$as_ac_Header=\$ac_header_preproc"
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21377 _ACEOF
21381 done
21385 # Solaris requires -lintl if you want strerror (which calls dgettext)
21386 # to return localized messages.
21388 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21389 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21390 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 else
21393 ac_check_lib_save_LIBS=$LIBS
21394 LIBS="-lintl $LIBS"
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21402 /* Override any GCC internal prototype to avoid an error.
21403 Use char because int might match the return type of a GCC
21404 builtin and then its argument prototype would still apply. */
21405 #ifdef __cplusplus
21406 extern "C"
21407 #endif
21408 char dgettext ();
21410 main ()
21412 return dgettext ();
21414 return 0;
21416 _ACEOF
21417 rm -f conftest.$ac_objext conftest$ac_exeext
21418 if { (ac_try="$ac_link"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_link") 2>conftest.er1
21425 ac_status=$?
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } && {
21431 test -z "$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 } && test -s conftest$ac_exeext &&
21434 $as_test_x conftest$ac_exeext; then
21435 ac_cv_lib_intl_dgettext=yes
21436 else
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_cv_lib_intl_dgettext=no
21443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444 conftest$ac_exeext conftest.$ac_ext
21445 LIBS=$ac_check_lib_save_LIBS
21447 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21448 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21449 if test $ac_cv_lib_intl_dgettext = yes; then
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LIBINTL 1
21452 _ACEOF
21454 LIBS="-lintl $LIBS"
21459 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21460 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21461 if test "${emacs_cv_localtime_cache+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464 if test x$ac_cv_func_tzset = xyes; then
21465 if test "$cross_compiling" = yes; then
21466 # If we have tzset, assume the worst when cross-compiling.
21467 emacs_cv_localtime_cache=yes
21468 else
21469 cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h. */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <time.h>
21476 extern char **environ;
21477 unset_TZ ()
21479 char **from, **to;
21480 for (to = from = environ; (*to = *from); from++)
21481 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21482 to++;
21484 char TZ_GMT0[] = "TZ=GMT0";
21485 char TZ_PST8[] = "TZ=PST8";
21486 main()
21488 time_t now = time ((time_t *) 0);
21489 int hour_GMT0, hour_unset;
21490 if (putenv (TZ_GMT0) != 0)
21491 exit (1);
21492 hour_GMT0 = localtime (&now)->tm_hour;
21493 unset_TZ ();
21494 hour_unset = localtime (&now)->tm_hour;
21495 if (putenv (TZ_PST8) != 0)
21496 exit (1);
21497 if (localtime (&now)->tm_hour == hour_GMT0)
21498 exit (1);
21499 unset_TZ ();
21500 if (localtime (&now)->tm_hour != hour_unset)
21501 exit (1);
21502 exit (0);
21504 _ACEOF
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_link") 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 emacs_cv_localtime_cache=no
21526 else
21527 echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ( exit $ac_status )
21532 emacs_cv_localtime_cache=yes
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538 else
21539 # If we lack tzset, report that localtime does not cache TZ,
21540 # since we can't invalidate the cache if we don't have tzset.
21541 emacs_cv_localtime_cache=no
21544 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21545 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21546 if test $emacs_cv_localtime_cache = yes; then
21548 cat >>confdefs.h <<\_ACEOF
21549 #define LOCALTIME_CACHE 1
21550 _ACEOF
21554 if test "x$HAVE_TIMEVAL" = xyes; then
21556 for ac_func in gettimeofday
21558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21572 #define $ac_func innocuous_$ac_func
21574 /* System header to define __stub macros and hopefully few prototypes,
21575 which can conflict with char $ac_func (); below.
21576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21577 <limits.h> exists even on freestanding compilers. */
21579 #ifdef __STDC__
21580 # include <limits.h>
21581 #else
21582 # include <assert.h>
21583 #endif
21585 #undef $ac_func
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21590 #ifdef __cplusplus
21591 extern "C"
21592 #endif
21593 char $ac_func ();
21594 /* The GNU C library defines this for functions which it implements
21595 to always fail with ENOSYS. Some functions are actually named
21596 something starting with __ and the normal name is an alias. */
21597 #if defined __stub_$ac_func || defined __stub___$ac_func
21598 choke me
21599 #endif
21602 main ()
21604 return $ac_func ();
21606 return 0;
21608 _ACEOF
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 eval "$as_ac_var=yes"
21628 else
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no"
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21638 ac_res=`eval echo '${'$as_ac_var'}'`
21639 { echo "$as_me:$LINENO: result: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641 if test `eval echo '${'$as_ac_var'}'` = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21644 _ACEOF
21647 done
21649 if test $ac_cv_func_gettimeofday = yes; then
21650 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21651 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21652 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655 cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h. */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21662 #ifdef TIME_WITH_SYS_TIME
21663 #include <sys/time.h>
21664 #include <time.h>
21665 #else
21666 #ifdef HAVE_SYS_TIME_H
21667 #include <sys/time.h>
21668 #else
21669 #include <time.h>
21670 #endif
21671 #endif
21673 main ()
21675 struct timeval time;
21676 gettimeofday (&time, 0);
21678 return 0;
21680 _ACEOF
21681 rm -f conftest.$ac_objext
21682 if { (ac_try="$ac_compile"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 emacs_cv_gettimeofday_two_arguments=yes
21699 else
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 emacs_cv_gettimeofday_two_arguments=no
21706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21709 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21710 if test $emacs_cv_gettimeofday_two_arguments = no; then
21712 cat >>confdefs.h <<\_ACEOF
21713 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21714 _ACEOF
21720 ok_so_far=yes
21721 { echo "$as_me:$LINENO: checking for socket" >&5
21722 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21723 if test "${ac_cv_func_socket+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726 cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h. */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21734 #define socket innocuous_socket
21736 /* System header to define __stub macros and hopefully few prototypes,
21737 which can conflict with char socket (); below.
21738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21739 <limits.h> exists even on freestanding compilers. */
21741 #ifdef __STDC__
21742 # include <limits.h>
21743 #else
21744 # include <assert.h>
21745 #endif
21747 #undef socket
21749 /* Override any GCC internal prototype to avoid an error.
21750 Use char because int might match the return type of a GCC
21751 builtin and then its argument prototype would still apply. */
21752 #ifdef __cplusplus
21753 extern "C"
21754 #endif
21755 char socket ();
21756 /* The GNU C library defines this for functions which it implements
21757 to always fail with ENOSYS. Some functions are actually named
21758 something starting with __ and the normal name is an alias. */
21759 #if defined __stub_socket || defined __stub___socket
21760 choke me
21761 #endif
21764 main ()
21766 return socket ();
21768 return 0;
21770 _ACEOF
21771 rm -f conftest.$ac_objext conftest$ac_exeext
21772 if { (ac_try="$ac_link"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_link") 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } && {
21785 test -z "$ac_c_werror_flag" ||
21786 test ! -s conftest.err
21787 } && test -s conftest$ac_exeext &&
21788 $as_test_x conftest$ac_exeext; then
21789 ac_cv_func_socket=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_cv_func_socket=no
21797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21798 conftest$ac_exeext conftest.$ac_ext
21800 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21801 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21802 if test $ac_cv_func_socket = yes; then
21804 else
21805 ok_so_far=no
21808 if test $ok_so_far = yes; then
21809 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21810 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21811 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21812 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21816 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21817 else
21818 # Is the header compilable?
21819 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21820 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h. */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 $ac_includes_default
21828 #include <netinet/in.h>
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 ac_header_compiler=yes
21848 else
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_compiler=no
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6; }
21859 # Is the header present?
21860 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21861 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <netinet/in.h>
21869 _ACEOF
21870 if { (ac_try="$ac_cpp conftest.$ac_ext"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } >/dev/null && {
21883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 }; then
21886 ac_header_preproc=yes
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_preproc=no
21894 rm -f conftest.err conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21896 echo "${ECHO_T}$ac_header_preproc" >&6; }
21898 # So? What about this header?
21899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21900 yes:no: )
21901 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21902 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21903 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21904 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21905 ac_header_preproc=yes
21907 no:yes:* )
21908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21909 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21911 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21913 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21915 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21917 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21919 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21922 esac
21923 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21924 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21925 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928 ac_cv_header_netinet_in_h=$ac_header_preproc
21930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21934 if test $ac_cv_header_netinet_in_h = yes; then
21936 else
21937 ok_so_far=no
21942 if test $ok_so_far = yes; then
21943 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21944 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21945 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21946 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21950 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21951 else
21952 # Is the header compilable?
21953 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21954 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h. */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <arpa/inet.h>
21963 _ACEOF
21964 rm -f conftest.$ac_objext
21965 if { (ac_try="$ac_compile"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_header_compiler=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_compiler=no
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21991 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993 # Is the header present?
21994 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21995 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h. */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <arpa/inet.h>
22003 _ACEOF
22004 if { (ac_try="$ac_cpp conftest.$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } >/dev/null && {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 }; then
22020 ac_header_preproc=yes
22021 else
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ac_header_preproc=no
22028 rm -f conftest.err conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 yes:no: )
22035 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc=yes
22041 no:yes:* )
22042 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22056 esac
22057 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22058 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22059 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062 ac_cv_header_arpa_inet_h=$ac_header_preproc
22064 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22068 if test $ac_cv_header_arpa_inet_h = yes; then
22070 else
22071 ok_so_far=no
22076 if test $ok_so_far = yes; then
22078 cat >>confdefs.h <<\_ACEOF
22079 #define HAVE_INET_SOCKETS 1
22080 _ACEOF
22085 for ac_header in sys/ioctl.h
22087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 ac_res=`eval echo '${'$as_ac_Header'}'`
22095 { echo "$as_me:$LINENO: result: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22097 else
22098 # Is the header compilable?
22099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 $ac_includes_default
22108 #include <$ac_header>
22109 _ACEOF
22110 rm -f conftest.$ac_objext
22111 if { (ac_try="$ac_compile"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_compile") 2>conftest.er1
22118 ac_status=$?
22119 grep -v '^ *+' conftest.er1 >conftest.err
22120 rm -f conftest.er1
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } && {
22124 test -z "$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22126 } && test -s conftest.$ac_objext; then
22127 ac_header_compiler=yes
22128 else
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_compiler=no
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137 echo "${ECHO_T}$ac_header_compiler" >&6; }
22139 # Is the header present?
22140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h. */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 #include <$ac_header>
22149 _ACEOF
22150 if { (ac_try="$ac_cpp conftest.$ac_ext"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } >/dev/null && {
22163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 }; then
22166 ac_header_preproc=yes
22167 else
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_header_preproc=no
22174 rm -f conftest.err conftest.$ac_ext
22175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22176 echo "${ECHO_T}$ac_header_preproc" >&6; }
22178 # So? What about this header?
22179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22180 yes:no: )
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22185 ac_header_preproc=yes
22187 no:yes:* )
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22202 esac
22203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 else
22208 eval "$as_ac_Header=\$ac_header_preproc"
22210 ac_res=`eval echo '${'$as_ac_Header'}'`
22211 { echo "$as_me:$LINENO: result: $ac_res" >&5
22212 echo "${ECHO_T}$ac_res" >&6; }
22215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22216 cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22218 _ACEOF
22222 done
22225 if test -f /usr/lpp/X11/bin/smt.exp; then
22227 cat >>confdefs.h <<\_ACEOF
22228 #define HAVE_AIX_SMT_EXP 1
22229 _ACEOF
22233 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22234 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22235 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22236 { echo "$as_me:$LINENO: result: yes" >&5
22237 echo "${ECHO_T}yes" >&6; }
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_DEV_PTMX 1
22241 _ACEOF
22243 else
22244 { echo "$as_me:$LINENO: result: no" >&5
22245 echo "${ECHO_T}no" >&6; }
22248 { echo "$as_me:$LINENO: checking for pid_t" >&5
22249 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22250 if test "${ac_cv_type_pid_t+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 typedef pid_t ac__type_new_;
22262 main ()
22264 if ((ac__type_new_ *) 0)
22265 return 0;
22266 if (sizeof (ac__type_new_))
22267 return 0;
22269 return 0;
22271 _ACEOF
22272 rm -f conftest.$ac_objext
22273 if { (ac_try="$ac_compile"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 ac_cv_type_pid_t=yes
22290 else
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_cv_type_pid_t=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22301 if test $ac_cv_type_pid_t = yes; then
22303 else
22305 cat >>confdefs.h <<_ACEOF
22306 #define pid_t int
22307 _ACEOF
22312 for ac_header in vfork.h
22314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 ac_res=`eval echo '${'$as_ac_Header'}'`
22322 { echo "$as_me:$LINENO: result: $ac_res" >&5
22323 echo "${ECHO_T}$ac_res" >&6; }
22324 else
22325 # Is the header compilable?
22326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22328 cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h. */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 $ac_includes_default
22335 #include <$ac_header>
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_compile") 2>conftest.er1
22345 ac_status=$?
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } && {
22351 test -z "$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 } && test -s conftest.$ac_objext; then
22354 ac_header_compiler=yes
22355 else
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_header_compiler=no
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22364 echo "${ECHO_T}$ac_header_compiler" >&6; }
22366 # Is the header present?
22367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22369 cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h. */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22375 #include <$ac_header>
22376 _ACEOF
22377 if { (ac_try="$ac_cpp conftest.$ac_ext"
22378 case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381 esac
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22384 ac_status=$?
22385 grep -v '^ *+' conftest.er1 >conftest.err
22386 rm -f conftest.er1
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } >/dev/null && {
22390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22392 }; then
22393 ac_header_preproc=yes
22394 else
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_header_preproc=no
22401 rm -f conftest.err conftest.$ac_ext
22402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22403 echo "${ECHO_T}$ac_header_preproc" >&6; }
22405 # So? What about this header?
22406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22407 yes:no: )
22408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22412 ac_header_preproc=yes
22414 no:yes:* )
22415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22429 esac
22430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435 eval "$as_ac_Header=\$ac_header_preproc"
22437 ac_res=`eval echo '${'$as_ac_Header'}'`
22438 { echo "$as_me:$LINENO: result: $ac_res" >&5
22439 echo "${ECHO_T}$ac_res" >&6; }
22442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22443 cat >>confdefs.h <<_ACEOF
22444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22445 _ACEOF
22449 done
22453 for ac_func in fork vfork
22455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22469 #define $ac_func innocuous_$ac_func
22471 /* System header to define __stub macros and hopefully few prototypes,
22472 which can conflict with char $ac_func (); below.
22473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22474 <limits.h> exists even on freestanding compilers. */
22476 #ifdef __STDC__
22477 # include <limits.h>
22478 #else
22479 # include <assert.h>
22480 #endif
22482 #undef $ac_func
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22487 #ifdef __cplusplus
22488 extern "C"
22489 #endif
22490 char $ac_func ();
22491 /* The GNU C library defines this for functions which it implements
22492 to always fail with ENOSYS. Some functions are actually named
22493 something starting with __ and the normal name is an alias. */
22494 #if defined __stub_$ac_func || defined __stub___$ac_func
22495 choke me
22496 #endif
22499 main ()
22501 return $ac_func ();
22503 return 0;
22505 _ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
22514 ac_status=$?
22515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest$ac_exeext &&
22523 $as_test_x conftest$ac_exeext; then
22524 eval "$as_ac_var=yes"
22525 else
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 eval "$as_ac_var=no"
22532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22533 conftest$ac_exeext conftest.$ac_ext
22535 ac_res=`eval echo '${'$as_ac_var'}'`
22536 { echo "$as_me:$LINENO: result: $ac_res" >&5
22537 echo "${ECHO_T}$ac_res" >&6; }
22538 if test `eval echo '${'$as_ac_var'}'` = yes; then
22539 cat >>confdefs.h <<_ACEOF
22540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22541 _ACEOF
22544 done
22546 if test "x$ac_cv_func_fork" = xyes; then
22547 { echo "$as_me:$LINENO: checking for working fork" >&5
22548 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22549 if test "${ac_cv_func_fork_works+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552 if test "$cross_compiling" = yes; then
22553 ac_cv_func_fork_works=cross
22554 else
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 $ac_includes_default
22563 main ()
22566 /* By Ruediger Kuhlmann. */
22567 return fork () < 0;
22570 return 0;
22572 _ACEOF
22573 rm -f conftest$ac_exeext
22574 if { (ac_try="$ac_link"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_link") 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22584 { (case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_try") 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 ac_cv_func_fork_works=yes
22594 else
22595 echo "$as_me: program exited with status $ac_status" >&5
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 ( exit $ac_status )
22600 ac_cv_func_fork_works=no
22602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22608 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22610 else
22611 ac_cv_func_fork_works=$ac_cv_func_fork
22613 if test "x$ac_cv_func_fork_works" = xcross; then
22614 case $host in
22615 *-*-amigaos* | *-*-msdosdjgpp*)
22616 # Override, as these systems have only a dummy fork() stub
22617 ac_cv_func_fork_works=no
22620 ac_cv_func_fork_works=yes
22622 esac
22623 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22624 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22626 ac_cv_func_vfork_works=$ac_cv_func_vfork
22627 if test "x$ac_cv_func_vfork" = xyes; then
22628 { echo "$as_me:$LINENO: checking for working vfork" >&5
22629 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22630 if test "${ac_cv_func_vfork_works+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 if test "$cross_compiling" = yes; then
22634 ac_cv_func_vfork_works=cross
22635 else
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 /* Thanks to Paul Eggert for this test. */
22643 $ac_includes_default
22644 #include <sys/wait.h>
22645 #ifdef HAVE_VFORK_H
22646 # include <vfork.h>
22647 #endif
22648 /* On some sparc systems, changes by the child to local and incoming
22649 argument registers are propagated back to the parent. The compiler
22650 is told about this with #include <vfork.h>, but some compilers
22651 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22652 static variable whose address is put into a register that is
22653 clobbered by the vfork. */
22654 static void
22655 #ifdef __cplusplus
22656 sparc_address_test (int arg)
22657 # else
22658 sparc_address_test (arg) int arg;
22659 #endif
22661 static pid_t child;
22662 if (!child) {
22663 child = vfork ();
22664 if (child < 0) {
22665 perror ("vfork");
22666 _exit(2);
22668 if (!child) {
22669 arg = getpid();
22670 write(-1, "", 0);
22671 _exit (arg);
22677 main ()
22679 pid_t parent = getpid ();
22680 pid_t child;
22682 sparc_address_test (0);
22684 child = vfork ();
22686 if (child == 0) {
22687 /* Here is another test for sparc vfork register problems. This
22688 test uses lots of local variables, at least as many local
22689 variables as main has allocated so far including compiler
22690 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22691 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22692 reuse the register of parent for one of the local variables,
22693 since it will think that parent can't possibly be used any more
22694 in this routine. Assigning to the local variable will thus
22695 munge parent in the parent process. */
22696 pid_t
22697 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22698 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22699 /* Convince the compiler that p..p7 are live; otherwise, it might
22700 use the same hardware register for all 8 local variables. */
22701 if (p != p1 || p != p2 || p != p3 || p != p4
22702 || p != p5 || p != p6 || p != p7)
22703 _exit(1);
22705 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22706 from child file descriptors. If the child closes a descriptor
22707 before it execs or exits, this munges the parent's descriptor
22708 as well. Test for this by closing stdout in the child. */
22709 _exit(close(fileno(stdout)) != 0);
22710 } else {
22711 int status;
22712 struct stat st;
22714 while (wait(&status) != child)
22716 return (
22717 /* Was there some problem with vforking? */
22718 child < 0
22720 /* Did the child fail? (This shouldn't happen.) */
22721 || status
22723 /* Did the vfork/compiler bug occur? */
22724 || parent != getpid()
22726 /* Did the file descriptor bug occur? */
22727 || fstat(fileno(stdout), &st) != 0
22731 _ACEOF
22732 rm -f conftest$ac_exeext
22733 if { (ac_try="$ac_link"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_link") 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22743 { (case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_try") 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 ac_cv_func_vfork_works=yes
22753 else
22754 echo "$as_me: program exited with status $ac_status" >&5
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22758 ( exit $ac_status )
22759 ac_cv_func_vfork_works=no
22761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22767 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22770 if test "x$ac_cv_func_fork_works" = xcross; then
22771 ac_cv_func_vfork_works=$ac_cv_func_vfork
22772 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22773 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22776 if test "x$ac_cv_func_vfork_works" = xyes; then
22778 cat >>confdefs.h <<\_ACEOF
22779 #define HAVE_WORKING_VFORK 1
22780 _ACEOF
22782 else
22784 cat >>confdefs.h <<\_ACEOF
22785 #define vfork fork
22786 _ACEOF
22789 if test "x$ac_cv_func_fork_works" = xyes; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_WORKING_FORK 1
22793 _ACEOF
22798 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22799 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22800 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22801 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 else
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h. */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 #include <langinfo.h>
22811 main ()
22813 char* cs = nl_langinfo(CODESET);
22815 return 0;
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>conftest.er1
22826 ac_status=$?
22827 grep -v '^ *+' conftest.er1 >conftest.err
22828 rm -f conftest.er1
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest$ac_exeext &&
22835 $as_test_x conftest$ac_exeext; then
22836 emacs_cv_langinfo_codeset=yes
22837 else
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 emacs_cv_langinfo_codeset=no
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22848 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22849 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22850 if test $emacs_cv_langinfo_codeset = yes; then
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_LANGINFO_CODESET 1
22854 _ACEOF
22858 { echo "$as_me:$LINENO: checking for size_t" >&5
22859 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22860 if test "${ac_cv_type_size_t+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863 cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h. */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 $ac_includes_default
22870 typedef size_t ac__type_new_;
22872 main ()
22874 if ((ac__type_new_ *) 0)
22875 return 0;
22876 if (sizeof (ac__type_new_))
22877 return 0;
22879 return 0;
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } && {
22896 test -z "$ac_c_werror_flag" ||
22897 test ! -s conftest.err
22898 } && test -s conftest.$ac_objext; then
22899 ac_cv_type_size_t=yes
22900 else
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22904 ac_cv_type_size_t=no
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22910 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22911 if test $ac_cv_type_size_t = yes; then
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_SIZE_T 1
22915 _ACEOF
22921 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22922 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22923 if test "${ac_cv_type_mbstate_t+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926 cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h. */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22933 # include <wchar.h>
22935 main ()
22937 mbstate_t x; return sizeof x;
22939 return 0;
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22950 ac_status=$?
22951 grep -v '^ *+' conftest.er1 >conftest.err
22952 rm -f conftest.er1
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_cv_type_mbstate_t=yes
22960 else
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_cv_type_mbstate_t=no
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22970 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22971 if test $ac_cv_type_mbstate_t = yes; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define HAVE_MBSTATE_T 1
22975 _ACEOF
22977 else
22979 cat >>confdefs.h <<\_ACEOF
22980 #define mbstate_t int
22981 _ACEOF
22985 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22986 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22987 if test "${emacs_cv_c_restrict+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 void fred (int *restrict x);
22998 main ()
23002 return 0;
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23013 ac_status=$?
23014 grep -v '^ *+' conftest.er1 >conftest.err
23015 rm -f conftest.er1
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 emacs_cv_c_restrict=yes
23023 else
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h. */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 void fred (int *__restrict x);
23035 main ()
23039 return 0;
23041 _ACEOF
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23047 esac
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23050 ac_status=$?
23051 grep -v '^ *+' conftest.er1 >conftest.err
23052 rm -f conftest.er1
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 emacs_cv_c_restrict=__restrict
23060 else
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 emacs_cv_c_restrict=no
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23073 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23074 case "$emacs_cv_c_restrict" in
23075 yes) emacs_restrict=restrict;;
23076 no) emacs_restrict="";;
23077 *) emacs_restrict="$emacs_cv_c_restrict";;
23078 esac
23079 if test "$emacs_restrict" != __restrict; then
23081 cat >>confdefs.h <<_ACEOF
23082 #define __restrict $emacs_restrict
23083 _ACEOF
23087 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23088 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23089 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092 cat >conftest.$ac_ext <<_ACEOF
23093 /* confdefs.h. */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098 void fred (int x[__restrict]);
23100 main ()
23104 return 0;
23106 _ACEOF
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23112 esac
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 emacs_cv_c_restrict_arr=yes
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 emacs_cv_c_restrict_arr=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23135 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23136 if test "$emacs_cv_c_restrict_arr" = yes; then
23138 cat >>confdefs.h <<\_ACEOF
23139 #define __restrict_arr __restrict
23140 _ACEOF
23146 # Set up the CFLAGS for real compilation, so we can substitute it.
23147 CFLAGS="$REAL_CFLAGS"
23148 CPPFLAGS="$REAL_CPPFLAGS"
23150 #### Find out which version of Emacs this is.
23151 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23152 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23153 if test x"${version}" = x; then
23154 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23155 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23156 { (exit 1); exit 1; }; }
23159 ### Specify what sort of things we'll be editing into Makefile and config.h.
23160 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23196 cat >>confdefs.h <<_ACEOF
23197 #define EMACS_CONFIGURATION "${canonical}"
23198 _ACEOF
23201 cat >>confdefs.h <<_ACEOF
23202 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23203 _ACEOF
23206 cat >>confdefs.h <<_ACEOF
23207 #define config_machfile "${machfile}"
23208 _ACEOF
23211 cat >>confdefs.h <<_ACEOF
23212 #define config_opsysfile "${opsysfile}"
23213 _ACEOF
23216 cat >>confdefs.h <<_ACEOF
23217 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23218 _ACEOF
23221 cat >>confdefs.h <<_ACEOF
23222 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23223 _ACEOF
23226 cat >>confdefs.h <<_ACEOF
23227 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23228 _ACEOF
23231 cat >>confdefs.h <<_ACEOF
23232 #define UNEXEC_SRC ${UNEXEC_SRC}
23233 _ACEOF
23236 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_X_WINDOWS 1
23240 _ACEOF
23243 if test "${USE_X_TOOLKIT}" != "none" ; then
23245 cat >>confdefs.h <<\_ACEOF
23246 #define USE_X_TOOLKIT 1
23247 _ACEOF
23250 if test "${HAVE_X11}" = "yes" ; then
23252 cat >>confdefs.h <<\_ACEOF
23253 #define HAVE_X11 1
23254 _ACEOF
23257 if test "${HAVE_XFREE386}" = "yes" ; then
23259 cat >>confdefs.h <<\_ACEOF
23260 #define HAVE_XFREE386 1
23261 _ACEOF
23264 if test "${HAVE_MENUS}" = "yes" ; then
23266 cat >>confdefs.h <<\_ACEOF
23267 #define HAVE_MENUS 1
23268 _ACEOF
23271 if test "${GNU_MALLOC}" = "yes" ; then
23273 cat >>confdefs.h <<\_ACEOF
23274 #define GNU_MALLOC 1
23275 _ACEOF
23278 if test "${REL_ALLOC}" = "yes" ; then
23280 cat >>confdefs.h <<\_ACEOF
23281 #define REL_ALLOC 1
23282 _ACEOF
23290 #### Report on what we decided to do.
23291 #### Report GTK as a toolkit, even if it doesn't use Xt.
23292 #### It makes printing result more understandable as using GTK sets
23293 #### toolkit_scroll_bars to yes by default.
23294 if test "${HAVE_GTK}" = "yes"; then
23295 USE_X_TOOLKIT=GTK
23298 echo "
23299 Configured for \`${canonical}'.
23301 Where should the build process find the source code? ${srcdir}
23302 What operating system and machine description files should Emacs use?
23303 \`${opsysfile}' and \`${machfile}'
23304 What compiler should emacs be built with? ${CC} ${CFLAGS}
23305 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23306 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23307 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23308 What window system should Emacs use? ${window_system}
23309 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23311 if test -n "${x_includes}"; then
23312 echo " Where do we find X Windows header files? ${x_includes}"
23313 else
23314 echo " Where do we find X Windows header files? Standard dirs"
23316 if test -n "${x_libraries}"; then
23317 echo " Where do we find X Windows libraries? ${x_libraries}"
23318 else
23319 echo " Where do we find X Windows libraries? Standard dirs"
23322 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23323 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23324 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23325 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23326 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23327 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23328 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23329 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23330 echo
23332 if test $USE_XASSERTS = yes; then
23333 echo " Compiling with asserts turned on."
23334 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23335 echo
23338 if test "$USE_X_TOOLKIT" = GTK; then
23339 case "$canonical" in
23340 *cygwin*)
23341 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23342 will probably get a crash on startup. If this happens, please use another
23343 toolkit for Emacs. See etc/PROBLEMS for more information."
23345 esac
23350 # Remove any trailing slashes in these variables.
23351 test "${prefix}" != NONE &&
23352 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23353 test "${exec_prefix}" != NONE &&
23354 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23356 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23357 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23358 ## from Makefile.c can correctly provide the arg `-traditional' to the
23359 ## C preprocessor.
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h. */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 yes..yes
23368 _ACEOF
23369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23370 $EGREP "yes..yes" >/dev/null 2>&1; then
23371 CPP_NEED_TRADITIONAL=no
23372 else
23373 CPP_NEED_TRADITIONAL=yes
23375 rm -f conftest*
23378 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"
23380 ac_config_commands="$ac_config_commands default"
23382 cat >confcache <<\_ACEOF
23383 # This file is a shell script that caches the results of configure
23384 # tests run on this system so they can be shared between configure
23385 # scripts and configure runs, see configure's option --config-cache.
23386 # It is not useful on other systems. If it contains results you don't
23387 # want to keep, you may remove or edit it.
23389 # config.status only pays attention to the cache file if you give it
23390 # the --recheck option to rerun configure.
23392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23394 # following values.
23396 _ACEOF
23398 # The following way of writing the cache mishandles newlines in values,
23399 # but we know of no workaround that is simple, portable, and efficient.
23400 # So, we kill variables containing newlines.
23401 # Ultrix sh set writes to stderr and can't be redirected directly,
23402 # and sets the high bit in the cache file unless we assign to the vars.
23404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23405 eval ac_val=\$$ac_var
23406 case $ac_val in #(
23407 *${as_nl}*)
23408 case $ac_var in #(
23409 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23410 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23411 esac
23412 case $ac_var in #(
23413 _ | IFS | as_nl) ;; #(
23414 *) $as_unset $ac_var ;;
23415 esac ;;
23416 esac
23417 done
23419 (set) 2>&1 |
23420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23421 *${as_nl}ac_space=\ *)
23422 # `set' does not quote correctly, so add quotes (double-quote
23423 # substitution turns \\\\ into \\, and sed turns \\ into \).
23424 sed -n \
23425 "s/'/'\\\\''/g;
23426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23427 ;; #(
23429 # `set' quotes correctly as required by POSIX, so do not add quotes.
23430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23432 esac |
23433 sort
23435 sed '
23436 /^ac_cv_env_/b end
23437 t clear
23438 :clear
23439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23440 t end
23441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23442 :end' >>confcache
23443 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23444 if test -w "$cache_file"; then
23445 test "x$cache_file" != "x/dev/null" &&
23446 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23447 echo "$as_me: updating cache $cache_file" >&6;}
23448 cat confcache >$cache_file
23449 else
23450 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23451 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23454 rm -f confcache
23456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23457 # Let make expand exec_prefix.
23458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23460 DEFS=-DHAVE_CONFIG_H
23462 ac_libobjs=
23463 ac_ltlibobjs=
23464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23465 # 1. Remove the extension, and $U if already installed.
23466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23467 ac_i=`echo "$ac_i" | sed "$ac_script"`
23468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23469 # will be set to the directory where LIBOBJS objects are built.
23470 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23471 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23472 done
23473 LIBOBJS=$ac_libobjs
23475 LTLIBOBJS=$ac_ltlibobjs
23479 : ${CONFIG_STATUS=./config.status}
23480 ac_clean_files_save=$ac_clean_files
23481 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23482 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23483 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23484 cat >$CONFIG_STATUS <<_ACEOF
23485 #! $SHELL
23486 # Generated by $as_me.
23487 # Run this file to recreate the current configuration.
23488 # Compiler output produced by configure, useful for debugging
23489 # configure, is in config.log if it exists.
23491 debug=false
23492 ac_cs_recheck=false
23493 ac_cs_silent=false
23494 SHELL=\${CONFIG_SHELL-$SHELL}
23495 _ACEOF
23497 cat >>$CONFIG_STATUS <<\_ACEOF
23498 ## --------------------- ##
23499 ## M4sh Initialization. ##
23500 ## --------------------- ##
23502 # Be more Bourne compatible
23503 DUALCASE=1; export DUALCASE # for MKS sh
23504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23505 emulate sh
23506 NULLCMD=:
23507 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23508 # is contrary to our usage. Disable this feature.
23509 alias -g '${1+"$@"}'='"$@"'
23510 setopt NO_GLOB_SUBST
23511 else
23512 case `(set -o) 2>/dev/null` in
23513 *posix*) set -o posix ;;
23514 esac
23521 # PATH needs CR
23522 # Avoid depending upon Character Ranges.
23523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23526 as_cr_digits='0123456789'
23527 as_cr_alnum=$as_cr_Letters$as_cr_digits
23529 # The user is always right.
23530 if test "${PATH_SEPARATOR+set}" != set; then
23531 echo "#! /bin/sh" >conf$$.sh
23532 echo "exit 0" >>conf$$.sh
23533 chmod +x conf$$.sh
23534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23535 PATH_SEPARATOR=';'
23536 else
23537 PATH_SEPARATOR=:
23539 rm -f conf$$.sh
23542 # Support unset when possible.
23543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23544 as_unset=unset
23545 else
23546 as_unset=false
23550 # IFS
23551 # We need space, tab and new line, in precisely that order. Quoting is
23552 # there to prevent editors from complaining about space-tab.
23553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23554 # splitting by setting IFS to empty value.)
23555 as_nl='
23557 IFS=" "" $as_nl"
23559 # Find who we are. Look in the path if we contain no directory separator.
23560 case $0 in
23561 *[\\/]* ) as_myself=$0 ;;
23562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23563 for as_dir in $PATH
23565 IFS=$as_save_IFS
23566 test -z "$as_dir" && as_dir=.
23567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23568 done
23569 IFS=$as_save_IFS
23572 esac
23573 # We did not find ourselves, most probably we were run as `sh COMMAND'
23574 # in which case we are not to be found in the path.
23575 if test "x$as_myself" = x; then
23576 as_myself=$0
23578 if test ! -f "$as_myself"; then
23579 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23580 { (exit 1); exit 1; }
23583 # Work around bugs in pre-3.0 UWIN ksh.
23584 for as_var in ENV MAIL MAILPATH
23585 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23586 done
23587 PS1='$ '
23588 PS2='> '
23589 PS4='+ '
23591 # NLS nuisances.
23592 for as_var in \
23593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23595 LC_TELEPHONE LC_TIME
23597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23598 eval $as_var=C; export $as_var
23599 else
23600 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23602 done
23604 # Required to use basename.
23605 if expr a : '\(a\)' >/dev/null 2>&1 &&
23606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23607 as_expr=expr
23608 else
23609 as_expr=false
23612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23613 as_basename=basename
23614 else
23615 as_basename=false
23619 # Name of the executable.
23620 as_me=`$as_basename -- "$0" ||
23621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23622 X"$0" : 'X\(//\)$' \| \
23623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23624 echo X/"$0" |
23625 sed '/^.*\/\([^/][^/]*\)\/*$/{
23626 s//\1/
23629 /^X\/\(\/\/\)$/{
23630 s//\1/
23633 /^X\/\(\/\).*/{
23634 s//\1/
23637 s/.*/./; q'`
23639 # CDPATH.
23640 $as_unset CDPATH
23644 as_lineno_1=$LINENO
23645 as_lineno_2=$LINENO
23646 test "x$as_lineno_1" != "x$as_lineno_2" &&
23647 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23650 # uniformly replaced by the line number. The first 'sed' inserts a
23651 # line-number line after each line using $LINENO; the second 'sed'
23652 # does the real work. The second script uses 'N' to pair each
23653 # line-number line with the line containing $LINENO, and appends
23654 # trailing '-' during substitution so that $LINENO is not a special
23655 # case at line end.
23656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23657 # scripts with optimization help from Paolo Bonzini. Blame Lee
23658 # E. McMahon (1931-1989) for sed's syntax. :-)
23659 sed -n '
23661 /[$]LINENO/=
23662 ' <$as_myself |
23663 sed '
23664 s/[$]LINENO.*/&-/
23665 t lineno
23667 :lineno
23669 :loop
23670 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23671 t loop
23672 s/-\n.*//
23673 ' >$as_me.lineno &&
23674 chmod +x "$as_me.lineno" ||
23675 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23676 { (exit 1); exit 1; }; }
23678 # Don't try to exec as it changes $[0], causing all sort of problems
23679 # (the dirname of $[0] is not the place where we might find the
23680 # original and so on. Autoconf is especially sensitive to this).
23681 . "./$as_me.lineno"
23682 # Exit status is that of the last command.
23683 exit
23687 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23688 as_dirname=dirname
23689 else
23690 as_dirname=false
23693 ECHO_C= ECHO_N= ECHO_T=
23694 case `echo -n x` in
23695 -n*)
23696 case `echo 'x\c'` in
23697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23698 *) ECHO_C='\c';;
23699 esac;;
23701 ECHO_N='-n';;
23702 esac
23704 if expr a : '\(a\)' >/dev/null 2>&1 &&
23705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23706 as_expr=expr
23707 else
23708 as_expr=false
23711 rm -f conf$$ conf$$.exe conf$$.file
23712 if test -d conf$$.dir; then
23713 rm -f conf$$.dir/conf$$.file
23714 else
23715 rm -f conf$$.dir
23716 mkdir conf$$.dir
23718 echo >conf$$.file
23719 if ln -s conf$$.file conf$$ 2>/dev/null; then
23720 as_ln_s='ln -s'
23721 # ... but there are two gotchas:
23722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23724 # In both cases, we have to default to `cp -p'.
23725 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23726 as_ln_s='cp -p'
23727 elif ln conf$$.file conf$$ 2>/dev/null; then
23728 as_ln_s=ln
23729 else
23730 as_ln_s='cp -p'
23732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23733 rmdir conf$$.dir 2>/dev/null
23735 if mkdir -p . 2>/dev/null; then
23736 as_mkdir_p=:
23737 else
23738 test -d ./-p && rmdir ./-p
23739 as_mkdir_p=false
23742 if test -x / >/dev/null 2>&1; then
23743 as_test_x='test -x'
23744 else
23745 if ls -dL / >/dev/null 2>&1; then
23746 as_ls_L_option=L
23747 else
23748 as_ls_L_option=
23750 as_test_x='
23751 eval sh -c '\''
23752 if test -d "$1"; then
23753 test -d "$1/.";
23754 else
23755 case $1 in
23756 -*)set "./$1";;
23757 esac;
23758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23759 ???[sx]*):;;*)false;;esac;fi
23760 '\'' sh
23763 as_executable_p=$as_test_x
23765 # Sed expression to map a string onto a valid CPP name.
23766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23768 # Sed expression to map a string onto a valid variable name.
23769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23772 exec 6>&1
23774 # Save the log message, to keep $[0] and so on meaningful, and to
23775 # report actual input values of CONFIG_FILES etc. instead of their
23776 # values after options handling.
23777 ac_log="
23778 This file was extended by $as_me, which was
23779 generated by GNU Autoconf 2.61. Invocation command line was
23781 CONFIG_FILES = $CONFIG_FILES
23782 CONFIG_HEADERS = $CONFIG_HEADERS
23783 CONFIG_LINKS = $CONFIG_LINKS
23784 CONFIG_COMMANDS = $CONFIG_COMMANDS
23785 $ $0 $@
23787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23790 _ACEOF
23792 cat >>$CONFIG_STATUS <<_ACEOF
23793 # Files that config.status was made for.
23794 config_files="$ac_config_files"
23795 config_headers="$ac_config_headers"
23796 config_commands="$ac_config_commands"
23798 _ACEOF
23800 cat >>$CONFIG_STATUS <<\_ACEOF
23801 ac_cs_usage="\
23802 \`$as_me' instantiates files from templates according to the
23803 current configuration.
23805 Usage: $0 [OPTIONS] [FILE]...
23807 -h, --help print this help, then exit
23808 -V, --version print version number and configuration settings, then exit
23809 -q, --quiet do not print progress messages
23810 -d, --debug don't remove temporary files
23811 --recheck update $as_me by reconfiguring in the same conditions
23812 --file=FILE[:TEMPLATE]
23813 instantiate the configuration file FILE
23814 --header=FILE[:TEMPLATE]
23815 instantiate the configuration header FILE
23817 Configuration files:
23818 $config_files
23820 Configuration headers:
23821 $config_headers
23823 Configuration commands:
23824 $config_commands
23826 Report bugs to <bug-autoconf@gnu.org>."
23828 _ACEOF
23829 cat >>$CONFIG_STATUS <<_ACEOF
23830 ac_cs_version="\\
23831 config.status
23832 configured by $0, generated by GNU Autoconf 2.61,
23833 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23835 Copyright (C) 2006 Free Software Foundation, Inc.
23836 This config.status script is free software; the Free Software Foundation
23837 gives unlimited permission to copy, distribute and modify it."
23839 ac_pwd='$ac_pwd'
23840 srcdir='$srcdir'
23841 INSTALL='$INSTALL'
23842 _ACEOF
23844 cat >>$CONFIG_STATUS <<\_ACEOF
23845 # If no file are specified by the user, then we need to provide default
23846 # value. By we need to know if files were specified by the user.
23847 ac_need_defaults=:
23848 while test $# != 0
23850 case $1 in
23851 --*=*)
23852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23854 ac_shift=:
23857 ac_option=$1
23858 ac_optarg=$2
23859 ac_shift=shift
23861 esac
23863 case $ac_option in
23864 # Handling of the options.
23865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23866 ac_cs_recheck=: ;;
23867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23868 echo "$ac_cs_version"; exit ;;
23869 --debug | --debu | --deb | --de | --d | -d )
23870 debug=: ;;
23871 --file | --fil | --fi | --f )
23872 $ac_shift
23873 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23874 ac_need_defaults=false;;
23875 --header | --heade | --head | --hea )
23876 $ac_shift
23877 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23878 ac_need_defaults=false;;
23879 --he | --h)
23880 # Conflict between --help and --header
23881 { echo "$as_me: error: ambiguous option: $1
23882 Try \`$0 --help' for more information." >&2
23883 { (exit 1); exit 1; }; };;
23884 --help | --hel | -h )
23885 echo "$ac_cs_usage"; exit ;;
23886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23888 ac_cs_silent=: ;;
23890 # This is an error.
23891 -*) { echo "$as_me: error: unrecognized option: $1
23892 Try \`$0 --help' for more information." >&2
23893 { (exit 1); exit 1; }; } ;;
23895 *) ac_config_targets="$ac_config_targets $1"
23896 ac_need_defaults=false ;;
23898 esac
23899 shift
23900 done
23902 ac_configure_extra_args=
23904 if $ac_cs_silent; then
23905 exec 6>/dev/null
23906 ac_configure_extra_args="$ac_configure_extra_args --silent"
23909 _ACEOF
23910 cat >>$CONFIG_STATUS <<_ACEOF
23911 if \$ac_cs_recheck; then
23912 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23913 CONFIG_SHELL=$SHELL
23914 export CONFIG_SHELL
23915 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23918 _ACEOF
23919 cat >>$CONFIG_STATUS <<\_ACEOF
23920 exec 5>>config.log
23922 echo
23923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23924 ## Running $as_me. ##
23925 _ASBOX
23926 echo "$ac_log"
23927 } >&5
23929 _ACEOF
23930 cat >>$CONFIG_STATUS <<_ACEOF
23932 # INIT-COMMANDS
23934 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23936 _ACEOF
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23940 # Handling of arguments.
23941 for ac_config_target in $ac_config_targets
23943 case $ac_config_target in
23944 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23945 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23946 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23947 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23948 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23949 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23950 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23951 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23952 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23953 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23954 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23955 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23959 { (exit 1); exit 1; }; };;
23960 esac
23961 done
23964 # If the user did not use the arguments to specify the items to instantiate,
23965 # then the envvar interface is used. Set only those that are not.
23966 # We use the long form for the default assignment because of an extremely
23967 # bizarre bug on SunOS 4.1.3.
23968 if $ac_need_defaults; then
23969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23974 # Have a temporary directory for convenience. Make it in the build tree
23975 # simply because there is no reason against having it here, and in addition,
23976 # creating and moving files from /tmp can sometimes cause problems.
23977 # Hook for its removal unless debugging.
23978 # Note that there is a small window in which the directory will not be cleaned:
23979 # after its creation but before its name has been assigned to `$tmp'.
23980 $debug ||
23982 tmp=
23983 trap 'exit_status=$?
23984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23986 trap '{ (exit 1); exit 1; }' 1 2 13 15
23988 # Create a (secure) tmp directory for tmp files.
23991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23992 test -n "$tmp" && test -d "$tmp"
23993 } ||
23995 tmp=./conf$$-$RANDOM
23996 (umask 077 && mkdir "$tmp")
23997 } ||
23999 echo "$me: cannot create a temporary directory in ." >&2
24000 { (exit 1); exit 1; }
24004 # Set up the sed scripts for CONFIG_FILES section.
24007 # No need to generate the scripts if there are no CONFIG_FILES.
24008 # This happens for instance when ./config.status config.h
24009 if test -n "$CONFIG_FILES"; then
24011 _ACEOF
24015 ac_delim='%!_!# '
24016 for ac_last_try in false false false false false :; do
24017 cat >conf$$subs.sed <<_ACEOF
24018 SHELL!$SHELL$ac_delim
24019 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24020 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24021 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24022 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24023 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24024 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24025 exec_prefix!$exec_prefix$ac_delim
24026 prefix!$prefix$ac_delim
24027 program_transform_name!$program_transform_name$ac_delim
24028 bindir!$bindir$ac_delim
24029 sbindir!$sbindir$ac_delim
24030 libexecdir!$libexecdir$ac_delim
24031 datarootdir!$datarootdir$ac_delim
24032 datadir!$datadir$ac_delim
24033 sysconfdir!$sysconfdir$ac_delim
24034 sharedstatedir!$sharedstatedir$ac_delim
24035 localstatedir!$localstatedir$ac_delim
24036 includedir!$includedir$ac_delim
24037 oldincludedir!$oldincludedir$ac_delim
24038 docdir!$docdir$ac_delim
24039 infodir!$infodir$ac_delim
24040 htmldir!$htmldir$ac_delim
24041 dvidir!$dvidir$ac_delim
24042 pdfdir!$pdfdir$ac_delim
24043 psdir!$psdir$ac_delim
24044 libdir!$libdir$ac_delim
24045 localedir!$localedir$ac_delim
24046 mandir!$mandir$ac_delim
24047 DEFS!$DEFS$ac_delim
24048 ECHO_C!$ECHO_C$ac_delim
24049 ECHO_N!$ECHO_N$ac_delim
24050 ECHO_T!$ECHO_T$ac_delim
24051 LIBS!$LIBS$ac_delim
24052 build_alias!$build_alias$ac_delim
24053 host_alias!$host_alias$ac_delim
24054 target_alias!$target_alias$ac_delim
24055 MAINT!$MAINT$ac_delim
24056 build!$build$ac_delim
24057 build_cpu!$build_cpu$ac_delim
24058 build_vendor!$build_vendor$ac_delim
24059 build_os!$build_os$ac_delim
24060 host!$host$ac_delim
24061 host_cpu!$host_cpu$ac_delim
24062 host_vendor!$host_vendor$ac_delim
24063 host_os!$host_os$ac_delim
24064 CC!$CC$ac_delim
24065 CFLAGS!$CFLAGS$ac_delim
24066 LDFLAGS!$LDFLAGS$ac_delim
24067 CPPFLAGS!$CPPFLAGS$ac_delim
24068 ac_ct_CC!$ac_ct_CC$ac_delim
24069 EXEEXT!$EXEEXT$ac_delim
24070 OBJEXT!$OBJEXT$ac_delim
24071 CPP!$CPP$ac_delim
24072 GREP!$GREP$ac_delim
24073 EGREP!$EGREP$ac_delim
24074 LN_S!$LN_S$ac_delim
24075 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24076 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24077 INSTALL_DATA!$INSTALL_DATA$ac_delim
24078 RANLIB!$RANLIB$ac_delim
24079 INSTALL_INFO!$INSTALL_INFO$ac_delim
24080 GZIP_PROG!$GZIP_PROG$ac_delim
24081 LIBSOUND!$LIBSOUND$ac_delim
24082 PKG_CONFIG!$PKG_CONFIG$ac_delim
24083 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24084 ALSA_LIBS!$ALSA_LIBS$ac_delim
24085 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24086 SET_MAKE!$SET_MAKE$ac_delim
24087 XMKMF!$XMKMF$ac_delim
24088 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24089 GTK_LIBS!$GTK_LIBS$ac_delim
24090 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24091 XFT_LIBS!$XFT_LIBS$ac_delim
24092 ALLOCA!$ALLOCA$ac_delim
24093 liblockfile!$liblockfile$ac_delim
24094 LIBOBJS!$LIBOBJS$ac_delim
24095 NEED_SETGID!$NEED_SETGID$ac_delim
24096 KMEM_GROUP!$KMEM_GROUP$ac_delim
24097 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24098 GETOPT_H!$GETOPT_H$ac_delim
24099 GETOPTOBJS!$GETOPTOBJS$ac_delim
24100 version!$version$ac_delim
24101 configuration!$configuration$ac_delim
24102 canonical!$canonical$ac_delim
24103 srcdir!$srcdir$ac_delim
24104 lispdir!$lispdir$ac_delim
24105 locallisppath!$locallisppath$ac_delim
24106 lisppath!$lisppath$ac_delim
24107 x_default_search_path!$x_default_search_path$ac_delim
24108 etcdir!$etcdir$ac_delim
24109 archlibdir!$archlibdir$ac_delim
24110 bitmapdir!$bitmapdir$ac_delim
24111 gamedir!$gamedir$ac_delim
24112 gameuser!$gameuser$ac_delim
24113 c_switch_system!$c_switch_system$ac_delim
24114 c_switch_machine!$c_switch_machine$ac_delim
24115 _ACEOF
24117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24118 break
24119 elif $ac_last_try; then
24120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24121 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24122 { (exit 1); exit 1; }; }
24123 else
24124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24126 done
24128 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24129 if test -n "$ac_eof"; then
24130 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24131 ac_eof=`expr $ac_eof + 1`
24134 cat >>$CONFIG_STATUS <<_ACEOF
24135 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24137 _ACEOF
24138 sed '
24139 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24140 s/^/s,@/; s/!/@,|#_!!_#|/
24143 s/'"$ac_delim"'$/,g/; t
24144 s/$/\\/; p
24145 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24146 ' >>$CONFIG_STATUS <conf$$subs.sed
24147 rm -f conf$$subs.sed
24148 cat >>$CONFIG_STATUS <<_ACEOF
24149 CEOF$ac_eof
24150 _ACEOF
24153 ac_delim='%!_!# '
24154 for ac_last_try in false false false false false :; do
24155 cat >conf$$subs.sed <<_ACEOF
24156 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24157 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24158 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24159 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24160 machfile!$machfile$ac_delim
24161 opsysfile!$opsysfile$ac_delim
24162 carbon_appdir!$carbon_appdir$ac_delim
24163 LTLIBOBJS!$LTLIBOBJS$ac_delim
24164 _ACEOF
24166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24167 break
24168 elif $ac_last_try; then
24169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24171 { (exit 1); exit 1; }; }
24172 else
24173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24175 done
24177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24178 if test -n "$ac_eof"; then
24179 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24180 ac_eof=`expr $ac_eof + 1`
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24186 _ACEOF
24187 sed '
24188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24189 s/^/s,@/; s/!/@,|#_!!_#|/
24192 s/'"$ac_delim"'$/,g/; t
24193 s/$/\\/; p
24194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24195 ' >>$CONFIG_STATUS <conf$$subs.sed
24196 rm -f conf$$subs.sed
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 :end
24199 s/|#_!!_#|//g
24200 CEOF$ac_eof
24201 _ACEOF
24204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24206 # trailing colons and then remove the whole line if VPATH becomes empty
24207 # (actually we leave an empty line to preserve line numbers).
24208 if test "x$srcdir" = x.; then
24209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24210 s/:*\$(srcdir):*/:/
24211 s/:*\${srcdir}:*/:/
24212 s/:*@srcdir@:*/:/
24213 s/^\([^=]*=[ ]*\):*/\1/
24214 s/:*$//
24215 s/^[^=]*=[ ]*$//
24219 cat >>$CONFIG_STATUS <<\_ACEOF
24220 fi # test -n "$CONFIG_FILES"
24223 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24225 case $ac_tag in
24226 :[FHLC]) ac_mode=$ac_tag; continue;;
24227 esac
24228 case $ac_mode$ac_tag in
24229 :[FHL]*:*);;
24230 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24232 { (exit 1); exit 1; }; };;
24233 :[FH]-) ac_tag=-:-;;
24234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24235 esac
24236 ac_save_IFS=$IFS
24237 IFS=:
24238 set x $ac_tag
24239 IFS=$ac_save_IFS
24240 shift
24241 ac_file=$1
24242 shift
24244 case $ac_mode in
24245 :L) ac_source=$1;;
24246 :[FH])
24247 ac_file_inputs=
24248 for ac_f
24250 case $ac_f in
24251 -) ac_f="$tmp/stdin";;
24252 *) # Look for the file first in the build tree, then in the source tree
24253 # (if the path is not absolute). The absolute path cannot be DOS-style,
24254 # because $ac_f cannot contain `:'.
24255 test -f "$ac_f" ||
24256 case $ac_f in
24257 [\\/$]*) false;;
24258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24259 esac ||
24260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24262 { (exit 1); exit 1; }; };;
24263 esac
24264 ac_file_inputs="$ac_file_inputs $ac_f"
24265 done
24267 # Let's still pretend it is `configure' which instantiates (i.e., don't
24268 # use $as_me), people would be surprised to read:
24269 # /* config.h. Generated by config.status. */
24270 configure_input="Generated from "`IFS=:
24271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24272 if test x"$ac_file" != x-; then
24273 configure_input="$ac_file. $configure_input"
24274 { echo "$as_me:$LINENO: creating $ac_file" >&5
24275 echo "$as_me: creating $ac_file" >&6;}
24278 case $ac_tag in
24279 *:-:* | *:-) cat >"$tmp/stdin";;
24280 esac
24282 esac
24284 ac_dir=`$as_dirname -- "$ac_file" ||
24285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24286 X"$ac_file" : 'X\(//\)[^/]' \| \
24287 X"$ac_file" : 'X\(//\)$' \| \
24288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24289 echo X"$ac_file" |
24290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24291 s//\1/
24294 /^X\(\/\/\)[^/].*/{
24295 s//\1/
24298 /^X\(\/\/\)$/{
24299 s//\1/
24302 /^X\(\/\).*/{
24303 s//\1/
24306 s/.*/./; q'`
24307 { as_dir="$ac_dir"
24308 case $as_dir in #(
24309 -*) as_dir=./$as_dir;;
24310 esac
24311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24312 as_dirs=
24313 while :; do
24314 case $as_dir in #(
24315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24316 *) as_qdir=$as_dir;;
24317 esac
24318 as_dirs="'$as_qdir' $as_dirs"
24319 as_dir=`$as_dirname -- "$as_dir" ||
24320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24321 X"$as_dir" : 'X\(//\)[^/]' \| \
24322 X"$as_dir" : 'X\(//\)$' \| \
24323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24324 echo X"$as_dir" |
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24326 s//\1/
24329 /^X\(\/\/\)[^/].*/{
24330 s//\1/
24333 /^X\(\/\/\)$/{
24334 s//\1/
24337 /^X\(\/\).*/{
24338 s//\1/
24341 s/.*/./; q'`
24342 test -d "$as_dir" && break
24343 done
24344 test -z "$as_dirs" || eval "mkdir $as_dirs"
24345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24347 { (exit 1); exit 1; }; }; }
24348 ac_builddir=.
24350 case "$ac_dir" in
24351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24354 # A ".." for each directory in $ac_dir_suffix.
24355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24356 case $ac_top_builddir_sub in
24357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24359 esac ;;
24360 esac
24361 ac_abs_top_builddir=$ac_pwd
24362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24363 # for backward compatibility:
24364 ac_top_builddir=$ac_top_build_prefix
24366 case $srcdir in
24367 .) # We are building in place.
24368 ac_srcdir=.
24369 ac_top_srcdir=$ac_top_builddir_sub
24370 ac_abs_top_srcdir=$ac_pwd ;;
24371 [\\/]* | ?:[\\/]* ) # Absolute name.
24372 ac_srcdir=$srcdir$ac_dir_suffix;
24373 ac_top_srcdir=$srcdir
24374 ac_abs_top_srcdir=$srcdir ;;
24375 *) # Relative name.
24376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24377 ac_top_srcdir=$ac_top_build_prefix$srcdir
24378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24379 esac
24380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24383 case $ac_mode in
24386 # CONFIG_FILE
24389 case $INSTALL in
24390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24392 esac
24393 _ACEOF
24395 cat >>$CONFIG_STATUS <<\_ACEOF
24396 # If the template does not know about datarootdir, expand it.
24397 # FIXME: This hack should be removed a few years after 2.60.
24398 ac_datarootdir_hack=; ac_datarootdir_seen=
24400 case `sed -n '/datarootdir/ {
24404 /@datadir@/p
24405 /@docdir@/p
24406 /@infodir@/p
24407 /@localedir@/p
24408 /@mandir@/p
24409 ' $ac_file_inputs` in
24410 *datarootdir*) ac_datarootdir_seen=yes;;
24411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24414 _ACEOF
24415 cat >>$CONFIG_STATUS <<_ACEOF
24416 ac_datarootdir_hack='
24417 s&@datadir@&$datadir&g
24418 s&@docdir@&$docdir&g
24419 s&@infodir@&$infodir&g
24420 s&@localedir@&$localedir&g
24421 s&@mandir@&$mandir&g
24422 s&\\\${datarootdir}&$datarootdir&g' ;;
24423 esac
24424 _ACEOF
24426 # Neutralize VPATH when `$srcdir' = `.'.
24427 # Shell code in configure.ac might set extrasub.
24428 # FIXME: do we really want to maintain this feature?
24429 cat >>$CONFIG_STATUS <<_ACEOF
24430 sed "$ac_vpsub
24431 $extrasub
24432 _ACEOF
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24436 s&@configure_input@&$configure_input&;t t
24437 s&@top_builddir@&$ac_top_builddir_sub&;t t
24438 s&@srcdir@&$ac_srcdir&;t t
24439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24440 s&@top_srcdir@&$ac_top_srcdir&;t t
24441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24442 s&@builddir@&$ac_builddir&;t t
24443 s&@abs_builddir@&$ac_abs_builddir&;t t
24444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24445 s&@INSTALL@&$ac_INSTALL&;t t
24446 $ac_datarootdir_hack
24447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24452 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24453 which seems to be undefined. Please make sure it is defined." >&5
24454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24455 which seems to be undefined. Please make sure it is defined." >&2;}
24457 rm -f "$tmp/stdin"
24458 case $ac_file in
24459 -) cat "$tmp/out"; rm -f "$tmp/out";;
24460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24461 esac
24465 # CONFIG_HEADER
24467 _ACEOF
24469 # Transform confdefs.h into a sed script `conftest.defines', that
24470 # substitutes the proper values into config.h.in to produce config.h.
24471 rm -f conftest.defines conftest.tail
24472 # First, append a space to every undef/define line, to ease matching.
24473 echo 's/$/ /' >conftest.defines
24474 # Then, protect against being on the right side of a sed subst, or in
24475 # an unquoted here document, in config.status. If some macros were
24476 # called several times there might be several #defines for the same
24477 # symbol, which is useless. But do not sort them, since the last
24478 # AC_DEFINE must be honored.
24479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24482 # PARAMS is the parameter list in the macro definition--in most cases, it's
24483 # just an empty string.
24484 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24485 ac_dB='\\)[ (].*,\\1define\\2'
24486 ac_dC=' '
24487 ac_dD=' ,'
24489 uniq confdefs.h |
24490 sed -n '
24491 t rset
24492 :rset
24493 s/^[ ]*#[ ]*define[ ][ ]*//
24494 t ok
24497 s/[\\&,]/\\&/g
24498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24500 ' >>conftest.defines
24502 # Remove the space that was appended to ease matching.
24503 # Then replace #undef with comments. This is necessary, for
24504 # example, in the case of _POSIX_SOURCE, which is predefined and required
24505 # on some systems where configure will not decide to define it.
24506 # (The regexp can be short, since the line contains either #define or #undef.)
24507 echo 's/ $//
24508 s,^[ #]*u.*,/* & */,' >>conftest.defines
24510 # Break up conftest.defines:
24511 ac_max_sed_lines=50
24513 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24514 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24515 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24516 # et cetera.
24517 ac_in='$ac_file_inputs'
24518 ac_out='"$tmp/out1"'
24519 ac_nxt='"$tmp/out2"'
24521 while :
24523 # Write a here document:
24524 cat >>$CONFIG_STATUS <<_ACEOF
24525 # First, check the format of the line:
24526 cat >"\$tmp/defines.sed" <<\\CEOF
24527 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24528 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24530 :def
24531 _ACEOF
24532 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24533 echo 'CEOF
24534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24535 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24536 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24537 grep . conftest.tail >/dev/null || break
24538 rm -f conftest.defines
24539 mv conftest.tail conftest.defines
24540 done
24541 rm -f conftest.defines conftest.tail
24543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24544 cat >>$CONFIG_STATUS <<\_ACEOF
24545 if test x"$ac_file" != x-; then
24546 echo "/* $configure_input */" >"$tmp/config.h"
24547 cat "$ac_result" >>"$tmp/config.h"
24548 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24550 echo "$as_me: $ac_file is unchanged" >&6;}
24551 else
24552 rm -f $ac_file
24553 mv "$tmp/config.h" $ac_file
24555 else
24556 echo "/* $configure_input */"
24557 cat "$ac_result"
24559 rm -f "$tmp/out12"
24562 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24563 echo "$as_me: executing $ac_file commands" >&6;}
24565 esac
24568 case $ac_file$ac_mode in
24569 "default":C)
24571 ### Make the necessary directories, if they don't exist.
24572 for dir in etc lisp ; do
24573 test -d ${dir} || mkdir ${dir}
24574 done
24576 # Build src/Makefile from ${srcdir}/src/Makefile.c
24577 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24578 # This must be done after src/config.h is built, since we rely on that file.
24580 # Now get this: Some word that is part of the ${srcdir} directory name
24581 # or the ${configuration} value might, just might, happen to be an
24582 # identifier like `sun4' or `i386' or something, and be predefined by
24583 # the C preprocessor to some helpful value like 1, or maybe the empty
24584 # string. Needless to say consequent macro substitutions are less
24585 # than conducive to the makefile finding the correct directory.
24586 undefs="`echo $top_srcdir $configuration $canonical |
24587 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24588 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24591 echo creating src/epaths.h
24592 ${MAKE-make} epaths-force
24594 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24595 # `..' to `. .' unless invoked with -traditional
24597 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24598 CPPFLAGS="$CPPFLAGS -traditional"
24601 echo creating lib-src/Makefile
24602 ( cd lib-src
24603 rm -f junk.c junk1.c junk2.c
24604 sed -e '/start of cpp stuff/q' \
24605 < Makefile.c > junk1.c
24606 sed -e '1,/start of cpp stuff/d'\
24607 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24608 < Makefile.c > junk.c
24609 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24610 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24611 cat junk1.c junk2.c > Makefile.new
24612 rm -f junk.c junk1.c junk2.c
24613 chmod 444 Makefile.new
24614 mv -f Makefile.new Makefile
24617 echo creating src/Makefile
24618 ( cd src
24619 rm -f junk.c junk1.c junk2.c
24620 sed -e '/start of cpp stuff/q' \
24621 < Makefile.c > junk1.c
24622 sed -e '1,/start of cpp stuff/d'\
24623 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24624 < Makefile.c > junk.c
24625 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24626 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24627 cat junk1.c junk2.c > Makefile.new
24628 rm -f junk.c junk1.c junk2.c
24629 chmod 444 Makefile.new
24630 mv -f Makefile.new Makefile
24633 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24634 echo creating src/.gdbinit
24635 echo source $srcdir/src/.gdbinit > src/.gdbinit
24638 # This is how we know whether to re-run configure in certain cases.
24639 touch src/config.stamp
24643 esac
24644 done # for ac_tag
24647 { (exit 0); exit 0; }
24648 _ACEOF
24649 chmod +x $CONFIG_STATUS
24650 ac_clean_files=$ac_clean_files_save
24653 # configure is writing to config.log, and then calls config.status.
24654 # config.status does its own redirection, appending to config.log.
24655 # Unfortunately, on DOS this fails, as config.log is still kept open
24656 # by configure, so config.status won't be able to write to it; its
24657 # output is simply discarded. So we exec the FD to /dev/null,
24658 # effectively closing config.log, so it can be properly (re)opened and
24659 # appended to by config.status. When coming back to configure, we
24660 # need to make the FD available again.
24661 if test "$no_create" != yes; then
24662 ac_cs_success=:
24663 ac_config_status_args=
24664 test "$silent" = yes &&
24665 ac_config_status_args="$ac_config_status_args --quiet"
24666 exec 5>/dev/null
24667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24668 exec 5>>config.log
24669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24670 # would make configure fail if this is the last instruction.
24671 $ac_cs_success || { (exit 1); exit 1; }