*** empty log message ***
[emacs.git] / configure
blob6188e7342fedea8d82d185fd1f523c7fa686300d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1813 gameuser=games
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1829 else :
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1909 esac
1910 with_x_toolkit=$val
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1947 withval=$with_gtk;
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1965 withval=$with_xim;
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1983 else
1984 USE_XASSERTS=no
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 else
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
1996 MAINT=
1997 else
1998 MAINT=#
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 locallisppath=
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2017 unset CDPATH
2018 case "${srcdir}" in
2019 /* ) ;;
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2027 then
2028 srcdir="$PWD"
2029 else
2030 srcdir="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2034 esac
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
2064 elif test -f "$ac_dir/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 build=$ac_cv_build
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_build
2124 shift
2125 build_cpu=$1
2126 build_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 build_os=$*
2131 IFS=$ac_save_IFS
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142 else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2152 case $ac_cv_host in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2157 esac
2158 host=$ac_cv_host
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_host
2161 shift
2162 host_cpu=$1
2163 host_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 host_os=$*
2168 IFS=$ac_save_IFS
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 canonical=$host
2173 configuration=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine='' opsys='' unported=no
2201 case "${canonical}" in
2203 ## FreeBSD ports
2204 *-*-freebsd* )
2205 opsys=freebsd
2206 case "${canonical}" in
2207 alpha*-*-freebsd*) machine=alpha ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2216 ## NetBSD ports
2217 *-*-netbsd* )
2218 opsys=netbsd
2219 if test -f /usr/lib/crti.o; then
2221 cat >>confdefs.h <<\_ACEOF
2222 #define HAVE_CRTIN
2223 _ACEOF
2227 case "${canonical}" in
2228 alpha*-*-netbsd*) machine=alpha ;;
2229 i[3456]86-*-netbsd*) machine=intel386 ;;
2230 m68k-*-netbsd*)
2231 # This is somewhat bogus.
2232 machine=hp9000s300 ;;
2233 mips-*-netbsd*) machine=pmax ;;
2234 mipsel-*-netbsd*) machine=pmax ;;
2235 mipseb-*-netbsd*) machine=pmax ;;
2236 ns32k-*-netbsd*) machine=ns32000 ;;
2237 powerpc-*-netbsd*) machine=macppc ;;
2238 sparc*-*-netbsd*) machine=sparc ;;
2239 vax-*-netbsd*) machine=vax ;;
2240 arm-*-netbsd*) machine=arm ;;
2241 x86_64-*-netbsd*) machine=amdx86-64 ;;
2242 hppa-*-netbsd*) machine=hp800 ;;
2243 shle-*-netbsd*) machine=sh3el ;;
2244 esac
2247 ## OpenBSD ports
2248 *-*-openbsd* )
2249 opsys=openbsd
2250 case "${canonical}" in
2251 alpha*-*-openbsd*) machine=alpha ;;
2252 arm-*-openbsd*) machine=arm ;;
2253 hppa-*-openbsd*) machine=hp9000s300 ;;
2254 i386-*-openbsd*) machine=intel386 ;;
2255 m68k-*-openbsd*) machine=hp9000s300 ;;
2256 m88k-*-openbsd*) machine=aviion ;;
2257 mips64-*-openbsd*) machine=mips64 ;;
2258 powerpc-*-openbsd*) machine=macppc ;;
2259 sh-*-openbsd*) machine=sh3el ;;
2260 sparc*-*-openbsd*) machine=sparc ;;
2261 vax-*-openbsd*) machine=vax ;;
2262 x86_64-*-openbsd*) machine=amdx86-64 ;;
2263 esac
2266 ## LynxOS ports
2267 *-*-lynxos* )
2268 opsys=lynxos
2269 case "${canonical}" in
2270 i[3456]86-*-lynxos*) machine=intel386 ;;
2271 powerpc-*-lynxos*) machine=powerpc ;;
2272 esac
2275 ## Acorn RISCiX:
2276 arm-acorn-riscix1.1* )
2277 machine=acorn opsys=riscix1-1
2279 arm-acorn-riscix1.2* | arm-acorn-riscix )
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine=acorn opsys=riscix12
2285 ## BSDI ports
2286 *-*-bsdi* )
2287 opsys=bsdi
2288 case "${canonical}" in
2289 i[345]86-*-bsdi*) machine=intel386 ;;
2290 sparc-*-bsdi*) machine=sparc ;;
2291 powerpc-*-bsdi*) machine=macppc ;;
2292 esac
2293 case "${canonical}" in
2294 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2295 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2296 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2297 *-*-bsdi3* ) opsys=bsdos3 ;;
2298 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2299 esac
2302 ## Alliant machines
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2308 fx80-alliant-* )
2309 machine=alliant4 opsys=bsd4-2
2311 i860-alliant-* )
2312 machine=alliant-2800 opsys=bsd4-3
2315 ## Alpha (DEC) machines.
2316 alpha*-dec-osf* )
2317 machine=alpha opsys=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2320 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP=/usr/bin/cpp
2326 case "${canonical}" in
2327 alpha*-dec-osf[5-9]*)
2328 opsys=osf5-0 ;;
2329 esac
2332 alpha*-*-linux-gnu* )
2333 machine=alpha opsys=gnu-linux
2336 arm*-*-linux-gnu* )
2337 machine=arm opsys=gnu-linux
2340 ## Altos 3068
2341 m68*-altos-sysv* )
2342 machine=altos opsys=usg5-2
2345 ## Amdahl UTS
2346 580-amdahl-sysv* )
2347 machine=amdahl opsys=usg5-2-2
2350 ## Apollo, Domain/OS
2351 m68*-apollo-* )
2352 machine=apollo opsys=bsd4-3
2355 ## Apple Darwin / Mac OS X
2356 *-apple-darwin* )
2357 case "${canonical}" in
2358 i[3456]86-* ) machine=intel386 ;;
2359 powerpc-* ) machine=powermac ;;
2360 * ) unported=yes ;;
2361 esac
2362 opsys=darwin
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw/include && test -d /sw/lib; then
2367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2374 we32k-att-sysv* )
2375 machine=att3b opsys=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2379 m68*-att-sysv* )
2380 machine=7300 opsys=usg5-2-2
2383 ## Bull dpx20
2384 rs6000-bull-bosx* )
2385 machine=ibmrs6000 opsys=aix3-2
2388 ## Bull dpx2
2389 m68*-bull-sysv3* )
2390 machine=dpx2 opsys=usg5-3
2393 ## Bull sps7
2394 m68*-bull-sysv2* )
2395 machine=sps7 opsys=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2400 ## Celerity
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd* )
2405 machine=celerity opsys=bsd4-2
2408 ## Clipper
2409 ## What operating systems does this chip run that Emacs has been
2410 ## tested on?
2411 clipper-* )
2412 machine=clipper
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2417 ## Compaq Nonstop
2418 mips-compaq-nonstopux* )
2419 machine=nonstopux opsys=nonstopux
2422 ## Convex
2423 *-convex-bsd* | *-convex-convexos* )
2424 machine=convex opsys=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP="cc -E -P"
2429 ## Cubix QBx/386
2430 i[3456]86-cubix-sysv* )
2431 machine=intel386 opsys=usg5-3
2434 ## Cydra 5
2435 cydra*-cydrome-sysv* )
2436 machine=cydra5 opsys=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2446 machine=aviion opsys=dgux4
2448 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine=aviion opsys=dgux5-4-3
2453 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2454 machine=aviion opsys=dgux5-4r2
2456 m88k-dg-dgux* )
2457 machine=aviion opsys=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i[345]86-dg-dguxR4* )
2464 machine=aviion-intel opsys=dgux4
2467 ## DECstations
2468 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2469 machine=pmax opsys=bsd4-2
2471 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2472 machine=pmax opsys=bsd4-3
2474 mips-dec-ultrix* )
2475 machine=pmax opsys=ultrix4-3
2477 mips-dec-osf* )
2478 machine=pmax opsys=osf1
2480 mips-dec-mach_bsd4.3* )
2481 machine=pmax opsys=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv* | m68000-motorola-sysv* )
2486 machine=delta opsys=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2488 then
2489 if test -s /etc/167config
2490 then CC="gnucc -m68040"
2491 else CC="gnucc -m68881"
2493 else
2494 if test -z "`type gcc | grep 'not found'`"
2495 then CC=gcc
2496 else CC=cc
2500 m88k-motorola-sysv4* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine=delta88k opsys=usg5-4-2
2507 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2508 machine=delta88k opsys=usg5-3
2511 ## Dual machines
2512 m68*-dual-sysv* )
2513 machine=dual opsys=usg5-2
2515 m68*-dual-uniplus* )
2516 machine=dual opsys=unipl5-2
2519 ## Elxsi 6400
2520 elxsi-elxsi-sysv* )
2521 machine=elxsi opsys=usg5-2
2524 ## Encore machines
2525 ns16k-encore-bsd* )
2526 machine=ns16000 opsys=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2533 pn-gould-bsd4.2* )
2534 machine=gould opsys=bsd4-2
2536 pn-gould-bsd4.3* )
2537 machine=gould opsys=bsd4-3
2539 np1-gould-bsd* )
2540 machine=gould-np1 opsys=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2545 m88k-harris-cxux* )
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2549 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2550 esac
2551 NON_GNU_CPP="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2554 m68k-harris-cxux* )
2555 machine=nh3000 opsys=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix )
2559 machine=nh6000 opsys=powerunix
2560 NON_GNU_CPP="cc -Xo -E -P"
2562 ## SR2001/SR2201 running HI-UX/MPP
2563 hppa1.1-hitachi-hiuxmpp* )
2564 machine=sr2k opsys=hiuxmpp
2566 hppa1.1-hitachi-hiuxwe2* )
2567 machine=sr2k opsys=hiuxwe2
2569 ## Honeywell XPS100
2570 xps*-honeywell-sysv* )
2571 machine=xps100 opsys=usg5-2
2574 ## HP 9000 series 200 or 300
2575 m68*-hp-bsd* )
2576 machine=hp9000s300 opsys=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2579 m68*-hp-hpux* )
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2584 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2585 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2586 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2587 *) machine=hp9000s300 opsys=hpux ;;
2588 esac
2591 ## HP 9000 series 700 and 800, running HP/UX
2592 hppa*-hp-hpux7* )
2593 machine=hp800 opsys=hpux
2595 hppa*-hp-hpux8* )
2596 machine=hp800 opsys=hpux8
2598 hppa*-hp-hpux9shr* )
2599 machine=hp800 opsys=hpux9shr
2601 hppa*-hp-hpux9* )
2602 machine=hp800 opsys=hpux9
2604 hppa*-hp-hpux10.2* )
2605 machine=hp800 opsys=hpux10-20
2607 hppa*-hp-hpux10* )
2608 machine=hp800 opsys=hpux10
2610 hppa*-hp-hpux1[1-9]* )
2611 machine=hp800 opsys=hpux11
2612 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2615 hppa*-*-linux-gnu* )
2616 machine=hp800 opsys=gnu-linux
2619 ## HP 9000 series 700 and 800, running HP/UX
2620 hppa*-hp-hpux* )
2621 ## Cross-compilation? Nah!
2622 case "`uname -r`" in
2623 ## Someone's system reports A.B8.05 for this.
2624 ## I wonder what other possibilities there are.
2625 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2626 *.08.* ) machine=hp800 opsys=hpux8 ;;
2627 *.09.* ) machine=hp800 opsys=hpux9 ;;
2628 *) machine=hp800 opsys=hpux10 ;;
2629 esac
2631 hppa*-*-nextstep* )
2632 machine=hp800 opsys=nextstep
2635 ## Orion machines
2636 orion-orion-bsd* )
2637 machine=orion opsys=bsd4-2
2639 clipper-orion-bsd* )
2640 machine=orion105 opsys=bsd4-2
2643 ## IBM machines
2644 i[3456]86-ibm-aix1.1* )
2645 machine=ibmps2-aix opsys=usg5-2-2
2647 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2648 machine=ibmps2-aix opsys=usg5-3
2650 i370-ibm-aix*)
2651 machine=ibm370aix opsys=usg5-3
2653 s390-*-linux-gnu* )
2654 machine=ibms390 opsys=gnu-linux
2656 s390x-*-linux-gnu* )
2657 machine=ibms390x opsys=gnu-linux
2659 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2660 machine=ibmrs6000 opsys=aix3-1
2662 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2663 machine=ibmrs6000 opsys=aix3-2-5
2665 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2666 machine=ibmrs6000 opsys=aix4-1
2668 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2669 machine=ibmrs6000 opsys=aix4-2
2671 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2672 machine=ibmrs6000 opsys=aix4-2
2674 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2675 machine=ibmrs6000 opsys=aix4-2
2677 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2678 machine=ibmrs6000 opsys=aix4
2680 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2681 machine=ibmrs6000 opsys=aix4-1
2683 rs6000-ibm-aix* | powerpc-ibm-aix* )
2684 machine=ibmrs6000 opsys=aix3-2
2686 romp-ibm-bsd4.3* )
2687 machine=ibmrt opsys=bsd4-3
2689 romp-ibm-bsd4.2* )
2690 machine=ibmrt opsys=bsd4-2
2692 romp-ibm-aos4.3* )
2693 machine=ibmrt opsys=bsd4-3
2695 romp-ibm-aos4.2* )
2696 machine=ibmrt opsys=bsd4-2
2698 romp-ibm-aos* )
2699 machine=ibmrt opsys=bsd4-3
2701 romp-ibm-bsd* )
2702 machine=ibmrt opsys=bsd4-3
2704 romp-ibm-aix* )
2705 machine=ibmrt-aix opsys=usg5-2-2
2708 ## Integrated Solutions `Optimum V'
2709 m68*-isi-bsd4.2* )
2710 machine=isi-ov opsys=bsd4-2
2712 m68*-isi-bsd4.3* )
2713 machine=isi-ov opsys=bsd4-3
2716 ## Intel 386 machines where we do care about the manufacturer
2717 i[3456]86-intsys-sysv* )
2718 machine=is386 opsys=usg5-2-2
2721 ## Prime EXL
2722 i[3456]86-prime-sysv* )
2723 machine=i386 opsys=usg5-3
2726 ## Sequent Symmetry running Dynix
2727 i[3456]86-sequent-bsd* )
2728 machine=symmetry opsys=bsd4-3
2731 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2732 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2733 machine=sequent-ptx opsys=ptx4
2734 NON_GNU_CPP=/lib/cpp
2737 ## Sequent Symmetry running DYNIX/ptx
2738 ## Use the old cpp rather than the newer ANSI one.
2739 i[3456]86-sequent-ptx* )
2740 machine=sequent-ptx opsys=ptx
2741 NON_GNU_CPP="/lib/cpp"
2744 ## ncr machine running svr4.3.
2745 i[3456]86-ncr-sysv4.3 )
2746 machine=ncr386 opsys=usg5-4-3
2749 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2750 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2751 i[3456]86-ncr-sysv* )
2752 machine=ncr386 opsys=usg5-4-2
2755 ## Intel Paragon OSF/1
2756 i860-intel-osf1* )
2757 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2760 ## Intel 860
2761 i860-*-sysv4* )
2762 machine=i860 opsys=usg5-4
2763 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2764 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2767 ## Macintosh PowerPC
2768 powerpc*-*-linux-gnu* )
2769 machine=macppc opsys=gnu-linux
2772 ## Masscomp machines
2773 m68*-masscomp-rtu* )
2774 machine=masscomp opsys=rtu
2777 ## Megatest machines
2778 m68*-megatest-bsd* )
2779 machine=mega68 opsys=bsd4-2
2782 ## Workstations sold by MIPS
2783 ## This is not necessarily all workstations using the MIPS processor -
2784 ## Irises are produced by SGI, and DECstations by DEC.
2786 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2787 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2788 ## it gives for choosing between the alternatives seems to be "Use
2789 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2790 ## the BSD world." I'll assume that these are instructions for
2791 ## handling two odd situations, and that every other situation
2792 ## should use mips.h and usg5-2-2, they being listed first.
2793 mips-mips-usg* )
2794 machine=mips4
2795 ## Fall through to the general code at the bottom to decide on the OS.
2797 mips-mips-riscos4* )
2798 machine=mips4 opsys=bsd4-3
2799 NON_GNU_CC="cc -systype bsd43"
2800 NON_GNU_CPP="cc -systype bsd43 -E"
2802 mips-mips-riscos5* )
2803 machine=mips4 opsys=riscos5
2804 NON_GNU_CC="cc -systype bsd43"
2805 NON_GNU_CPP="cc -systype bsd43 -E"
2807 mips-mips-bsd* )
2808 machine=mips opsys=bsd4-3
2810 mips-mips-* )
2811 machine=mips opsys=usg5-2-2
2814 ## NeXT
2815 m68*-next-* | m68k-*-nextstep* )
2816 machine=m68k opsys=nextstep
2819 ## The complete machine from National Semiconductor
2820 ns32k-ns-genix* )
2821 machine=ns32000 opsys=usg5-2
2824 ## NCR machines
2825 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2826 machine=tower32 opsys=usg5-2-2
2828 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2829 machine=tower32v3 opsys=usg5-3
2832 ## NEC EWS4800
2833 mips-nec-sysv4*)
2834 machine=ews4800 opsys=ux4800
2837 ## Nixdorf Targon 31
2838 m68*-nixdorf-sysv* )
2839 machine=targon31 opsys=usg5-2-2
2842 ## Nu (TI or LMI)
2843 m68*-nu-sysv* )
2844 machine=nu opsys=usg5-2
2847 ## Plexus
2848 m68*-plexus-sysv* )
2849 machine=plexus opsys=usg5-2
2852 ## Pyramid machines
2853 ## I don't really have any idea what sort of processor the Pyramid has,
2854 ## so I'm assuming it is its own architecture.
2855 pyramid-pyramid-bsd* )
2856 machine=pyramid opsys=bsd4-2
2859 ## Sequent Balance
2860 ns32k-sequent-bsd4.2* )
2861 machine=sequent opsys=bsd4-2
2863 ns32k-sequent-bsd4.3* )
2864 machine=sequent opsys=bsd4-3
2867 ## Siemens Nixdorf
2868 mips-siemens-sysv* | mips-sni-sysv*)
2869 machine=mips-siemens opsys=usg5-4
2870 NON_GNU_CC=/usr/ccs/bin/cc
2871 NON_GNU_CPP=/usr/ccs/lib/cpp
2874 ## Silicon Graphics machines
2875 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2876 m68*-sgi-iris3.5* )
2877 machine=irist opsys=iris3-5
2879 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2880 machine=irist opsys=iris3-6
2882 ## Iris 4D
2883 mips-sgi-irix3* )
2884 machine=iris4d opsys=irix3-3
2886 mips-sgi-irix4* )
2887 machine=iris4d opsys=irix4-0
2889 mips-sgi-irix6.5 )
2890 machine=iris4d opsys=irix6-5
2891 # Without defining _LANGUAGE_C, things get masked out in the headers
2892 # so that, for instance, grepping for `free' in stdlib.h fails and
2893 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2894 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2895 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 mips-sgi-irix6* )
2898 machine=iris4d opsys=irix6-0
2899 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2900 # but presumably it does no harm.
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 # -32 probably isn't necessary in later v.6s -- anyone know which?
2903 NON_GCC_TEST_OPTIONS=-32
2905 mips-sgi-irix5.[01]* )
2906 machine=iris4d opsys=irix5-0
2908 mips-sgi-irix5* | mips-sgi-irix* )
2909 machine=iris4d opsys=irix5-2
2912 ## SONY machines
2913 m68*-sony-bsd4.2* )
2914 machine=news opsys=bsd4-2
2916 m68*-sony-bsd4.3* )
2917 machine=news opsys=bsd4-3
2919 m68*-sony-newsos3* | m68*-sony-news3*)
2920 machine=news opsys=bsd4-3
2922 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2923 machine=news-risc opsys=bsd4-3
2925 mips-sony-newsos6* )
2926 machine=news-r6 opsys=newsos6
2928 mips-sony-news* )
2929 machine=news-risc opsys=newsos5
2932 ## Stride
2933 m68*-stride-sysv* )
2934 machine=stride opsys=usg5-2
2937 ## Suns
2938 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2939 machine=sparc opsys=gnu-linux
2942 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2943 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2944 | rs6000-*-solaris2*)
2945 case "${canonical}" in
2946 m68*-sunos1* ) machine=sun1 ;;
2947 m68*-sunos2* ) machine=sun2 ;;
2948 m68* ) machine=sun3 ;;
2949 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2950 i[3456]86-*-* ) machine=intel386 ;;
2951 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2952 powerpcle* ) machine=powerpcle ;;
2953 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2954 sparc* ) machine=sparc ;;
2955 * ) unported=yes ;;
2956 esac
2957 case "${canonical}" in
2958 ## The Sun386 didn't get past 4.0.
2959 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2960 *-sunos4.0* ) opsys=sunos4-0 ;;
2961 *-sunos4.1.[3-9]*noshare )
2962 ## This name is sunos413 instead of sunos4-1-3
2963 ## to avoid a file name conflict on MSDOS.
2964 opsys=sunos413
2965 NON_GNU_CPP=/usr/lib/cpp
2966 NON_GCC_TEST_OPTIONS=-Bstatic
2967 GCC_TEST_OPTIONS=-static
2969 *-sunos4.1.[3-9]* | *-sunos4shr*)
2970 opsys=sunos4shr
2971 NON_GNU_CPP=/usr/lib/cpp
2973 *-sunos4* | *-sunos )
2974 opsys=sunos4-1
2975 NON_GCC_TEST_OPTIONS=-Bstatic
2976 GCC_TEST_OPTIONS=-static
2978 *-sunos5.3* | *-solaris2.3* )
2979 opsys=sol2-3
2980 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 *-sunos5.4* | *-solaris2.4* )
2983 opsys=sol2-4
2984 NON_GNU_CPP=/usr/ccs/lib/cpp
2985 RANLIB="ar -ts"
2987 *-sunos5.5* | *-solaris2.5* )
2988 opsys=sol2-5
2989 NON_GNU_CPP=/usr/ccs/lib/cpp
2990 RANLIB="ar -ts"
2992 *-sunos5.6* | *-solaris2.6* )
2993 opsys=sol2-6
2994 NON_GNU_CPP=/usr/ccs/lib/cpp
2995 RANLIB="ar -ts"
2997 *-sunos5* | *-solaris* )
2998 opsys=sol2-6
2999 NON_GNU_CPP=/usr/ccs/lib/cpp
3001 * ) opsys=bsd4-2 ;;
3002 esac
3003 ## Watch out for a compiler that we know will not work.
3004 case "${canonical}" in
3005 *-solaris* | *-sunos5* )
3006 if [ "x$CC" = x/usr/ucb/cc ]; then
3007 ## /usr/ucb/cc doesn't work;
3008 ## we should find some other compiler that does work.
3009 unset CC
3012 *) ;;
3013 esac
3015 sparc-*-nextstep* )
3016 machine=sparc opsys=nextstep
3019 ## Tadpole 68k
3020 m68*-tadpole-sysv* )
3021 machine=tad68k opsys=usg5-3
3024 ## Tahoe machines
3025 tahoe-tahoe-bsd4.2* )
3026 machine=tahoe opsys=bsd4-2
3028 tahoe-tahoe-bsd4.3* )
3029 machine=tahoe opsys=bsd4-3
3032 ## Tandem Integrity S2
3033 mips-tandem-sysv* )
3034 machine=tandem-s2 opsys=usg5-3
3037 ## Tektronix XD88
3038 m88k-tektronix-sysv3* )
3039 machine=tekxd88 opsys=usg5-3
3042 ## Tektronix 16000 box (6130?)
3043 ns16k-tektronix-bsd* )
3044 machine=ns16000 opsys=bsd4-2
3046 ## Tektronix 4300
3047 ## src/m/tek4300.h hints that this is a m68k machine.
3048 m68*-tektronix-bsd* )
3049 machine=tek4300 opsys=bsd4-3
3052 ## Titan P2 or P3
3053 ## We seem to have lost the machine-description file titan.h!
3054 titan-titan-sysv* )
3055 machine=titan opsys=usg5-3
3058 ## Ustation E30 (SS5E)
3059 m68*-unisys-uniplus* )
3060 machine=ustation opsystem=unipl5-2
3063 ## Vaxen.
3064 vax-dec-* )
3065 machine=vax
3066 case "${canonical}" in
3067 *-bsd4.1* ) opsys=bsd4-1 ;;
3068 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3069 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3070 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3071 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3072 *-vms* ) opsys=vms ;;
3073 * ) unported=yes
3074 esac
3077 ## Whitechapel MG1
3078 ns16k-whitechapel-* )
3079 machine=mg1
3080 ## We don't know what sort of OS runs on these; we'll let the
3081 ## operating system guessing code below try.
3084 ## Wicat
3085 m68*-wicat-sysv* )
3086 machine=wicat opsys=usg5-2
3089 ## IA-64
3090 ia64*-*-linux* )
3091 machine=ia64 opsys=gnu-linux
3094 ## Intel 386 machines where we don't care about the manufacturer
3095 i[3456]86-*-* )
3096 machine=intel386
3097 case "${canonical}" in
3098 *-cygwin ) opsys=cygwin ;;
3099 *-darwin* ) opsys=darwin
3100 CPP="${CC-cc} -E -no-cpp-precomp"
3102 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3103 *-isc2.2* ) opsys=isc2-2 ;;
3104 *-isc4.0* ) opsys=isc4-0 ;;
3105 *-isc4.* ) opsys=isc4-1
3106 GCC_TEST_OPTIONS=-posix
3107 NON_GCC_TEST_OPTIONS=-Xp
3109 *-isc* ) opsys=isc3-0 ;;
3110 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3111 *-esix* ) opsys=esix ;;
3112 *-xenix* ) opsys=xenix ;;
3113 *-linux-gnu* ) opsys=gnu-linux ;;
3114 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3115 *-sco3.2v5* ) opsys=sco5
3116 NON_GNU_CPP=/lib/cpp
3117 # Prevent -belf from being passed to $CPP.
3118 # /lib/cpp does not accept it.
3119 OVERRIDE_CPPFLAGS=" "
3121 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3122 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3123 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3124 *-386bsd* ) opsys=386bsd ;;
3125 *-nextstep* ) opsys=nextstep ;;
3126 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3127 esac
3130 ## m68k Linux-based GNU system
3131 m68k-*-linux-gnu* )
3132 machine=m68k opsys=gnu-linux
3135 ## Mips Linux-based GNU system
3136 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3137 machine=mips opsys=gnu-linux
3140 ## UXP/DS
3141 sparc-fujitsu-sysv4* )
3142 machine=sparc opsys=uxpds
3143 NON_GNU_CPP=/usr/ccs/lib/cpp
3144 RANLIB="ar -ts"
3147 ## UXP/V
3148 f301-fujitsu-uxpv4.1)
3149 machine=f301 opsys=uxpv
3152 ## AMD x86-64 Linux-based GNU system
3153 x86_64-*-linux-gnu* )
3154 machine=amdx86-64 opsys=gnu-linux
3157 ## Tensilica Xtensa Linux-based GNU system
3158 xtensa-*-linux-gnu* )
3159 machine=xtensa opsys=gnu-linux
3163 unported=yes
3165 esac
3167 ### If the code above didn't choose an operating system, just choose
3168 ### an operating system based on the configuration name. You really
3169 ### only want to use this when you have no idea what the right
3170 ### operating system is; if you know what operating systems a machine
3171 ### runs, it's cleaner to make it explicit in the case statement
3172 ### above.
3173 if test x"${opsys}" = x; then
3174 case "${canonical}" in
3175 *-gnu* ) opsys=gnu ;;
3176 *-bsd4.[01] ) opsys=bsd4-1 ;;
3177 *-bsd4.2 ) opsys=bsd4-2 ;;
3178 *-bsd4.3 ) opsys=bsd4-3 ;;
3179 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3180 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3181 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3182 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3183 *-sysv4.2uw* ) opsys=unixware ;;
3184 *-sysv5uw* ) opsys=unixware ;;
3185 *-sysv5OpenUNIX* ) opsys=unixware ;;
3186 *-sysv4.1* | *-sysvr4.1* )
3187 NON_GNU_CPP=/usr/lib/cpp
3188 opsys=usg5-4 ;;
3189 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3190 if [ x$NON_GNU_CPP = x ]; then
3191 if [ -f /usr/ccs/lib/cpp ]; then
3192 NON_GNU_CPP=/usr/ccs/lib/cpp
3193 else
3194 NON_GNU_CPP=/lib/cpp
3197 opsys=usg5-4-2 ;;
3198 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3200 unported=yes
3202 esac
3207 if test $unported = yes; then
3208 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3209 Check \`etc/MACHINES' for recognized configuration names." >&5
3210 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3211 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3212 { (exit 1); exit 1; }; }
3215 machfile="m/${machine}.h"
3216 opsysfile="s/${opsys}.h"
3219 #### Choose a compiler.
3220 test -n "$CC" && cc_specified=yes
3222 # Save the value of CFLAGS that the user specified.
3223 SPECIFIED_CFLAGS="$CFLAGS"
3225 case ${with_gcc} in
3226 "yes" ) CC="gcc" GCC=yes ;;
3227 "no" ) : ${CC=cc} ;;
3229 esac
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3257 done
3258 done
3259 IFS=$as_save_IFS
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { echo "$as_me:$LINENO: result: $CC" >&5
3266 echo "${ECHO_T}$CC" >&6; }
3267 else
3268 { echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6; }
3274 if test -z "$ac_cv_prog_CC"; then
3275 ac_ct_CC=$CC
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc; ac_word=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CC="gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3306 echo "${ECHO_T}$ac_ct_CC" >&6; }
3307 else
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3312 if test "x$ac_ct_CC" = x; then
3313 CC=""
3314 else
3315 case $cross_compiling:$ac_tool_warned in
3316 yes:)
3317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3318 whose name does not start with the host triplet. If you think this
3319 configuration is useful to you, please write to autoconf@gnu.org." >&5
3320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3321 whose name does not start with the host triplet. If you think this
3322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3323 ac_tool_warned=yes ;;
3324 esac
3325 CC=$ac_ct_CC
3327 else
3328 CC="$ac_cv_prog_CC"
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}cc; ac_word=$2
3335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC="${ac_tool_prefix}cc"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3354 done
3355 done
3356 IFS=$as_save_IFS
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362 { echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6; }
3364 else
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3372 if test -z "$CC"; then
3373 # Extract the first word of "cc", so it can be a program name with args.
3374 set dummy cc; ac_word=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 ac_prog_rejected=no
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392 ac_prog_rejected=yes
3393 continue
3395 ac_cv_prog_CC="cc"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3399 done
3400 done
3401 IFS=$as_save_IFS
3403 if test $ac_prog_rejected = yes; then
3404 # We found a bogon in the path, so make sure we never use it.
3405 set dummy $ac_cv_prog_CC
3406 shift
3407 if test $# != 0; then
3408 # We chose a different compiler from the bogus one.
3409 # However, it has the same basename, so the bogon will be chosen
3410 # first if we set CC to just the basename; use the full file name.
3411 shift
3412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3417 CC=$ac_cv_prog_CC
3418 if test -n "$CC"; then
3419 { echo "$as_me:$LINENO: result: $CC" >&5
3420 echo "${ECHO_T}$CC" >&6; }
3421 else
3422 { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3428 if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 for ac_prog in cl.exe
3432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3453 done
3454 done
3455 IFS=$as_save_IFS
3459 CC=$ac_cv_prog_CC
3460 if test -n "$CC"; then
3461 { echo "$as_me:$LINENO: result: $CC" >&5
3462 echo "${ECHO_T}$CC" >&6; }
3463 else
3464 { echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6; }
3469 test -n "$CC" && break
3470 done
3472 if test -z "$CC"; then
3473 ac_ct_CC=$CC
3474 for ac_prog in cl.exe
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_ac_ct_CC="$ac_prog"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3506 echo "${ECHO_T}$ac_ct_CC" >&6; }
3507 else
3508 { echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6; }
3513 test -n "$ac_ct_CC" && break
3514 done
3516 if test "x$ac_ct_CC" = x; then
3517 CC=""
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3522 whose name does not start with the host triplet. If you think this
3523 configuration is useful to you, please write to autoconf@gnu.org." >&5
3524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet. If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 CC=$ac_ct_CC
3536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details." >&5
3538 echo "$as_me: error: no acceptable C compiler found in \$PATH
3539 See \`config.log' for more details." >&2;}
3540 { (exit 1); exit 1; }; }
3542 # Provide some information about the compiler.
3543 echo "$as_me:$LINENO: checking for C compiler version" >&5
3544 ac_compiler=`set X $ac_compile; echo $2`
3545 { (ac_try="$ac_compiler --version >&5"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compiler --version >&5") 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }
3555 { (ac_try="$ac_compiler -v >&5"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compiler -v >&5") 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565 { (ac_try="$ac_compiler -V >&5"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compiler -V >&5") 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3584 main ()
3588 return 0;
3590 _ACEOF
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3595 # of exeext.
3596 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3597 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600 # List of possible output files, starting from the most likely.
3601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3602 # only as a last resort. b.out is created by i960 compilers.
3603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3605 # The IRIX 6 linker writes into existing files which may not be
3606 # executable, retaining their permissions. Remove them first so a
3607 # subsequent execution test works.
3608 ac_rmfiles=
3609 for ac_file in $ac_files
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3614 esac
3615 done
3616 rm -f $ac_rmfiles
3618 if { (ac_try="$ac_link_default"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_link_default") 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; then
3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3632 # Autoconf.
3633 for ac_file in $ac_files ''
3635 test -f "$ac_file" || continue
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3639 [ab].out )
3640 # We found the default executable, but exeext='' is most
3641 # certainly right.
3642 break;;
3643 *.* )
3644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3645 then :; else
3646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 # We set ac_cv_exeext here because the later test for it is not
3649 # safe: cross compilers may not add the suffix if given an `-o'
3650 # argument, so we may need to know it at that point already.
3651 # Even if this section looks crufty: it has the advantage of
3652 # actually working.
3653 break;;
3655 break;;
3656 esac
3657 done
3658 test "$ac_cv_exeext" = no && ac_cv_exeext=
3660 else
3661 ac_file=''
3664 { echo "$as_me:$LINENO: result: $ac_file" >&5
3665 echo "${ECHO_T}$ac_file" >&6; }
3666 if test -z "$ac_file"; then
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3671 See \`config.log' for more details." >&5
3672 echo "$as_me: error: C compiler cannot create executables
3673 See \`config.log' for more details." >&2;}
3674 { (exit 77); exit 77; }; }
3677 ac_exeext=$ac_cv_exeext
3679 # Check that the compiler produces executables we can run. If not, either
3680 # the compiler is broken, or we cross compile.
3681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3684 # If not cross compiling, check that we can run a simple program.
3685 if test "$cross_compiling" != yes; then
3686 if { ac_try='./$ac_file'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 cross_compiling=no
3697 else
3698 if test "$cross_compiling" = maybe; then
3699 cross_compiling=yes
3700 else
3701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3702 If you meant to cross compile, use \`--host'.
3703 See \`config.log' for more details." >&5
3704 echo "$as_me: error: cannot run C compiled programs.
3705 If you meant to cross compile, use \`--host'.
3706 See \`config.log' for more details." >&2;}
3707 { (exit 1); exit 1; }; }
3711 { echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6; }
3714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3715 ac_clean_files=$ac_clean_files_save
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3720 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3721 echo "${ECHO_T}$cross_compiling" >&6; }
3723 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3724 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3725 if { (ac_try="$ac_link"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 break;;
3745 * ) break;;
3746 esac
3747 done
3748 else
3749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; }
3756 rm -f conftest$ac_cv_exeext
3757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3760 rm -f conftest.$ac_ext
3761 EXEEXT=$ac_cv_exeext
3762 ac_exeext=$EXEEXT
3763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3765 if test "${ac_cv_objext+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 rm -f conftest.o conftest.obj
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; then
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3799 break;;
3800 esac
3801 done
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3816 echo "${ECHO_T}$ac_cv_objext" >&6; }
3817 OBJEXT=$ac_cv_objext
3818 ac_objext=$OBJEXT
3819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3859 ac_compiler_gnu=yes
3860 else
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_compiler_gnu=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3873 GCC=`test $ac_compiler_gnu = yes && echo yes`
3874 ac_test_CFLAGS=${CFLAGS+set}
3875 ac_save_CFLAGS=$CFLAGS
3876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3878 if test "${ac_cv_prog_cc_g+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_save_c_werror_flag=$ac_c_werror_flag
3882 ac_c_werror_flag=yes
3883 ac_cv_prog_cc_g=no
3884 CFLAGS="-g"
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3893 main ()
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_compile") 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && {
3914 test -z "$ac_c_werror_flag" ||
3915 test ! -s conftest.err
3916 } && test -s conftest.$ac_objext; then
3917 ac_cv_prog_cc_g=yes
3918 else
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 CFLAGS=""
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3961 CFLAGS="-g"
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3994 ac_cv_prog_cc_g=yes
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4013 if test "$ac_test_CFLAGS" = set; then
4014 CFLAGS=$ac_save_CFLAGS
4015 elif test $ac_cv_prog_cc_g = yes; then
4016 if test "$GCC" = yes; then
4017 CFLAGS="-g -O2"
4018 else
4019 CFLAGS="-g"
4021 else
4022 if test "$GCC" = yes; then
4023 CFLAGS="-O2"
4024 else
4025 CFLAGS=
4028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4030 if test "${ac_cv_prog_cc_c89+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 ac_cv_prog_cc_c89=no
4034 ac_save_CC=$CC
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #include <stdarg.h>
4042 #include <stdio.h>
4043 #include <sys/types.h>
4044 #include <sys/stat.h>
4045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4046 struct buf { int x; };
4047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4048 static char *e (p, i)
4049 char **p;
4050 int i;
4052 return p[i];
4054 static char *f (char * (*g) (char **, int), char **p, ...)
4056 char *s;
4057 va_list v;
4058 va_start (v,p);
4059 s = g (p, va_arg (v,int));
4060 va_end (v);
4061 return s;
4064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4065 function prototypes and stuff, but not '\xHH' hex character constants.
4066 These don't provoke an error unfortunately, instead are silently treated
4067 as 'x'. The following induces an error, until -std is added to get
4068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4069 array size at least. It's necessary to write '\x00'==0 to get something
4070 that's true only with -std. */
4071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4074 inside strings and character constants. */
4075 #define FOO(x) 'x'
4076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4078 int test (int i, double x);
4079 struct s1 {int (*f) (int a);};
4080 struct s2 {int (*f) (double a);};
4081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4082 int argc;
4083 char **argv;
4085 main ()
4087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4089 return 0;
4091 _ACEOF
4092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4095 CC="$ac_save_CC $ac_arg"
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest.$ac_objext; then
4113 ac_cv_prog_cc_c89=$ac_arg
4114 else
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC
4128 # AC_CACHE_VAL
4129 case "x$ac_cv_prog_cc_c89" in
4131 { echo "$as_me:$LINENO: result: none needed" >&5
4132 echo "${ECHO_T}none needed" >&6; } ;;
4133 xno)
4134 { echo "$as_me:$LINENO: result: unsupported" >&5
4135 echo "${ECHO_T}unsupported" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4140 esac
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 # On Suns, sometimes $CPP names a directory.
4151 if test -n "$CPP" && test -d "$CPP"; then
4152 CPP=
4155 #### Some systems specify a CPP to use unless we are using GCC.
4156 #### Now that we know whether we are using GCC, we can decide whether
4157 #### to use that one.
4158 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4159 then
4160 CPP="$NON_GNU_CPP"
4163 #### Some systems specify a CC to use unless we are using GCC.
4164 #### Now that we know whether we are using GCC, we can decide whether
4165 #### to use that one.
4166 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4167 test x$cc_specified != xyes
4168 then
4169 CC="$NON_GNU_CC"
4172 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4173 then
4174 CC="$CC $GCC_TEST_OPTIONS"
4177 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4178 then
4179 CC="$CC $NON_GCC_TEST_OPTIONS"
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4189 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4190 # On Suns, sometimes $CPP names a directory.
4191 if test -n "$CPP" && test -d "$CPP"; then
4192 CPP=
4194 if test -z "$CPP"; then
4195 if test "${ac_cv_prog_CPP+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 # Double quotes because CPP needs to be expanded
4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201 ac_preproc_ok=false
4202 for ac_c_preproc_warn_flag in '' yes
4204 # Use a header file that comes with gcc, so configuring glibc
4205 # with a fresh cross-compiler works.
4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 # <limits.h> exists even on freestanding compilers.
4208 # On the NeXT, cc -E runs the code through the compiler's parser,
4209 # not just through cpp. "Syntax error" is here to catch this case.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #ifdef __STDC__
4217 # include <limits.h>
4218 #else
4219 # include <assert.h>
4220 #endif
4221 Syntax error
4222 _ACEOF
4223 if { (ac_try="$ac_cpp conftest.$ac_ext"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } >/dev/null && {
4236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 }; then
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 # Broken: fails on valid input.
4245 continue
4248 rm -f conftest.err conftest.$ac_ext
4250 # OK, works on sane cases. Now check whether nonexistent headers
4251 # can be detected and how.
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 }; then
4276 # Broken: success on invalid input.
4277 continue
4278 else
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 # Passes both tests.
4283 ac_preproc_ok=:
4284 break
4287 rm -f conftest.err conftest.$ac_ext
4289 done
4290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291 rm -f conftest.err conftest.$ac_ext
4292 if $ac_preproc_ok; then
4293 break
4296 done
4297 ac_cv_prog_CPP=$CPP
4300 CPP=$ac_cv_prog_CPP
4301 else
4302 ac_cv_prog_CPP=$CPP
4304 { echo "$as_me:$LINENO: result: $CPP" >&5
4305 echo "${ECHO_T}$CPP" >&6; }
4306 ac_preproc_ok=false
4307 for ac_c_preproc_warn_flag in '' yes
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 #ifdef __STDC__
4322 # include <limits.h>
4323 #else
4324 # include <assert.h>
4325 #endif
4326 Syntax error
4327 _ACEOF
4328 if { (ac_try="$ac_cpp conftest.$ac_ext"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev/null && {
4341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 }; then
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 # Broken: fails on valid input.
4350 continue
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4364 _ACEOF
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 # Broken: success on invalid input.
4382 continue
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 # Passes both tests.
4388 ac_preproc_ok=:
4389 break
4392 rm -f conftest.err conftest.$ac_ext
4394 done
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4399 else
4400 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4401 See \`config.log' for more details." >&5
4402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4403 See \`config.log' for more details." >&2;}
4404 { (exit 1); exit 1; }; }
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4415 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4416 if test "${ac_cv_path_GREP+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 # Extract the first word of "grep ggrep" to use in msg output
4420 if test -z "$GREP"; then
4421 set dummy grep ggrep; ac_prog_name=$2
4422 if test "${ac_cv_path_GREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 ac_path_GREP_found=false
4426 # Loop through the user's path and test for each of PROGNAME-LIST
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_prog in grep ggrep; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4435 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4436 # Check for GNU ac_path_GREP and select it if it is found.
4437 # Check for GNU $ac_path_GREP
4438 case `"$ac_path_GREP" --version 2>&1` in
4439 *GNU*)
4440 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4442 ac_count=0
4443 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4444 while :
4446 cat "conftest.in" "conftest.in" >"conftest.tmp"
4447 mv "conftest.tmp" "conftest.in"
4448 cp "conftest.in" "conftest.nl"
4449 echo 'GREP' >> "conftest.nl"
4450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452 ac_count=`expr $ac_count + 1`
4453 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4454 # Best one so far, save it but keep looking for a better one
4455 ac_cv_path_GREP="$ac_path_GREP"
4456 ac_path_GREP_max=$ac_count
4458 # 10*(2^10) chars as input seems more than enough
4459 test $ac_count -gt 10 && break
4460 done
4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462 esac
4465 $ac_path_GREP_found && break 3
4466 done
4467 done
4469 done
4470 IFS=$as_save_IFS
4475 GREP="$ac_cv_path_GREP"
4476 if test -z "$GREP"; then
4477 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4478 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4479 { (exit 1); exit 1; }; }
4482 else
4483 ac_cv_path_GREP=$GREP
4488 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4489 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4490 GREP="$ac_cv_path_GREP"
4493 { echo "$as_me:$LINENO: checking for egrep" >&5
4494 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_EGREP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499 then ac_cv_path_EGREP="$GREP -E"
4500 else
4501 # Extract the first word of "egrep" to use in msg output
4502 if test -z "$EGREP"; then
4503 set dummy egrep; ac_prog_name=$2
4504 if test "${ac_cv_path_EGREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524 ac_count=0
4525 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4526 while :
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 ac_count=`expr $ac_count + 1`
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4551 done
4552 IFS=$as_save_IFS
4557 EGREP="$ac_cv_path_EGREP"
4558 if test -z "$EGREP"; then
4559 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4560 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4561 { (exit 1); exit 1; }; }
4564 else
4565 ac_cv_path_EGREP=$EGREP
4571 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4572 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4577 { echo "$as_me:$LINENO: checking for AIX" >&5
4578 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #ifdef _AIX
4587 #endif
4589 _ACEOF
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "yes" >/dev/null 2>&1; then
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6; }
4594 cat >>confdefs.h <<\_ACEOF
4595 #define _ALL_SOURCE 1
4596 _ACEOF
4598 else
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4602 rm -f conftest*
4606 cat >>confdefs.h <<\_ACEOF
4607 #define _GNU_SOURCE 1
4608 _ACEOF
4612 ### Use -Wno-pointer-sign if the compiler supports it
4613 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4614 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4615 SAVE_CFLAGS="$CFLAGS"
4616 CFLAGS="$CFLAGS -Wno-pointer-sign"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4625 main ()
4629 return 0;
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
4649 has_option=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 has_option=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 if test $has_option = yes; then
4659 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4661 { echo "$as_me:$LINENO: result: $has_option" >&5
4662 echo "${ECHO_T}$has_option" >&6; }
4663 CFLAGS="$SAVE_CFLAGS"
4664 unset has_option
4665 unset SAVE_CFLAGS
4667 #### Some other nice autoconf tests.
4669 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4671 LN_S=$as_ln_s
4672 if test "$LN_S" = "ln -s"; then
4673 { echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6; }
4675 else
4676 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4677 echo "${ECHO_T}no, using $LN_S" >&6; }
4680 ac_ext=c
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4686 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4687 # On Suns, sometimes $CPP names a directory.
4688 if test -n "$CPP" && test -d "$CPP"; then
4689 CPP=
4691 if test -z "$CPP"; then
4692 if test "${ac_cv_prog_CPP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 # Double quotes because CPP needs to be expanded
4696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4698 ac_preproc_ok=false
4699 for ac_c_preproc_warn_flag in '' yes
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
4705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #ifdef __STDC__
4714 # include <limits.h>
4715 #else
4716 # include <assert.h>
4717 #endif
4718 Syntax error
4719 _ACEOF
4720 if { (ac_try="$ac_cpp conftest.$ac_ext"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null && {
4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 }; then
4737 else
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 # Broken: fails on valid input.
4742 continue
4745 rm -f conftest.err conftest.$ac_ext
4747 # OK, works on sane cases. Now check whether nonexistent headers
4748 # can be detected and how.
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 #include <ac_nonexistent.h>
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
4773 # Broken: success on invalid input.
4774 continue
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 # Passes both tests.
4780 ac_preproc_ok=:
4781 break
4784 rm -f conftest.err conftest.$ac_ext
4786 done
4787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4788 rm -f conftest.err conftest.$ac_ext
4789 if $ac_preproc_ok; then
4790 break
4793 done
4794 ac_cv_prog_CPP=$CPP
4797 CPP=$ac_cv_prog_CPP
4798 else
4799 ac_cv_prog_CPP=$CPP
4801 { echo "$as_me:$LINENO: result: $CPP" >&5
4802 echo "${ECHO_T}$CPP" >&6; }
4803 ac_preproc_ok=false
4804 for ac_c_preproc_warn_flag in '' yes
4806 # Use a header file that comes with gcc, so configuring glibc
4807 # with a fresh cross-compiler works.
4808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4809 # <limits.h> exists even on freestanding compilers.
4810 # On the NeXT, cc -E runs the code through the compiler's parser,
4811 # not just through cpp. "Syntax error" is here to catch this case.
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #ifdef __STDC__
4819 # include <limits.h>
4820 #else
4821 # include <assert.h>
4822 #endif
4823 Syntax error
4824 _ACEOF
4825 if { (ac_try="$ac_cpp conftest.$ac_ext"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null && {
4838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 }; then
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 # Broken: fails on valid input.
4847 continue
4850 rm -f conftest.err conftest.$ac_ext
4852 # OK, works on sane cases. Now check whether nonexistent headers
4853 # can be detected and how.
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <ac_nonexistent.h>
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
4878 # Broken: success on invalid input.
4879 continue
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 # Passes both tests.
4885 ac_preproc_ok=:
4886 break
4889 rm -f conftest.err conftest.$ac_ext
4891 done
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.$ac_ext
4894 if $ac_preproc_ok; then
4896 else
4897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details." >&5
4899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4900 See \`config.log' for more details." >&2;}
4901 { (exit 1); exit 1; }; }
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 # Find a good install program. We prefer a C program (faster),
4911 # so one script is as good as another. But avoid the broken or
4912 # incompatible versions:
4913 # SysV /etc/install, /usr/sbin/install
4914 # SunOS /usr/etc/install
4915 # IRIX /sbin/install
4916 # AIX /bin/install
4917 # AmigaOS /C/install, which installs bootblocks on floppy discs
4918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4921 # OS/2's system install, which has a completely different semantic
4922 # ./install, which can be erroneously created by make from ./install.sh.
4923 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4924 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4925 if test -z "$INSTALL"; then
4926 if test "${ac_cv_path_install+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 # Account for people who put trailing slashes in PATH elements.
4935 case $as_dir/ in
4936 ./ | .// | /cC/* | \
4937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4938 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4939 /usr/ucb/* ) ;;
4941 # OSF1 and SCO ODT 3.0 have their own names for install.
4942 # Don't use installbsd from OSF since it installs stuff as root
4943 # by default.
4944 for ac_prog in ginstall scoinst install; do
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4947 if test $ac_prog = install &&
4948 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4949 # AIX install. It has an incompatible calling convention.
4951 elif test $ac_prog = install &&
4952 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4953 # program-specific install script used by HP pwplus--don't use.
4955 else
4956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4957 break 3
4960 done
4961 done
4963 esac
4964 done
4965 IFS=$as_save_IFS
4969 if test "${ac_cv_path_install+set}" = set; then
4970 INSTALL=$ac_cv_path_install
4971 else
4972 # As a last resort, use the slow shell script. Don't cache a
4973 # value for INSTALL within a source directory, because that will
4974 # break other packages using the cache if that directory is
4975 # removed, or if the value is a relative name.
4976 INSTALL=$ac_install_sh
4979 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4980 echo "${ECHO_T}$INSTALL" >&6; }
4982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4983 # It thinks the first close brace ends the variable substitution.
4984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4990 if test "x$RANLIB" = x; then
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_RANLIB+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5015 IFS=$as_save_IFS
5019 RANLIB=$ac_cv_prog_RANLIB
5020 if test -n "$RANLIB"; then
5021 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5022 echo "${ECHO_T}$RANLIB" >&6; }
5023 else
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 if test -z "$ac_cv_prog_RANLIB"; then
5031 ac_ct_RANLIB=$RANLIB
5032 # Extract the first word of "ranlib", so it can be a program name with args.
5033 set dummy ranlib; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 if test -n "$ac_ct_RANLIB"; then
5040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_RANLIB="ranlib"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5053 done
5054 done
5055 IFS=$as_save_IFS
5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5060 if test -n "$ac_ct_RANLIB"; then
5061 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5062 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5063 else
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5068 if test "x$ac_ct_RANLIB" = x; then
5069 RANLIB=":"
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet. If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&5
5076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077 whose name does not start with the host triplet. If you think this
5078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079 ac_tool_warned=yes ;;
5080 esac
5081 RANLIB=$ac_ct_RANLIB
5083 else
5084 RANLIB="$ac_cv_prog_RANLIB"
5088 # Extract the first word of "install-info", so it can be a program name with args.
5089 set dummy install-info; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 case $INSTALL_INFO in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5111 done
5112 done
5113 IFS=$as_save_IFS
5116 esac
5118 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5119 if test -n "$INSTALL_INFO"; then
5120 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5121 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5122 else
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5128 # Extract the first word of "install-info", so it can be a program name with args.
5129 set dummy install-info; ac_word=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 case $INSTALL_INFO in
5136 [\\/]* | ?:[\\/]*)
5137 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in /usr/sbin
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5156 esac
5158 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5159 if test -n "$INSTALL_INFO"; then
5160 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5161 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5162 else
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5168 # Extract the first word of "install-info", so it can be a program name with args.
5169 set dummy install-info; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 case $INSTALL_INFO in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in /sbin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5195 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5197 esac
5199 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5200 if test -n "$INSTALL_INFO"; then
5201 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5202 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5203 else
5204 { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5209 # Extract the first word of "gzip", so it can be a program name with args.
5210 set dummy gzip; ac_word=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 case $GZIP_PROG in
5217 [\\/]* | ?:[\\/]*)
5218 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5237 esac
5239 GZIP_PROG=$ac_cv_path_GZIP_PROG
5240 if test -n "$GZIP_PROG"; then
5241 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5242 echo "${ECHO_T}$GZIP_PROG" >&6; }
5243 else
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5251 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5252 then
5253 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5256 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5257 then
5258 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5262 late_LDFLAGS=$LDFLAGS
5263 if test "$GCC" = yes; then
5264 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5265 else
5266 LDFLAGS="$LDFLAGS -znocombreloc"
5269 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5270 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5271 cat >conftest.$ac_ext <<_ACEOF
5272 main(){return 0;}
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest$ac_exeext &&
5291 $as_test_x conftest$ac_exeext; then
5292 { echo "$as_me:$LINENO: result: yes" >&5
5293 echo "${ECHO_T}yes" >&6; }
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 LDFLAGS=$late_LDFLAGS
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5304 conftest$ac_exeext conftest.$ac_ext
5306 #### Extract some information from the operating system and machine files.
5308 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5309 - which libraries the lib-src programs will want, and
5310 - whether the GNU malloc routines are usable..." >&5
5311 echo "$as_me: checking the machine- and system-dependent files to find out
5312 - which libraries the lib-src programs will want, and
5313 - whether the GNU malloc routines are usable..." >&6;}
5315 ### First figure out CFLAGS (which we use for running the compiler here)
5316 ### and REAL_CFLAGS (which we use for real compilation).
5317 ### The two are the same except on a few systems, where they are made
5318 ### different to work around various lossages. For example,
5319 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5320 ### as implying static linking.
5322 ### If the CFLAGS env var is specified, we use that value
5323 ### instead of the default.
5325 ### It's not important that this name contain the PID; you can't run
5326 ### two configures in the same directory and have anything work
5327 ### anyway.
5328 tempcname="conftest.c"
5330 echo '
5331 #include "'${srcdir}'/src/'${opsysfile}'"
5332 #include "'${srcdir}'/src/'${machfile}'"
5333 #ifndef LIBS_MACHINE
5334 #define LIBS_MACHINE
5335 #endif
5336 #ifndef LIBS_SYSTEM
5337 #define LIBS_SYSTEM
5338 #endif
5339 #ifndef C_SWITCH_SYSTEM
5340 #define C_SWITCH_SYSTEM
5341 #endif
5342 #ifndef C_SWITCH_MACHINE
5343 #define C_SWITCH_MACHINE
5344 #endif
5345 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5346 configure___ c_switch_system=C_SWITCH_SYSTEM
5347 configure___ c_switch_machine=C_SWITCH_MACHINE
5349 #ifndef LIB_X11_LIB
5350 #define LIB_X11_LIB -lX11
5351 #endif
5353 #ifndef LIBX11_MACHINE
5354 #define LIBX11_MACHINE
5355 #endif
5357 #ifndef LIBX11_SYSTEM
5358 #define LIBX11_SYSTEM
5359 #endif
5360 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5362 #ifdef UNEXEC
5363 configure___ unexec=UNEXEC
5364 #else
5365 configure___ unexec=unexec.o
5366 #endif
5368 #ifdef SYSTEM_MALLOC
5369 configure___ system_malloc=yes
5370 #else
5371 configure___ system_malloc=no
5372 #endif
5374 #ifdef USE_MMAP_FOR_BUFFERS
5375 configure___ use_mmap_for_buffers=yes
5376 #else
5377 configure___ use_mmap_for_buffers=no
5378 #endif
5380 #ifndef C_DEBUG_SWITCH
5381 #define C_DEBUG_SWITCH -g
5382 #endif
5384 #ifndef C_OPTIMIZE_SWITCH
5385 #ifdef __GNUC__
5386 #define C_OPTIMIZE_SWITCH -O2
5387 #else
5388 #define C_OPTIMIZE_SWITCH -O
5389 #endif
5390 #endif
5392 #ifndef C_WARNINGS_SWITCH
5393 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5394 #endif
5396 #ifndef LD_SWITCH_MACHINE
5397 #define LD_SWITCH_MACHINE
5398 #endif
5400 #ifndef LD_SWITCH_SYSTEM
5401 #define LD_SWITCH_SYSTEM
5402 #endif
5404 #ifndef LD_SWITCH_X_SITE_AUX
5405 #define LD_SWITCH_X_SITE_AUX
5406 #endif
5408 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5409 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5411 #ifdef THIS_IS_CONFIGURE
5413 /* Get the CFLAGS for tests in configure. */
5414 #ifdef __GNUC__
5415 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5416 #else
5417 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5418 #endif
5420 #else /* not THIS_IS_CONFIGURE */
5422 /* Get the CFLAGS for real compilation. */
5423 #ifdef __GNUC__
5424 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5425 #else
5426 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5427 #endif
5429 #endif /* not THIS_IS_CONFIGURE */
5430 ' > ${tempcname}
5432 # The value of CPP is a quoted variable reference, so we need to do this
5433 # to get its actual value...
5434 CPP=`eval "echo $CPP"`
5435 eval `${CPP} -Isrc ${tempcname} \
5436 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5437 if test "x$SPECIFIED_CFLAGS" = x; then
5438 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5439 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5440 else
5441 REAL_CFLAGS="$CFLAGS"
5443 rm ${tempcname}
5445 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5447 ### Make sure subsequent tests use flags consistent with the build flags.
5449 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5450 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5451 else
5452 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5457 # Check whether --enable-largefile was given.
5458 if test "${enable_largefile+set}" = set; then
5459 enableval=$enable_largefile;
5462 if test "$enable_largefile" != no; then
5464 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5465 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5466 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 ac_cv_sys_largefile_CC=no
5470 if test "$GCC" != yes; then
5471 ac_save_CC=$CC
5472 while :; do
5473 # IRIX 6.2 and later do not support large files by default,
5474 # so use the C compiler's -n32 option if that helps.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <sys/types.h>
5482 /* Check that off_t can represent 2**63 - 1 correctly.
5483 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5484 since some C++ compilers masquerading as C compilers
5485 incorrectly reject 9223372036854775807. */
5486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5487 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5488 && LARGE_OFF_T % 2147483647 == 1)
5489 ? 1 : -1];
5491 main ()
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 break
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext
5524 CC="$CC -n32"
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_largefile_CC=' -n32'; break
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f core conftest.err conftest.$ac_objext
5551 break
5552 done
5553 CC=$ac_save_CC
5554 rm -f conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5558 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5559 if test "$ac_cv_sys_largefile_CC" != no; then
5560 CC=$CC$ac_cv_sys_largefile_CC
5563 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5564 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5565 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 while :; do
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5585 main ()
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_sys_file_offset_bits=no; break
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #define _FILE_OFFSET_BITS 64
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5633 ? 1 : -1];
5635 main ()
5639 return 0;
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5659 ac_cv_sys_file_offset_bits=64; break
5660 else
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_sys_file_offset_bits=unknown
5669 break
5670 done
5672 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5674 case $ac_cv_sys_file_offset_bits in #(
5675 no | unknown) ;;
5677 cat >>confdefs.h <<_ACEOF
5678 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5679 _ACEOF
5681 esac
5682 rm -f conftest*
5683 if test $ac_cv_sys_file_offset_bits = unknown; then
5684 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5685 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5686 if test "${ac_cv_sys_large_files+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 while :; do
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5704 ? 1 : -1];
5706 main ()
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_sys_large_files=no; break
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #define _LARGE_FILES 1
5746 #include <sys/types.h>
5747 /* Check that off_t can represent 2**63 - 1 correctly.
5748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5749 since some C++ compilers masquerading as C compilers
5750 incorrectly reject 9223372036854775807. */
5751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5753 && LARGE_OFF_T % 2147483647 == 1)
5754 ? 1 : -1];
5756 main ()
5760 return 0;
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (ac_try="$ac_compile"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compile") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest.$ac_objext; then
5780 ac_cv_sys_large_files=1; break
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_sys_large_files=unknown
5790 break
5791 done
5793 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5796 no | unknown) ;;
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5800 _ACEOF
5802 esac
5803 rm -f conftest*
5809 ### The standard library on x86-64 GNU/Linux distributions can
5810 ### be located in either /usr/lib64 or /usr/lib.
5811 case "${canonical}" in
5812 x86_64-*-linux-gnu* )
5813 if test -d /usr/lib64; then
5815 cat >>confdefs.h <<\_ACEOF
5816 #define HAVE_X86_64_LIB64_DIR 1
5817 _ACEOF
5820 esac
5825 if test "${with_sound}" != "no"; then
5826 # Sound support for GNU/Linux and the free BSDs.
5827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5829 if test "${ac_cv_header_stdc+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #include <stdlib.h>
5839 #include <stdarg.h>
5840 #include <string.h>
5841 #include <float.h>
5844 main ()
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
5868 ac_cv_header_stdc=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_cv_header_stdc=no
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 if test $ac_cv_header_stdc = yes; then
5879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <string.h>
5888 _ACEOF
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 $EGREP "memchr" >/dev/null 2>&1; then
5892 else
5893 ac_cv_header_stdc=no
5895 rm -f conftest*
5899 if test $ac_cv_header_stdc = yes; then
5900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <stdlib.h>
5909 _ACEOF
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 $EGREP "free" >/dev/null 2>&1; then
5913 else
5914 ac_cv_header_stdc=no
5916 rm -f conftest*
5920 if test $ac_cv_header_stdc = yes; then
5921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5922 if test "$cross_compiling" = yes; then
5924 else
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #include <ctype.h>
5932 #include <stdlib.h>
5933 #if ((' ' & 0x0FF) == 0x020)
5934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5936 #else
5937 # define ISLOWER(c) \
5938 (('a' <= (c) && (c) <= 'i') \
5939 || ('j' <= (c) && (c) <= 'r') \
5940 || ('s' <= (c) && (c) <= 'z'))
5941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5942 #endif
5944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5946 main ()
5948 int i;
5949 for (i = 0; i < 256; i++)
5950 if (XOR (islower (i), ISLOWER (i))
5951 || toupper (i) != TOUPPER (i))
5952 return 2;
5953 return 0;
5955 _ACEOF
5956 rm -f conftest$ac_exeext
5957 if { (ac_try="$ac_link"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_link") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5977 else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ( exit $ac_status )
5983 ac_cv_header_stdc=no
5985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5993 if test $ac_cv_header_stdc = yes; then
5995 cat >>confdefs.h <<\_ACEOF
5996 #define STDC_HEADERS 1
5997 _ACEOF
6001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6012 inttypes.h stdint.h unistd.h
6014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 $ac_includes_default
6028 #include <$ac_header>
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 eval "$as_ac_Header=yes"
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 eval "$as_ac_Header=no"
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_res=`eval echo '${'$as_ac_Header'}'`
6058 { echo "$as_me:$LINENO: result: $ac_res" >&5
6059 echo "${ECHO_T}$ac_res" >&6; }
6060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 _ACEOF
6067 done
6073 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_res=`eval echo '${'$as_ac_Header'}'`
6083 { echo "$as_me:$LINENO: result: $ac_res" >&5
6084 echo "${ECHO_T}$ac_res" >&6; }
6085 else
6086 # Is the header compilable?
6087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 #include <$ac_header>
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 ac_header_compiler=yes
6116 else
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 ac_header_compiler=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125 echo "${ECHO_T}$ac_header_compiler" >&6; }
6127 # Is the header present?
6128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <$ac_header>
6137 _ACEOF
6138 if { (ac_try="$ac_cpp conftest.$ac_ext"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null && {
6151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 }; then
6154 ac_header_preproc=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_header_preproc=no
6162 rm -f conftest.err conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6164 echo "${ECHO_T}$ac_header_preproc" >&6; }
6166 # So? What about this header?
6167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6168 yes:no: )
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6173 ac_header_preproc=yes
6175 no:yes:* )
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6190 esac
6191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 eval "$as_ac_Header=\$ac_header_preproc"
6198 ac_res=`eval echo '${'$as_ac_Header'}'`
6199 { echo "$as_me:$LINENO: result: $ac_res" >&5
6200 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6206 _ACEOF
6210 done
6212 # Emulation library used on NetBSD.
6213 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6214 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 ac_check_lib_save_LIBS=$LIBS
6219 LIBS="-lossaudio $LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 char _oss_ioctl ();
6235 main ()
6237 return _oss_ioctl ();
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest$ac_exeext &&
6259 $as_test_x conftest$ac_exeext; then
6260 ac_cv_lib_ossaudio__oss_ioctl=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_cv_lib_ossaudio__oss_ioctl=no
6268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6269 conftest$ac_exeext conftest.$ac_ext
6270 LIBS=$ac_check_lib_save_LIBS
6272 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6273 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6274 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6275 LIBSOUND=-lossaudio
6276 else
6277 LIBSOUND=
6282 ALSA_REQUIRED=1.0.0
6283 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6284 if test "X${with_pkg_config_prog}" != X; then
6285 PKG_CONFIG="${with_pkg_config_prog}"
6288 succeeded=no
6290 if test -z "$PKG_CONFIG"; then
6291 # Extract the first word of "pkg-config", so it can be a program name with args.
6292 set dummy pkg-config; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298 case $PKG_CONFIG in
6299 [\\/]* | ?:[\\/]*)
6300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6320 esac
6322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6323 if test -n "$PKG_CONFIG"; then
6324 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6325 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6326 else
6327 { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6334 if test "$PKG_CONFIG" = "no" ; then
6335 HAVE_ALSA=no
6336 else
6337 PKG_CONFIG_MIN_VERSION=0.9.0
6338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6339 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6340 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6342 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6345 succeeded=yes
6347 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6348 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6349 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6350 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6351 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6354 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6355 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6357 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6358 else
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6361 ALSA_CFLAGS=""
6362 ALSA_LIBS=""
6363 ## If we have a custom action on failure, don't print errors, but
6364 ## do set a variable so people can do so.
6365 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6371 else
6372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6377 if test $succeeded = yes; then
6378 HAVE_ALSA=yes
6379 else
6380 HAVE_ALSA=no
6383 if test $HAVE_ALSA = yes; then
6384 SAVE_CFLAGS="$CFLAGS"
6385 SAVE_LDFLAGS="$LDFLAGS"
6386 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6387 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <asoundlib.h>
6396 main ()
6398 snd_lib_error_set_handler (0);
6400 return 0;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 emacs_alsa_normal=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 emacs_alsa_normal=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 if test "$emacs_alsa_normal" != yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <alsa/asoundlib.h>
6438 main ()
6440 snd_lib_error_set_handler (0);
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 emacs_alsa_subdir=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 emacs_alsa_subdir=no
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 if test "$emacs_alsa_subdir" != yes; then
6472 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6473 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6474 { (exit 1); exit 1; }; }
6476 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6479 CFLAGS="$SAVE_CFLAGS"
6480 LDFLAGS="$SAVE_LDFLAGS"
6481 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6482 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_ALSA 1
6486 _ACEOF
6518 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6519 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6520 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6521 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6522 sys/utsname.h pwd.h
6524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_res=`eval echo '${'$as_ac_Header'}'`
6532 { echo "$as_me:$LINENO: result: $ac_res" >&5
6533 echo "${ECHO_T}$ac_res" >&6; }
6534 else
6535 # Is the header compilable?
6536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h. */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6545 #include <$ac_header>
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (ac_try="$ac_compile"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.$ac_objext; then
6564 ac_header_compiler=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_header_compiler=no
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6574 echo "${ECHO_T}$ac_header_compiler" >&6; }
6576 # Is the header present?
6577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #include <$ac_header>
6586 _ACEOF
6587 if { (ac_try="$ac_cpp conftest.$ac_ext"
6588 case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null && {
6600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 }; then
6603 ac_header_preproc=yes
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 ac_header_preproc=no
6611 rm -f conftest.err conftest.$ac_ext
6612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6613 echo "${ECHO_T}$ac_header_preproc" >&6; }
6615 # So? What about this header?
6616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6617 yes:no: )
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6622 ac_header_preproc=yes
6624 no:yes:* )
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6639 esac
6640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 ac_res=`eval echo '${'$as_ac_Header'}'`
6648 { echo "$as_me:$LINENO: result: $ac_res" >&5
6649 echo "${ECHO_T}$ac_res" >&6; }
6652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6653 cat >>confdefs.h <<_ACEOF
6654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655 _ACEOF
6659 done
6662 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6663 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/personality.h>
6672 main ()
6674 personality (PER_LINUX32)
6676 return 0;
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (ac_try="$ac_compile"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_compile") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && {
6693 test -z "$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 } && test -s conftest.$ac_objext; then
6696 emacs_cv_personality_linux32=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 emacs_cv_personality_linux32=no
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6706 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6708 if test $emacs_cv_personality_linux32 = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_PERSONALITY_LINUX32 1
6712 _ACEOF
6717 for ac_header in term.h
6719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <$ac_header>
6732 _ACEOF
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } >/dev/null && {
6746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 }; then
6749 eval "$as_ac_Header=yes"
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 eval "$as_ac_Header=no"
6757 rm -f conftest.err conftest.$ac_ext
6759 ac_res=`eval echo '${'$as_ac_Header'}'`
6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
6761 echo "${ECHO_T}$ac_res" >&6; }
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6765 _ACEOF
6769 done
6771 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6772 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_stdc+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <stdlib.h>
6783 #include <stdarg.h>
6784 #include <string.h>
6785 #include <float.h>
6788 main ()
6792 return 0;
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_header_stdc=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_header_stdc=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 if test $ac_cv_header_stdc = yes; then
6823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <string.h>
6832 _ACEOF
6833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6834 $EGREP "memchr" >/dev/null 2>&1; then
6836 else
6837 ac_cv_header_stdc=no
6839 rm -f conftest*
6843 if test $ac_cv_header_stdc = yes; then
6844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <stdlib.h>
6853 _ACEOF
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 $EGREP "free" >/dev/null 2>&1; then
6857 else
6858 ac_cv_header_stdc=no
6860 rm -f conftest*
6864 if test $ac_cv_header_stdc = yes; then
6865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6866 if test "$cross_compiling" = yes; then
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <ctype.h>
6876 #include <stdlib.h>
6877 #if ((' ' & 0x0FF) == 0x020)
6878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6880 #else
6881 # define ISLOWER(c) \
6882 (('a' <= (c) && (c) <= 'i') \
6883 || ('j' <= (c) && (c) <= 'r') \
6884 || ('s' <= (c) && (c) <= 'z'))
6885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6886 #endif
6888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6890 main ()
6892 int i;
6893 for (i = 0; i < 256; i++)
6894 if (XOR (islower (i), ISLOWER (i))
6895 || toupper (i) != TOUPPER (i))
6896 return 2;
6897 return 0;
6899 _ACEOF
6900 rm -f conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6902 case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_try") 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6921 else
6922 echo "$as_me: program exited with status $ac_status" >&5
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ( exit $ac_status )
6927 ac_cv_header_stdc=no
6929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6936 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6937 if test $ac_cv_header_stdc = yes; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define STDC_HEADERS 1
6941 _ACEOF
6945 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6947 if test "${ac_cv_header_time+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <sys/types.h>
6957 #include <sys/time.h>
6958 #include <time.h>
6961 main ()
6963 if ((struct tm *) 0)
6964 return 0;
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (ac_try="$ac_compile"
6971 case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_compile") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
6985 } && test -s conftest.$ac_objext; then
6986 ac_cv_header_time=yes
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_header_time=no
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6997 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6998 if test $ac_cv_header_time = yes; then
7000 cat >>confdefs.h <<\_ACEOF
7001 #define TIME_WITH_SYS_TIME 1
7002 _ACEOF
7006 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7007 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7008 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7019 main ()
7021 #ifndef sys_siglist
7022 (void) sys_siglist;
7023 #endif
7026 return 0;
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (ac_try="$ac_compile"
7031 case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_compile") 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && {
7043 test -z "$ac_c_werror_flag" ||
7044 test ! -s conftest.err
7045 } && test -s conftest.$ac_objext; then
7046 ac_cv_have_decl_sys_siglist=yes
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_have_decl_sys_siglist=no
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7057 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7058 if test $ac_cv_have_decl_sys_siglist = yes; then
7060 cat >>confdefs.h <<_ACEOF
7061 #define HAVE_DECL_SYS_SIGLIST 1
7062 _ACEOF
7065 else
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DECL_SYS_SIGLIST 0
7068 _ACEOF
7074 if test $ac_cv_have_decl_sys_siglist != yes; then
7075 # For Tru64, at least:
7076 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7077 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7078 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7089 main ()
7091 #ifndef __sys_siglist
7092 (void) __sys_siglist;
7093 #endif
7096 return 0;
7098 _ACEOF
7099 rm -f conftest.$ac_objext
7100 if { (ac_try="$ac_compile"
7101 case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104 esac
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
7116 ac_cv_have_decl___sys_siglist=yes
7117 else
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7121 ac_cv_have_decl___sys_siglist=no
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7127 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7128 if test $ac_cv_have_decl___sys_siglist = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_DECL___SYS_SIGLIST 1
7132 _ACEOF
7135 else
7136 cat >>confdefs.h <<_ACEOF
7137 #define HAVE_DECL___SYS_SIGLIST 0
7138 _ACEOF
7144 if test $ac_cv_have_decl___sys_siglist = yes; then
7146 cat >>confdefs.h <<\_ACEOF
7147 #define sys_siglist __sys_siglist
7148 _ACEOF
7152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <sys/types.h>
7164 #include <sys/wait.h>
7165 #ifndef WEXITSTATUS
7166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7167 #endif
7168 #ifndef WIFEXITED
7169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7170 #endif
7173 main ()
7175 int s;
7176 wait (&s);
7177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_cv_header_sys_wait_h=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_header_sys_wait_h=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7210 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7211 if test $ac_cv_header_sys_wait_h = yes; then
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_SYS_WAIT_H 1
7215 _ACEOF
7220 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7221 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7222 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #ifdef TIME_WITH_SYS_TIME
7232 #include <sys/time.h>
7233 #include <time.h>
7234 #else
7235 #ifdef HAVE_SYS_TIME_H
7236 #include <sys/time.h>
7237 #else
7238 #include <time.h>
7239 #endif
7240 #endif
7241 #ifdef HAVE_UTIME_H
7242 #include <utime.h>
7243 #endif
7245 main ()
7247 static struct utimbuf x; x.actime = x.modtime;
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 emacs_cv_struct_utimbuf=yes
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 emacs_cv_struct_utimbuf=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7280 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7281 if test $emacs_cv_struct_utimbuf = yes; then
7283 cat >>confdefs.h <<\_ACEOF
7284 #define HAVE_STRUCT_UTIMBUF 1
7285 _ACEOF
7289 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7290 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7291 if test "${ac_cv_type_signal+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <sys/types.h>
7301 #include <signal.h>
7304 main ()
7306 return *(signal (0, 0)) (0) == 1;
7308 return 0;
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_type_signal=int
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_type_signal=void
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7339 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7341 cat >>confdefs.h <<_ACEOF
7342 #define RETSIGTYPE $ac_cv_type_signal
7343 _ACEOF
7347 { echo "$as_me:$LINENO: checking for speed_t" >&5
7348 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7349 if test "${emacs_cv_speed_t+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <termios.h>
7360 main ()
7362 speed_t x = 1;
7364 return 0;
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7369 case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372 esac
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 emacs_cv_speed_t=yes
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 emacs_cv_speed_t=no
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7395 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7396 if test $emacs_cv_speed_t = yes; then
7398 cat >>confdefs.h <<\_ACEOF
7399 #define HAVE_SPEED_T 1
7400 _ACEOF
7404 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7405 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7406 if test "${emacs_cv_struct_timeval+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #ifdef TIME_WITH_SYS_TIME
7416 #include <sys/time.h>
7417 #include <time.h>
7418 #else
7419 #ifdef HAVE_SYS_TIME_H
7420 #include <sys/time.h>
7421 #else
7422 #include <time.h>
7423 #endif
7424 #endif
7426 main ()
7428 static struct timeval x; x.tv_sec = x.tv_usec;
7430 return 0;
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (ac_try="$ac_compile"
7435 case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 emacs_cv_struct_timeval=yes
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 emacs_cv_struct_timeval=no
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7461 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7462 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7463 if test $emacs_cv_struct_timeval = yes; then
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_TIMEVAL 1
7467 _ACEOF
7471 { echo "$as_me:$LINENO: checking for struct exception" >&5
7472 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7473 if test "${emacs_cv_struct_exception+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 #include <math.h>
7484 main ()
7486 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7488 return 0;
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7493 case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 emacs_cv_struct_exception=yes
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 emacs_cv_struct_exception=no
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7519 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7520 HAVE_EXCEPTION=$emacs_cv_struct_exception
7521 if test $emacs_cv_struct_exception != yes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define NO_MATHERR 1
7525 _ACEOF
7530 for ac_header in sys/socket.h
7532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_res=`eval echo '${'$as_ac_Header'}'`
7540 { echo "$as_me:$LINENO: result: $ac_res" >&5
7541 echo "${ECHO_T}$ac_res" >&6; }
7542 else
7543 # Is the header compilable?
7544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #include <$ac_header>
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (ac_try="$ac_compile"
7557 case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 ac_header_compiler=yes
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 ac_header_compiler=no
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7582 echo "${ECHO_T}$ac_header_compiler" >&6; }
7584 # Is the header present?
7585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <$ac_header>
7594 _ACEOF
7595 if { (ac_try="$ac_cpp conftest.$ac_ext"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } >/dev/null && {
7608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 }; then
7611 ac_header_preproc=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_header_preproc=no
7619 rm -f conftest.err conftest.$ac_ext
7620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7621 echo "${ECHO_T}$ac_header_preproc" >&6; }
7623 # So? What about this header?
7624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7625 yes:no: )
7626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7630 ac_header_preproc=yes
7632 no:yes:* )
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7647 esac
7648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 eval "$as_ac_Header=\$ac_header_preproc"
7655 ac_res=`eval echo '${'$as_ac_Header'}'`
7656 { echo "$as_me:$LINENO: result: $ac_res" >&5
7657 echo "${ECHO_T}$ac_res" >&6; }
7660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663 _ACEOF
7667 done
7670 for ac_header in net/if.h
7672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 #if HAVE_SYS_SOCKET_H
7686 #include <sys/socket.h>
7687 #endif
7689 #include <$ac_header>
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 eval "$as_ac_Header=yes"
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 eval "$as_ac_Header=no"
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 ac_res=`eval echo '${'$as_ac_Header'}'`
7719 { echo "$as_me:$LINENO: result: $ac_res" >&5
7720 echo "${ECHO_T}$ac_res" >&6; }
7721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7722 cat >>confdefs.h <<_ACEOF
7723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7724 _ACEOF
7728 done
7731 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7732 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7733 if test "${ac_cv_struct_tm+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 #include <sys/types.h>
7743 #include <time.h>
7746 main ()
7748 struct tm tm;
7749 int *p = &tm.tm_sec;
7750 return !p;
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7772 ac_cv_struct_tm=time.h
7773 else
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ac_cv_struct_tm=sys/time.h
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7783 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7784 if test $ac_cv_struct_tm = sys/time.h; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define TM_IN_SYS_TIME 1
7788 _ACEOF
7792 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7793 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7794 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <sys/types.h>
7804 #include <$ac_cv_struct_tm>
7808 main ()
7810 static struct tm ac_aggr;
7811 if (ac_aggr.tm_zone)
7812 return 0;
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_cv_member_struct_tm_tm_zone=yes
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <$ac_cv_struct_tm>
7850 main ()
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_zone)
7854 return 0;
7856 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_member_struct_tm_tm_zone=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 ac_cv_member_struct_tm_tm_zone=no
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_STRUCT_TM_TM_ZONE 1
7895 _ACEOF
7900 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_TM_ZONE 1
7904 _ACEOF
7906 else
7907 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7908 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7909 if test "${ac_cv_have_decl_tzname+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <time.h>
7921 main ()
7923 #ifndef tzname
7924 (void) tzname;
7925 #endif
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_have_decl_tzname=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_have_decl_tzname=no
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7959 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7960 if test $ac_cv_have_decl_tzname = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_DECL_TZNAME 1
7964 _ACEOF
7967 else
7968 cat >>confdefs.h <<_ACEOF
7969 #define HAVE_DECL_TZNAME 0
7970 _ACEOF
7976 { echo "$as_me:$LINENO: checking for tzname" >&5
7977 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7978 if test "${ac_cv_var_tzname+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <time.h>
7988 #if !HAVE_DECL_TZNAME
7989 extern char *tzname[];
7990 #endif
7993 main ()
7995 return tzname[0][0];
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8018 ac_cv_var_tzname=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_var_tzname=no
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 conftest$ac_exeext conftest.$ac_ext
8029 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8030 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8031 if test $ac_cv_var_tzname = yes; then
8033 cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_TZNAME 1
8035 _ACEOF
8040 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8041 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8042 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <time.h>
8054 main ()
8056 static struct tm ac_aggr;
8057 if (ac_aggr.tm_gmtoff)
8058 return 0;
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_gmtoff=yes
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <time.h>
8094 main ()
8096 static struct tm ac_aggr;
8097 if (sizeof ac_aggr.tm_gmtoff)
8098 return 0;
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_cv_member_struct_tm_tm_gmtoff=yes
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_member_struct_tm_tm_gmtoff=no
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8134 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8135 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8137 cat >>confdefs.h <<\_ACEOF
8138 #define HAVE_TM_GMTOFF 1
8139 _ACEOF
8143 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8144 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8145 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8157 #endif
8158 #if HAVE_NET_IF_H
8159 #include <net/if.h>
8160 #endif
8163 main ()
8165 static struct ifreq ac_aggr;
8166 if (ac_aggr.ifr_flags)
8167 return 0;
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (ac_try="$ac_compile"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8189 ac_cv_member_struct_ifreq_ifr_flags=yes
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #if HAVE_SYS_SOCKET_H
8202 #include <sys/socket.h>
8203 #endif
8204 #if HAVE_NET_IF_H
8205 #include <net/if.h>
8206 #endif
8209 main ()
8211 static struct ifreq ac_aggr;
8212 if (sizeof ac_aggr.ifr_flags)
8213 return 0;
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 ac_cv_member_struct_ifreq_ifr_flags=yes
8236 else
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_member_struct_ifreq_ifr_flags=no
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8249 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8250 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8252 cat >>confdefs.h <<_ACEOF
8253 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8254 _ACEOF
8258 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8259 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8260 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 $ac_includes_default
8270 #if HAVE_SYS_SOCKET_H
8271 #include <sys/socket.h>
8272 #endif
8273 #if HAVE_NET_IF_H
8274 #include <net/if.h>
8275 #endif
8278 main ()
8280 static struct ifreq ac_aggr;
8281 if (ac_aggr.ifr_hwaddr)
8282 return 0;
8284 return 0;
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.$ac_objext; then
8304 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 #if HAVE_SYS_SOCKET_H
8317 #include <sys/socket.h>
8318 #endif
8319 #if HAVE_NET_IF_H
8320 #include <net/if.h>
8321 #endif
8324 main ()
8326 static struct ifreq ac_aggr;
8327 if (sizeof ac_aggr.ifr_hwaddr)
8328 return 0;
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8364 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8365 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8369 _ACEOF
8373 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8374 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8375 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 #if HAVE_SYS_SOCKET_H
8386 #include <sys/socket.h>
8387 #endif
8388 #if HAVE_NET_IF_H
8389 #include <net/if.h>
8390 #endif
8393 main ()
8395 static struct ifreq ac_aggr;
8396 if (ac_aggr.ifr_netmask)
8397 return 0;
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_member_struct_ifreq_ifr_netmask=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 #if HAVE_SYS_SOCKET_H
8432 #include <sys/socket.h>
8433 #endif
8434 #if HAVE_NET_IF_H
8435 #include <net/if.h>
8436 #endif
8439 main ()
8441 static struct ifreq ac_aggr;
8442 if (sizeof ac_aggr.ifr_netmask)
8443 return 0;
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_netmask=yes
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_member_struct_ifreq_ifr_netmask=no
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8479 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8480 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8484 _ACEOF
8488 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8489 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8502 #endif
8503 #if HAVE_NET_IF_H
8504 #include <net/if.h>
8505 #endif
8508 main ()
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_broadaddr)
8512 return 0;
8514 return 0;
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8548 #endif
8549 #if HAVE_NET_IF_H
8550 #include <net/if.h>
8551 #endif
8554 main ()
8556 static struct ifreq ac_aggr;
8557 if (sizeof ac_aggr.ifr_broadaddr)
8558 return 0;
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8594 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8595 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8599 _ACEOF
8603 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8604 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8605 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8617 #endif
8618 #if HAVE_NET_IF_H
8619 #include <net/if.h>
8620 #endif
8623 main ()
8625 static struct ifreq ac_aggr;
8626 if (ac_aggr.ifr_addr)
8627 return 0;
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_addr=yes
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #if HAVE_SYS_SOCKET_H
8662 #include <sys/socket.h>
8663 #endif
8664 #if HAVE_NET_IF_H
8665 #include <net/if.h>
8666 #endif
8669 main ()
8671 static struct ifreq ac_aggr;
8672 if (sizeof ac_aggr.ifr_addr)
8673 return 0;
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8680 case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
8695 ac_cv_member_struct_ifreq_ifr_addr=yes
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_member_struct_ifreq_ifr_addr=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8709 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8710 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8714 _ACEOF
8721 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8722 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8723 if test "$ac_cv_prog_cc_c89" != no; then
8724 { echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6; }
8727 cat >>confdefs.h <<\_ACEOF
8728 #define PROTOTYPES 1
8729 _ACEOF
8732 cat >>confdefs.h <<\_ACEOF
8733 #define __PROTOTYPES 1
8734 _ACEOF
8736 else
8737 { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8741 { echo "$as_me:$LINENO: checking for working volatile" >&5
8742 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8743 if test "${ac_cv_c_volatile+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h. */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8754 main ()
8757 volatile int x;
8758 int * volatile y = (int *) 0;
8759 return !x && !y;
8761 return 0;
8763 _ACEOF
8764 rm -f conftest.$ac_objext
8765 if { (ac_try="$ac_compile"
8766 case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 ac_cv_c_volatile=yes
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_c_volatile=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8792 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8793 if test $ac_cv_c_volatile = no; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define volatile
8797 _ACEOF
8801 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8802 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8803 if test "${ac_cv_c_const+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8814 main ()
8816 /* FIXME: Include the comments suggested by Paul. */
8817 #ifndef __cplusplus
8818 /* Ultrix mips cc rejects this. */
8819 typedef int charset[2];
8820 const charset cs;
8821 /* SunOS 4.1.1 cc rejects this. */
8822 char const *const *pcpcc;
8823 char **ppc;
8824 /* NEC SVR4.0.2 mips cc rejects this. */
8825 struct point {int x, y;};
8826 static struct point const zero = {0,0};
8827 /* AIX XL C 1.02.0.0 rejects this.
8828 It does not let you subtract one const X* pointer from another in
8829 an arm of an if-expression whose if-part is not a constant
8830 expression */
8831 const char *g = "string";
8832 pcpcc = &g + (g ? g-g : 0);
8833 /* HPUX 7.0 cc rejects these. */
8834 ++pcpcc;
8835 ppc = (char**) pcpcc;
8836 pcpcc = (char const *const *) ppc;
8837 { /* SCO 3.2v4 cc rejects this. */
8838 char *t;
8839 char const *s = 0 ? (char *) 0 : (char const *) 0;
8841 *t++ = 0;
8842 if (s) return 0;
8844 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8845 int x[] = {25, 17};
8846 const int *foo = &x[0];
8847 ++foo;
8849 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8850 typedef const int *iptr;
8851 iptr p = 0;
8852 ++p;
8854 { /* AIX XL C 1.02.0.0 rejects this saying
8855 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8856 struct s { int j; const int *ap[3]; };
8857 struct s *b; b->j = 5;
8859 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8860 const int foo = 10;
8861 if (!foo) return 0;
8863 return !cs[0] && !zero.x;
8864 #endif
8867 return 0;
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (ac_try="$ac_compile"
8872 case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.$ac_objext; then
8887 ac_cv_c_const=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_cv_c_const=no
8895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8898 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8899 if test $ac_cv_c_const = no; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define const
8903 _ACEOF
8907 { echo "$as_me:$LINENO: checking for void * support" >&5
8908 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8909 if test "${emacs_cv_void_star+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8920 main ()
8922 void * foo;
8924 return 0;
8926 _ACEOF
8927 rm -f conftest.$ac_objext
8928 if { (ac_try="$ac_compile"
8929 case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8932 esac
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_compile") 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && {
8941 test -z "$ac_c_werror_flag" ||
8942 test ! -s conftest.err
8943 } && test -s conftest.$ac_objext; then
8944 emacs_cv_void_star=yes
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 emacs_cv_void_star=no
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8955 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8956 if test $emacs_cv_void_star = yes; then
8957 cat >>confdefs.h <<\_ACEOF
8958 #define POINTER_TYPE void
8959 _ACEOF
8961 else
8962 cat >>confdefs.h <<\_ACEOF
8963 #define POINTER_TYPE char
8964 _ACEOF
8972 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8974 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8975 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 cat >conftest.make <<\_ACEOF
8979 SHELL = /bin/sh
8980 all:
8981 @echo '@@@%%%=$(MAKE)=@@@%%%'
8982 _ACEOF
8983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8985 *@@@%%%=?*=@@@%%%*)
8986 eval ac_cv_prog_make_${ac_make}_set=yes;;
8988 eval ac_cv_prog_make_${ac_make}_set=no;;
8989 esac
8990 rm -f conftest.make
8992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8993 { echo "$as_me:$LINENO: result: yes" >&5
8994 echo "${ECHO_T}yes" >&6; }
8995 SET_MAKE=
8996 else
8997 { echo "$as_me:$LINENO: result: no" >&5
8998 echo "${ECHO_T}no" >&6; }
8999 SET_MAKE="MAKE=${MAKE-make}"
9003 { echo "$as_me:$LINENO: checking for long file names" >&5
9004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9005 if test "${ac_cv_sys_long_file_names+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008 ac_cv_sys_long_file_names=yes
9009 # Test for long file names in all the places we know might matter:
9010 # . the current directory, where building will happen
9011 # $prefix/lib where we will be installing things
9012 # $exec_prefix/lib likewise
9013 # $TMPDIR if set, where it might want to write temporary files
9014 # /tmp where it might want to write temporary files
9015 # /var/tmp likewise
9016 # /usr/tmp likewise
9017 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9018 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9019 # in the usual case where exec_prefix is '${prefix}'.
9020 case $ac_dir in #(
9021 . | /* | ?:[\\/]*) ;; #(
9022 *) continue;;
9023 esac
9024 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9025 ac_xdir=$ac_dir/cf$$
9026 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9027 ac_tf1=$ac_xdir/conftest9012345
9028 ac_tf2=$ac_xdir/conftest9012346
9029 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9030 ac_cv_sys_long_file_names=no
9031 rm -f -r "$ac_xdir" 2>/dev/null
9032 test $ac_cv_sys_long_file_names = no && break
9033 done
9035 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9036 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9037 if test $ac_cv_sys_long_file_names = yes; then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_LONG_FILE_NAMES 1
9041 _ACEOF
9046 #### Choose a window system.
9048 { echo "$as_me:$LINENO: checking for X" >&5
9049 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9052 # Check whether --with-x was given.
9053 if test "${with_x+set}" = set; then
9054 withval=$with_x;
9057 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9058 if test "x$with_x" = xno; then
9059 # The user explicitly disabled X.
9060 have_x=disabled
9061 else
9062 case $x_includes,$x_libraries in #(
9063 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9064 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9065 { (exit 1); exit 1; }; };; #(
9066 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 # One or both of the vars are not set, and there is no cached value.
9070 ac_x_includes=no ac_x_libraries=no
9071 rm -f -r conftest.dir
9072 if mkdir conftest.dir; then
9073 cd conftest.dir
9074 cat >Imakefile <<'_ACEOF'
9075 incroot:
9076 @echo incroot='${INCROOT}'
9077 usrlibdir:
9078 @echo usrlibdir='${USRLIBDIR}'
9079 libdir:
9080 @echo libdir='${LIBDIR}'
9081 _ACEOF
9082 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9083 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9084 for ac_var in incroot usrlibdir libdir; do
9085 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9086 done
9087 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9088 for ac_extension in a so sl; do
9089 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9090 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9091 ac_im_usrlibdir=$ac_im_libdir; break
9093 done
9094 # Screen out bogus values from the imake configuration. They are
9095 # bogus both because they are the default anyway, and because
9096 # using them would break gcc on systems where it needs fixed includes.
9097 case $ac_im_incroot in
9098 /usr/include) ac_x_includes= ;;
9099 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9100 esac
9101 case $ac_im_usrlibdir in
9102 /usr/lib | /lib) ;;
9103 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9104 esac
9106 cd ..
9107 rm -f -r conftest.dir
9110 # Standard set of common directories for X headers.
9111 # Check X11 before X11Rn because it is often a symlink to the current release.
9112 ac_x_header_dirs='
9113 /usr/X11/include
9114 /usr/X11R6/include
9115 /usr/X11R5/include
9116 /usr/X11R4/include
9118 /usr/include/X11
9119 /usr/include/X11R6
9120 /usr/include/X11R5
9121 /usr/include/X11R4
9123 /usr/local/X11/include
9124 /usr/local/X11R6/include
9125 /usr/local/X11R5/include
9126 /usr/local/X11R4/include
9128 /usr/local/include/X11
9129 /usr/local/include/X11R6
9130 /usr/local/include/X11R5
9131 /usr/local/include/X11R4
9133 /usr/X386/include
9134 /usr/x386/include
9135 /usr/XFree86/include/X11
9137 /usr/include
9138 /usr/local/include
9139 /usr/unsupported/include
9140 /usr/athena/include
9141 /usr/local/x11r5/include
9142 /usr/lpp/Xamples/include
9144 /usr/openwin/include
9145 /usr/openwin/share/include'
9147 if test "$ac_x_includes" = no; then
9148 # Guess where to find include files, by looking for Xlib.h.
9149 # First, try using that file with no special directory specified.
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 #include <X11/Xlib.h>
9157 _ACEOF
9158 if { (ac_try="$ac_cpp conftest.$ac_ext"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } >/dev/null && {
9171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 }; then
9174 # We can compile using X headers with no special include directory.
9175 ac_x_includes=
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 for ac_dir in $ac_x_header_dirs; do
9181 if test -r "$ac_dir/X11/Xlib.h"; then
9182 ac_x_includes=$ac_dir
9183 break
9185 done
9188 rm -f conftest.err conftest.$ac_ext
9189 fi # $ac_x_includes = no
9191 if test "$ac_x_libraries" = no; then
9192 # Check for the libraries.
9193 # See if we find them without any special options.
9194 # Don't add to $LIBS permanently.
9195 ac_save_LIBS=$LIBS
9196 LIBS="-lX11 $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 #include <X11/Xlib.h>
9205 main ()
9207 XrmInitialize ()
9209 return 0;
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (ac_try="$ac_link"
9214 case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_link") 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest$ac_exeext &&
9229 $as_test_x conftest$ac_exeext; then
9230 LIBS=$ac_save_LIBS
9231 # We can link X programs with no special library path.
9232 ac_x_libraries=
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 LIBS=$ac_save_LIBS
9238 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9240 # Don't even attempt the hair of trying to link an X program!
9241 for ac_extension in a so sl; do
9242 if test -r "$ac_dir/libX11.$ac_extension"; then
9243 ac_x_libraries=$ac_dir
9244 break 2
9246 done
9247 done
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251 conftest$ac_exeext conftest.$ac_ext
9252 fi # $ac_x_libraries = no
9254 case $ac_x_includes,$ac_x_libraries in #(
9255 no,* | *,no | *\'*)
9256 # Didn't find X, or a directory has "'" in its name.
9257 ac_cv_have_x="have_x=no";; #(
9259 # Record where we found X for the cache.
9260 ac_cv_have_x="have_x=yes\
9261 ac_x_includes='$ac_x_includes'\
9262 ac_x_libraries='$ac_x_libraries'"
9263 esac
9265 ;; #(
9266 *) have_x=yes;;
9267 esac
9268 eval "$ac_cv_have_x"
9269 fi # $with_x != no
9271 if test "$have_x" != yes; then
9272 { echo "$as_me:$LINENO: result: $have_x" >&5
9273 echo "${ECHO_T}$have_x" >&6; }
9274 no_x=yes
9275 else
9276 # If each of the values was on the command line, it overrides each guess.
9277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9279 # Update the cache value to reflect the command line values.
9280 ac_cv_have_x="have_x=yes\
9281 ac_x_includes='$x_includes'\
9282 ac_x_libraries='$x_libraries'"
9283 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9284 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9287 if test "$no_x" = yes; then
9288 window_system=none
9289 else
9290 window_system=x11
9293 if test "${x_libraries}" != NONE; then
9294 if test -n "${x_libraries}"; then
9295 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9296 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9298 x_default_search_path=""
9299 x_search_path=${x_libraries}
9300 if test -z "${x_search_path}"; then
9301 x_search_path=/usr/lib
9303 for x_library in `echo ${x_search_path}: | \
9304 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9305 x_search_path="\
9306 ${x_library}/X11/%L/%T/%N%C%S:\
9307 ${x_library}/X11/%l/%T/%N%C%S:\
9308 ${x_library}/X11/%T/%N%C%S:\
9309 ${x_library}/X11/%L/%T/%N%S:\
9310 ${x_library}/X11/%l/%T/%N%S:\
9311 ${x_library}/X11/%T/%N%S"
9312 if test x"${x_default_search_path}" = x; then
9313 x_default_search_path=${x_search_path}
9314 else
9315 x_default_search_path="${x_search_path}:${x_default_search_path}"
9317 done
9319 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9320 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9323 if test x"${x_includes}" = x; then
9324 bitmapdir=/usr/include/X11/bitmaps
9325 else
9326 # accumulate include directories that have X11 bitmap subdirectories
9327 bmd_acc="dummyval"
9328 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9329 if test -d "${bmd}/X11/bitmaps"; then
9330 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9332 if test -d "${bmd}/bitmaps"; then
9333 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9335 done
9336 if test ${bmd_acc} != "dummyval"; then
9337 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9341 HAVE_CARBON=no
9342 if test "${with_carbon}" != no; then
9343 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9344 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9345 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9346 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9350 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9351 else
9352 # Is the header compilable?
9353 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9354 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9362 #include <Carbon/Carbon.h>
9363 _ACEOF
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 ac_header_compiler=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_header_compiler=no
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 echo "${ECHO_T}$ac_header_compiler" >&6; }
9393 # Is the header present?
9394 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9395 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <Carbon/Carbon.h>
9403 _ACEOF
9404 if { (ac_try="$ac_cpp conftest.$ac_ext"
9405 case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null && {
9417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 }; then
9420 ac_header_preproc=yes
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_header_preproc=no
9428 rm -f conftest.err conftest.$ac_ext
9429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9430 echo "${ECHO_T}$ac_header_preproc" >&6; }
9432 # So? What about this header?
9433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9434 yes:no: )
9435 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9436 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9438 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9439 ac_header_preproc=yes
9441 no:yes:* )
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9449 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9453 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9456 esac
9457 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9458 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9459 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9464 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9465 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9468 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9469 HAVE_CARBON=yes
9474 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9475 if test "${with_carbon+set}" != set \
9476 && test "${carbon_appdir_x+set}" != set; then
9477 for var in with_x with_x_toolkit with_gtk with_xim \
9478 with_xpm with_jpeg with_tiff with_gif with_png; do
9479 if eval test \"\${$var+set}\" = set; then
9480 HAVE_CARBON=no
9481 break
9483 done
9486 if test "${HAVE_CARBON}" = yes; then
9487 window_system=mac
9490 case "${window_system}" in
9491 x11 )
9492 HAVE_X_WINDOWS=yes
9493 HAVE_X11=yes
9494 case "${with_x_toolkit}" in
9495 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9496 motif ) USE_X_TOOLKIT=MOTIF ;;
9497 gtk ) with_gtk=yes
9498 USE_X_TOOLKIT=none ;;
9499 no ) USE_X_TOOLKIT=none ;;
9500 * ) USE_X_TOOLKIT=maybe ;;
9501 esac
9503 mac | none )
9504 HAVE_X_WINDOWS=no
9505 HAVE_X11=no
9506 USE_X_TOOLKIT=none
9508 esac
9510 ### If we're using X11, we should use the X menu package.
9511 HAVE_MENUS=no
9512 case ${HAVE_X11} in
9513 yes ) HAVE_MENUS=yes ;;
9514 esac
9516 if test "${opsys}" = "hpux9"; then
9517 case "${x_libraries}" in
9518 *X11R4* )
9519 opsysfile="s/hpux9-x11r4.h"
9521 esac
9524 if test "${opsys}" = "hpux9shr"; then
9525 case "${x_libraries}" in
9526 *X11R4* )
9527 opsysfile="s/hpux9shxr4.h"
9529 esac
9532 ### Compute the unexec source name from the object name.
9533 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9535 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9536 # Assume not, until told otherwise.
9537 GNU_MALLOC=yes
9538 doug_lea_malloc=yes
9539 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9540 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9541 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9552 #define malloc_get_state innocuous_malloc_get_state
9554 /* System header to define __stub macros and hopefully few prototypes,
9555 which can conflict with char malloc_get_state (); below.
9556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557 <limits.h> exists even on freestanding compilers. */
9559 #ifdef __STDC__
9560 # include <limits.h>
9561 #else
9562 # include <assert.h>
9563 #endif
9565 #undef malloc_get_state
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char malloc_get_state ();
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9578 choke me
9579 #endif
9582 main ()
9584 return malloc_get_state ();
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext &&
9606 $as_test_x conftest$ac_exeext; then
9607 ac_cv_func_malloc_get_state=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_func_malloc_get_state=no
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616 conftest$ac_exeext conftest.$ac_ext
9618 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9619 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9620 if test $ac_cv_func_malloc_get_state = yes; then
9622 else
9623 doug_lea_malloc=no
9626 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9627 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9628 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9639 #define malloc_set_state innocuous_malloc_set_state
9641 /* System header to define __stub macros and hopefully few prototypes,
9642 which can conflict with char malloc_set_state (); below.
9643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9644 <limits.h> exists even on freestanding compilers. */
9646 #ifdef __STDC__
9647 # include <limits.h>
9648 #else
9649 # include <assert.h>
9650 #endif
9652 #undef malloc_set_state
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char malloc_set_state ();
9661 /* The GNU C library defines this for functions which it implements
9662 to always fail with ENOSYS. Some functions are actually named
9663 something starting with __ and the normal name is an alias. */
9664 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9665 choke me
9666 #endif
9669 main ()
9671 return malloc_set_state ();
9673 return 0;
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9678 case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_link") 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && {
9690 test -z "$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9692 } && test -s conftest$ac_exeext &&
9693 $as_test_x conftest$ac_exeext; then
9694 ac_cv_func_malloc_set_state=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_cv_func_malloc_set_state=no
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9705 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9706 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9707 if test $ac_cv_func_malloc_set_state = yes; then
9709 else
9710 doug_lea_malloc=no
9713 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9714 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9715 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 extern void (* __after_morecore_hook)();
9726 main ()
9728 __after_morecore_hook = 0
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 emacs_cv_var___after_morecore_hook=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 emacs_cv_var___after_morecore_hook=no
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9762 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9763 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9764 if test $emacs_cv_var___after_morecore_hook = no; then
9765 doug_lea_malloc=no
9767 if test "${system_malloc}" = "yes"; then
9768 GNU_MALLOC=no
9769 GNU_MALLOC_reason="
9770 (The GNU allocators don't work with this system configuration.)"
9772 if test "$doug_lea_malloc" = "yes" ; then
9773 if test "$GNU_MALLOC" = yes ; then
9774 GNU_MALLOC_reason="
9775 (Using Doug Lea's new malloc from the GNU C Library.)"
9778 cat >>confdefs.h <<\_ACEOF
9779 #define DOUG_LEA_MALLOC 1
9780 _ACEOF
9784 if test x"${REL_ALLOC}" = x; then
9785 REL_ALLOC=${GNU_MALLOC}
9791 for ac_header in stdlib.h unistd.h
9793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_res=`eval echo '${'$as_ac_Header'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9803 else
9804 # Is the header compilable?
9805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 #include <$ac_header>
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
9833 ac_header_compiler=yes
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_header_compiler=no
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9843 echo "${ECHO_T}$ac_header_compiler" >&6; }
9845 # Is the header present?
9846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <$ac_header>
9855 _ACEOF
9856 if { (ac_try="$ac_cpp conftest.$ac_ext"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev/null && {
9869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 }; then
9872 ac_header_preproc=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_header_preproc=no
9880 rm -f conftest.err conftest.$ac_ext
9881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9882 echo "${ECHO_T}$ac_header_preproc" >&6; }
9884 # So? What about this header?
9885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9886 yes:no: )
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9891 ac_header_preproc=yes
9893 no:yes:* )
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9908 esac
9909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 eval "$as_ac_Header=\$ac_header_preproc"
9916 ac_res=`eval echo '${'$as_ac_Header'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918 echo "${ECHO_T}$ac_res" >&6; }
9921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9922 cat >>confdefs.h <<_ACEOF
9923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9924 _ACEOF
9928 done
9931 for ac_func in getpagesize
9933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9947 #define $ac_func innocuous_$ac_func
9949 /* System header to define __stub macros and hopefully few prototypes,
9950 which can conflict with char $ac_func (); below.
9951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9952 <limits.h> exists even on freestanding compilers. */
9954 #ifdef __STDC__
9955 # include <limits.h>
9956 #else
9957 # include <assert.h>
9958 #endif
9960 #undef $ac_func
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char $ac_func ();
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined __stub_$ac_func || defined __stub___$ac_func
9973 choke me
9974 #endif
9977 main ()
9979 return $ac_func ();
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 eval "$as_ac_var=yes"
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 eval "$as_ac_var=no"
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10013 ac_res=`eval echo '${'$as_ac_var'}'`
10014 { echo "$as_me:$LINENO: result: $ac_res" >&5
10015 echo "${ECHO_T}$ac_res" >&6; }
10016 if test `eval echo '${'$as_ac_var'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10019 _ACEOF
10022 done
10024 { echo "$as_me:$LINENO: checking for working mmap" >&5
10025 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_func_mmap_fixed_mapped=no
10031 else
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10039 /* malloc might have been renamed as rpl_malloc. */
10040 #undef malloc
10042 /* Thanks to Mike Haertel and Jim Avera for this test.
10043 Here is a matrix of mmap possibilities:
10044 mmap private not fixed
10045 mmap private fixed at somewhere currently unmapped
10046 mmap private fixed at somewhere already mapped
10047 mmap shared not fixed
10048 mmap shared fixed at somewhere currently unmapped
10049 mmap shared fixed at somewhere already mapped
10050 For private mappings, we should verify that changes cannot be read()
10051 back from the file, nor mmap's back from the file at a different
10052 address. (There have been systems where private was not correctly
10053 implemented like the infamous i386 svr4.0, and systems where the
10054 VM page cache was not coherent with the file system buffer cache
10055 like early versions of FreeBSD and possibly contemporary NetBSD.)
10056 For shared mappings, we should conversely verify that changes get
10057 propagated back to all the places they're supposed to be.
10059 Grep wants private fixed already mapped.
10060 The main things grep needs to know about mmap are:
10061 * does it exist and is it safe to write into the mmap'd area
10062 * how to use it (BSD variants) */
10064 #include <fcntl.h>
10065 #include <sys/mman.h>
10067 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10068 char *malloc ();
10069 #endif
10071 /* This mess was copied from the GNU getpagesize.h. */
10072 #ifndef HAVE_GETPAGESIZE
10073 /* Assume that all systems that can run configure have sys/param.h. */
10074 # ifndef HAVE_SYS_PARAM_H
10075 # define HAVE_SYS_PARAM_H 1
10076 # endif
10078 # ifdef _SC_PAGESIZE
10079 # define getpagesize() sysconf(_SC_PAGESIZE)
10080 # else /* no _SC_PAGESIZE */
10081 # ifdef HAVE_SYS_PARAM_H
10082 # include <sys/param.h>
10083 # ifdef EXEC_PAGESIZE
10084 # define getpagesize() EXEC_PAGESIZE
10085 # else /* no EXEC_PAGESIZE */
10086 # ifdef NBPG
10087 # define getpagesize() NBPG * CLSIZE
10088 # ifndef CLSIZE
10089 # define CLSIZE 1
10090 # endif /* no CLSIZE */
10091 # else /* no NBPG */
10092 # ifdef NBPC
10093 # define getpagesize() NBPC
10094 # else /* no NBPC */
10095 # ifdef PAGESIZE
10096 # define getpagesize() PAGESIZE
10097 # endif /* PAGESIZE */
10098 # endif /* no NBPC */
10099 # endif /* no NBPG */
10100 # endif /* no EXEC_PAGESIZE */
10101 # else /* no HAVE_SYS_PARAM_H */
10102 # define getpagesize() 8192 /* punt totally */
10103 # endif /* no HAVE_SYS_PARAM_H */
10104 # endif /* no _SC_PAGESIZE */
10106 #endif /* no HAVE_GETPAGESIZE */
10109 main ()
10111 char *data, *data2, *data3;
10112 int i, pagesize;
10113 int fd;
10115 pagesize = getpagesize ();
10117 /* First, make a file with some known garbage in it. */
10118 data = (char *) malloc (pagesize);
10119 if (!data)
10120 return 1;
10121 for (i = 0; i < pagesize; ++i)
10122 *(data + i) = rand ();
10123 umask (0);
10124 fd = creat ("conftest.mmap", 0600);
10125 if (fd < 0)
10126 return 1;
10127 if (write (fd, data, pagesize) != pagesize)
10128 return 1;
10129 close (fd);
10131 /* Next, try to mmap the file at a fixed address which already has
10132 something else allocated at it. If we can, also make sure that
10133 we see the same garbage. */
10134 fd = open ("conftest.mmap", O_RDWR);
10135 if (fd < 0)
10136 return 1;
10137 data2 = (char *) malloc (2 * pagesize);
10138 if (!data2)
10139 return 1;
10140 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10141 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10143 return 1;
10144 for (i = 0; i < pagesize; ++i)
10145 if (*(data + i) != *(data2 + i))
10146 return 1;
10148 /* Finally, make sure that changes to the mapped area do not
10149 percolate back to the file as seen by read(). (This is a bug on
10150 some variants of i386 svr4.0.) */
10151 for (i = 0; i < pagesize; ++i)
10152 *(data2 + i) = *(data2 + i) + 1;
10153 data3 = (char *) malloc (pagesize);
10154 if (!data3)
10155 return 1;
10156 if (read (fd, data3, pagesize) != pagesize)
10157 return 1;
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data3 + i))
10160 return 1;
10161 close (fd);
10162 return 0;
10164 _ACEOF
10165 rm -f conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10176 { (case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_try") 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_func_mmap_fixed_mapped=yes
10186 else
10187 echo "$as_me: program exited with status $ac_status" >&5
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ( exit $ac_status )
10192 ac_cv_func_mmap_fixed_mapped=no
10194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10200 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10201 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_MMAP 1
10205 _ACEOF
10208 rm -f conftest.mmap
10210 if test $use_mmap_for_buffers = yes; then
10211 REL_ALLOC=no
10214 LIBS="$libsrc_libs $LIBS"
10217 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10218 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10219 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 ac_check_lib_save_LIBS=$LIBS
10223 LIBS="-ldnet $LIBS"
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char dnet_ntoa ();
10239 main ()
10241 return dnet_ntoa ();
10243 return 0;
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (ac_try="$ac_link"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_link") 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest$ac_exeext &&
10263 $as_test_x conftest$ac_exeext; then
10264 ac_cv_lib_dnet_dnet_ntoa=yes
10265 else
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_lib_dnet_dnet_ntoa=no
10272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10278 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define HAVE_LIBDNET 1
10281 _ACEOF
10283 LIBS="-ldnet $LIBS"
10288 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10289 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10290 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lXbsd $LIBS"
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10304 main ()
10306 return main ();
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (ac_try="$ac_link"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest$ac_exeext &&
10328 $as_test_x conftest$ac_exeext; then
10329 ac_cv_lib_Xbsd_main=yes
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_Xbsd_main=no
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$ac_check_lib_save_LIBS
10341 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10342 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10343 if test $ac_cv_lib_Xbsd_main = yes; then
10344 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10349 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10350 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10351 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lpthreads $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char cma_open ();
10371 main ()
10373 return cma_open ();
10375 return 0;
10377 _ACEOF
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (ac_try="$ac_link"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_link") 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest$ac_exeext &&
10395 $as_test_x conftest$ac_exeext; then
10396 ac_cv_lib_pthreads_cma_open=yes
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_cv_lib_pthreads_cma_open=no
10404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_lib_save_LIBS
10408 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10409 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10410 if test $ac_cv_lib_pthreads_cma_open = yes; then
10411 cat >>confdefs.h <<_ACEOF
10412 #define HAVE_LIBPTHREADS 1
10413 _ACEOF
10415 LIBS="-lpthreads $LIBS"
10420 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10421 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10422 if test -d /usr/X386/include; then
10423 HAVE_XFREE386=yes
10424 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10425 else
10426 HAVE_XFREE386=no
10428 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10429 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10432 case ${host_os} in
10433 aix*)
10434 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10435 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10436 if test "${gdb_cv_bigtoc+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10440 case $GCC in
10441 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10442 *) gdb_cv_bigtoc=-bbigtoc ;;
10443 esac
10445 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10454 main ()
10456 int i;
10458 return 0;
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (ac_try="$ac_link"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_link") 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && {
10475 test -z "$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10477 } && test -s conftest$ac_exeext &&
10478 $as_test_x conftest$ac_exeext; then
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 gdb_cv_bigtoc=
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488 conftest$ac_exeext conftest.$ac_ext
10491 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10492 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10494 esac
10496 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10497 # used for the tests that follow. We set them back to REAL_CFLAGS and
10498 # REAL_CPPFLAGS later on.
10500 REAL_CPPFLAGS="$CPPFLAGS"
10502 if test "${HAVE_X11}" = "yes"; then
10503 DEFS="$C_SWITCH_X_SITE $DEFS"
10504 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10505 LIBS="$LIBX $LIBS"
10506 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10507 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10509 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10510 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10511 # but it's more convenient here to set LD_RUN_PATH
10512 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10513 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10514 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10515 export LD_RUN_PATH
10518 if test "${opsys}" = "gnu-linux"; then
10519 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10520 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10529 main ()
10531 XOpenDisplay ("foo");
10533 return 0;
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest$ac_exeext &&
10553 $as_test_x conftest$ac_exeext; then
10554 xlinux_first_failure=no
10555 else
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 xlinux_first_failure=yes
10562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563 conftest$ac_exeext conftest.$ac_ext
10564 if test "${xlinux_first_failure}" = "yes"; then
10565 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10566 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10567 OLD_CPPFLAGS="$CPPFLAGS"
10568 OLD_LIBS="$LIBS"
10569 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10570 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10571 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10572 LIBS="$LIBS -b i486-linuxaout"
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10581 main ()
10583 XOpenDisplay ("foo");
10585 return 0;
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (ac_try="$ac_link"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_link") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest$ac_exeext &&
10605 $as_test_x conftest$ac_exeext; then
10606 xlinux_second_failure=no
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 xlinux_second_failure=yes
10614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10615 conftest$ac_exeext conftest.$ac_ext
10616 if test "${xlinux_second_failure}" = "yes"; then
10617 # If we get the same failure with -b, there is no use adding -b.
10618 # So take it out. This plays safe.
10619 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10620 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10621 CPPFLAGS="$OLD_CPPFLAGS"
10622 LIBS="$OLD_LIBS"
10623 { echo "$as_me:$LINENO: result: no" >&5
10624 echo "${ECHO_T}no" >&6; }
10625 else
10626 { echo "$as_me:$LINENO: result: yes" >&5
10627 echo "${ECHO_T}yes" >&6; }
10629 else
10630 { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10635 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10636 # header files included from there.
10637 { echo "$as_me:$LINENO: checking for Xkb" >&5
10638 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #include <X11/Xlib.h>
10646 #include <X11/XKBlib.h>
10648 main ()
10650 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10652 return 0;
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_link") 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest$ac_exeext &&
10672 $as_test_x conftest$ac_exeext; then
10673 emacs_xkb=yes
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 emacs_xkb=no
10681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10682 conftest$ac_exeext conftest.$ac_ext
10683 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10684 echo "${ECHO_T}$emacs_xkb" >&6; }
10685 if test $emacs_xkb = yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_XKBGETKEYBOARD 1
10689 _ACEOF
10697 for ac_func in XrmSetDatabase XScreenResourceString \
10698 XScreenNumberOfScreen XSetWMProtocols
10700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 cat >conftest.$ac_ext <<_ACEOF
10707 /* confdefs.h. */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10714 #define $ac_func innocuous_$ac_func
10716 /* System header to define __stub macros and hopefully few prototypes,
10717 which can conflict with char $ac_func (); below.
10718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10719 <limits.h> exists even on freestanding compilers. */
10721 #ifdef __STDC__
10722 # include <limits.h>
10723 #else
10724 # include <assert.h>
10725 #endif
10727 #undef $ac_func
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char $ac_func ();
10736 /* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739 #if defined __stub_$ac_func || defined __stub___$ac_func
10740 choke me
10741 #endif
10744 main ()
10746 return $ac_func ();
10748 return 0;
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext &&
10768 $as_test_x conftest$ac_exeext; then
10769 eval "$as_ac_var=yes"
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 eval "$as_ac_var=no"
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 ac_res=`eval echo '${'$as_ac_var'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_var'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10786 _ACEOF
10789 done
10793 if test "${window_system}" = "x11"; then
10794 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10795 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10796 if test "${emacs_cv_x11_version_6+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <X11/Xlib.h>
10807 main ()
10809 #if XlibSpecificationRelease < 6
10810 fail;
10811 #endif
10814 return 0;
10816 _ACEOF
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && {
10831 test -z "$ac_c_werror_flag" ||
10832 test ! -s conftest.err
10833 } && test -s conftest$ac_exeext &&
10834 $as_test_x conftest$ac_exeext; then
10835 emacs_cv_x11_version_6=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 emacs_cv_x11_version_6=no
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10847 if test $emacs_cv_x11_version_6 = yes; then
10848 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10849 echo "${ECHO_T}6 or newer" >&6; }
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_X11R6 1
10853 _ACEOF
10855 else
10856 { echo "$as_me:$LINENO: result: before 6" >&5
10857 echo "${ECHO_T}before 6" >&6; }
10861 if test "${window_system}" = "x11"; then
10862 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10863 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10864 if test "${emacs_cv_x11_version_5+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <X11/Xlib.h>
10875 main ()
10877 #if XlibSpecificationRelease < 5
10878 fail;
10879 #endif
10882 return 0;
10884 _ACEOF
10885 rm -f conftest.$ac_objext conftest$ac_exeext
10886 if { (ac_try="$ac_link"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_link") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } && {
10899 test -z "$ac_c_werror_flag" ||
10900 test ! -s conftest.err
10901 } && test -s conftest$ac_exeext &&
10902 $as_test_x conftest$ac_exeext; then
10903 emacs_cv_x11_version_5=yes
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 emacs_cv_x11_version_5=no
10911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10912 conftest$ac_exeext conftest.$ac_ext
10915 if test $emacs_cv_x11_version_5 = yes; then
10916 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10917 echo "${ECHO_T}5 or newer" >&6; }
10918 HAVE_X11R5=yes
10920 cat >>confdefs.h <<\_ACEOF
10921 #define HAVE_X11R5 1
10922 _ACEOF
10924 else
10925 HAVE_X11R5=no
10926 { echo "$as_me:$LINENO: result: before 5" >&5
10927 echo "${ECHO_T}before 5" >&6; }
10931 HAVE_GTK=no
10932 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10933 USE_X_TOOLKIT=none
10935 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10936 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10937 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10938 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10939 { (exit 1); exit 1; }; };
10941 GLIB_REQUIRED=2.4
10942 GTK_REQUIRED=2.4
10943 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10945 if test "X${with_pkg_config_prog}" != X; then
10946 PKG_CONFIG="${with_pkg_config_prog}"
10949 succeeded=no
10951 if test -z "$PKG_CONFIG"; then
10952 # Extract the first word of "pkg-config", so it can be a program name with args.
10953 set dummy pkg-config; ac_word=$2
10954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959 case $PKG_CONFIG in
10960 [\\/]* | ?:[\\/]*)
10961 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 break 2
10975 done
10976 done
10977 IFS=$as_save_IFS
10979 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10981 esac
10983 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10984 if test -n "$PKG_CONFIG"; then
10985 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10986 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10987 else
10988 { echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10996 { { echo "$as_me:$LINENO: error:
10997 *** 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
10998 echo "$as_me: error:
10999 *** 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;}
11000 { (exit 1); exit 1; }; }
11001 else
11002 PKG_CONFIG_MIN_VERSION=0.9.0
11003 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11004 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11005 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11007 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11008 { echo "$as_me:$LINENO: result: yes" >&5
11009 echo "${ECHO_T}yes" >&6; }
11010 succeeded=yes
11012 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11013 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11014 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11015 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11016 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11018 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11019 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11020 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11021 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11022 echo "${ECHO_T}$GTK_LIBS" >&6; }
11023 else
11024 { echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6; }
11026 GTK_CFLAGS=""
11027 GTK_LIBS=""
11028 ## If we have a custom action on failure, don't print errors, but
11029 ## do set a variable so people can do so.
11030 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11031 echo $GTK_PKG_ERRORS
11036 else
11037 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11038 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11042 if test $succeeded = yes; then
11044 else
11045 { { 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
11046 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;}
11047 { (exit 1); exit 1; }; }
11052 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11053 CFLAGS="$CFLAGS $GTK_CFLAGS"
11054 LIBS="$GTK_LIBS $LIBS"
11055 GTK_COMPILES=no
11057 for ac_func in gtk_main
11059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11073 #define $ac_func innocuous_$ac_func
11075 /* System header to define __stub macros and hopefully few prototypes,
11076 which can conflict with char $ac_func (); below.
11077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11078 <limits.h> exists even on freestanding compilers. */
11080 #ifdef __STDC__
11081 # include <limits.h>
11082 #else
11083 # include <assert.h>
11084 #endif
11086 #undef $ac_func
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char $ac_func ();
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined __stub_$ac_func || defined __stub___$ac_func
11099 choke me
11100 #endif
11103 main ()
11105 return $ac_func ();
11107 return 0;
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest$ac_exeext &&
11127 $as_test_x conftest$ac_exeext; then
11128 eval "$as_ac_var=yes"
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 eval "$as_ac_var=no"
11136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 conftest$ac_exeext conftest.$ac_ext
11139 ac_res=`eval echo '${'$as_ac_var'}'`
11140 { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11142 if test `eval echo '${'$as_ac_var'}'` = yes; then
11143 cat >>confdefs.h <<_ACEOF
11144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11145 _ACEOF
11146 GTK_COMPILES=yes
11148 done
11150 if test "${GTK_COMPILES}" != "yes"; then
11151 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11152 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11153 { (exit 1); exit 1; }; };
11156 HAVE_GTK=yes
11158 cat >>confdefs.h <<\_ACEOF
11159 #define HAVE_GTK 1
11160 _ACEOF
11162 USE_X_TOOLKIT=none
11164 if test "$with_toolkit_scroll_bars" != no; then
11165 with_toolkit_scroll_bars=yes
11168 HAVE_GTK_MULTIDISPLAY=no
11170 for ac_func in gdk_display_open
11172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11193 #ifdef __STDC__
11194 # include <limits.h>
11195 #else
11196 # include <assert.h>
11197 #endif
11199 #undef $ac_func
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char $ac_func ();
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11212 choke me
11213 #endif
11216 main ()
11218 return $ac_func ();
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 eval "$as_ac_var=no"
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259 HAVE_GTK_MULTIDISPLAY=yes
11261 done
11263 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_GTK_MULTIDISPLAY 1
11267 _ACEOF
11270 HAVE_GTK_FILE_SELECTION=no
11272 for ac_func in gtk_file_selection_new
11274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11301 #undef $ac_func
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char $ac_func ();
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11314 choke me
11315 #endif
11318 main ()
11320 return $ac_func ();
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest$ac_exeext &&
11342 $as_test_x conftest$ac_exeext; then
11343 eval "$as_ac_var=yes"
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 eval "$as_ac_var=no"
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11354 ac_res=`eval echo '${'$as_ac_var'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 if test `eval echo '${'$as_ac_var'}'` = yes; then
11358 cat >>confdefs.h <<_ACEOF
11359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11360 _ACEOF
11361 HAVE_GTK_FILE_SELECTION=yes
11363 done
11366 HAVE_GTK_FILE_CHOOSER=no
11368 for ac_func in gtk_file_chooser_dialog_new
11370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11391 #ifdef __STDC__
11392 # include <limits.h>
11393 #else
11394 # include <assert.h>
11395 #endif
11397 #undef $ac_func
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char $ac_func ();
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined __stub_$ac_func || defined __stub___$ac_func
11410 choke me
11411 #endif
11414 main ()
11416 return $ac_func ();
11418 return 0;
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (ac_try="$ac_link"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest$ac_exeext &&
11438 $as_test_x conftest$ac_exeext; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 eval "$as_ac_var=no"
11447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11448 conftest$ac_exeext conftest.$ac_ext
11450 ac_res=`eval echo '${'$as_ac_var'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11456 _ACEOF
11457 HAVE_GTK_FILE_CHOOSER=yes
11459 done
11462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_GTK_FILE_BOTH 1
11467 _ACEOF
11471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 HAVE_GTK_AND_PTHREAD=no
11474 for ac_header in pthread.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486 else
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_header_compiler=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_compiler=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11538 _ACEOF
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 }; then
11555 ac_header_preproc=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11569 yes:no: )
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11576 no:yes:* )
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11591 esac
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 eval "$as_ac_Header=\$ac_header_preproc"
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 _ACEOF
11611 done
11613 if test "$ac_cv_header_pthread_h"; then
11614 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11615 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11616 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-lpthread $LIBS"
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char pthread_self ();
11636 main ()
11638 return pthread_self ();
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest$ac_exeext &&
11660 $as_test_x conftest$ac_exeext; then
11661 ac_cv_lib_pthread_pthread_self=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_lib_pthread_pthread_self=no
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11675 if test $ac_cv_lib_pthread_pthread_self = yes; then
11676 HAVE_GTK_AND_PTHREAD=yes
11680 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11681 GTK_LIBS="$GTK_LIBS -lpthread"
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_GTK_AND_PTHREAD 1
11685 _ACEOF
11691 ### Link with -lXft if available to work around a bug.
11692 HAVE_XFT=maybe
11693 if test "${HAVE_GTK}" = "yes"; then
11694 if test "X${with_pkg_config_prog}" != X; then
11695 PKG_CONFIG="${with_pkg_config_prog}"
11699 succeeded=no
11701 if test -z "$PKG_CONFIG"; then
11702 # Extract the first word of "pkg-config", so it can be a program name with args.
11703 set dummy pkg-config; ac_word=$2
11704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11706 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 case $PKG_CONFIG in
11710 [\\/]* | ?:[\\/]*)
11711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11725 done
11726 done
11727 IFS=$as_save_IFS
11729 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11731 esac
11733 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11734 if test -n "$PKG_CONFIG"; then
11735 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11736 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11737 else
11738 { echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6; }
11745 if test "$PKG_CONFIG" = "no" ; then
11746 HAVE_XFT=no
11747 else
11748 PKG_CONFIG_MIN_VERSION=0.9.0
11749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11750 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11751 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11753 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11754 { echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6; }
11756 succeeded=yes
11758 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11759 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11760 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11762 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11764 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11765 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11766 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11767 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11768 echo "${ECHO_T}$XFT_LIBS" >&6; }
11769 else
11770 { echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6; }
11772 XFT_CFLAGS=""
11773 XFT_LIBS=""
11774 ## If we have a custom action on failure, don't print errors, but
11775 ## do set a variable so people can do so.
11776 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11782 else
11783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11788 if test $succeeded = yes; then
11790 else
11791 HAVE_XFT=no
11794 if test "$HAVE_XFT" != no; then
11795 OLD_CFLAGS="$CPPFLAGS"
11796 OLD_CPPFLAGS="$CFLAGS"
11797 OLD_LIBS="$LIBS"
11798 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11799 CFLAGS="$CFLAGS $XFT_CFLAGS"
11800 LIBS="$XFT_LIBS $LIBS"
11801 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11802 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11803 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11804 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11808 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11809 else
11810 # Is the header compilable?
11811 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11812 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 $ac_includes_default
11820 #include <X11/Xft/Xft.h>
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (ac_try="$ac_compile"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_compile") 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && {
11836 test -z "$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 } && test -s conftest.$ac_objext; then
11839 ac_header_compiler=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_header_compiler=no
11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849 echo "${ECHO_T}$ac_header_compiler" >&6; }
11851 # Is the header present?
11852 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11853 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <X11/Xft/Xft.h>
11861 _ACEOF
11862 if { (ac_try="$ac_cpp conftest.$ac_ext"
11863 case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } >/dev/null && {
11875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 }; then
11878 ac_header_preproc=yes
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_preproc=no
11886 rm -f conftest.err conftest.$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11890 # So? What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11892 yes:no: )
11893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11897 ac_header_preproc=yes
11899 no:yes:* )
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11914 esac
11915 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11916 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11917 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11922 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11923 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11926 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11927 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11928 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11929 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lXft $XFT_LIBS $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char XftFontOpen ();
11949 main ()
11951 return XftFontOpen ();
11953 return 0;
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest$ac_exeext &&
11973 $as_test_x conftest$ac_exeext; then
11974 ac_cv_lib_Xft_XftFontOpen=yes
11975 else
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_cv_lib_Xft_XftFontOpen=no
11982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11986 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11987 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11988 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11989 HAVE_XFT=yes
11996 if test "${HAVE_XFT}" = "yes"; then
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_XFT 1
12000 _ACEOF
12003 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12004 else
12005 CFLAGS="$OLD_CPPFLAGS"
12006 CFLAGS="$OLD_CFLAGS"
12007 LIBS="$OLD_LIBS"
12012 if test x"${USE_X_TOOLKIT}" = xmaybe; then
12013 if test x"${HAVE_X11R5}" = xyes; then
12014 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12015 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12016 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h. */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12027 #include <X11/Xaw/Simple.h>
12029 main ()
12033 return 0;
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (ac_try="$ac_link"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_link") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest$ac_exeext &&
12053 $as_test_x conftest$ac_exeext; then
12054 emacs_cv_x11_version_5_with_xaw=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 emacs_cv_x11_version_5_with_xaw=no
12062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12063 conftest$ac_exeext conftest.$ac_ext
12066 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12067 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12068 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12069 USE_X_TOOLKIT=LUCID
12070 else
12071 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12072 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12073 USE_X_TOOLKIT=none
12075 else
12076 USE_X_TOOLKIT=none
12080 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12082 if test "${USE_X_TOOLKIT}" != "none"; then
12083 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12084 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12085 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <X11/Intrinsic.h>
12096 main ()
12098 #if XtSpecificationRelease < 6
12099 fail;
12100 #endif
12103 return 0;
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest$ac_exeext &&
12123 $as_test_x conftest$ac_exeext; then
12124 emacs_cv_x11_toolkit_version_6=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 emacs_cv_x11_toolkit_version_6=no
12132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133 conftest$ac_exeext conftest.$ac_ext
12136 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12137 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12138 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12139 echo "${ECHO_T}6 or newer" >&6; }
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_X11XTR6 1
12143 _ACEOF
12145 else
12146 { echo "$as_me:$LINENO: result: before 6" >&5
12147 echo "${ECHO_T}before 6" >&6; }
12150 OLDLIBS="$LIBS"
12151 if test x$HAVE_X11XTR6 = xyes; then
12152 LIBS="-lXt -lSM -lICE $LIBS"
12153 else
12154 LIBS="-lXt $LIBS"
12157 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12158 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12159 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lXmu $LIBS"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char XmuConvertStandardSelection ();
12179 main ()
12181 return XmuConvertStandardSelection ();
12183 return 0;
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } && {
12200 test -z "$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12202 } && test -s conftest$ac_exeext &&
12203 $as_test_x conftest$ac_exeext; then
12204 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12217 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12218 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define HAVE_LIBXMU 1
12221 _ACEOF
12223 LIBS="-lXmu $LIBS"
12227 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12230 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12231 if test "${HAVE_X11}" = "yes"; then
12232 if test "${USE_X_TOOLKIT}" != "none"; then
12234 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12235 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12236 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lXext $LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char XShapeQueryExtension ();
12256 main ()
12258 return XShapeQueryExtension ();
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (ac_try="$ac_link"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_link") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest$ac_exeext &&
12280 $as_test_x conftest$ac_exeext; then
12281 ac_cv_lib_Xext_XShapeQueryExtension=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_cv_lib_Xext_XShapeQueryExtension=no
12289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12294 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12295 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define HAVE_LIBXEXT 1
12298 _ACEOF
12300 LIBS="-lXext $LIBS"
12307 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12308 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12309 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12310 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 #include <Xm/Xm.h>
12321 main ()
12323 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12324 int x = 5;
12325 #else
12326 Motif version prior to 2.1.
12327 #endif
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext
12333 if { (ac_try="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.$ac_objext; then
12349 emacs_cv_motif_version_2_1=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 emacs_cv_motif_version_2_1=no
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12360 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12361 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12362 if test $emacs_cv_motif_version_2_1 = yes; then
12363 HAVE_LIBXP=no
12365 cat >>confdefs.h <<\_ACEOF
12366 #define HAVE_MOTIF_2_1 1
12367 _ACEOF
12369 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12370 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12371 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374 ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-lXp $LIBS"
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char XpCreateContext ();
12391 main ()
12393 return XpCreateContext ();
12395 return 0;
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest$ac_exeext &&
12415 $as_test_x conftest$ac_exeext; then
12416 ac_cv_lib_Xp_XpCreateContext=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 ac_cv_lib_Xp_XpCreateContext=no
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12429 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12430 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12431 HAVE_LIBXP=yes
12434 if test ${HAVE_LIBXP} = yes; then
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_LIBXP 1
12438 _ACEOF
12441 else
12442 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12443 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12444 if test "${emacs_cv_lesstif+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 # We put this in CFLAGS temporarily to precede other -I options
12448 # that might be in CFLAGS temporarily.
12449 # We put this in CPPFLAGS where it precedes the other -I options.
12450 OLD_CPPFLAGS=$CPPFLAGS
12451 OLD_CFLAGS=$CFLAGS
12452 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12453 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h. */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12462 main ()
12464 int x = 5;
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext
12470 if { (ac_try="$ac_compile"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_compile") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest.$ac_objext; then
12486 emacs_cv_lesstif=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12491 emacs_cv_lesstif=no
12494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12497 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12498 if test $emacs_cv_lesstif = yes; then
12499 # Make sure this -I option remains in CPPFLAGS after it is set
12500 # back to REAL_CPPFLAGS.
12501 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12502 # have those other -I options anyway. Ultimately, having this
12503 # directory ultimately in CPPFLAGS will be enough.
12504 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12505 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12506 else
12507 CFLAGS=$OLD_CFLAGS
12508 CPPFLAGS=$OLD_CPPFLAGS
12513 ### Is -lXaw3d available?
12514 HAVE_XAW3D=no
12515 if test "${HAVE_X11}" = "yes"; then
12516 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12517 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12518 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12519 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #include <X11/Xaw3d/Scrollbar.h>
12529 _ACEOF
12530 if { (ac_try="$ac_cpp conftest.$ac_ext"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } >/dev/null && {
12543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 }; then
12546 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12547 else
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12554 rm -f conftest.err conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12557 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12558 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12559 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12560 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lXaw3d $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char XawScrollbarSetThumb ();
12581 main ()
12583 return XawScrollbarSetThumb ();
12585 return 0;
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest$ac_exeext &&
12605 $as_test_x conftest$ac_exeext; then
12606 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12618 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12619 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12620 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12621 HAVE_XAW3D=yes
12627 if test "${HAVE_XAW3D}" = "yes"; then
12629 cat >>confdefs.h <<\_ACEOF
12630 #define HAVE_XAW3D 1
12631 _ACEOF
12639 USE_TOOLKIT_SCROLL_BARS=no
12640 if test "${with_toolkit_scroll_bars}" != "no"; then
12641 if test "${USE_X_TOOLKIT}" != "none"; then
12642 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12643 cat >>confdefs.h <<\_ACEOF
12644 #define USE_TOOLKIT_SCROLL_BARS 1
12645 _ACEOF
12647 HAVE_XAW3D=no
12648 USE_TOOLKIT_SCROLL_BARS=yes
12649 elif test "${HAVE_XAW3D}" = "yes"; then
12650 cat >>confdefs.h <<\_ACEOF
12651 #define USE_TOOLKIT_SCROLL_BARS 1
12652 _ACEOF
12654 USE_TOOLKIT_SCROLL_BARS=yes
12656 elif test "${HAVE_GTK}" = "yes"; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define USE_TOOLKIT_SCROLL_BARS 1
12659 _ACEOF
12661 USE_TOOLKIT_SCROLL_BARS=yes
12662 elif test "${HAVE_CARBON}" = "yes"; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12665 _ACEOF
12667 USE_TOOLKIT_SCROLL_BARS=yes
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12678 #include <X11/Xlib.h>
12679 #include <X11/Xresource.h>
12681 main ()
12683 XIMProc callback;
12685 return 0;
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (ac_try="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.$ac_objext; then
12705 HAVE_XIM=yes
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_XIM 1
12709 _ACEOF
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 HAVE_XIM=no
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 if test "${with_xim}" != "no"; then
12723 cat >>confdefs.h <<\_ACEOF
12724 #define USE_XIM 1
12725 _ACEOF
12730 if test "${HAVE_XIM}" != "no"; then
12731 late_CFLAGS=$CFLAGS
12732 if test "$GCC" = yes; then
12733 CFLAGS="$CFLAGS --pedantic-errors"
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12742 #include <X11/Xlib.h>
12743 #include <X11/Xresource.h>
12745 main ()
12747 Display *display;
12748 XrmDatabase db;
12749 char *res_name;
12750 char *res_class;
12751 XIMProc callback;
12752 XPointer *client_data;
12753 #ifndef __GNUC__
12754 /* If we're not using GCC, it's probably not XFree86, and this is
12755 probably right, but we can't use something like --pedantic-errors. */
12756 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12757 char*, XIMProc, XPointer*);
12758 #endif
12759 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12760 client_data);
12762 return 0;
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (ac_try="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.$ac_objext; then
12782 emacs_cv_arg6_star=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792 if test "$emacs_cv_arg6_star" = yes; then
12793 cat >>confdefs.h <<\_ACEOF
12794 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12795 _ACEOF
12797 else
12798 cat >>confdefs.h <<\_ACEOF
12799 #define XRegisterIMInstantiateCallback_arg6 XPointer
12800 _ACEOF
12803 CFLAGS=$late_CFLAGS
12806 ### Use -lXpm if available, unless `--with-xpm=no'.
12807 HAVE_XPM=no
12808 if test "${HAVE_X11}" = "yes"; then
12809 if test "${with_xpm}" != "no"; then
12810 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12811 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12812 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12813 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12817 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12818 else
12819 # Is the header compilable?
12820 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12821 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 #include <X11/xpm.h>
12830 _ACEOF
12831 rm -f conftest.$ac_objext
12832 if { (ac_try="$ac_compile"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_compile") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest.$ac_objext; then
12848 ac_header_compiler=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_compiler=no
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12858 echo "${ECHO_T}$ac_header_compiler" >&6; }
12860 # Is the header present?
12861 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12862 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <X11/xpm.h>
12870 _ACEOF
12871 if { (ac_try="$ac_cpp conftest.$ac_ext"
12872 case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } >/dev/null && {
12884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12885 test ! -s conftest.err
12886 }; then
12887 ac_header_preproc=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_header_preproc=no
12895 rm -f conftest.err conftest.$ac_ext
12896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12897 echo "${ECHO_T}$ac_header_preproc" >&6; }
12899 # So? What about this header?
12900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12901 yes:no: )
12902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12903 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12905 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12906 ac_header_preproc=yes
12908 no:yes:* )
12909 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12910 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12912 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12914 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12916 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12920 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12923 esac
12924 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12925 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12926 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929 ac_cv_header_X11_xpm_h=$ac_header_preproc
12931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12932 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12935 if test $ac_cv_header_X11_xpm_h = yes; then
12936 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12937 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12938 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 ac_check_lib_save_LIBS=$LIBS
12942 LIBS="-lXpm -lX11 $LIBS"
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 char XpmReadFileToPixmap ();
12958 main ()
12960 return XpmReadFileToPixmap ();
12962 return 0;
12964 _ACEOF
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>conftest.er1
12973 ac_status=$?
12974 grep -v '^ *+' conftest.er1 >conftest.err
12975 rm -f conftest.er1
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest$ac_exeext &&
12982 $as_test_x conftest$ac_exeext; then
12983 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12992 conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12996 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12997 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12998 HAVE_XPM=yes
13004 if test "${HAVE_XPM}" = "yes"; then
13005 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13006 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 #include "X11/xpm.h"
13014 #ifndef XpmReturnAllocPixels
13015 no_return_alloc_pixels
13016 #endif
13018 _ACEOF
13019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13021 HAVE_XPM=no
13022 else
13023 HAVE_XPM=yes
13025 rm -f conftest*
13028 if test "${HAVE_XPM}" = "yes"; then
13029 { echo "$as_me:$LINENO: result: yes" >&5
13030 echo "${ECHO_T}yes" >&6; }
13031 else
13032 { echo "$as_me:$LINENO: result: no" >&5
13033 echo "${ECHO_T}no" >&6; }
13038 if test "${HAVE_XPM}" = "yes"; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_XPM 1
13042 _ACEOF
13047 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13048 HAVE_JPEG=no
13049 if test "${HAVE_X11}" = "yes"; then
13050 if test "${with_jpeg}" != "no"; then
13051 if test "${ac_cv_header_jerror_h+set}" = set; then
13052 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13053 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13054 if test "${ac_cv_header_jerror_h+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13058 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13059 else
13060 # Is the header compilable?
13061 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13062 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13070 #include <jerror.h>
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (ac_try="$ac_compile"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
13089 ac_header_compiler=yes
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_header_compiler=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13099 echo "${ECHO_T}$ac_header_compiler" >&6; }
13101 # Is the header present?
13102 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13103 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <jerror.h>
13111 _ACEOF
13112 if { (ac_try="$ac_cpp conftest.$ac_ext"
13113 case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116 esac
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13119 ac_status=$?
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } >/dev/null && {
13125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13127 }; then
13128 ac_header_preproc=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_header_preproc=no
13136 rm -f conftest.err conftest.$ac_ext
13137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13138 echo "${ECHO_T}$ac_header_preproc" >&6; }
13140 # So? What about this header?
13141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13142 yes:no: )
13143 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13144 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13146 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13147 ac_header_preproc=yes
13149 no:yes:* )
13150 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13151 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13153 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13155 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13157 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13159 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13161 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13164 esac
13165 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13166 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13167 if test "${ac_cv_header_jerror_h+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170 ac_cv_header_jerror_h=$ac_header_preproc
13172 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13173 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13176 if test $ac_cv_header_jerror_h = yes; then
13177 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13178 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13179 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 else
13182 ac_check_lib_save_LIBS=$LIBS
13183 LIBS="-ljpeg $LIBS"
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13191 /* Override any GCC internal prototype to avoid an error.
13192 Use char because int might match the return type of a GCC
13193 builtin and then its argument prototype would still apply. */
13194 #ifdef __cplusplus
13195 extern "C"
13196 #endif
13197 char jpeg_destroy_compress ();
13199 main ()
13201 return jpeg_destroy_compress ();
13203 return 0;
13205 _ACEOF
13206 rm -f conftest.$ac_objext conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_link") 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest$ac_exeext &&
13223 $as_test_x conftest$ac_exeext; then
13224 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13229 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13236 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13237 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13238 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13239 HAVE_JPEG=yes
13248 if test "${HAVE_JPEG}" = "yes"; then
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_JPEG 1
13251 _ACEOF
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <jpeglib.h>
13260 version=JPEG_LIB_VERSION
13262 _ACEOF
13263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13264 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13265 cat >>confdefs.h <<\_ACEOF
13266 #define HAVE_JPEG 1
13267 _ACEOF
13269 else
13270 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13271 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13272 HAVE_JPEG=no
13274 rm -f conftest*
13279 ### Use -lpng if available, unless `--with-png=no'.
13280 HAVE_PNG=no
13281 if test "${HAVE_X11}" = "yes"; then
13282 if test "${with_png}" != "no"; then
13283 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13284 # in /usr/include/libpng.
13287 for ac_header in png.h libpng/png.h
13289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_res=`eval echo '${'$as_ac_Header'}'`
13297 { echo "$as_me:$LINENO: result: $ac_res" >&5
13298 echo "${ECHO_T}$ac_res" >&6; }
13299 else
13300 # Is the header compilable?
13301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 $ac_includes_default
13310 #include <$ac_header>
13311 _ACEOF
13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compile") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest.$ac_objext; then
13329 ac_header_compiler=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_header_compiler=no
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13339 echo "${ECHO_T}$ac_header_compiler" >&6; }
13341 # Is the header present?
13342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 #include <$ac_header>
13351 _ACEOF
13352 if { (ac_try="$ac_cpp conftest.$ac_ext"
13353 case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } >/dev/null && {
13365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13366 test ! -s conftest.err
13367 }; then
13368 ac_header_preproc=yes
13369 else
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 ac_header_preproc=no
13376 rm -f conftest.err conftest.$ac_ext
13377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13378 echo "${ECHO_T}$ac_header_preproc" >&6; }
13380 # So? What about this header?
13381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13382 yes:no: )
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13387 ac_header_preproc=yes
13389 no:yes:* )
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13404 esac
13405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410 eval "$as_ac_Header=\$ac_header_preproc"
13412 ac_res=`eval echo '${'$as_ac_Header'}'`
13413 { echo "$as_me:$LINENO: result: $ac_res" >&5
13414 echo "${ECHO_T}$ac_res" >&6; }
13417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13418 cat >>confdefs.h <<_ACEOF
13419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13420 _ACEOF
13424 done
13426 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13427 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13428 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13429 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 ac_check_lib_save_LIBS=$LIBS
13433 LIBS="-lpng -lz -lm $LIBS"
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char png_get_channels ();
13449 main ()
13451 return png_get_channels ();
13453 return 0;
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13474 ac_cv_lib_png_png_get_channels=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_png_png_get_channels=no
13482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13487 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13488 if test $ac_cv_lib_png_png_get_channels = yes; then
13489 HAVE_PNG=yes
13495 if test "${HAVE_PNG}" = "yes"; then
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_PNG 1
13499 _ACEOF
13504 ### Use -ltiff if available, unless `--with-tiff=no'.
13505 HAVE_TIFF=no
13506 if test "${HAVE_X11}" = "yes"; then
13507 if test "${with_tiff}" != "no"; then
13508 if test "${ac_cv_header_tiffio_h+set}" = set; then
13509 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13510 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13511 if test "${ac_cv_header_tiffio_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13515 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13516 else
13517 # Is the header compilable?
13518 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13519 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13527 #include <tiffio.h>
13528 _ACEOF
13529 rm -f conftest.$ac_objext
13530 if { (ac_try="$ac_compile"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_compile") 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && {
13543 test -z "$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13545 } && test -s conftest.$ac_objext; then
13546 ac_header_compiler=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556 echo "${ECHO_T}$ac_header_compiler" >&6; }
13558 # Is the header present?
13559 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13560 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <tiffio.h>
13568 _ACEOF
13569 if { (ac_try="$ac_cpp conftest.$ac_ext"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null && {
13582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 }; then
13585 ac_header_preproc=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6; }
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13599 yes:no: )
13600 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13604 ac_header_preproc=yes
13606 no:yes:* )
13607 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13621 esac
13622 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13623 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13624 if test "${ac_cv_header_tiffio_h+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627 ac_cv_header_tiffio_h=$ac_header_preproc
13629 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13630 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13633 if test $ac_cv_header_tiffio_h = yes; then
13634 tifflibs="-lz -lm"
13635 # At least one tiff package requires the jpeg library.
13636 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13637 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13638 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-ltiff $tifflibs $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char TIFFGetVersion ();
13659 main ()
13661 return TIFFGetVersion ();
13663 return 0;
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest$ac_exeext &&
13683 $as_test_x conftest$ac_exeext; then
13684 ac_cv_lib_tiff_TIFFGetVersion=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_cv_lib_tiff_TIFFGetVersion=no
13692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13693 conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13696 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13697 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13698 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13699 HAVE_TIFF=yes
13707 if test "${HAVE_TIFF}" = "yes"; then
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_TIFF 1
13711 _ACEOF
13716 ### Use -lgif if available, unless `--with-gif=no'.
13717 HAVE_GIF=no
13718 if test "${HAVE_X11}" = "yes"; then
13719 if test "${with_gif}" != "no"; then
13720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13721 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13722 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13727 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13728 else
13729 # Is the header compilable?
13730 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13731 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13732 cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h. */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 #include <gif_lib.h>
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && {
13755 test -z "$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 } && test -s conftest.$ac_objext; then
13758 ac_header_compiler=yes
13759 else
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_header_compiler=no
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 echo "${ECHO_T}$ac_header_compiler" >&6; }
13770 # Is the header present?
13771 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13772 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <gif_lib.h>
13780 _ACEOF
13781 if { (ac_try="$ac_cpp conftest.$ac_ext"
13782 case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev/null && {
13794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13795 test ! -s conftest.err
13796 }; then
13797 ac_header_preproc=yes
13798 else
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_header_preproc=no
13805 rm -f conftest.err conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13807 echo "${ECHO_T}$ac_header_preproc" >&6; }
13809 # So? What about this header?
13810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13811 yes:no: )
13812 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13813 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13815 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13816 ac_header_preproc=yes
13818 no:yes:* )
13819 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13820 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13822 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13824 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13826 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13828 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13830 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13833 esac
13834 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13835 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13836 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 ac_cv_header_gif_lib_h=$ac_header_preproc
13841 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13842 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13845 if test $ac_cv_header_gif_lib_h = yes; then
13846 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13847 # Earlier versions can crash Emacs.
13848 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13849 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13850 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 ac_check_lib_save_LIBS=$LIBS
13854 LIBS="-lungif $LIBS"
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char EGifPutExtensionLast ();
13870 main ()
13872 return EGifPutExtensionLast ();
13874 return 0;
13876 _ACEOF
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest$ac_exeext &&
13894 $as_test_x conftest$ac_exeext; then
13895 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_cv_lib_ungif_EGifPutExtensionLast=no
13903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13904 conftest$ac_exeext conftest.$ac_ext
13905 LIBS=$ac_check_lib_save_LIBS
13907 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13908 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13909 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13910 HAVE_GIF=yes
13918 if test "${HAVE_GIF}" = "yes"; then
13920 cat >>confdefs.h <<\_ACEOF
13921 #define HAVE_GIF 1
13922 _ACEOF
13927 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13928 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13929 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13930 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13934 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13935 else
13936 # Is the header compilable?
13937 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13938 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 #include <malloc/malloc.h>
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (ac_try="$ac_compile"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_compile") 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && {
13962 test -z "$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13964 } && test -s conftest.$ac_objext; then
13965 ac_header_compiler=yes
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_header_compiler=no
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13975 echo "${ECHO_T}$ac_header_compiler" >&6; }
13977 # Is the header present?
13978 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13979 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13980 cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h. */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 #include <malloc/malloc.h>
13987 _ACEOF
13988 if { (ac_try="$ac_cpp conftest.$ac_ext"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null && {
14001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 }; then
14004 ac_header_preproc=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_preproc=no
14012 rm -f conftest.err conftest.$ac_ext
14013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 echo "${ECHO_T}$ac_header_preproc" >&6; }
14016 # So? What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 yes:no: )
14019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14020 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14022 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14025 no:yes:* )
14026 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14027 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14029 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14031 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14033 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14037 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14040 esac
14041 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14042 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14048 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14049 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14052 if test $ac_cv_header_malloc_malloc_h = yes; then
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_MALLOC_MALLOC_H 1
14056 _ACEOF
14062 ### Use Mac OS X Carbon API to implement GUI.
14063 if test "${HAVE_CARBON}" = "yes"; then
14065 cat >>confdefs.h <<\_ACEOF
14066 #define HAVE_CARBON 1
14067 _ACEOF
14069 ## Specify the install directory
14070 carbon_appdir=
14071 if test "${carbon_appdir_x}" != ""; then
14072 case ${carbon_appdir_x} in
14073 y | ye | yes) carbon_appdir=/Applications ;;
14074 * ) carbon_appdir=${carbon_appdir_x} ;;
14075 esac
14077 # We also have mouse menus.
14078 HAVE_MENUS=yes
14081 ### Use session management (-lSM -lICE) if available
14082 HAVE_X_SM=no
14083 if test "${HAVE_X11}" = "yes"; then
14084 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14085 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14086 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14091 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14092 else
14093 # Is the header compilable?
14094 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14095 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 #include <X11/SM/SMlib.h>
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14122 ac_header_compiler=yes
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_header_compiler=no
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132 echo "${ECHO_T}$ac_header_compiler" >&6; }
14134 # Is the header present?
14135 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14136 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <X11/SM/SMlib.h>
14144 _ACEOF
14145 if { (ac_try="$ac_cpp conftest.$ac_ext"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149 esac
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } >/dev/null && {
14158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14159 test ! -s conftest.err
14160 }; then
14161 ac_header_preproc=yes
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_header_preproc=no
14169 rm -f conftest.err conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14171 echo "${ECHO_T}$ac_header_preproc" >&6; }
14173 # So? What about this header?
14174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14175 yes:no: )
14176 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14177 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14179 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14180 ac_header_preproc=yes
14182 no:yes:* )
14183 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14184 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14186 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14188 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14190 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14194 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14197 esac
14198 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14199 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14200 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14206 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14209 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14210 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14211 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-lSM -lICE $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char SmcOpenConnection ();
14232 main ()
14234 return SmcOpenConnection ();
14236 return 0;
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_SM_SmcOpenConnection=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_cv_lib_SM_SmcOpenConnection=no
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14270 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14271 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14272 HAVE_X_SM=yes
14279 if test "${HAVE_X_SM}" = "yes"; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_X_SM 1
14283 _ACEOF
14285 case "$LIBS" in
14286 *-lSM*) ;;
14287 *) LIBS="-lSM -lICE $LIBS" ;;
14288 esac
14292 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14293 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14294 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14295 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <netdb.h>
14306 main ()
14308 return h_errno;
14310 return 0;
14312 _ACEOF
14313 rm -f conftest.$ac_objext conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest$ac_exeext &&
14330 $as_test_x conftest$ac_exeext; then
14331 emacs_cv_netdb_declares_h_errno=yes
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 emacs_cv_netdb_declares_h_errno=no
14339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14340 conftest$ac_exeext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14343 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14344 if test $emacs_cv_netdb_declares_h_errno = yes; then
14346 cat >>confdefs.h <<\_ACEOF
14347 #define HAVE_H_ERRNO 1
14348 _ACEOF
14352 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14353 # for constant arguments. Useless!
14354 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14355 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_working_alloca_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <alloca.h>
14367 main ()
14369 char *p = (char *) alloca (2 * sizeof (int));
14370 if (p) return 0;
14372 return 0;
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext &&
14392 $as_test_x conftest$ac_exeext; then
14393 ac_cv_working_alloca_h=yes
14394 else
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_cv_working_alloca_h=no
14401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14402 conftest$ac_exeext conftest.$ac_ext
14404 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14405 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14406 if test $ac_cv_working_alloca_h = yes; then
14408 cat >>confdefs.h <<\_ACEOF
14409 #define HAVE_ALLOCA_H 1
14410 _ACEOF
14414 { echo "$as_me:$LINENO: checking for alloca" >&5
14415 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14416 if test "${ac_cv_func_alloca_works+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 #ifdef __GNUC__
14426 # define alloca __builtin_alloca
14427 #else
14428 # ifdef _MSC_VER
14429 # include <malloc.h>
14430 # define alloca _alloca
14431 # else
14432 # ifdef HAVE_ALLOCA_H
14433 # include <alloca.h>
14434 # else
14435 # ifdef _AIX
14436 #pragma alloca
14437 # else
14438 # ifndef alloca /* predefined by HP cc +Olibcalls */
14439 char *alloca ();
14440 # endif
14441 # endif
14442 # endif
14443 # endif
14444 #endif
14447 main ()
14449 char *p = (char *) alloca (1);
14450 if (p) return 0;
14452 return 0;
14454 _ACEOF
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest$ac_exeext &&
14472 $as_test_x conftest$ac_exeext; then
14473 ac_cv_func_alloca_works=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_func_alloca_works=no
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14485 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14487 if test $ac_cv_func_alloca_works = yes; then
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_ALLOCA 1
14491 _ACEOF
14493 else
14494 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14495 # that cause trouble. Some versions do not even contain alloca or
14496 # contain a buggy version. If you still want to use their alloca,
14497 # use ar to extract alloca.o from them instead of compiling alloca.c.
14499 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14501 cat >>confdefs.h <<\_ACEOF
14502 #define C_ALLOCA 1
14503 _ACEOF
14506 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14507 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14508 if test "${ac_cv_os_cray+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #if defined CRAY && ! defined CRAY2
14518 webecray
14519 #else
14520 wenotbecray
14521 #endif
14523 _ACEOF
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525 $EGREP "webecray" >/dev/null 2>&1; then
14526 ac_cv_os_cray=yes
14527 else
14528 ac_cv_os_cray=no
14530 rm -f conftest*
14533 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14534 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14535 if test $ac_cv_os_cray = yes; then
14536 for ac_func in _getb67 GETB67 getb67; do
14537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14551 #define $ac_func innocuous_$ac_func
14553 /* System header to define __stub macros and hopefully few prototypes,
14554 which can conflict with char $ac_func (); below.
14555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556 <limits.h> exists even on freestanding compilers. */
14558 #ifdef __STDC__
14559 # include <limits.h>
14560 #else
14561 # include <assert.h>
14562 #endif
14564 #undef $ac_func
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char $ac_func ();
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined __stub_$ac_func || defined __stub___$ac_func
14577 choke me
14578 #endif
14581 main ()
14583 return $ac_func ();
14585 return 0;
14587 _ACEOF
14588 rm -f conftest.$ac_objext conftest$ac_exeext
14589 if { (ac_try="$ac_link"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_link") 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest$ac_exeext &&
14605 $as_test_x conftest$ac_exeext; then
14606 eval "$as_ac_var=yes"
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 eval "$as_ac_var=no"
14614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14615 conftest$ac_exeext conftest.$ac_ext
14617 ac_res=`eval echo '${'$as_ac_var'}'`
14618 { echo "$as_me:$LINENO: result: $ac_res" >&5
14619 echo "${ECHO_T}$ac_res" >&6; }
14620 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define CRAY_STACKSEG_END $ac_func
14624 _ACEOF
14626 break
14629 done
14632 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14634 if test "${ac_cv_c_stack_direction+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637 if test "$cross_compiling" = yes; then
14638 ac_cv_c_stack_direction=0
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 $ac_includes_default
14648 find_stack_direction ()
14650 static char *addr = 0;
14651 auto char dummy;
14652 if (addr == 0)
14654 addr = &dummy;
14655 return find_stack_direction ();
14657 else
14658 return (&dummy > addr) ? 1 : -1;
14662 main ()
14664 return find_stack_direction () < 0;
14666 _ACEOF
14667 rm -f conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14678 { (case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14681 esac
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_try") 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_c_stack_direction=1
14688 else
14689 echo "$as_me: program exited with status $ac_status" >&5
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ( exit $ac_status )
14694 ac_cv_c_stack_direction=-1
14696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14702 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14704 cat >>confdefs.h <<_ACEOF
14705 #define STACK_DIRECTION $ac_cv_c_stack_direction
14706 _ACEOF
14712 # fmod, logb, and frexp are found in -lm on most systems.
14713 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14715 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14716 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14717 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720 ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-lm $LIBS"
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14729 /* Override any GCC internal prototype to avoid an error.
14730 Use char because int might match the return type of a GCC
14731 builtin and then its argument prototype would still apply. */
14732 #ifdef __cplusplus
14733 extern "C"
14734 #endif
14735 char sqrt ();
14737 main ()
14739 return sqrt ();
14741 return 0;
14743 _ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (ac_try="$ac_link"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_link") 2>conftest.er1
14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } && {
14758 test -z "$ac_c_werror_flag" ||
14759 test ! -s conftest.err
14760 } && test -s conftest$ac_exeext &&
14761 $as_test_x conftest$ac_exeext; then
14762 ac_cv_lib_m_sqrt=yes
14763 else
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_cv_lib_m_sqrt=no
14770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14771 conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14774 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14775 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14776 if test $ac_cv_lib_m_sqrt = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_LIBM 1
14779 _ACEOF
14781 LIBS="-lm $LIBS"
14786 # Check for mail-locking functions in a "mail" library. Probably this should
14787 # have the same check as for liblockfile below.
14789 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14790 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14791 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 ac_check_lib_save_LIBS=$LIBS
14795 LIBS="-lmail $LIBS"
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14806 #ifdef __cplusplus
14807 extern "C"
14808 #endif
14809 char maillock ();
14811 main ()
14813 return maillock ();
14815 return 0;
14817 _ACEOF
14818 rm -f conftest.$ac_objext conftest$ac_exeext
14819 if { (ac_try="$ac_link"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_link") 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } && {
14832 test -z "$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14834 } && test -s conftest$ac_exeext &&
14835 $as_test_x conftest$ac_exeext; then
14836 ac_cv_lib_mail_maillock=yes
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_cv_lib_mail_maillock=no
14844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14848 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14849 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14850 if test $ac_cv_lib_mail_maillock = yes; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_LIBMAIL 1
14853 _ACEOF
14855 LIBS="-lmail $LIBS"
14860 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14861 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14862 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865 ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-llockfile $LIBS"
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. */
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 char maillock ();
14882 main ()
14884 return maillock ();
14886 return 0;
14888 _ACEOF
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest$ac_exeext &&
14906 $as_test_x conftest$ac_exeext; then
14907 ac_cv_lib_lockfile_maillock=yes
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_lib_lockfile_maillock=no
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14920 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14921 if test $ac_cv_lib_lockfile_maillock = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_LIBLOCKFILE 1
14924 _ACEOF
14926 LIBS="-llockfile $LIBS"
14930 # If we have the shared liblockfile, assume we must use it for mail
14931 # locking (e.g. Debian). If we couldn't link against liblockfile
14932 # (no liblockfile.a installed), ensure that we don't need to.
14933 if test "$ac_cv_lib_lockfile_maillock" = no; then
14934 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14935 set dummy liblockfile.so; ac_word=$2
14936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14938 if test "${ac_cv_prog_liblockfile+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941 if test -n "$liblockfile"; then
14942 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14943 else
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14946 for as_dir in $as_dummy
14948 IFS=$as_save_IFS
14949 test -z "$as_dir" && as_dir=.
14950 for ac_exec_ext in '' $ac_executable_extensions; do
14951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14952 ac_cv_prog_liblockfile="yes"
14953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14954 break 2
14956 done
14957 done
14958 IFS=$as_save_IFS
14960 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14963 liblockfile=$ac_cv_prog_liblockfile
14964 if test -n "$liblockfile"; then
14965 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14966 echo "${ECHO_T}$liblockfile" >&6; }
14967 else
14968 { echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6; }
14973 if test $ac_cv_prog_liblockfile = yes; then
14974 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14975 This probably means that movemail could lose mail.
14976 There may be a \`development' package to install containing liblockfile." >&5
14977 echo "$as_me: error: Shared liblockfile found but can't link against it.
14978 This probably means that movemail could lose mail.
14979 There may be a \`development' package to install containing liblockfile." >&2;}
14980 { (exit 1); exit 1; }; }
14981 else :
14985 for ac_func in touchlock
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15001 #define $ac_func innocuous_$ac_func
15003 /* System header to define __stub macros and hopefully few prototypes,
15004 which can conflict with char $ac_func (); below.
15005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15006 <limits.h> exists even on freestanding compilers. */
15008 #ifdef __STDC__
15009 # include <limits.h>
15010 #else
15011 # include <assert.h>
15012 #endif
15014 #undef $ac_func
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15019 #ifdef __cplusplus
15020 extern "C"
15021 #endif
15022 char $ac_func ();
15023 /* The GNU C library defines this for functions which it implements
15024 to always fail with ENOSYS. Some functions are actually named
15025 something starting with __ and the normal name is an alias. */
15026 #if defined __stub_$ac_func || defined __stub___$ac_func
15027 choke me
15028 #endif
15031 main ()
15033 return $ac_func ();
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 eval "$as_ac_var=yes"
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 eval "$as_ac_var=no"
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15067 ac_res=`eval echo '${'$as_ac_var'}'`
15068 { echo "$as_me:$LINENO: result: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15073 _ACEOF
15076 done
15079 for ac_header in maillock.h
15081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089 { echo "$as_me:$LINENO: result: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15091 else
15092 # Is the header compilable?
15093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h. */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15102 #include <$ac_header>
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 ac_header_compiler=yes
15122 else
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_header_compiler=no
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15131 echo "${ECHO_T}$ac_header_compiler" >&6; }
15133 # Is the header present?
15134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15136 cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h. */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 #include <$ac_header>
15143 _ACEOF
15144 if { (ac_try="$ac_cpp conftest.$ac_ext"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } >/dev/null && {
15157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 }; then
15160 ac_header_preproc=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_header_preproc=no
15168 rm -f conftest.err conftest.$ac_ext
15169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15170 echo "${ECHO_T}$ac_header_preproc" >&6; }
15172 # So? What about this header?
15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15174 yes:no: )
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15179 ac_header_preproc=yes
15181 no:yes:* )
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15196 esac
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 eval "$as_ac_Header=\$ac_header_preproc"
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15210 cat >>confdefs.h <<_ACEOF
15211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212 _ACEOF
15216 done
15288 for ac_func in gethostname getdomainname dup2 \
15289 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15290 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15291 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15292 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15293 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15294 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15295 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15296 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15312 #define $ac_func innocuous_$ac_func
15314 /* System header to define __stub macros and hopefully few prototypes,
15315 which can conflict with char $ac_func (); below.
15316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15317 <limits.h> exists even on freestanding compilers. */
15319 #ifdef __STDC__
15320 # include <limits.h>
15321 #else
15322 # include <assert.h>
15323 #endif
15325 #undef $ac_func
15327 /* Override any GCC internal prototype to avoid an error.
15328 Use char because int might match the return type of a GCC
15329 builtin and then its argument prototype would still apply. */
15330 #ifdef __cplusplus
15331 extern "C"
15332 #endif
15333 char $ac_func ();
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined __stub_$ac_func || defined __stub___$ac_func
15338 choke me
15339 #endif
15342 main ()
15344 return $ac_func ();
15346 return 0;
15348 _ACEOF
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext &&
15366 $as_test_x conftest$ac_exeext; then
15367 eval "$as_ac_var=yes"
15368 else
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 eval "$as_ac_var=no"
15375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15376 conftest$ac_exeext conftest.$ac_ext
15378 ac_res=`eval echo '${'$as_ac_var'}'`
15379 { echo "$as_me:$LINENO: result: $ac_res" >&5
15380 echo "${ECHO_T}$ac_res" >&6; }
15381 if test `eval echo '${'$as_ac_var'}'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15384 _ACEOF
15387 done
15391 for ac_header in sys/un.h
15393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 ac_res=`eval echo '${'$as_ac_Header'}'`
15401 { echo "$as_me:$LINENO: result: $ac_res" >&5
15402 echo "${ECHO_T}$ac_res" >&6; }
15403 else
15404 # Is the header compilable?
15405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 #include <$ac_header>
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_header_compiler=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_header_compiler=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 echo "${ECHO_T}$ac_header_compiler" >&6; }
15445 # Is the header present?
15446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <$ac_header>
15455 _ACEOF
15456 if { (ac_try="$ac_cpp conftest.$ac_ext"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } >/dev/null && {
15469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15471 }; then
15472 ac_header_preproc=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 yes:no: )
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15493 no:yes:* )
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15508 esac
15509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 eval "$as_ac_Header=\$ac_header_preproc"
15516 ac_res=`eval echo '${'$as_ac_Header'}'`
15517 { echo "$as_me:$LINENO: result: $ac_res" >&5
15518 echo "${ECHO_T}$ac_res" >&6; }
15521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15524 _ACEOF
15528 done
15535 for ac_header in $ac_header_list
15537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15547 else
15548 # Is the header compilable?
15549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h. */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15558 #include <$ac_header>
15559 _ACEOF
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15568 ac_status=$?
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } && {
15574 test -z "$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 } && test -s conftest.$ac_objext; then
15577 ac_header_compiler=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15599 _ACEOF
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null && {
15613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15614 test ! -s conftest.err
15615 }; then
15616 ac_header_preproc=yes
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15630 yes:no: )
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15637 no:yes:* )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15652 esac
15653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658 eval "$as_ac_Header=\$ac_header_preproc"
15660 ac_res=`eval echo '${'$as_ac_Header'}'`
15661 { echo "$as_me:$LINENO: result: $ac_res" >&5
15662 echo "${ECHO_T}$ac_res" >&6; }
15665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15668 _ACEOF
15672 done
15682 for ac_func in $ac_func_list
15684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15698 #define $ac_func innocuous_$ac_func
15700 /* System header to define __stub macros and hopefully few prototypes,
15701 which can conflict with char $ac_func (); below.
15702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15703 <limits.h> exists even on freestanding compilers. */
15705 #ifdef __STDC__
15706 # include <limits.h>
15707 #else
15708 # include <assert.h>
15709 #endif
15711 #undef $ac_func
15713 /* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15716 #ifdef __cplusplus
15717 extern "C"
15718 #endif
15719 char $ac_func ();
15720 /* The GNU C library defines this for functions which it implements
15721 to always fail with ENOSYS. Some functions are actually named
15722 something starting with __ and the normal name is an alias. */
15723 #if defined __stub_$ac_func || defined __stub___$ac_func
15724 choke me
15725 #endif
15728 main ()
15730 return $ac_func ();
15732 return 0;
15734 _ACEOF
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_link") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest$ac_exeext &&
15752 $as_test_x conftest$ac_exeext; then
15753 eval "$as_ac_var=yes"
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 eval "$as_ac_var=no"
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762 conftest$ac_exeext conftest.$ac_ext
15764 ac_res=`eval echo '${'$as_ac_var'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15767 if test `eval echo '${'$as_ac_var'}'` = yes; then
15768 cat >>confdefs.h <<_ACEOF
15769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15770 _ACEOF
15773 done
15791 { echo "$as_me:$LINENO: checking for working mktime" >&5
15792 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15793 if test "${ac_cv_func_working_mktime+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 if test "$cross_compiling" = yes; then
15797 ac_cv_func_working_mktime=no
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 /* Test program from Paul Eggert and Tony Leneis. */
15806 #ifdef TIME_WITH_SYS_TIME
15807 # include <sys/time.h>
15808 # include <time.h>
15809 #else
15810 # ifdef HAVE_SYS_TIME_H
15811 # include <sys/time.h>
15812 # else
15813 # include <time.h>
15814 # endif
15815 #endif
15817 #include <stdlib.h>
15819 #ifdef HAVE_UNISTD_H
15820 # include <unistd.h>
15821 #endif
15823 #ifndef HAVE_ALARM
15824 # define alarm(X) /* empty */
15825 #endif
15827 /* Work around redefinition to rpl_putenv by other config tests. */
15828 #undef putenv
15830 static time_t time_t_max;
15831 static time_t time_t_min;
15833 /* Values we'll use to set the TZ environment variable. */
15834 static char *tz_strings[] = {
15835 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15836 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15838 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15840 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15841 Based on a problem report from Andreas Jaeger. */
15842 static int
15843 spring_forward_gap ()
15845 /* glibc (up to about 1998-10-07) failed this test. */
15846 struct tm tm;
15848 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15849 instead of "TZ=America/Vancouver" in order to detect the bug even
15850 on systems that don't support the Olson extension, or don't have the
15851 full zoneinfo tables installed. */
15852 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15854 tm.tm_year = 98;
15855 tm.tm_mon = 3;
15856 tm.tm_mday = 5;
15857 tm.tm_hour = 2;
15858 tm.tm_min = 0;
15859 tm.tm_sec = 0;
15860 tm.tm_isdst = -1;
15861 return mktime (&tm) != (time_t) -1;
15864 static int
15865 mktime_test1 (now)
15866 time_t now;
15868 struct tm *lt;
15869 return ! (lt = localtime (&now)) || mktime (lt) == now;
15872 static int
15873 mktime_test (now)
15874 time_t now;
15876 return (mktime_test1 (now)
15877 && mktime_test1 ((time_t) (time_t_max - now))
15878 && mktime_test1 ((time_t) (time_t_min + now)));
15881 static int
15882 irix_6_4_bug ()
15884 /* Based on code from Ariel Faigon. */
15885 struct tm tm;
15886 tm.tm_year = 96;
15887 tm.tm_mon = 3;
15888 tm.tm_mday = 0;
15889 tm.tm_hour = 0;
15890 tm.tm_min = 0;
15891 tm.tm_sec = 0;
15892 tm.tm_isdst = -1;
15893 mktime (&tm);
15894 return tm.tm_mon == 2 && tm.tm_mday == 31;
15897 static int
15898 bigtime_test (j)
15899 int j;
15901 struct tm tm;
15902 time_t now;
15903 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15904 now = mktime (&tm);
15905 if (now != (time_t) -1)
15907 struct tm *lt = localtime (&now);
15908 if (! (lt
15909 && lt->tm_year == tm.tm_year
15910 && lt->tm_mon == tm.tm_mon
15911 && lt->tm_mday == tm.tm_mday
15912 && lt->tm_hour == tm.tm_hour
15913 && lt->tm_min == tm.tm_min
15914 && lt->tm_sec == tm.tm_sec
15915 && lt->tm_yday == tm.tm_yday
15916 && lt->tm_wday == tm.tm_wday
15917 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15918 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15919 return 0;
15921 return 1;
15924 static int
15925 year_2050_test ()
15927 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15928 ignoring leap seconds. */
15929 unsigned long int answer = 2527315200UL;
15931 struct tm tm;
15932 time_t t;
15933 tm.tm_year = 2050 - 1900;
15934 tm.tm_mon = 2 - 1;
15935 tm.tm_mday = 1;
15936 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15937 tm.tm_isdst = -1;
15939 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15940 instead of "TZ=America/Vancouver" in order to detect the bug even
15941 on systems that don't support the Olson extension, or don't have the
15942 full zoneinfo tables installed. */
15943 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15945 t = mktime (&tm);
15947 /* Check that the result is either a failure, or close enough
15948 to the correct answer that we can assume the discrepancy is
15949 due to leap seconds. */
15950 return (t == (time_t) -1
15951 || (0 < t && answer - 120 <= t && t <= answer + 120));
15955 main ()
15957 time_t t, delta;
15958 int i, j;
15960 /* This test makes some buggy mktime implementations loop.
15961 Give up after 60 seconds; a mktime slower than that
15962 isn't worth using anyway. */
15963 alarm (60);
15965 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15966 continue;
15967 time_t_max--;
15968 if ((time_t) -1 < 0)
15969 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15970 continue;
15971 delta = time_t_max / 997; /* a suitable prime number */
15972 for (i = 0; i < N_STRINGS; i++)
15974 if (tz_strings[i])
15975 putenv (tz_strings[i]);
15977 for (t = 0; t <= time_t_max - delta; t += delta)
15978 if (! mktime_test (t))
15979 return 1;
15980 if (! (mktime_test ((time_t) 1)
15981 && mktime_test ((time_t) (60 * 60))
15982 && mktime_test ((time_t) (60 * 60 * 24))))
15983 return 1;
15985 for (j = 1; 0 < j; j *= 2)
15986 if (! bigtime_test (j))
15987 return 1;
15988 if (! bigtime_test (j - 1))
15989 return 1;
15991 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15993 _ACEOF
15994 rm -f conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_func_working_mktime=yes
16015 else
16016 echo "$as_me: program exited with status $ac_status" >&5
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ( exit $ac_status )
16021 ac_cv_func_working_mktime=no
16023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16029 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16030 if test $ac_cv_func_working_mktime = no; then
16031 case " $LIBOBJS " in
16032 *" mktime.$ac_objext "* ) ;;
16033 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16035 esac
16039 if test "$ac_cv_func_working_mktime" = no; then
16041 cat >>confdefs.h <<\_ACEOF
16042 #define BROKEN_MKTIME 1
16043 _ACEOF
16047 ac_have_func=no # yes means we've found a way to get the load average.
16049 # Make sure getloadavg.c is where it belongs, at configure-time.
16050 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16051 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16052 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16053 { (exit 1); exit 1; }; }
16055 ac_save_LIBS=$LIBS
16057 # Check for getloadavg, but be sure not to touch the cache variable.
16058 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16059 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16060 if test "${ac_cv_func_getloadavg+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16071 #define getloadavg innocuous_getloadavg
16073 /* System header to define __stub macros and hopefully few prototypes,
16074 which can conflict with char getloadavg (); below.
16075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16076 <limits.h> exists even on freestanding compilers. */
16078 #ifdef __STDC__
16079 # include <limits.h>
16080 #else
16081 # include <assert.h>
16082 #endif
16084 #undef getloadavg
16086 /* Override any GCC internal prototype to avoid an error.
16087 Use char because int might match the return type of a GCC
16088 builtin and then its argument prototype would still apply. */
16089 #ifdef __cplusplus
16090 extern "C"
16091 #endif
16092 char getloadavg ();
16093 /* The GNU C library defines this for functions which it implements
16094 to always fail with ENOSYS. Some functions are actually named
16095 something starting with __ and the normal name is an alias. */
16096 #if defined __stub_getloadavg || defined __stub___getloadavg
16097 choke me
16098 #endif
16101 main ()
16103 return getloadavg ();
16105 return 0;
16107 _ACEOF
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113 esac
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_link") 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest$ac_exeext &&
16125 $as_test_x conftest$ac_exeext; then
16126 ac_cv_func_getloadavg=yes
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_func_getloadavg=no
16134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16135 conftest$ac_exeext conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16138 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16139 if test $ac_cv_func_getloadavg = yes; then
16140 exit 0
16141 else
16142 exit 1
16144 ) && ac_have_func=yes
16146 # On HPUX9, an unprivileged user can get load averages through this function.
16148 for ac_func in pstat_getdynamic
16150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16164 #define $ac_func innocuous_$ac_func
16166 /* System header to define __stub macros and hopefully few prototypes,
16167 which can conflict with char $ac_func (); below.
16168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16169 <limits.h> exists even on freestanding compilers. */
16171 #ifdef __STDC__
16172 # include <limits.h>
16173 #else
16174 # include <assert.h>
16175 #endif
16177 #undef $ac_func
16179 /* Override any GCC internal prototype to avoid an error.
16180 Use char because int might match the return type of a GCC
16181 builtin and then its argument prototype would still apply. */
16182 #ifdef __cplusplus
16183 extern "C"
16184 #endif
16185 char $ac_func ();
16186 /* The GNU C library defines this for functions which it implements
16187 to always fail with ENOSYS. Some functions are actually named
16188 something starting with __ and the normal name is an alias. */
16189 #if defined __stub_$ac_func || defined __stub___$ac_func
16190 choke me
16191 #endif
16194 main ()
16196 return $ac_func ();
16198 return 0;
16200 _ACEOF
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (ac_try="$ac_link"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_link") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest$ac_exeext &&
16218 $as_test_x conftest$ac_exeext; then
16219 eval "$as_ac_var=yes"
16220 else
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 eval "$as_ac_var=no"
16227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16228 conftest$ac_exeext conftest.$ac_ext
16230 ac_res=`eval echo '${'$as_ac_var'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16233 if test `eval echo '${'$as_ac_var'}'` = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236 _ACEOF
16239 done
16242 # Solaris has libkstat which does not require root.
16244 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16245 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16246 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249 ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-lkstat $LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any GCC internal prototype to avoid an error.
16259 Use char because int might match the return type of a GCC
16260 builtin and then its argument prototype would still apply. */
16261 #ifdef __cplusplus
16262 extern "C"
16263 #endif
16264 char kstat_open ();
16266 main ()
16268 return kstat_open ();
16270 return 0;
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (ac_try="$ac_link"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_link") 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && {
16287 test -z "$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16289 } && test -s conftest$ac_exeext &&
16290 $as_test_x conftest$ac_exeext; then
16291 ac_cv_lib_kstat_kstat_open=yes
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_lib_kstat_kstat_open=no
16299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16300 conftest$ac_exeext conftest.$ac_ext
16301 LIBS=$ac_check_lib_save_LIBS
16303 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16304 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16305 if test $ac_cv_lib_kstat_kstat_open = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_LIBKSTAT 1
16308 _ACEOF
16310 LIBS="-lkstat $LIBS"
16314 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16316 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16317 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16318 # to get the right answer into the cache.
16319 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16320 if test $ac_have_func = no; then
16321 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16322 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16323 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326 ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lelf $LIBS"
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char elf_begin ();
16343 main ()
16345 return elf_begin ();
16347 return 0;
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16358 ac_status=$?
16359 grep -v '^ *+' conftest.er1 >conftest.err
16360 rm -f conftest.er1
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16368 ac_cv_lib_elf_elf_begin=yes
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_lib_elf_elf_begin=no
16376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378 LIBS=$ac_check_lib_save_LIBS
16380 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16381 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16382 if test $ac_cv_lib_elf_elf_begin = yes; then
16383 LIBS="-lelf $LIBS"
16387 if test $ac_have_func = no; then
16388 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16389 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16390 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 ac_check_lib_save_LIBS=$LIBS
16394 LIBS="-lkvm $LIBS"
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405 #ifdef __cplusplus
16406 extern "C"
16407 #endif
16408 char kvm_open ();
16410 main ()
16412 return kvm_open ();
16414 return 0;
16416 _ACEOF
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_link") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } && {
16431 test -z "$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 } && test -s conftest$ac_exeext &&
16434 $as_test_x conftest$ac_exeext; then
16435 ac_cv_lib_kvm_kvm_open=yes
16436 else
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_lib_kvm_kvm_open=no
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16447 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16448 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16449 if test $ac_cv_lib_kvm_kvm_open = yes; then
16450 LIBS="-lkvm $LIBS"
16453 # Check for the 4.4BSD definition of getloadavg.
16454 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16455 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16456 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459 ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lutil $LIBS"
16461 cat >conftest.$ac_ext <<_ACEOF
16462 /* confdefs.h. */
16463 _ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h. */
16468 /* Override any GCC internal prototype to avoid an error.
16469 Use char because int might match the return type of a GCC
16470 builtin and then its argument prototype would still apply. */
16471 #ifdef __cplusplus
16472 extern "C"
16473 #endif
16474 char getloadavg ();
16476 main ()
16478 return getloadavg ();
16480 return 0;
16482 _ACEOF
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (ac_try="$ac_link"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_link") 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && {
16497 test -z "$ac_c_werror_flag" ||
16498 test ! -s conftest.err
16499 } && test -s conftest$ac_exeext &&
16500 $as_test_x conftest$ac_exeext; then
16501 ac_cv_lib_util_getloadavg=yes
16502 else
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_cv_lib_util_getloadavg=no
16509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16510 conftest$ac_exeext conftest.$ac_ext
16511 LIBS=$ac_check_lib_save_LIBS
16513 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16514 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16515 if test $ac_cv_lib_util_getloadavg = yes; then
16516 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16521 if test $ac_have_func = no; then
16522 # There is a commonly available library for RS/6000 AIX.
16523 # Since it is not a standard part of AIX, it might be installed locally.
16524 ac_getloadavg_LIBS=$LIBS
16525 LIBS="-L/usr/local/lib $LIBS"
16526 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16527 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16528 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531 ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lgetloadavg $LIBS"
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16543 #ifdef __cplusplus
16544 extern "C"
16545 #endif
16546 char getloadavg ();
16548 main ()
16550 return getloadavg ();
16552 return 0;
16554 _ACEOF
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (ac_try="$ac_link"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext &&
16572 $as_test_x conftest$ac_exeext; then
16573 ac_cv_lib_getloadavg_getloadavg=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_getloadavg_getloadavg=no
16581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16585 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16586 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16587 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16588 LIBS="-lgetloadavg $LIBS"
16589 else
16590 LIBS=$ac_getloadavg_LIBS
16595 # Make sure it is really in the library, if we think we found it,
16596 # otherwise set up the replacement function.
16598 for ac_func in getloadavg
16600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606 cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h. */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16614 #define $ac_func innocuous_$ac_func
16616 /* System header to define __stub macros and hopefully few prototypes,
16617 which can conflict with char $ac_func (); below.
16618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619 <limits.h> exists even on freestanding compilers. */
16621 #ifdef __STDC__
16622 # include <limits.h>
16623 #else
16624 # include <assert.h>
16625 #endif
16627 #undef $ac_func
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 $ac_func ();
16636 /* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
16639 #if defined __stub_$ac_func || defined __stub___$ac_func
16640 choke me
16641 #endif
16644 main ()
16646 return $ac_func ();
16648 return 0;
16650 _ACEOF
16651 rm -f conftest.$ac_objext conftest$ac_exeext
16652 if { (ac_try="$ac_link"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest$ac_exeext &&
16668 $as_test_x conftest$ac_exeext; then
16669 eval "$as_ac_var=yes"
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 eval "$as_ac_var=no"
16677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16678 conftest$ac_exeext conftest.$ac_ext
16680 ac_res=`eval echo '${'$as_ac_var'}'`
16681 { echo "$as_me:$LINENO: result: $ac_res" >&5
16682 echo "${ECHO_T}$ac_res" >&6; }
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16686 _ACEOF
16688 else
16689 case " $LIBOBJS " in
16690 *" getloadavg.$ac_objext "* ) ;;
16691 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16693 esac
16696 cat >>confdefs.h <<\_ACEOF
16697 #define C_GETLOADAVG 1
16698 _ACEOF
16700 # Figure out what our getloadavg.c needs.
16701 ac_have_func=no
16702 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16703 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16704 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16705 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16709 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16710 else
16711 # Is the header compilable?
16712 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16713 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16721 #include <sys/dg_sys_info.h>
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.$ac_objext; then
16740 ac_header_compiler=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_compiler=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16754 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <sys/dg_sys_info.h>
16762 _ACEOF
16763 if { (ac_try="$ac_cpp conftest.$ac_ext"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } >/dev/null && {
16776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 }; then
16779 ac_header_preproc=yes
16780 else
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16793 yes:no: )
16794 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16798 ac_header_preproc=yes
16800 no:yes:* )
16801 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16815 esac
16816 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16817 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16818 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16823 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16824 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16827 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16828 ac_have_func=yes
16830 cat >>confdefs.h <<\_ACEOF
16831 #define DGUX 1
16832 _ACEOF
16835 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16836 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16837 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-ldgc $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16849 /* Override any GCC internal prototype to avoid an error.
16850 Use char because int might match the return type of a GCC
16851 builtin and then its argument prototype would still apply. */
16852 #ifdef __cplusplus
16853 extern "C"
16854 #endif
16855 char dg_sys_info ();
16857 main ()
16859 return dg_sys_info ();
16861 return 0;
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_link") 2>conftest.er1
16872 ac_status=$?
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } && {
16878 test -z "$ac_c_werror_flag" ||
16879 test ! -s conftest.err
16880 } && test -s conftest$ac_exeext &&
16881 $as_test_x conftest$ac_exeext; then
16882 ac_cv_lib_dgc_dg_sys_info=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_lib_dgc_dg_sys_info=no
16890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16891 conftest$ac_exeext conftest.$ac_ext
16892 LIBS=$ac_check_lib_save_LIBS
16894 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16895 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16896 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_LIBDGC 1
16899 _ACEOF
16901 LIBS="-ldgc $LIBS"
16909 if test "${ac_cv_header_locale_h+set}" = set; then
16910 { echo "$as_me:$LINENO: checking for locale.h" >&5
16911 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16912 if test "${ac_cv_header_locale_h+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16916 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16917 else
16918 # Is the header compilable?
16919 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16920 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16921 cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h. */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 $ac_includes_default
16928 #include <locale.h>
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_compile") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest.$ac_objext; then
16947 ac_header_compiler=yes
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_header_compiler=no
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16957 echo "${ECHO_T}$ac_header_compiler" >&6; }
16959 # Is the header present?
16960 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16961 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 #include <locale.h>
16969 _ACEOF
16970 if { (ac_try="$ac_cpp conftest.$ac_ext"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } >/dev/null && {
16983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 }; then
16986 ac_header_preproc=yes
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_header_preproc=no
16994 rm -f conftest.err conftest.$ac_ext
16995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16996 echo "${ECHO_T}$ac_header_preproc" >&6; }
16998 # So? What about this header?
16999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17000 yes:no: )
17001 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17002 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17004 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17005 ac_header_preproc=yes
17007 no:yes:* )
17008 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17009 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17011 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17013 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17015 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17017 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17019 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17022 esac
17023 { echo "$as_me:$LINENO: checking for locale.h" >&5
17024 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17025 if test "${ac_cv_header_locale_h+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028 ac_cv_header_locale_h=$ac_header_preproc
17030 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17031 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17037 for ac_func in setlocale
17039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045 cat >conftest.$ac_ext <<_ACEOF
17046 /* confdefs.h. */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17053 #define $ac_func innocuous_$ac_func
17055 /* System header to define __stub macros and hopefully few prototypes,
17056 which can conflict with char $ac_func (); below.
17057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058 <limits.h> exists even on freestanding compilers. */
17060 #ifdef __STDC__
17061 # include <limits.h>
17062 #else
17063 # include <assert.h>
17064 #endif
17066 #undef $ac_func
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17071 #ifdef __cplusplus
17072 extern "C"
17073 #endif
17074 char $ac_func ();
17075 /* The GNU C library defines this for functions which it implements
17076 to always fail with ENOSYS. Some functions are actually named
17077 something starting with __ and the normal name is an alias. */
17078 #if defined __stub_$ac_func || defined __stub___$ac_func
17079 choke me
17080 #endif
17083 main ()
17085 return $ac_func ();
17087 return 0;
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext &&
17107 $as_test_x conftest$ac_exeext; then
17108 eval "$as_ac_var=yes"
17109 else
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 eval "$as_ac_var=no"
17116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17117 conftest$ac_exeext conftest.$ac_ext
17119 ac_res=`eval echo '${'$as_ac_var'}'`
17120 { echo "$as_me:$LINENO: result: $ac_res" >&5
17121 echo "${ECHO_T}$ac_res" >&6; }
17122 if test `eval echo '${'$as_ac_var'}'` = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17125 _ACEOF
17128 done
17131 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17132 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17133 # Irix 4.0.5F has the header but not the library.
17134 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17135 ac_have_func=yes
17137 cat >>confdefs.h <<\_ACEOF
17138 #define SVR4 1
17139 _ACEOF
17143 if test $ac_have_func = no; then
17144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17145 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17146 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17147 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17152 else
17153 # Is the header compilable?
17154 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17155 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 $ac_includes_default
17163 #include <inq_stats/cpustats.h>
17164 _ACEOF
17165 rm -f conftest.$ac_objext
17166 if { (ac_try="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17182 ac_header_compiler=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_compiler=no
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 echo "${ECHO_T}$ac_header_compiler" >&6; }
17194 # Is the header present?
17195 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17196 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17197 cat >conftest.$ac_ext <<_ACEOF
17198 /* confdefs.h. */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203 #include <inq_stats/cpustats.h>
17204 _ACEOF
17205 if { (ac_try="$ac_cpp conftest.$ac_ext"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17212 ac_status=$?
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } >/dev/null && {
17218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17219 test ! -s conftest.err
17220 }; then
17221 ac_header_preproc=yes
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_header_preproc=no
17229 rm -f conftest.err conftest.$ac_ext
17230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17231 echo "${ECHO_T}$ac_header_preproc" >&6; }
17233 # So? What about this header?
17234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17235 yes:no: )
17236 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17237 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17238 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17239 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17240 ac_header_preproc=yes
17242 no:yes:* )
17243 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17244 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17246 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17248 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17250 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17252 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17254 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17257 esac
17258 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17259 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17260 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17265 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17266 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17269 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17270 ac_have_func=yes
17272 cat >>confdefs.h <<\_ACEOF
17273 #define UMAX 1
17274 _ACEOF
17277 cat >>confdefs.h <<\_ACEOF
17278 #define UMAX4_3 1
17279 _ACEOF
17286 if test $ac_have_func = no; then
17287 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17288 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17289 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17290 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17294 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17295 else
17296 # Is the header compilable?
17297 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17298 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 $ac_includes_default
17306 #include <sys/cpustats.h>
17307 _ACEOF
17308 rm -f conftest.$ac_objext
17309 if { (ac_try="$ac_compile"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_compile") 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } && {
17322 test -z "$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 } && test -s conftest.$ac_objext; then
17325 ac_header_compiler=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_compiler=no
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6; }
17337 # Is the header present?
17338 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17339 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <sys/cpustats.h>
17347 _ACEOF
17348 if { (ac_try="$ac_cpp conftest.$ac_ext"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } >/dev/null && {
17361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 }; then
17364 ac_header_preproc=yes
17365 else
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 ac_header_preproc=no
17372 rm -f conftest.err conftest.$ac_ext
17373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17374 echo "${ECHO_T}$ac_header_preproc" >&6; }
17376 # So? What about this header?
17377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17378 yes:no: )
17379 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17380 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17381 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17382 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17383 ac_header_preproc=yes
17385 no:yes:* )
17386 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17387 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17389 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17390 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17391 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17393 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17395 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17397 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17400 esac
17401 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17402 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17403 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17408 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17409 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17412 if test $ac_cv_header_sys_cpustats_h = yes; then
17413 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17414 #define UMAX 1
17415 _ACEOF
17422 if test $ac_have_func = no; then
17424 for ac_header in mach/mach.h
17426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 ac_res=`eval echo '${'$as_ac_Header'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 else
17437 # Is the header compilable?
17438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 $ac_includes_default
17447 #include <$ac_header>
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_compile") 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest.$ac_objext; then
17466 ac_header_compiler=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_compiler=no
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17476 echo "${ECHO_T}$ac_header_compiler" >&6; }
17478 # Is the header present?
17479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 #include <$ac_header>
17488 _ACEOF
17489 if { (ac_try="$ac_cpp conftest.$ac_ext"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } >/dev/null && {
17502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 }; then
17505 ac_header_preproc=yes
17506 else
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_header_preproc=no
17513 rm -f conftest.err conftest.$ac_ext
17514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17515 echo "${ECHO_T}$ac_header_preproc" >&6; }
17517 # So? What about this header?
17518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17519 yes:no: )
17520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17524 ac_header_preproc=yes
17526 no:yes:* )
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17541 esac
17542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547 eval "$as_ac_Header=\$ac_header_preproc"
17549 ac_res=`eval echo '${'$as_ac_Header'}'`
17550 { echo "$as_me:$LINENO: result: $ac_res" >&5
17551 echo "${ECHO_T}$ac_res" >&6; }
17554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17555 cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17557 _ACEOF
17561 done
17566 for ac_header in nlist.h
17568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 ac_res=`eval echo '${'$as_ac_Header'}'`
17576 { echo "$as_me:$LINENO: result: $ac_res" >&5
17577 echo "${ECHO_T}$ac_res" >&6; }
17578 else
17579 # Is the header compilable?
17580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17582 cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h. */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 $ac_includes_default
17589 #include <$ac_header>
17590 _ACEOF
17591 rm -f conftest.$ac_objext
17592 if { (ac_try="$ac_compile"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_compile") 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && {
17605 test -z "$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17607 } && test -s conftest.$ac_objext; then
17608 ac_header_compiler=yes
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_header_compiler=no
17616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17618 echo "${ECHO_T}$ac_header_compiler" >&6; }
17620 # Is the header present?
17621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #include <$ac_header>
17630 _ACEOF
17631 if { (ac_try="$ac_cpp conftest.$ac_ext"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } >/dev/null && {
17644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 }; then
17647 ac_header_preproc=yes
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_header_preproc=no
17655 rm -f conftest.err conftest.$ac_ext
17656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17657 echo "${ECHO_T}$ac_header_preproc" >&6; }
17659 # So? What about this header?
17660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17661 yes:no: )
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17666 ac_header_preproc=yes
17668 no:yes:* )
17669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17683 esac
17684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689 eval "$as_ac_Header=\$ac_header_preproc"
17691 ac_res=`eval echo '${'$as_ac_Header'}'`
17692 { echo "$as_me:$LINENO: result: $ac_res" >&5
17693 echo "${ECHO_T}$ac_res" >&6; }
17696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17699 _ACEOF
17700 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17701 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17702 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 #include <nlist.h>
17714 main ()
17716 static struct nlist ac_aggr;
17717 if (ac_aggr.n_un.n_name)
17718 return 0;
17720 return 0;
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest.$ac_objext; then
17740 ac_cv_member_struct_nlist_n_un_n_name=yes
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 #include <nlist.h>
17754 main ()
17756 static struct nlist ac_aggr;
17757 if (sizeof ac_aggr.n_un.n_name)
17758 return 0;
17760 return 0;
17762 _ACEOF
17763 rm -f conftest.$ac_objext
17764 if { (ac_try="$ac_compile"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_member_struct_nlist_n_un_n_name=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_member_struct_nlist_n_un_n_name=no
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17794 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17795 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17799 _ACEOF
17802 cat >>confdefs.h <<\_ACEOF
17803 #define NLIST_NAME_UNION 1
17804 _ACEOF
17811 done
17814 done
17817 # Some definitions of getloadavg require that the program be installed setgid.
17818 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17819 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17820 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17830 #ifdef LDAV_PRIVILEGED
17831 Yowza Am I SETGID yet
17832 #endif
17833 _ACEOF
17834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17835 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17836 ac_cv_func_getloadavg_setgid=yes
17837 else
17838 ac_cv_func_getloadavg_setgid=no
17840 rm -f conftest*
17843 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17844 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17845 if test $ac_cv_func_getloadavg_setgid = yes; then
17846 NEED_SETGID=true
17848 cat >>confdefs.h <<\_ACEOF
17849 #define GETLOADAVG_PRIVILEGED 1
17850 _ACEOF
17852 else
17853 NEED_SETGID=false
17856 if test $ac_cv_func_getloadavg_setgid = yes; then
17857 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17858 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17859 if test "${ac_cv_group_kmem+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17863 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17864 # If we got an error (system does not support symlinks), try without -L.
17865 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17866 ac_cv_group_kmem=`echo $ac_ls_output \
17867 | sed -ne 's/[ ][ ]*/ /g;
17868 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17869 / /s/.* //;p;'`
17872 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17873 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17874 KMEM_GROUP=$ac_cv_group_kmem
17876 if test "x$ac_save_LIBS" = x; then
17877 GETLOADAVG_LIBS=$LIBS
17878 else
17879 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17881 LIBS=$ac_save_LIBS
17885 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17886 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17887 if test "${ac_cv_sys_largefile_source+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 while :; do
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #include <stdio.h>
17899 main ()
17901 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17903 return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_link") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } && {
17920 test -z "$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 } && test -s conftest$ac_exeext &&
17923 $as_test_x conftest$ac_exeext; then
17924 ac_cv_sys_largefile_source=no; break
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17933 conftest$ac_exeext conftest.$ac_ext
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 #define _LARGEFILE_SOURCE 1
17941 #include <stdio.h>
17943 main ()
17945 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17947 return 0;
17949 _ACEOF
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
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_link") 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_exeext &&
17967 $as_test_x conftest$ac_exeext; then
17968 ac_cv_sys_largefile_source=1; break
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977 conftest$ac_exeext conftest.$ac_ext
17978 ac_cv_sys_largefile_source=unknown
17979 break
17980 done
17982 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17983 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17984 case $ac_cv_sys_largefile_source in #(
17985 no | unknown) ;;
17987 cat >>confdefs.h <<_ACEOF
17988 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17989 _ACEOF
17991 esac
17992 rm -f conftest*
17994 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17995 # in glibc 2.1.3, but that breaks too many other things.
17996 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17997 if test $ac_cv_sys_largefile_source != unknown; then
17999 cat >>confdefs.h <<\_ACEOF
18000 #define HAVE_FSEEKO 1
18001 _ACEOF
18006 # Configure getopt.
18007 # getopt.m4 serial 10
18009 # The getopt module assume you want GNU getopt, with getopt_long etc,
18010 # rather than vanilla POSIX getopt. This means your your code should
18011 # always include <getopt.h> for the getopt prototypes.
18023 # Prerequisites of lib/getopt*.
18028 GETOPT_H=
18030 for ac_header in getopt.h
18032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 ac_res=`eval echo '${'$as_ac_Header'}'`
18040 { echo "$as_me:$LINENO: result: $ac_res" >&5
18041 echo "${ECHO_T}$ac_res" >&6; }
18042 else
18043 # Is the header compilable?
18044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18053 #include <$ac_header>
18054 _ACEOF
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 ac_header_compiler=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_compiler=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18082 echo "${ECHO_T}$ac_header_compiler" >&6; }
18084 # Is the header present?
18085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18087 cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h. */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <$ac_header>
18094 _ACEOF
18095 if { (ac_try="$ac_cpp conftest.$ac_ext"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } >/dev/null && {
18108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18110 }; then
18111 ac_header_preproc=yes
18112 else
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_header_preproc=no
18119 rm -f conftest.err conftest.$ac_ext
18120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18121 echo "${ECHO_T}$ac_header_preproc" >&6; }
18123 # So? What about this header?
18124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18125 yes:no: )
18126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18130 ac_header_preproc=yes
18132 no:yes:* )
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18147 esac
18148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 eval "$as_ac_Header=\$ac_header_preproc"
18155 ac_res=`eval echo '${'$as_ac_Header'}'`
18156 { echo "$as_me:$LINENO: result: $ac_res" >&5
18157 echo "${ECHO_T}$ac_res" >&6; }
18160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18163 _ACEOF
18165 else
18166 GETOPT_H=getopt.h
18169 done
18171 if test -z "$GETOPT_H"; then
18173 for ac_func in getopt_long_only
18175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h. */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define $ac_func innocuous_$ac_func
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18196 #ifdef __STDC__
18197 # include <limits.h>
18198 #else
18199 # include <assert.h>
18200 #endif
18202 #undef $ac_func
18204 /* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18207 #ifdef __cplusplus
18208 extern "C"
18209 #endif
18210 char $ac_func ();
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined __stub_$ac_func || defined __stub___$ac_func
18215 choke me
18216 #endif
18219 main ()
18221 return $ac_func ();
18223 return 0;
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } && {
18240 test -z "$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 } && test -s conftest$ac_exeext &&
18243 $as_test_x conftest$ac_exeext; then
18244 eval "$as_ac_var=yes"
18245 else
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 eval "$as_ac_var=no"
18252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253 conftest$ac_exeext conftest.$ac_ext
18255 ac_res=`eval echo '${'$as_ac_var'}'`
18256 { echo "$as_me:$LINENO: result: $ac_res" >&5
18257 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18261 _ACEOF
18263 else
18264 GETOPT_H=getopt.h
18266 done
18270 if test -z "$GETOPT_H"; then
18271 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18272 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18273 if test "${ac_cv_have_decl_optreset+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276 cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h. */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 #include <getopt.h>
18285 main ()
18287 #ifndef optreset
18288 (void) optreset;
18289 #endif
18292 return 0;
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_compile") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest.$ac_objext; then
18312 ac_cv_have_decl_optreset=yes
18313 else
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_cv_have_decl_optreset=no
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18323 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18324 if test $ac_cv_have_decl_optreset = yes; then
18325 GETOPT_H=getopt.h
18330 if test -z "$GETOPT_H"; then
18331 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18332 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18333 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 if test "$cross_compiling" = yes; then
18337 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18338 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18339 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 else
18342 cat >conftest.$ac_ext <<_ACEOF
18343 /* confdefs.h. */
18344 _ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18348 #include <getopt.h>
18351 main ()
18353 #ifndef getopt_clip
18354 (void) getopt_clip;
18355 #endif
18358 return 0;
18360 _ACEOF
18361 rm -f conftest.$ac_objext
18362 if { (ac_try="$ac_compile"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_compile") 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest.$ac_objext; then
18378 ac_cv_have_decl_getopt_clip=yes
18379 else
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_cv_have_decl_getopt_clip=no
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18388 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18389 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18390 if test $ac_cv_have_decl_getopt_clip = yes; then
18391 gl_cv_func_gnu_getopt=no
18392 else
18393 gl_cv_func_gnu_getopt=yes
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 #include <getopt.h>
18405 main ()
18408 char *myargv[3];
18409 myargv[0] = "conftest";
18410 myargv[1] = "-+";
18411 myargv[2] = 0;
18412 return getopt (2, myargv, "+a") != '?';
18415 return 0;
18417 _ACEOF
18418 rm -f conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 gl_cv_func_gnu_getopt=yes
18439 else
18440 echo "$as_me: program exited with status $ac_status" >&5
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ( exit $ac_status )
18445 gl_cv_func_gnu_getopt=no
18447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18452 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18453 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18454 if test "$gl_cv_func_gnu_getopt" = "no"; then
18455 GETOPT_H=getopt.h
18461 if test -n "$GETOPT_H"; then
18464 GETOPT_H=getopt.h
18466 cat >>confdefs.h <<\_ACEOF
18467 #define __GETOPT_PREFIX rpl_
18468 _ACEOF
18473 GETOPTOBJS='getopt.o getopt1.o'
18480 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18481 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18482 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 else
18485 # Use it with a single arg.
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h. */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18494 main ()
18496 getpgrp (0);
18498 return 0;
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_cv_func_getpgrp_void=no
18519 else
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_func_getpgrp_void=yes
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18530 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18531 if test $ac_cv_func_getpgrp_void = yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define GETPGRP_VOID 1
18535 _ACEOF
18541 for ac_func in strftime
18543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h. */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18557 #define $ac_func innocuous_$ac_func
18559 /* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func (); below.
18561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562 <limits.h> exists even on freestanding compilers. */
18564 #ifdef __STDC__
18565 # include <limits.h>
18566 #else
18567 # include <assert.h>
18568 #endif
18570 #undef $ac_func
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char $ac_func ();
18579 /* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18583 choke me
18584 #endif
18587 main ()
18589 return $ac_func ();
18591 return 0;
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 eval "$as_ac_var=yes"
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 eval "$as_ac_var=no"
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18623 ac_res=`eval echo '${'$as_ac_var'}'`
18624 { echo "$as_me:$LINENO: result: $ac_res" >&5
18625 echo "${ECHO_T}$ac_res" >&6; }
18626 if test `eval echo '${'$as_ac_var'}'` = yes; then
18627 cat >>confdefs.h <<_ACEOF
18628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629 _ACEOF
18631 else
18632 # strftime is in -lintl on SCO UNIX.
18633 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18634 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18635 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 else
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lintl $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18650 #ifdef __cplusplus
18651 extern "C"
18652 #endif
18653 char strftime ();
18655 main ()
18657 return strftime ();
18659 return 0;
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (ac_try="$ac_link"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_link") 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest$ac_exeext &&
18679 $as_test_x conftest$ac_exeext; then
18680 ac_cv_lib_intl_strftime=yes
18681 else
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ac_cv_lib_intl_strftime=no
18688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18689 conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18692 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18693 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18694 if test $ac_cv_lib_intl_strftime = yes; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_STRFTIME 1
18697 _ACEOF
18699 LIBS="-lintl $LIBS"
18703 done
18706 # UNIX98 PTYs.
18708 for ac_func in grantpt
18710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18724 #define $ac_func innocuous_$ac_func
18726 /* System header to define __stub macros and hopefully few prototypes,
18727 which can conflict with char $ac_func (); below.
18728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18729 <limits.h> exists even on freestanding compilers. */
18731 #ifdef __STDC__
18732 # include <limits.h>
18733 #else
18734 # include <assert.h>
18735 #endif
18737 #undef $ac_func
18739 /* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18742 #ifdef __cplusplus
18743 extern "C"
18744 #endif
18745 char $ac_func ();
18746 /* The GNU C library defines this for functions which it implements
18747 to always fail with ENOSYS. Some functions are actually named
18748 something starting with __ and the normal name is an alias. */
18749 #if defined __stub_$ac_func || defined __stub___$ac_func
18750 choke me
18751 #endif
18754 main ()
18756 return $ac_func ();
18758 return 0;
18760 _ACEOF
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18769 ac_status=$?
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } && {
18775 test -z "$ac_c_werror_flag" ||
18776 test ! -s conftest.err
18777 } && test -s conftest$ac_exeext &&
18778 $as_test_x conftest$ac_exeext; then
18779 eval "$as_ac_var=yes"
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 eval "$as_ac_var=no"
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18790 ac_res=`eval echo '${'$as_ac_var'}'`
18791 { echo "$as_me:$LINENO: result: $ac_res" >&5
18792 echo "${ECHO_T}$ac_res" >&6; }
18793 if test `eval echo '${'$as_ac_var'}'` = yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18796 _ACEOF
18799 done
18802 # PTY-related GNU extensions.
18804 for ac_func in getpt
18806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18820 #define $ac_func innocuous_$ac_func
18822 /* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char $ac_func (); below.
18824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 <limits.h> exists even on freestanding compilers. */
18827 #ifdef __STDC__
18828 # include <limits.h>
18829 #else
18830 # include <assert.h>
18831 #endif
18833 #undef $ac_func
18835 /* Override any GCC internal prototype to avoid an error.
18836 Use char because int might match the return type of a GCC
18837 builtin and then its argument prototype would still apply. */
18838 #ifdef __cplusplus
18839 extern "C"
18840 #endif
18841 char $ac_func ();
18842 /* The GNU C library defines this for functions which it implements
18843 to always fail with ENOSYS. Some functions are actually named
18844 something starting with __ and the normal name is an alias. */
18845 #if defined __stub_$ac_func || defined __stub___$ac_func
18846 choke me
18847 #endif
18850 main ()
18852 return $ac_func ();
18854 return 0;
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } && {
18871 test -z "$ac_c_werror_flag" ||
18872 test ! -s conftest.err
18873 } && test -s conftest$ac_exeext &&
18874 $as_test_x conftest$ac_exeext; then
18875 eval "$as_ac_var=yes"
18876 else
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18880 eval "$as_ac_var=no"
18883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18884 conftest$ac_exeext conftest.$ac_ext
18886 ac_res=`eval echo '${'$as_ac_var'}'`
18887 { echo "$as_me:$LINENO: result: $ac_res" >&5
18888 echo "${ECHO_T}$ac_res" >&6; }
18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18892 _ACEOF
18895 done
18898 # Check this now, so that we will NOT find the above functions in ncurses.
18899 # That is because we have not set up to link ncurses in lib-src.
18900 # It's better to believe a function is not available
18901 # than to expect to find it in ncurses.
18903 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18904 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18905 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-lncurses $LIBS"
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h. */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 char tparm ();
18925 main ()
18927 return tparm ();
18929 return 0;
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_link") 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } && {
18946 test -z "$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 } && test -s conftest$ac_exeext &&
18949 $as_test_x conftest$ac_exeext; then
18950 ac_cv_lib_ncurses_tparm=yes
18951 else
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_lib_ncurses_tparm=no
18958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18959 conftest$ac_exeext conftest.$ac_ext
18960 LIBS=$ac_check_lib_save_LIBS
18962 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18963 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18964 if test $ac_cv_lib_ncurses_tparm = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966 #define HAVE_LIBNCURSES 1
18967 _ACEOF
18969 LIBS="-lncurses $LIBS"
18974 # Do we need the Hesiod library to provide the support routines?
18975 if test "$with_hesiod" = yes ; then
18976 # Don't set $LIBS here -- see comments above.
18977 resolv=no
18978 { echo "$as_me:$LINENO: checking for res_send" >&5
18979 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18980 if test "${ac_cv_func_res_send+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18991 #define res_send innocuous_res_send
18993 /* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char res_send (); below.
18995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996 <limits.h> exists even on freestanding compilers. */
18998 #ifdef __STDC__
18999 # include <limits.h>
19000 #else
19001 # include <assert.h>
19002 #endif
19004 #undef res_send
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char res_send ();
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined __stub_res_send || defined __stub___res_send
19017 choke me
19018 #endif
19021 main ()
19023 return res_send ();
19025 return 0;
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } && {
19042 test -z "$ac_c_werror_flag" ||
19043 test ! -s conftest.err
19044 } && test -s conftest$ac_exeext &&
19045 $as_test_x conftest$ac_exeext; then
19046 ac_cv_func_res_send=yes
19047 else
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 ac_cv_func_res_send=no
19054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19055 conftest$ac_exeext conftest.$ac_ext
19057 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19058 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19059 if test $ac_cv_func_res_send = yes; then
19061 else
19062 { echo "$as_me:$LINENO: checking for __res_send" >&5
19063 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19064 if test "${ac_cv_func___res_send+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 else
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19075 #define __res_send innocuous___res_send
19077 /* System header to define __stub macros and hopefully few prototypes,
19078 which can conflict with char __res_send (); below.
19079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19080 <limits.h> exists even on freestanding compilers. */
19082 #ifdef __STDC__
19083 # include <limits.h>
19084 #else
19085 # include <assert.h>
19086 #endif
19088 #undef __res_send
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 char __res_send ();
19097 /* The GNU C library defines this for functions which it implements
19098 to always fail with ENOSYS. Some functions are actually named
19099 something starting with __ and the normal name is an alias. */
19100 #if defined __stub___res_send || defined __stub_____res_send
19101 choke me
19102 #endif
19105 main ()
19107 return __res_send ();
19109 return 0;
19111 _ACEOF
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (ac_try="$ac_link"
19114 case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_link") 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } && {
19126 test -z "$ac_c_werror_flag" ||
19127 test ! -s conftest.err
19128 } && test -s conftest$ac_exeext &&
19129 $as_test_x conftest$ac_exeext; then
19130 ac_cv_func___res_send=yes
19131 else
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19135 ac_cv_func___res_send=no
19138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19139 conftest$ac_exeext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19142 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19143 if test $ac_cv_func___res_send = yes; then
19145 else
19146 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19147 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19148 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lresolv $LIBS"
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h. */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char res_send ();
19168 main ()
19170 return res_send ();
19172 return 0;
19174 _ACEOF
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_link") 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } && {
19189 test -z "$ac_c_werror_flag" ||
19190 test ! -s conftest.err
19191 } && test -s conftest$ac_exeext &&
19192 $as_test_x conftest$ac_exeext; then
19193 ac_cv_lib_resolv_res_send=yes
19194 else
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_lib_resolv_res_send=no
19201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19206 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19207 if test $ac_cv_lib_resolv_res_send = yes; then
19208 resolv=yes
19209 else
19210 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19211 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19212 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215 ac_check_lib_save_LIBS=$LIBS
19216 LIBS="-lresolv $LIBS"
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 char __res_send ();
19232 main ()
19234 return __res_send ();
19236 return 0;
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 ac_cv_lib_resolv___res_send=yes
19258 else
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_lib_resolv___res_send=no
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19270 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19271 if test $ac_cv_lib_resolv___res_send = yes; then
19272 resolv=yes
19281 if test "$resolv" = yes ; then
19282 RESOLVLIB=-lresolv
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_LIBRESOLV 1
19286 _ACEOF
19288 else
19289 RESOLVLIB=
19291 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19292 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19293 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define hes_getmailhost innocuous_hes_getmailhost
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char hes_getmailhost (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19311 #ifdef __STDC__
19312 # include <limits.h>
19313 #else
19314 # include <assert.h>
19315 #endif
19317 #undef hes_getmailhost
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19322 #ifdef __cplusplus
19323 extern "C"
19324 #endif
19325 char hes_getmailhost ();
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19330 choke me
19331 #endif
19334 main ()
19336 return hes_getmailhost ();
19338 return 0;
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } && {
19355 test -z "$ac_c_werror_flag" ||
19356 test ! -s conftest.err
19357 } && test -s conftest$ac_exeext &&
19358 $as_test_x conftest$ac_exeext; then
19359 ac_cv_func_hes_getmailhost=yes
19360 else
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 ac_cv_func_hes_getmailhost=no
19367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19368 conftest$ac_exeext conftest.$ac_ext
19370 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19371 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19372 if test $ac_cv_func_hes_getmailhost = yes; then
19374 else
19375 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19376 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19377 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380 ac_check_lib_save_LIBS=$LIBS
19381 LIBS="-lhesiod $RESOLVLIB $LIBS"
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19392 #ifdef __cplusplus
19393 extern "C"
19394 #endif
19395 char hes_getmailhost ();
19397 main ()
19399 return hes_getmailhost ();
19401 return 0;
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest$ac_exeext &&
19421 $as_test_x conftest$ac_exeext; then
19422 ac_cv_lib_hesiod_hes_getmailhost=yes
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_lib_hesiod_hes_getmailhost=no
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19434 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19435 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19436 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_LIBHESIOD 1
19440 _ACEOF
19442 else
19450 # These tell us which Kerberos-related libraries to use.
19451 if test "${with_kerberos+set}" = set; then
19453 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19454 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19455 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458 ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lcom_err $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 char com_err ();
19475 main ()
19477 return com_err ();
19479 return 0;
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_lib_com_err_com_err=yes
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_lib_com_err_com_err=no
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext conftest.$ac_ext
19510 LIBS=$ac_check_lib_save_LIBS
19512 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19513 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19514 if test $ac_cv_lib_com_err_com_err = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_LIBCOM_ERR 1
19517 _ACEOF
19519 LIBS="-lcom_err $LIBS"
19524 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19525 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19526 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529 ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-lk5crypto $LIBS"
19531 cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h. */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char mit_des_cbc_encrypt ();
19546 main ()
19548 return mit_des_cbc_encrypt ();
19550 return 0;
19552 _ACEOF
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19584 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19585 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define HAVE_LIBK5CRYPTO 1
19588 _ACEOF
19590 LIBS="-lk5crypto $LIBS"
19595 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19596 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19597 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lcrypto $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char mit_des_cbc_encrypt ();
19617 main ()
19619 return mit_des_cbc_encrypt ();
19621 return 0;
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } && {
19638 test -z "$ac_c_werror_flag" ||
19639 test ! -s conftest.err
19640 } && test -s conftest$ac_exeext &&
19641 $as_test_x conftest$ac_exeext; then
19642 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19643 else
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652 LIBS=$ac_check_lib_save_LIBS
19654 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19655 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19656 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19657 cat >>confdefs.h <<_ACEOF
19658 #define HAVE_LIBCRYPTO 1
19659 _ACEOF
19661 LIBS="-lcrypto $LIBS"
19666 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19667 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19668 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671 ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-lkrb5 $LIBS"
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h. */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char krb5_init_context ();
19688 main ()
19690 return krb5_init_context ();
19692 return 0;
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest$ac_exeext &&
19712 $as_test_x conftest$ac_exeext; then
19713 ac_cv_lib_krb5_krb5_init_context=yes
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_krb5_krb5_init_context=no
19721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19726 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19727 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define HAVE_LIBKRB5 1
19730 _ACEOF
19732 LIBS="-lkrb5 $LIBS"
19736 if test "${with_kerberos5+set}" != set; then
19738 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19739 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743 ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-ldes425 $LIBS"
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h. */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char des_cbc_encrypt ();
19760 main ()
19762 return des_cbc_encrypt ();
19764 return 0;
19766 _ACEOF
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest$ac_exeext &&
19784 $as_test_x conftest$ac_exeext; then
19785 ac_cv_lib_des425_des_cbc_encrypt=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_lib_des425_des_cbc_encrypt=no
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794 conftest$ac_exeext conftest.$ac_ext
19795 LIBS=$ac_check_lib_save_LIBS
19797 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19798 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19799 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_LIBDES425 1
19802 _ACEOF
19804 LIBS="-ldes425 $LIBS"
19806 else
19808 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19809 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19810 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813 ac_check_lib_save_LIBS=$LIBS
19814 LIBS="-ldes $LIBS"
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h. */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19822 /* Override any GCC internal prototype to avoid an error.
19823 Use char because int might match the return type of a GCC
19824 builtin and then its argument prototype would still apply. */
19825 #ifdef __cplusplus
19826 extern "C"
19827 #endif
19828 char des_cbc_encrypt ();
19830 main ()
19832 return des_cbc_encrypt ();
19834 return 0;
19836 _ACEOF
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_lib_des_des_cbc_encrypt=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_lib_des_des_cbc_encrypt=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19865 LIBS=$ac_check_lib_save_LIBS
19867 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19868 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19869 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_LIBDES 1
19872 _ACEOF
19874 LIBS="-ldes $LIBS"
19881 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19882 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19883 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886 ac_check_lib_save_LIBS=$LIBS
19887 LIBS="-lkrb4 $LIBS"
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19898 #ifdef __cplusplus
19899 extern "C"
19900 #endif
19901 char krb_get_cred ();
19903 main ()
19905 return krb_get_cred ();
19907 return 0;
19909 _ACEOF
19910 rm -f conftest.$ac_objext conftest$ac_exeext
19911 if { (ac_try="$ac_link"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_link") 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest$ac_exeext &&
19927 $as_test_x conftest$ac_exeext; then
19928 ac_cv_lib_krb4_krb_get_cred=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_cv_lib_krb4_krb_get_cred=no
19936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19937 conftest$ac_exeext conftest.$ac_ext
19938 LIBS=$ac_check_lib_save_LIBS
19940 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19941 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19942 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19943 cat >>confdefs.h <<_ACEOF
19944 #define HAVE_LIBKRB4 1
19945 _ACEOF
19947 LIBS="-lkrb4 $LIBS"
19949 else
19951 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19952 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19953 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956 ac_check_lib_save_LIBS=$LIBS
19957 LIBS="-lkrb $LIBS"
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19965 /* Override any GCC internal prototype to avoid an error.
19966 Use char because int might match the return type of a GCC
19967 builtin and then its argument prototype would still apply. */
19968 #ifdef __cplusplus
19969 extern "C"
19970 #endif
19971 char krb_get_cred ();
19973 main ()
19975 return krb_get_cred ();
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_link") 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest$ac_exeext &&
19997 $as_test_x conftest$ac_exeext; then
19998 ac_cv_lib_krb_krb_get_cred=yes
19999 else
20000 echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_lib_krb_krb_get_cred=no
20006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20007 conftest$ac_exeext conftest.$ac_ext
20008 LIBS=$ac_check_lib_save_LIBS
20010 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20011 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20012 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_LIBKRB 1
20015 _ACEOF
20017 LIBS="-lkrb $LIBS"
20025 if test "${with_kerberos5+set}" = set; then
20027 for ac_header in krb5.h
20029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 ac_res=`eval echo '${'$as_ac_Header'}'`
20037 { echo "$as_me:$LINENO: result: $ac_res" >&5
20038 echo "${ECHO_T}$ac_res" >&6; }
20039 else
20040 # Is the header compilable?
20041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20050 #include <$ac_header>
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.$ac_objext; then
20069 ac_header_compiler=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_header_compiler=no
20077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20079 echo "${ECHO_T}$ac_header_compiler" >&6; }
20081 # Is the header present?
20082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <$ac_header>
20091 _ACEOF
20092 if { (ac_try="$ac_cpp conftest.$ac_ext"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } >/dev/null && {
20105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 }; then
20108 ac_header_preproc=yes
20109 else
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_header_preproc=no
20116 rm -f conftest.err conftest.$ac_ext
20117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20118 echo "${ECHO_T}$ac_header_preproc" >&6; }
20120 # So? What about this header?
20121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20122 yes:no: )
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20127 ac_header_preproc=yes
20129 no:yes:* )
20130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20144 esac
20145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 eval "$as_ac_Header=\$ac_header_preproc"
20152 ac_res=`eval echo '${'$as_ac_Header'}'`
20153 { echo "$as_me:$LINENO: result: $ac_res" >&5
20154 echo "${ECHO_T}$ac_res" >&6; }
20157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20158 cat >>confdefs.h <<_ACEOF
20159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20160 _ACEOF
20164 done
20166 else
20168 for ac_header in des.h
20170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178 { echo "$as_me:$LINENO: result: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20180 else
20181 # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20191 #include <$ac_header>
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_compile") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest.$ac_objext; then
20210 ac_header_compiler=yes
20211 else
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_compiler=no
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <$ac_header>
20232 _ACEOF
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240 ac_status=$?
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } >/dev/null && {
20246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20248 }; then
20249 ac_header_preproc=yes
20250 else
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_header_preproc=no
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20261 # So? What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20263 yes:no: )
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268 ac_header_preproc=yes
20270 no:yes:* )
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20285 esac
20286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 eval "$as_ac_Header=\$ac_header_preproc"
20293 ac_res=`eval echo '${'$as_ac_Header'}'`
20294 { echo "$as_me:$LINENO: result: $ac_res" >&5
20295 echo "${ECHO_T}$ac_res" >&6; }
20298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20301 _ACEOF
20303 else
20305 for ac_header in kerberosIV/des.h
20307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 ac_res=`eval echo '${'$as_ac_Header'}'`
20315 { echo "$as_me:$LINENO: result: $ac_res" >&5
20316 echo "${ECHO_T}$ac_res" >&6; }
20317 else
20318 # Is the header compilable?
20319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 $ac_includes_default
20328 #include <$ac_header>
20329 _ACEOF
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_header_compiler=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_header_compiler=no
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20357 echo "${ECHO_T}$ac_header_compiler" >&6; }
20359 # Is the header present?
20360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include <$ac_header>
20369 _ACEOF
20370 if { (ac_try="$ac_cpp conftest.$ac_ext"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20377 ac_status=$?
20378 grep -v '^ *+' conftest.er1 >conftest.err
20379 rm -f conftest.er1
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } >/dev/null && {
20383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20384 test ! -s conftest.err
20385 }; then
20386 ac_header_preproc=yes
20387 else
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_header_preproc=no
20394 rm -f conftest.err conftest.$ac_ext
20395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20396 echo "${ECHO_T}$ac_header_preproc" >&6; }
20398 # So? What about this header?
20399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20400 yes:no: )
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20405 ac_header_preproc=yes
20407 no:yes:* )
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20422 esac
20423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 eval "$as_ac_Header=\$ac_header_preproc"
20430 ac_res=`eval echo '${'$as_ac_Header'}'`
20431 { echo "$as_me:$LINENO: result: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20438 _ACEOF
20440 else
20442 for ac_header in kerberos/des.h
20444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452 { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20454 else
20455 # Is the header compilable?
20456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h. */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 $ac_includes_default
20465 #include <$ac_header>
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_compile") 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest.$ac_objext; then
20484 ac_header_compiler=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_compiler=no
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6; }
20496 # Is the header present?
20497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <$ac_header>
20506 _ACEOF
20507 if { (ac_try="$ac_cpp conftest.$ac_ext"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } >/dev/null && {
20520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 }; then
20523 ac_header_preproc=yes
20524 else
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_preproc=no
20531 rm -f conftest.err conftest.$ac_ext
20532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6; }
20535 # So? What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20537 yes:no: )
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20542 ac_header_preproc=yes
20544 no:yes:* )
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20559 esac
20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565 eval "$as_ac_Header=\$ac_header_preproc"
20567 ac_res=`eval echo '${'$as_ac_Header'}'`
20568 { echo "$as_me:$LINENO: result: $ac_res" >&5
20569 echo "${ECHO_T}$ac_res" >&6; }
20572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20575 _ACEOF
20579 done
20583 done
20587 done
20590 for ac_header in krb.h
20592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 ac_res=`eval echo '${'$as_ac_Header'}'`
20600 { echo "$as_me:$LINENO: result: $ac_res" >&5
20601 echo "${ECHO_T}$ac_res" >&6; }
20602 else
20603 # Is the header compilable?
20604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h. */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 $ac_includes_default
20613 #include <$ac_header>
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_compile") 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest.$ac_objext; then
20632 ac_header_compiler=yes
20633 else
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_header_compiler=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642 echo "${ECHO_T}$ac_header_compiler" >&6; }
20644 # Is the header present?
20645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <$ac_header>
20654 _ACEOF
20655 if { (ac_try="$ac_cpp conftest.$ac_ext"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } >/dev/null && {
20668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 }; then
20671 ac_header_preproc=yes
20672 else
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_preproc=no
20679 rm -f conftest.err conftest.$ac_ext
20680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20681 echo "${ECHO_T}$ac_header_preproc" >&6; }
20683 # So? What about this header?
20684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20685 yes:no: )
20686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20690 ac_header_preproc=yes
20692 no:yes:* )
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20707 esac
20708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713 eval "$as_ac_Header=\$ac_header_preproc"
20715 ac_res=`eval echo '${'$as_ac_Header'}'`
20716 { echo "$as_me:$LINENO: result: $ac_res" >&5
20717 echo "${ECHO_T}$ac_res" >&6; }
20720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20721 cat >>confdefs.h <<_ACEOF
20722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20723 _ACEOF
20725 else
20727 for ac_header in kerberosIV/krb.h
20729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 ac_res=`eval echo '${'$as_ac_Header'}'`
20737 { echo "$as_me:$LINENO: result: $ac_res" >&5
20738 echo "${ECHO_T}$ac_res" >&6; }
20739 else
20740 # Is the header compilable?
20741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h. */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 $ac_includes_default
20750 #include <$ac_header>
20751 _ACEOF
20752 rm -f conftest.$ac_objext
20753 if { (ac_try="$ac_compile"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_compile") 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } && {
20766 test -z "$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 } && test -s conftest.$ac_objext; then
20769 ac_header_compiler=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_header_compiler=no
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20779 echo "${ECHO_T}$ac_header_compiler" >&6; }
20781 # Is the header present?
20782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h. */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <$ac_header>
20791 _ACEOF
20792 if { (ac_try="$ac_cpp conftest.$ac_ext"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } >/dev/null && {
20805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 }; then
20808 ac_header_preproc=yes
20809 else
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_preproc=no
20816 rm -f conftest.err conftest.$ac_ext
20817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20818 echo "${ECHO_T}$ac_header_preproc" >&6; }
20820 # So? What about this header?
20821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20822 yes:no: )
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20827 ac_header_preproc=yes
20829 no:yes:* )
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20844 esac
20845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850 eval "$as_ac_Header=\$ac_header_preproc"
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853 { echo "$as_me:$LINENO: result: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20860 _ACEOF
20862 else
20864 for ac_header in kerberos/krb.h
20866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 ac_res=`eval echo '${'$as_ac_Header'}'`
20874 { echo "$as_me:$LINENO: result: $ac_res" >&5
20875 echo "${ECHO_T}$ac_res" >&6; }
20876 else
20877 # Is the header compilable?
20878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20880 cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h. */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 $ac_includes_default
20887 #include <$ac_header>
20888 _ACEOF
20889 rm -f conftest.$ac_objext
20890 if { (ac_try="$ac_compile"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 ac_header_compiler=yes
20907 else
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_compiler=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h. */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 #include <$ac_header>
20928 _ACEOF
20929 if { (ac_try="$ac_cpp conftest.$ac_ext"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } >/dev/null && {
20942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 }; then
20945 ac_header_preproc=yes
20946 else
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_header_preproc=no
20953 rm -f conftest.err conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6; }
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20959 yes:no: )
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20964 ac_header_preproc=yes
20966 no:yes:* )
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20981 esac
20982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 eval "$as_ac_Header=\$ac_header_preproc"
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20997 _ACEOF
21001 done
21005 done
21009 done
21013 for ac_header in com_err.h
21015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21025 else
21026 # Is the header compilable?
21027 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_header_compiler=yes
21056 else
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_compiler=no
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6; }
21067 # Is the header present?
21068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <$ac_header>
21077 _ACEOF
21078 if { (ac_try="$ac_cpp conftest.$ac_ext"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } >/dev/null && {
21091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 }; then
21094 ac_header_preproc=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_header_preproc=no
21102 rm -f conftest.err conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21104 echo "${ECHO_T}$ac_header_preproc" >&6; }
21106 # So? What about this header?
21107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21108 yes:no: )
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21113 ac_header_preproc=yes
21115 no:yes:* )
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21130 esac
21131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 else
21136 eval "$as_ac_Header=\$ac_header_preproc"
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139 { echo "$as_me:$LINENO: result: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21144 cat >>confdefs.h <<_ACEOF
21145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21146 _ACEOF
21150 done
21154 # Solaris requires -lintl if you want strerror (which calls dgettext)
21155 # to return localized messages.
21157 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21158 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21159 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162 ac_check_lib_save_LIBS=$LIBS
21163 LIBS="-lintl $LIBS"
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21171 /* Override any GCC internal prototype to avoid an error.
21172 Use char because int might match the return type of a GCC
21173 builtin and then its argument prototype would still apply. */
21174 #ifdef __cplusplus
21175 extern "C"
21176 #endif
21177 char dgettext ();
21179 main ()
21181 return dgettext ();
21183 return 0;
21185 _ACEOF
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_link") 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest$ac_exeext &&
21203 $as_test_x conftest$ac_exeext; then
21204 ac_cv_lib_intl_dgettext=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 ac_cv_lib_intl_dgettext=no
21212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21213 conftest$ac_exeext conftest.$ac_ext
21214 LIBS=$ac_check_lib_save_LIBS
21216 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21217 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21218 if test $ac_cv_lib_intl_dgettext = yes; then
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_LIBINTL 1
21221 _ACEOF
21223 LIBS="-lintl $LIBS"
21228 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21229 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21230 if test "${emacs_cv_localtime_cache+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21233 if test x$ac_cv_func_tzset = xyes; then
21234 if test "$cross_compiling" = yes; then
21235 # If we have tzset, assume the worst when cross-compiling.
21236 emacs_cv_localtime_cache=yes
21237 else
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h. */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <time.h>
21245 extern char **environ;
21246 unset_TZ ()
21248 char **from, **to;
21249 for (to = from = environ; (*to = *from); from++)
21250 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21251 to++;
21253 char TZ_GMT0[] = "TZ=GMT0";
21254 char TZ_PST8[] = "TZ=PST8";
21255 main()
21257 time_t now = time ((time_t *) 0);
21258 int hour_GMT0, hour_unset;
21259 if (putenv (TZ_GMT0) != 0)
21260 exit (1);
21261 hour_GMT0 = localtime (&now)->tm_hour;
21262 unset_TZ ();
21263 hour_unset = localtime (&now)->tm_hour;
21264 if (putenv (TZ_PST8) != 0)
21265 exit (1);
21266 if (localtime (&now)->tm_hour == hour_GMT0)
21267 exit (1);
21268 unset_TZ ();
21269 if (localtime (&now)->tm_hour != hour_unset)
21270 exit (1);
21271 exit (0);
21273 _ACEOF
21274 rm -f conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285 { (case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_try") 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 emacs_cv_localtime_cache=no
21295 else
21296 echo "$as_me: program exited with status $ac_status" >&5
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ( exit $ac_status )
21301 emacs_cv_localtime_cache=yes
21303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21307 else
21308 # If we lack tzset, report that localtime does not cache TZ,
21309 # since we can't invalidate the cache if we don't have tzset.
21310 emacs_cv_localtime_cache=no
21313 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21314 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21315 if test $emacs_cv_localtime_cache = yes; then
21317 cat >>confdefs.h <<\_ACEOF
21318 #define LOCALTIME_CACHE 1
21319 _ACEOF
21323 if test "x$HAVE_TIMEVAL" = xyes; then
21325 for ac_func in gettimeofday
21327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h. */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21341 #define $ac_func innocuous_$ac_func
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char $ac_func (); below.
21345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346 <limits.h> exists even on freestanding compilers. */
21348 #ifdef __STDC__
21349 # include <limits.h>
21350 #else
21351 # include <assert.h>
21352 #endif
21354 #undef $ac_func
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char $ac_func ();
21363 /* The GNU C library defines this for functions which it implements
21364 to always fail with ENOSYS. Some functions are actually named
21365 something starting with __ and the normal name is an alias. */
21366 #if defined __stub_$ac_func || defined __stub___$ac_func
21367 choke me
21368 #endif
21371 main ()
21373 return $ac_func ();
21375 return 0;
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_link") 2>conftest.er1
21386 ac_status=$?
21387 grep -v '^ *+' conftest.er1 >conftest.err
21388 rm -f conftest.er1
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } && {
21392 test -z "$ac_c_werror_flag" ||
21393 test ! -s conftest.err
21394 } && test -s conftest$ac_exeext &&
21395 $as_test_x conftest$ac_exeext; then
21396 eval "$as_ac_var=yes"
21397 else
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 eval "$as_ac_var=no"
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405 conftest$ac_exeext conftest.$ac_ext
21407 ac_res=`eval echo '${'$as_ac_var'}'`
21408 { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21410 if test `eval echo '${'$as_ac_var'}'` = yes; then
21411 cat >>confdefs.h <<_ACEOF
21412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21413 _ACEOF
21416 done
21418 if test $ac_cv_func_gettimeofday = yes; then
21419 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21420 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21421 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21431 #ifdef TIME_WITH_SYS_TIME
21432 #include <sys/time.h>
21433 #include <time.h>
21434 #else
21435 #ifdef HAVE_SYS_TIME_H
21436 #include <sys/time.h>
21437 #else
21438 #include <time.h>
21439 #endif
21440 #endif
21442 main ()
21444 struct timeval time;
21445 gettimeofday (&time, 0);
21447 return 0;
21449 _ACEOF
21450 rm -f conftest.$ac_objext
21451 if { (ac_try="$ac_compile"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_compile") 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest.$ac_objext; then
21467 emacs_cv_gettimeofday_two_arguments=yes
21468 else
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 emacs_cv_gettimeofday_two_arguments=no
21475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21478 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21479 if test $emacs_cv_gettimeofday_two_arguments = no; then
21481 cat >>confdefs.h <<\_ACEOF
21482 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21483 _ACEOF
21489 ok_so_far=yes
21490 { echo "$as_me:$LINENO: checking for socket" >&5
21491 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21492 if test "${ac_cv_func_socket+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h. */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define socket innocuous_socket
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char socket (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21510 #ifdef __STDC__
21511 # include <limits.h>
21512 #else
21513 # include <assert.h>
21514 #endif
21516 #undef socket
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21521 #ifdef __cplusplus
21522 extern "C"
21523 #endif
21524 char socket ();
21525 /* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528 #if defined __stub_socket || defined __stub___socket
21529 choke me
21530 #endif
21533 main ()
21535 return socket ();
21537 return 0;
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_link") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext &&
21557 $as_test_x conftest$ac_exeext; then
21558 ac_cv_func_socket=yes
21559 else
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ac_cv_func_socket=no
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21570 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21571 if test $ac_cv_func_socket = yes; then
21573 else
21574 ok_so_far=no
21577 if test $ok_so_far = yes; then
21578 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21579 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21580 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21581 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21585 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21586 else
21587 # Is the header compilable?
21588 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21589 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h. */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21597 #include <netinet/in.h>
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21607 ac_status=$?
21608 grep -v '^ *+' conftest.er1 >conftest.err
21609 rm -f conftest.er1
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.$ac_objext; then
21616 ac_header_compiler=yes
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_header_compiler=no
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21626 echo "${ECHO_T}$ac_header_compiler" >&6; }
21628 # Is the header present?
21629 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21630 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h. */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 #include <netinet/in.h>
21638 _ACEOF
21639 if { (ac_try="$ac_cpp conftest.$ac_ext"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } >/dev/null && {
21652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 }; then
21655 ac_header_preproc=yes
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_header_preproc=no
21663 rm -f conftest.err conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21665 echo "${ECHO_T}$ac_header_preproc" >&6; }
21667 # So? What about this header?
21668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21669 yes:no: )
21670 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21671 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21673 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21674 ac_header_preproc=yes
21676 no:yes:* )
21677 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21678 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21680 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21682 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21684 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21686 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21687 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21688 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21691 esac
21692 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21693 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21694 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697 ac_cv_header_netinet_in_h=$ac_header_preproc
21699 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21700 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21703 if test $ac_cv_header_netinet_in_h = yes; then
21705 else
21706 ok_so_far=no
21711 if test $ok_so_far = yes; then
21712 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21713 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21714 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21715 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21719 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21720 else
21721 # Is the header compilable?
21722 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21723 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 $ac_includes_default
21731 #include <arpa/inet.h>
21732 _ACEOF
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21750 ac_header_compiler=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_header_compiler=no
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6; }
21762 # Is the header present?
21763 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21764 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <arpa/inet.h>
21772 _ACEOF
21773 if { (ac_try="$ac_cpp conftest.$ac_ext"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } >/dev/null && {
21786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 }; then
21789 ac_header_preproc=yes
21790 else
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_header_preproc=no
21797 rm -f conftest.err conftest.$ac_ext
21798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21799 echo "${ECHO_T}$ac_header_preproc" >&6; }
21801 # So? What about this header?
21802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21803 yes:no: )
21804 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21805 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21807 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21808 ac_header_preproc=yes
21810 no:yes:* )
21811 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21812 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21814 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21816 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21818 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21819 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21820 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21822 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21825 esac
21826 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21827 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21828 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831 ac_cv_header_arpa_inet_h=$ac_header_preproc
21833 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21834 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21837 if test $ac_cv_header_arpa_inet_h = yes; then
21839 else
21840 ok_so_far=no
21845 if test $ok_so_far = yes; then
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_INET_SOCKETS 1
21849 _ACEOF
21854 for ac_header in sys/ioctl.h
21856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864 { echo "$as_me:$LINENO: result: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21866 else
21867 # Is the header compilable?
21868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21870 cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h. */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21876 $ac_includes_default
21877 #include <$ac_header>
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21896 ac_header_compiler=yes
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ac_header_compiler=no
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21906 echo "${ECHO_T}$ac_header_compiler" >&6; }
21908 # Is the header present?
21909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 #include <$ac_header>
21918 _ACEOF
21919 if { (ac_try="$ac_cpp conftest.$ac_ext"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } >/dev/null && {
21932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 }; then
21935 ac_header_preproc=yes
21936 else
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ac_header_preproc=no
21943 rm -f conftest.err conftest.$ac_ext
21944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21945 echo "${ECHO_T}$ac_header_preproc" >&6; }
21947 # So? What about this header?
21948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21949 yes:no: )
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21954 ac_header_preproc=yes
21956 no:yes:* )
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21971 esac
21972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977 eval "$as_ac_Header=\$ac_header_preproc"
21979 ac_res=`eval echo '${'$as_ac_Header'}'`
21980 { echo "$as_me:$LINENO: result: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21985 cat >>confdefs.h <<_ACEOF
21986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21987 _ACEOF
21991 done
21994 if test -f /usr/lpp/X11/bin/smt.exp; then
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_AIX_SMT_EXP 1
21998 _ACEOF
22002 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22003 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22004 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22005 { echo "$as_me:$LINENO: result: yes" >&5
22006 echo "${ECHO_T}yes" >&6; }
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_DEV_PTMX 1
22010 _ACEOF
22012 else
22013 { echo "$as_me:$LINENO: result: no" >&5
22014 echo "${ECHO_T}no" >&6; }
22017 { echo "$as_me:$LINENO: checking for pid_t" >&5
22018 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22019 if test "${ac_cv_type_pid_t+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h. */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22029 typedef pid_t ac__type_new_;
22031 main ()
22033 if ((ac__type_new_ *) 0)
22034 return 0;
22035 if (sizeof (ac__type_new_))
22036 return 0;
22038 return 0;
22040 _ACEOF
22041 rm -f conftest.$ac_objext
22042 if { (ac_try="$ac_compile"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_compile") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest.$ac_objext; then
22058 ac_cv_type_pid_t=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_type_pid_t=no
22066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22069 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22070 if test $ac_cv_type_pid_t = yes; then
22072 else
22074 cat >>confdefs.h <<_ACEOF
22075 #define pid_t int
22076 _ACEOF
22081 for ac_header in vfork.h
22083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091 { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22093 else
22094 # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #include <$ac_header>
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_header_compiler=yes
22124 else
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_compiler=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 }; then
22162 ac_header_preproc=yes
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_preproc=no
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22174 # So? What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22176 yes:no: )
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22181 ac_header_preproc=yes
22183 no:yes:* )
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22198 esac
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204 eval "$as_ac_Header=\$ac_header_preproc"
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207 { echo "$as_me:$LINENO: result: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 _ACEOF
22218 done
22222 for ac_func in fork vfork
22224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22238 #define $ac_func innocuous_$ac_func
22240 /* System header to define __stub macros and hopefully few prototypes,
22241 which can conflict with char $ac_func (); below.
22242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243 <limits.h> exists even on freestanding compilers. */
22245 #ifdef __STDC__
22246 # include <limits.h>
22247 #else
22248 # include <assert.h>
22249 #endif
22251 #undef $ac_func
22253 /* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
22256 #ifdef __cplusplus
22257 extern "C"
22258 #endif
22259 char $ac_func ();
22260 /* The GNU C library defines this for functions which it implements
22261 to always fail with ENOSYS. Some functions are actually named
22262 something starting with __ and the normal name is an alias. */
22263 #if defined __stub_$ac_func || defined __stub___$ac_func
22264 choke me
22265 #endif
22268 main ()
22270 return $ac_func ();
22272 return 0;
22274 _ACEOF
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_link") 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest$ac_exeext &&
22292 $as_test_x conftest$ac_exeext; then
22293 eval "$as_ac_var=yes"
22294 else
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 eval "$as_ac_var=no"
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_res=`eval echo '${'$as_ac_var'}'`
22305 { echo "$as_me:$LINENO: result: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 _ACEOF
22313 done
22315 if test "x$ac_cv_func_fork" = xyes; then
22316 { echo "$as_me:$LINENO: checking for working fork" >&5
22317 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22318 if test "${ac_cv_func_fork_works+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321 if test "$cross_compiling" = yes; then
22322 ac_cv_func_fork_works=cross
22323 else
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 $ac_includes_default
22332 main ()
22335 /* By Ruediger Kuhlmann. */
22336 return fork () < 0;
22339 return 0;
22341 _ACEOF
22342 rm -f conftest$ac_exeext
22343 if { (ac_try="$ac_link"
22344 case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22347 esac
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_link") 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22353 { (case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_try") 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 ac_cv_func_fork_works=yes
22363 else
22364 echo "$as_me: program exited with status $ac_status" >&5
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ( exit $ac_status )
22369 ac_cv_func_fork_works=no
22371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22377 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22379 else
22380 ac_cv_func_fork_works=$ac_cv_func_fork
22382 if test "x$ac_cv_func_fork_works" = xcross; then
22383 case $host in
22384 *-*-amigaos* | *-*-msdosdjgpp*)
22385 # Override, as these systems have only a dummy fork() stub
22386 ac_cv_func_fork_works=no
22389 ac_cv_func_fork_works=yes
22391 esac
22392 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22393 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22395 ac_cv_func_vfork_works=$ac_cv_func_vfork
22396 if test "x$ac_cv_func_vfork" = xyes; then
22397 { echo "$as_me:$LINENO: checking for working vfork" >&5
22398 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22399 if test "${ac_cv_func_vfork_works+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402 if test "$cross_compiling" = yes; then
22403 ac_cv_func_vfork_works=cross
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 /* Thanks to Paul Eggert for this test. */
22412 $ac_includes_default
22413 #include <sys/wait.h>
22414 #ifdef HAVE_VFORK_H
22415 # include <vfork.h>
22416 #endif
22417 /* On some sparc systems, changes by the child to local and incoming
22418 argument registers are propagated back to the parent. The compiler
22419 is told about this with #include <vfork.h>, but some compilers
22420 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22421 static variable whose address is put into a register that is
22422 clobbered by the vfork. */
22423 static void
22424 #ifdef __cplusplus
22425 sparc_address_test (int arg)
22426 # else
22427 sparc_address_test (arg) int arg;
22428 #endif
22430 static pid_t child;
22431 if (!child) {
22432 child = vfork ();
22433 if (child < 0) {
22434 perror ("vfork");
22435 _exit(2);
22437 if (!child) {
22438 arg = getpid();
22439 write(-1, "", 0);
22440 _exit (arg);
22446 main ()
22448 pid_t parent = getpid ();
22449 pid_t child;
22451 sparc_address_test (0);
22453 child = vfork ();
22455 if (child == 0) {
22456 /* Here is another test for sparc vfork register problems. This
22457 test uses lots of local variables, at least as many local
22458 variables as main has allocated so far including compiler
22459 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22460 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22461 reuse the register of parent for one of the local variables,
22462 since it will think that parent can't possibly be used any more
22463 in this routine. Assigning to the local variable will thus
22464 munge parent in the parent process. */
22465 pid_t
22466 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22467 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22468 /* Convince the compiler that p..p7 are live; otherwise, it might
22469 use the same hardware register for all 8 local variables. */
22470 if (p != p1 || p != p2 || p != p3 || p != p4
22471 || p != p5 || p != p6 || p != p7)
22472 _exit(1);
22474 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22475 from child file descriptors. If the child closes a descriptor
22476 before it execs or exits, this munges the parent's descriptor
22477 as well. Test for this by closing stdout in the child. */
22478 _exit(close(fileno(stdout)) != 0);
22479 } else {
22480 int status;
22481 struct stat st;
22483 while (wait(&status) != child)
22485 return (
22486 /* Was there some problem with vforking? */
22487 child < 0
22489 /* Did the child fail? (This shouldn't happen.) */
22490 || status
22492 /* Did the vfork/compiler bug occur? */
22493 || parent != getpid()
22495 /* Did the file descriptor bug occur? */
22496 || fstat(fileno(stdout), &st) != 0
22500 _ACEOF
22501 rm -f conftest$ac_exeext
22502 if { (ac_try="$ac_link"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_link") 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22512 { (case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_try") 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_cv_func_vfork_works=yes
22522 else
22523 echo "$as_me: program exited with status $ac_status" >&5
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ( exit $ac_status )
22528 ac_cv_func_vfork_works=no
22530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22535 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22536 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22539 if test "x$ac_cv_func_fork_works" = xcross; then
22540 ac_cv_func_vfork_works=$ac_cv_func_vfork
22541 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22542 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22545 if test "x$ac_cv_func_vfork_works" = xyes; then
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_WORKING_VFORK 1
22549 _ACEOF
22551 else
22553 cat >>confdefs.h <<\_ACEOF
22554 #define vfork fork
22555 _ACEOF
22558 if test "x$ac_cv_func_fork_works" = xyes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_WORKING_FORK 1
22562 _ACEOF
22567 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22568 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22569 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572 cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h. */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 #include <langinfo.h>
22580 main ()
22582 char* cs = nl_langinfo(CODESET);
22584 return 0;
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (ac_try="$ac_link"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_link") 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest$ac_exeext &&
22604 $as_test_x conftest$ac_exeext; then
22605 emacs_cv_langinfo_codeset=yes
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 emacs_cv_langinfo_codeset=no
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22617 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22618 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22619 if test $emacs_cv_langinfo_codeset = yes; then
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_LANGINFO_CODESET 1
22623 _ACEOF
22627 { echo "$as_me:$LINENO: checking for size_t" >&5
22628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22629 if test "${ac_cv_type_size_t+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h. */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 $ac_includes_default
22639 typedef size_t ac__type_new_;
22641 main ()
22643 if ((ac__type_new_ *) 0)
22644 return 0;
22645 if (sizeof (ac__type_new_))
22646 return 0;
22648 return 0;
22650 _ACEOF
22651 rm -f conftest.$ac_objext
22652 if { (ac_try="$ac_compile"
22653 case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22656 esac
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658 (eval "$ac_compile") 2>conftest.er1
22659 ac_status=$?
22660 grep -v '^ *+' conftest.er1 >conftest.err
22661 rm -f conftest.er1
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } && {
22665 test -z "$ac_c_werror_flag" ||
22666 test ! -s conftest.err
22667 } && test -s conftest.$ac_objext; then
22668 ac_cv_type_size_t=yes
22669 else
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22673 ac_cv_type_size_t=no
22676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22678 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22679 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22680 if test $ac_cv_type_size_t = yes; then
22682 cat >>confdefs.h <<_ACEOF
22683 #define HAVE_SIZE_T 1
22684 _ACEOF
22690 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22691 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22692 if test "${ac_cv_type_mbstate_t+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695 cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h. */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22701 $ac_includes_default
22702 # include <wchar.h>
22704 main ()
22706 mbstate_t x; return sizeof x;
22708 return 0;
22710 _ACEOF
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_type_mbstate_t=yes
22729 else
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_type_mbstate_t=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22739 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22740 if test $ac_cv_type_mbstate_t = yes; then
22742 cat >>confdefs.h <<\_ACEOF
22743 #define HAVE_MBSTATE_T 1
22744 _ACEOF
22746 else
22748 cat >>confdefs.h <<\_ACEOF
22749 #define mbstate_t int
22750 _ACEOF
22754 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22755 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22756 if test "${emacs_cv_c_restrict+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758 else
22759 cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h. */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 void fred (int *restrict x);
22767 main ()
22771 return 0;
22773 _ACEOF
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_compile") 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest.$ac_objext; then
22791 emacs_cv_c_restrict=yes
22792 else
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h. */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 void fred (int *__restrict x);
22804 main ()
22808 return 0;
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 emacs_cv_c_restrict=__restrict
22829 else
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 emacs_cv_c_restrict=no
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22842 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22843 case "$emacs_cv_c_restrict" in
22844 yes) emacs_restrict=restrict;;
22845 no) emacs_restrict="";;
22846 *) emacs_restrict="$emacs_cv_c_restrict";;
22847 esac
22848 if test "$emacs_restrict" != __restrict; then
22850 cat >>confdefs.h <<_ACEOF
22851 #define __restrict $emacs_restrict
22852 _ACEOF
22856 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22857 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22858 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861 cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h. */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22867 void fred (int x[__restrict]);
22869 main ()
22873 return 0;
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 emacs_cv_c_restrict_arr=yes
22894 else
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 emacs_cv_c_restrict_arr=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22904 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22905 if test "$emacs_cv_c_restrict_arr" = yes; then
22907 cat >>confdefs.h <<\_ACEOF
22908 #define __restrict_arr __restrict
22909 _ACEOF
22915 # Set up the CFLAGS for real compilation, so we can substitute it.
22916 CFLAGS="$REAL_CFLAGS"
22917 CPPFLAGS="$REAL_CPPFLAGS"
22919 #### Find out which version of Emacs this is.
22920 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22921 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22922 if test x"${version}" = x; then
22923 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22924 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22925 { (exit 1); exit 1; }; }
22928 ### Specify what sort of things we'll be editing into Makefile and config.h.
22929 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22965 cat >>confdefs.h <<_ACEOF
22966 #define EMACS_CONFIGURATION "${canonical}"
22967 _ACEOF
22970 cat >>confdefs.h <<_ACEOF
22971 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22972 _ACEOF
22975 cat >>confdefs.h <<_ACEOF
22976 #define config_machfile "${machfile}"
22977 _ACEOF
22980 cat >>confdefs.h <<_ACEOF
22981 #define config_opsysfile "${opsysfile}"
22982 _ACEOF
22985 cat >>confdefs.h <<_ACEOF
22986 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22987 _ACEOF
22990 cat >>confdefs.h <<_ACEOF
22991 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22992 _ACEOF
22995 cat >>confdefs.h <<_ACEOF
22996 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22997 _ACEOF
23000 cat >>confdefs.h <<_ACEOF
23001 #define UNEXEC_SRC ${UNEXEC_SRC}
23002 _ACEOF
23005 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_X_WINDOWS 1
23009 _ACEOF
23012 if test "${USE_X_TOOLKIT}" != "none" ; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define USE_X_TOOLKIT 1
23016 _ACEOF
23019 if test "${HAVE_X11}" = "yes" ; then
23021 cat >>confdefs.h <<\_ACEOF
23022 #define HAVE_X11 1
23023 _ACEOF
23026 if test "${HAVE_XFREE386}" = "yes" ; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_XFREE386 1
23030 _ACEOF
23033 if test "${HAVE_MENUS}" = "yes" ; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_MENUS 1
23037 _ACEOF
23040 if test "${GNU_MALLOC}" = "yes" ; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define GNU_MALLOC 1
23044 _ACEOF
23047 if test "${REL_ALLOC}" = "yes" ; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define REL_ALLOC 1
23051 _ACEOF
23059 #### Report on what we decided to do.
23060 #### Report GTK as a toolkit, even if it doesn't use Xt.
23061 #### It makes printing result more understandable as using GTK sets
23062 #### toolkit_scroll_bars to yes by default.
23063 if test "${HAVE_GTK}" = "yes"; then
23064 USE_X_TOOLKIT=GTK
23067 echo "
23068 Configured for \`${canonical}'.
23070 Where should the build process find the source code? ${srcdir}
23071 What operating system and machine description files should Emacs use?
23072 \`${opsysfile}' and \`${machfile}'
23073 What compiler should emacs be built with? ${CC} ${CFLAGS}
23074 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23075 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23076 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23077 What window system should Emacs use? ${window_system}
23078 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23080 if test -n "${x_includes}"; then
23081 echo " Where do we find X Windows header files? ${x_includes}"
23082 else
23083 echo " Where do we find X Windows header files? Standard dirs"
23085 if test -n "${x_libraries}"; then
23086 echo " Where do we find X Windows libraries? ${x_libraries}"
23087 else
23088 echo " Where do we find X Windows libraries? Standard dirs"
23091 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23092 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23093 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23094 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23095 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23096 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23097 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23098 echo
23100 if test $USE_XASSERTS = yes; then
23101 echo " Compiling with asserts turned on."
23102 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23103 echo
23106 if test "$USE_X_TOOLKIT" = GTK; then
23107 case "$canonical" in
23108 *cygwin*)
23109 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23110 will probably get a crash on startup. If this happens, please use another
23111 toolkit for Emacs. See etc/PROBLEMS for more information."
23113 esac
23118 # Remove any trailing slashes in these variables.
23119 test "${prefix}" != NONE &&
23120 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23121 test "${exec_prefix}" != NONE &&
23122 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23124 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23125 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23126 ## from Makefile.c can correctly provide the arg `-traditional' to the
23127 ## C preprocessor.
23129 cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h. */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 yes..yes
23136 _ACEOF
23137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23138 $EGREP "yes..yes" >/dev/null 2>&1; then
23139 CPP_NEED_TRADITIONAL=no
23140 else
23141 CPP_NEED_TRADITIONAL=yes
23143 rm -f conftest*
23146 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"
23148 ac_config_commands="$ac_config_commands default"
23150 cat >confcache <<\_ACEOF
23151 # This file is a shell script that caches the results of configure
23152 # tests run on this system so they can be shared between configure
23153 # scripts and configure runs, see configure's option --config-cache.
23154 # It is not useful on other systems. If it contains results you don't
23155 # want to keep, you may remove or edit it.
23157 # config.status only pays attention to the cache file if you give it
23158 # the --recheck option to rerun configure.
23160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23162 # following values.
23164 _ACEOF
23166 # The following way of writing the cache mishandles newlines in values,
23167 # but we know of no workaround that is simple, portable, and efficient.
23168 # So, we kill variables containing newlines.
23169 # Ultrix sh set writes to stderr and can't be redirected directly,
23170 # and sets the high bit in the cache file unless we assign to the vars.
23172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23173 eval ac_val=\$$ac_var
23174 case $ac_val in #(
23175 *${as_nl}*)
23176 case $ac_var in #(
23177 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23178 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23179 esac
23180 case $ac_var in #(
23181 _ | IFS | as_nl) ;; #(
23182 *) $as_unset $ac_var ;;
23183 esac ;;
23184 esac
23185 done
23187 (set) 2>&1 |
23188 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23189 *${as_nl}ac_space=\ *)
23190 # `set' does not quote correctly, so add quotes (double-quote
23191 # substitution turns \\\\ into \\, and sed turns \\ into \).
23192 sed -n \
23193 "s/'/'\\\\''/g;
23194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23195 ;; #(
23197 # `set' quotes correctly as required by POSIX, so do not add quotes.
23198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23200 esac |
23201 sort
23203 sed '
23204 /^ac_cv_env_/b end
23205 t clear
23206 :clear
23207 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23208 t end
23209 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23210 :end' >>confcache
23211 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23212 if test -w "$cache_file"; then
23213 test "x$cache_file" != "x/dev/null" &&
23214 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23215 echo "$as_me: updating cache $cache_file" >&6;}
23216 cat confcache >$cache_file
23217 else
23218 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23219 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23222 rm -f confcache
23224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23225 # Let make expand exec_prefix.
23226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23228 DEFS=-DHAVE_CONFIG_H
23230 ac_libobjs=
23231 ac_ltlibobjs=
23232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23233 # 1. Remove the extension, and $U if already installed.
23234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23235 ac_i=`echo "$ac_i" | sed "$ac_script"`
23236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23237 # will be set to the directory where LIBOBJS objects are built.
23238 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23239 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23240 done
23241 LIBOBJS=$ac_libobjs
23243 LTLIBOBJS=$ac_ltlibobjs
23247 : ${CONFIG_STATUS=./config.status}
23248 ac_clean_files_save=$ac_clean_files
23249 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23250 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23251 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23252 cat >$CONFIG_STATUS <<_ACEOF
23253 #! $SHELL
23254 # Generated by $as_me.
23255 # Run this file to recreate the current configuration.
23256 # Compiler output produced by configure, useful for debugging
23257 # configure, is in config.log if it exists.
23259 debug=false
23260 ac_cs_recheck=false
23261 ac_cs_silent=false
23262 SHELL=\${CONFIG_SHELL-$SHELL}
23263 _ACEOF
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 ## --------------------- ##
23267 ## M4sh Initialization. ##
23268 ## --------------------- ##
23270 # Be more Bourne compatible
23271 DUALCASE=1; export DUALCASE # for MKS sh
23272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23273 emulate sh
23274 NULLCMD=:
23275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23276 # is contrary to our usage. Disable this feature.
23277 alias -g '${1+"$@"}'='"$@"'
23278 setopt NO_GLOB_SUBST
23279 else
23280 case `(set -o) 2>/dev/null` in
23281 *posix*) set -o posix ;;
23282 esac
23289 # PATH needs CR
23290 # Avoid depending upon Character Ranges.
23291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23294 as_cr_digits='0123456789'
23295 as_cr_alnum=$as_cr_Letters$as_cr_digits
23297 # The user is always right.
23298 if test "${PATH_SEPARATOR+set}" != set; then
23299 echo "#! /bin/sh" >conf$$.sh
23300 echo "exit 0" >>conf$$.sh
23301 chmod +x conf$$.sh
23302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23303 PATH_SEPARATOR=';'
23304 else
23305 PATH_SEPARATOR=:
23307 rm -f conf$$.sh
23310 # Support unset when possible.
23311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23312 as_unset=unset
23313 else
23314 as_unset=false
23318 # IFS
23319 # We need space, tab and new line, in precisely that order. Quoting is
23320 # there to prevent editors from complaining about space-tab.
23321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23322 # splitting by setting IFS to empty value.)
23323 as_nl='
23325 IFS=" "" $as_nl"
23327 # Find who we are. Look in the path if we contain no directory separator.
23328 case $0 in
23329 *[\\/]* ) as_myself=$0 ;;
23330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23331 for as_dir in $PATH
23333 IFS=$as_save_IFS
23334 test -z "$as_dir" && as_dir=.
23335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23336 done
23337 IFS=$as_save_IFS
23340 esac
23341 # We did not find ourselves, most probably we were run as `sh COMMAND'
23342 # in which case we are not to be found in the path.
23343 if test "x$as_myself" = x; then
23344 as_myself=$0
23346 if test ! -f "$as_myself"; then
23347 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23348 { (exit 1); exit 1; }
23351 # Work around bugs in pre-3.0 UWIN ksh.
23352 for as_var in ENV MAIL MAILPATH
23353 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23354 done
23355 PS1='$ '
23356 PS2='> '
23357 PS4='+ '
23359 # NLS nuisances.
23360 for as_var in \
23361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23363 LC_TELEPHONE LC_TIME
23365 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23366 eval $as_var=C; export $as_var
23367 else
23368 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23370 done
23372 # Required to use basename.
23373 if expr a : '\(a\)' >/dev/null 2>&1 &&
23374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23375 as_expr=expr
23376 else
23377 as_expr=false
23380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23381 as_basename=basename
23382 else
23383 as_basename=false
23387 # Name of the executable.
23388 as_me=`$as_basename -- "$0" ||
23389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23390 X"$0" : 'X\(//\)$' \| \
23391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23392 echo X/"$0" |
23393 sed '/^.*\/\([^/][^/]*\)\/*$/{
23394 s//\1/
23397 /^X\/\(\/\/\)$/{
23398 s//\1/
23401 /^X\/\(\/\).*/{
23402 s//\1/
23405 s/.*/./; q'`
23407 # CDPATH.
23408 $as_unset CDPATH
23412 as_lineno_1=$LINENO
23413 as_lineno_2=$LINENO
23414 test "x$as_lineno_1" != "x$as_lineno_2" &&
23415 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23417 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23418 # uniformly replaced by the line number. The first 'sed' inserts a
23419 # line-number line after each line using $LINENO; the second 'sed'
23420 # does the real work. The second script uses 'N' to pair each
23421 # line-number line with the line containing $LINENO, and appends
23422 # trailing '-' during substitution so that $LINENO is not a special
23423 # case at line end.
23424 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23425 # scripts with optimization help from Paolo Bonzini. Blame Lee
23426 # E. McMahon (1931-1989) for sed's syntax. :-)
23427 sed -n '
23429 /[$]LINENO/=
23430 ' <$as_myself |
23431 sed '
23432 s/[$]LINENO.*/&-/
23433 t lineno
23435 :lineno
23437 :loop
23438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23439 t loop
23440 s/-\n.*//
23441 ' >$as_me.lineno &&
23442 chmod +x "$as_me.lineno" ||
23443 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23444 { (exit 1); exit 1; }; }
23446 # Don't try to exec as it changes $[0], causing all sort of problems
23447 # (the dirname of $[0] is not the place where we might find the
23448 # original and so on. Autoconf is especially sensitive to this).
23449 . "./$as_me.lineno"
23450 # Exit status is that of the last command.
23451 exit
23455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23456 as_dirname=dirname
23457 else
23458 as_dirname=false
23461 ECHO_C= ECHO_N= ECHO_T=
23462 case `echo -n x` in
23463 -n*)
23464 case `echo 'x\c'` in
23465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23466 *) ECHO_C='\c';;
23467 esac;;
23469 ECHO_N='-n';;
23470 esac
23472 if expr a : '\(a\)' >/dev/null 2>&1 &&
23473 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23474 as_expr=expr
23475 else
23476 as_expr=false
23479 rm -f conf$$ conf$$.exe conf$$.file
23480 if test -d conf$$.dir; then
23481 rm -f conf$$.dir/conf$$.file
23482 else
23483 rm -f conf$$.dir
23484 mkdir conf$$.dir
23486 echo >conf$$.file
23487 if ln -s conf$$.file conf$$ 2>/dev/null; then
23488 as_ln_s='ln -s'
23489 # ... but there are two gotchas:
23490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23492 # In both cases, we have to default to `cp -p'.
23493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23494 as_ln_s='cp -p'
23495 elif ln conf$$.file conf$$ 2>/dev/null; then
23496 as_ln_s=ln
23497 else
23498 as_ln_s='cp -p'
23500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23501 rmdir conf$$.dir 2>/dev/null
23503 if mkdir -p . 2>/dev/null; then
23504 as_mkdir_p=:
23505 else
23506 test -d ./-p && rmdir ./-p
23507 as_mkdir_p=false
23510 if test -x / >/dev/null 2>&1; then
23511 as_test_x='test -x'
23512 else
23513 if ls -dL / >/dev/null 2>&1; then
23514 as_ls_L_option=L
23515 else
23516 as_ls_L_option=
23518 as_test_x='
23519 eval sh -c '\''
23520 if test -d "$1"; then
23521 test -d "$1/.";
23522 else
23523 case $1 in
23524 -*)set "./$1";;
23525 esac;
23526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23527 ???[sx]*):;;*)false;;esac;fi
23528 '\'' sh
23531 as_executable_p=$as_test_x
23533 # Sed expression to map a string onto a valid CPP name.
23534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23536 # Sed expression to map a string onto a valid variable name.
23537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23540 exec 6>&1
23542 # Save the log message, to keep $[0] and so on meaningful, and to
23543 # report actual input values of CONFIG_FILES etc. instead of their
23544 # values after options handling.
23545 ac_log="
23546 This file was extended by $as_me, which was
23547 generated by GNU Autoconf 2.61. Invocation command line was
23549 CONFIG_FILES = $CONFIG_FILES
23550 CONFIG_HEADERS = $CONFIG_HEADERS
23551 CONFIG_LINKS = $CONFIG_LINKS
23552 CONFIG_COMMANDS = $CONFIG_COMMANDS
23553 $ $0 $@
23555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23558 _ACEOF
23560 cat >>$CONFIG_STATUS <<_ACEOF
23561 # Files that config.status was made for.
23562 config_files="$ac_config_files"
23563 config_headers="$ac_config_headers"
23564 config_commands="$ac_config_commands"
23566 _ACEOF
23568 cat >>$CONFIG_STATUS <<\_ACEOF
23569 ac_cs_usage="\
23570 \`$as_me' instantiates files from templates according to the
23571 current configuration.
23573 Usage: $0 [OPTIONS] [FILE]...
23575 -h, --help print this help, then exit
23576 -V, --version print version number and configuration settings, then exit
23577 -q, --quiet do not print progress messages
23578 -d, --debug don't remove temporary files
23579 --recheck update $as_me by reconfiguring in the same conditions
23580 --file=FILE[:TEMPLATE]
23581 instantiate the configuration file FILE
23582 --header=FILE[:TEMPLATE]
23583 instantiate the configuration header FILE
23585 Configuration files:
23586 $config_files
23588 Configuration headers:
23589 $config_headers
23591 Configuration commands:
23592 $config_commands
23594 Report bugs to <bug-autoconf@gnu.org>."
23596 _ACEOF
23597 cat >>$CONFIG_STATUS <<_ACEOF
23598 ac_cs_version="\\
23599 config.status
23600 configured by $0, generated by GNU Autoconf 2.61,
23601 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23603 Copyright (C) 2006 Free Software Foundation, Inc.
23604 This config.status script is free software; the Free Software Foundation
23605 gives unlimited permission to copy, distribute and modify it."
23607 ac_pwd='$ac_pwd'
23608 srcdir='$srcdir'
23609 INSTALL='$INSTALL'
23610 _ACEOF
23612 cat >>$CONFIG_STATUS <<\_ACEOF
23613 # If no file are specified by the user, then we need to provide default
23614 # value. By we need to know if files were specified by the user.
23615 ac_need_defaults=:
23616 while test $# != 0
23618 case $1 in
23619 --*=*)
23620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23622 ac_shift=:
23625 ac_option=$1
23626 ac_optarg=$2
23627 ac_shift=shift
23629 esac
23631 case $ac_option in
23632 # Handling of the options.
23633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23634 ac_cs_recheck=: ;;
23635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23636 echo "$ac_cs_version"; exit ;;
23637 --debug | --debu | --deb | --de | --d | -d )
23638 debug=: ;;
23639 --file | --fil | --fi | --f )
23640 $ac_shift
23641 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23642 ac_need_defaults=false;;
23643 --header | --heade | --head | --hea )
23644 $ac_shift
23645 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23646 ac_need_defaults=false;;
23647 --he | --h)
23648 # Conflict between --help and --header
23649 { echo "$as_me: error: ambiguous option: $1
23650 Try \`$0 --help' for more information." >&2
23651 { (exit 1); exit 1; }; };;
23652 --help | --hel | -h )
23653 echo "$ac_cs_usage"; exit ;;
23654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23656 ac_cs_silent=: ;;
23658 # This is an error.
23659 -*) { echo "$as_me: error: unrecognized option: $1
23660 Try \`$0 --help' for more information." >&2
23661 { (exit 1); exit 1; }; } ;;
23663 *) ac_config_targets="$ac_config_targets $1"
23664 ac_need_defaults=false ;;
23666 esac
23667 shift
23668 done
23670 ac_configure_extra_args=
23672 if $ac_cs_silent; then
23673 exec 6>/dev/null
23674 ac_configure_extra_args="$ac_configure_extra_args --silent"
23677 _ACEOF
23678 cat >>$CONFIG_STATUS <<_ACEOF
23679 if \$ac_cs_recheck; then
23680 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23681 CONFIG_SHELL=$SHELL
23682 export CONFIG_SHELL
23683 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23686 _ACEOF
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23688 exec 5>>config.log
23690 echo
23691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23692 ## Running $as_me. ##
23693 _ASBOX
23694 echo "$ac_log"
23695 } >&5
23697 _ACEOF
23698 cat >>$CONFIG_STATUS <<_ACEOF
23700 # INIT-COMMANDS
23702 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23704 _ACEOF
23706 cat >>$CONFIG_STATUS <<\_ACEOF
23708 # Handling of arguments.
23709 for ac_config_target in $ac_config_targets
23711 case $ac_config_target in
23712 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23714 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23715 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23716 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23717 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23718 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23719 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23720 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23721 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23722 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23723 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23725 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23727 { (exit 1); exit 1; }; };;
23728 esac
23729 done
23732 # If the user did not use the arguments to specify the items to instantiate,
23733 # then the envvar interface is used. Set only those that are not.
23734 # We use the long form for the default assignment because of an extremely
23735 # bizarre bug on SunOS 4.1.3.
23736 if $ac_need_defaults; then
23737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23742 # Have a temporary directory for convenience. Make it in the build tree
23743 # simply because there is no reason against having it here, and in addition,
23744 # creating and moving files from /tmp can sometimes cause problems.
23745 # Hook for its removal unless debugging.
23746 # Note that there is a small window in which the directory will not be cleaned:
23747 # after its creation but before its name has been assigned to `$tmp'.
23748 $debug ||
23750 tmp=
23751 trap 'exit_status=$?
23752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23754 trap '{ (exit 1); exit 1; }' 1 2 13 15
23756 # Create a (secure) tmp directory for tmp files.
23759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23760 test -n "$tmp" && test -d "$tmp"
23761 } ||
23763 tmp=./conf$$-$RANDOM
23764 (umask 077 && mkdir "$tmp")
23765 } ||
23767 echo "$me: cannot create a temporary directory in ." >&2
23768 { (exit 1); exit 1; }
23772 # Set up the sed scripts for CONFIG_FILES section.
23775 # No need to generate the scripts if there are no CONFIG_FILES.
23776 # This happens for instance when ./config.status config.h
23777 if test -n "$CONFIG_FILES"; then
23779 _ACEOF
23783 ac_delim='%!_!# '
23784 for ac_last_try in false false false false false :; do
23785 cat >conf$$subs.sed <<_ACEOF
23786 SHELL!$SHELL$ac_delim
23787 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23788 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23789 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23790 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23791 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23792 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23793 exec_prefix!$exec_prefix$ac_delim
23794 prefix!$prefix$ac_delim
23795 program_transform_name!$program_transform_name$ac_delim
23796 bindir!$bindir$ac_delim
23797 sbindir!$sbindir$ac_delim
23798 libexecdir!$libexecdir$ac_delim
23799 datarootdir!$datarootdir$ac_delim
23800 datadir!$datadir$ac_delim
23801 sysconfdir!$sysconfdir$ac_delim
23802 sharedstatedir!$sharedstatedir$ac_delim
23803 localstatedir!$localstatedir$ac_delim
23804 includedir!$includedir$ac_delim
23805 oldincludedir!$oldincludedir$ac_delim
23806 docdir!$docdir$ac_delim
23807 infodir!$infodir$ac_delim
23808 htmldir!$htmldir$ac_delim
23809 dvidir!$dvidir$ac_delim
23810 pdfdir!$pdfdir$ac_delim
23811 psdir!$psdir$ac_delim
23812 libdir!$libdir$ac_delim
23813 localedir!$localedir$ac_delim
23814 mandir!$mandir$ac_delim
23815 DEFS!$DEFS$ac_delim
23816 ECHO_C!$ECHO_C$ac_delim
23817 ECHO_N!$ECHO_N$ac_delim
23818 ECHO_T!$ECHO_T$ac_delim
23819 LIBS!$LIBS$ac_delim
23820 build_alias!$build_alias$ac_delim
23821 host_alias!$host_alias$ac_delim
23822 target_alias!$target_alias$ac_delim
23823 MAINT!$MAINT$ac_delim
23824 build!$build$ac_delim
23825 build_cpu!$build_cpu$ac_delim
23826 build_vendor!$build_vendor$ac_delim
23827 build_os!$build_os$ac_delim
23828 host!$host$ac_delim
23829 host_cpu!$host_cpu$ac_delim
23830 host_vendor!$host_vendor$ac_delim
23831 host_os!$host_os$ac_delim
23832 CC!$CC$ac_delim
23833 CFLAGS!$CFLAGS$ac_delim
23834 LDFLAGS!$LDFLAGS$ac_delim
23835 CPPFLAGS!$CPPFLAGS$ac_delim
23836 ac_ct_CC!$ac_ct_CC$ac_delim
23837 EXEEXT!$EXEEXT$ac_delim
23838 OBJEXT!$OBJEXT$ac_delim
23839 CPP!$CPP$ac_delim
23840 GREP!$GREP$ac_delim
23841 EGREP!$EGREP$ac_delim
23842 LN_S!$LN_S$ac_delim
23843 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23844 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23845 INSTALL_DATA!$INSTALL_DATA$ac_delim
23846 RANLIB!$RANLIB$ac_delim
23847 INSTALL_INFO!$INSTALL_INFO$ac_delim
23848 GZIP_PROG!$GZIP_PROG$ac_delim
23849 LIBSOUND!$LIBSOUND$ac_delim
23850 PKG_CONFIG!$PKG_CONFIG$ac_delim
23851 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23852 ALSA_LIBS!$ALSA_LIBS$ac_delim
23853 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23854 SET_MAKE!$SET_MAKE$ac_delim
23855 XMKMF!$XMKMF$ac_delim
23856 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23857 GTK_LIBS!$GTK_LIBS$ac_delim
23858 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23859 XFT_LIBS!$XFT_LIBS$ac_delim
23860 ALLOCA!$ALLOCA$ac_delim
23861 liblockfile!$liblockfile$ac_delim
23862 LIBOBJS!$LIBOBJS$ac_delim
23863 NEED_SETGID!$NEED_SETGID$ac_delim
23864 KMEM_GROUP!$KMEM_GROUP$ac_delim
23865 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23866 GETOPT_H!$GETOPT_H$ac_delim
23867 GETOPTOBJS!$GETOPTOBJS$ac_delim
23868 version!$version$ac_delim
23869 configuration!$configuration$ac_delim
23870 canonical!$canonical$ac_delim
23871 srcdir!$srcdir$ac_delim
23872 lispdir!$lispdir$ac_delim
23873 locallisppath!$locallisppath$ac_delim
23874 lisppath!$lisppath$ac_delim
23875 x_default_search_path!$x_default_search_path$ac_delim
23876 etcdir!$etcdir$ac_delim
23877 archlibdir!$archlibdir$ac_delim
23878 bitmapdir!$bitmapdir$ac_delim
23879 gamedir!$gamedir$ac_delim
23880 gameuser!$gameuser$ac_delim
23881 c_switch_system!$c_switch_system$ac_delim
23882 c_switch_machine!$c_switch_machine$ac_delim
23883 _ACEOF
23885 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23886 break
23887 elif $ac_last_try; then
23888 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23890 { (exit 1); exit 1; }; }
23891 else
23892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23894 done
23896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23897 if test -n "$ac_eof"; then
23898 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23899 ac_eof=`expr $ac_eof + 1`
23902 cat >>$CONFIG_STATUS <<_ACEOF
23903 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23905 _ACEOF
23906 sed '
23907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23908 s/^/s,@/; s/!/@,|#_!!_#|/
23911 s/'"$ac_delim"'$/,g/; t
23912 s/$/\\/; p
23913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23914 ' >>$CONFIG_STATUS <conf$$subs.sed
23915 rm -f conf$$subs.sed
23916 cat >>$CONFIG_STATUS <<_ACEOF
23917 CEOF$ac_eof
23918 _ACEOF
23921 ac_delim='%!_!# '
23922 for ac_last_try in false false false false false :; do
23923 cat >conf$$subs.sed <<_ACEOF
23924 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23925 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23926 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23927 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23928 machfile!$machfile$ac_delim
23929 opsysfile!$opsysfile$ac_delim
23930 carbon_appdir!$carbon_appdir$ac_delim
23931 LTLIBOBJS!$LTLIBOBJS$ac_delim
23932 _ACEOF
23934 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23935 break
23936 elif $ac_last_try; then
23937 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23938 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23939 { (exit 1); exit 1; }; }
23940 else
23941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23943 done
23945 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23946 if test -n "$ac_eof"; then
23947 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23948 ac_eof=`expr $ac_eof + 1`
23951 cat >>$CONFIG_STATUS <<_ACEOF
23952 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23954 _ACEOF
23955 sed '
23956 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23957 s/^/s,@/; s/!/@,|#_!!_#|/
23960 s/'"$ac_delim"'$/,g/; t
23961 s/$/\\/; p
23962 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23963 ' >>$CONFIG_STATUS <conf$$subs.sed
23964 rm -f conf$$subs.sed
23965 cat >>$CONFIG_STATUS <<_ACEOF
23966 :end
23967 s/|#_!!_#|//g
23968 CEOF$ac_eof
23969 _ACEOF
23972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23974 # trailing colons and then remove the whole line if VPATH becomes empty
23975 # (actually we leave an empty line to preserve line numbers).
23976 if test "x$srcdir" = x.; then
23977 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23978 s/:*\$(srcdir):*/:/
23979 s/:*\${srcdir}:*/:/
23980 s/:*@srcdir@:*/:/
23981 s/^\([^=]*=[ ]*\):*/\1/
23982 s/:*$//
23983 s/^[^=]*=[ ]*$//
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23988 fi # test -n "$CONFIG_FILES"
23991 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23993 case $ac_tag in
23994 :[FHLC]) ac_mode=$ac_tag; continue;;
23995 esac
23996 case $ac_mode$ac_tag in
23997 :[FHL]*:*);;
23998 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23999 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24000 { (exit 1); exit 1; }; };;
24001 :[FH]-) ac_tag=-:-;;
24002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24003 esac
24004 ac_save_IFS=$IFS
24005 IFS=:
24006 set x $ac_tag
24007 IFS=$ac_save_IFS
24008 shift
24009 ac_file=$1
24010 shift
24012 case $ac_mode in
24013 :L) ac_source=$1;;
24014 :[FH])
24015 ac_file_inputs=
24016 for ac_f
24018 case $ac_f in
24019 -) ac_f="$tmp/stdin";;
24020 *) # Look for the file first in the build tree, then in the source tree
24021 # (if the path is not absolute). The absolute path cannot be DOS-style,
24022 # because $ac_f cannot contain `:'.
24023 test -f "$ac_f" ||
24024 case $ac_f in
24025 [\\/$]*) false;;
24026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24027 esac ||
24028 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24029 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24030 { (exit 1); exit 1; }; };;
24031 esac
24032 ac_file_inputs="$ac_file_inputs $ac_f"
24033 done
24035 # Let's still pretend it is `configure' which instantiates (i.e., don't
24036 # use $as_me), people would be surprised to read:
24037 # /* config.h. Generated by config.status. */
24038 configure_input="Generated from "`IFS=:
24039 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24040 if test x"$ac_file" != x-; then
24041 configure_input="$ac_file. $configure_input"
24042 { echo "$as_me:$LINENO: creating $ac_file" >&5
24043 echo "$as_me: creating $ac_file" >&6;}
24046 case $ac_tag in
24047 *:-:* | *:-) cat >"$tmp/stdin";;
24048 esac
24050 esac
24052 ac_dir=`$as_dirname -- "$ac_file" ||
24053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24054 X"$ac_file" : 'X\(//\)[^/]' \| \
24055 X"$ac_file" : 'X\(//\)$' \| \
24056 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24057 echo X"$ac_file" |
24058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24059 s//\1/
24062 /^X\(\/\/\)[^/].*/{
24063 s//\1/
24066 /^X\(\/\/\)$/{
24067 s//\1/
24070 /^X\(\/\).*/{
24071 s//\1/
24074 s/.*/./; q'`
24075 { as_dir="$ac_dir"
24076 case $as_dir in #(
24077 -*) as_dir=./$as_dir;;
24078 esac
24079 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24080 as_dirs=
24081 while :; do
24082 case $as_dir in #(
24083 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24084 *) as_qdir=$as_dir;;
24085 esac
24086 as_dirs="'$as_qdir' $as_dirs"
24087 as_dir=`$as_dirname -- "$as_dir" ||
24088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24089 X"$as_dir" : 'X\(//\)[^/]' \| \
24090 X"$as_dir" : 'X\(//\)$' \| \
24091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24092 echo X"$as_dir" |
24093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24094 s//\1/
24097 /^X\(\/\/\)[^/].*/{
24098 s//\1/
24101 /^X\(\/\/\)$/{
24102 s//\1/
24105 /^X\(\/\).*/{
24106 s//\1/
24109 s/.*/./; q'`
24110 test -d "$as_dir" && break
24111 done
24112 test -z "$as_dirs" || eval "mkdir $as_dirs"
24113 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24114 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24115 { (exit 1); exit 1; }; }; }
24116 ac_builddir=.
24118 case "$ac_dir" in
24119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24122 # A ".." for each directory in $ac_dir_suffix.
24123 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24124 case $ac_top_builddir_sub in
24125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24127 esac ;;
24128 esac
24129 ac_abs_top_builddir=$ac_pwd
24130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24131 # for backward compatibility:
24132 ac_top_builddir=$ac_top_build_prefix
24134 case $srcdir in
24135 .) # We are building in place.
24136 ac_srcdir=.
24137 ac_top_srcdir=$ac_top_builddir_sub
24138 ac_abs_top_srcdir=$ac_pwd ;;
24139 [\\/]* | ?:[\\/]* ) # Absolute name.
24140 ac_srcdir=$srcdir$ac_dir_suffix;
24141 ac_top_srcdir=$srcdir
24142 ac_abs_top_srcdir=$srcdir ;;
24143 *) # Relative name.
24144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24145 ac_top_srcdir=$ac_top_build_prefix$srcdir
24146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24147 esac
24148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24151 case $ac_mode in
24154 # CONFIG_FILE
24157 case $INSTALL in
24158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24160 esac
24161 _ACEOF
24163 cat >>$CONFIG_STATUS <<\_ACEOF
24164 # If the template does not know about datarootdir, expand it.
24165 # FIXME: This hack should be removed a few years after 2.60.
24166 ac_datarootdir_hack=; ac_datarootdir_seen=
24168 case `sed -n '/datarootdir/ {
24172 /@datadir@/p
24173 /@docdir@/p
24174 /@infodir@/p
24175 /@localedir@/p
24176 /@mandir@/p
24177 ' $ac_file_inputs` in
24178 *datarootdir*) ac_datarootdir_seen=yes;;
24179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24180 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24181 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24182 _ACEOF
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 ac_datarootdir_hack='
24185 s&@datadir@&$datadir&g
24186 s&@docdir@&$docdir&g
24187 s&@infodir@&$infodir&g
24188 s&@localedir@&$localedir&g
24189 s&@mandir@&$mandir&g
24190 s&\\\${datarootdir}&$datarootdir&g' ;;
24191 esac
24192 _ACEOF
24194 # Neutralize VPATH when `$srcdir' = `.'.
24195 # Shell code in configure.ac might set extrasub.
24196 # FIXME: do we really want to maintain this feature?
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 sed "$ac_vpsub
24199 $extrasub
24200 _ACEOF
24201 cat >>$CONFIG_STATUS <<\_ACEOF
24203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24204 s&@configure_input@&$configure_input&;t t
24205 s&@top_builddir@&$ac_top_builddir_sub&;t t
24206 s&@srcdir@&$ac_srcdir&;t t
24207 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24208 s&@top_srcdir@&$ac_top_srcdir&;t t
24209 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24210 s&@builddir@&$ac_builddir&;t t
24211 s&@abs_builddir@&$ac_abs_builddir&;t t
24212 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24213 s&@INSTALL@&$ac_INSTALL&;t t
24214 $ac_datarootdir_hack
24215 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24218 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24220 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24221 which seems to be undefined. Please make sure it is defined." >&5
24222 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24223 which seems to be undefined. Please make sure it is defined." >&2;}
24225 rm -f "$tmp/stdin"
24226 case $ac_file in
24227 -) cat "$tmp/out"; rm -f "$tmp/out";;
24228 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24229 esac
24233 # CONFIG_HEADER
24235 _ACEOF
24237 # Transform confdefs.h into a sed script `conftest.defines', that
24238 # substitutes the proper values into config.h.in to produce config.h.
24239 rm -f conftest.defines conftest.tail
24240 # First, append a space to every undef/define line, to ease matching.
24241 echo 's/$/ /' >conftest.defines
24242 # Then, protect against being on the right side of a sed subst, or in
24243 # an unquoted here document, in config.status. If some macros were
24244 # called several times there might be several #defines for the same
24245 # symbol, which is useless. But do not sort them, since the last
24246 # AC_DEFINE must be honored.
24247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24248 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24249 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24250 # PARAMS is the parameter list in the macro definition--in most cases, it's
24251 # just an empty string.
24252 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24253 ac_dB='\\)[ (].*,\\1define\\2'
24254 ac_dC=' '
24255 ac_dD=' ,'
24257 uniq confdefs.h |
24258 sed -n '
24259 t rset
24260 :rset
24261 s/^[ ]*#[ ]*define[ ][ ]*//
24262 t ok
24265 s/[\\&,]/\\&/g
24266 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24267 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24268 ' >>conftest.defines
24270 # Remove the space that was appended to ease matching.
24271 # Then replace #undef with comments. This is necessary, for
24272 # example, in the case of _POSIX_SOURCE, which is predefined and required
24273 # on some systems where configure will not decide to define it.
24274 # (The regexp can be short, since the line contains either #define or #undef.)
24275 echo 's/ $//
24276 s,^[ #]*u.*,/* & */,' >>conftest.defines
24278 # Break up conftest.defines:
24279 ac_max_sed_lines=50
24281 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24282 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24283 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24284 # et cetera.
24285 ac_in='$ac_file_inputs'
24286 ac_out='"$tmp/out1"'
24287 ac_nxt='"$tmp/out2"'
24289 while :
24291 # Write a here document:
24292 cat >>$CONFIG_STATUS <<_ACEOF
24293 # First, check the format of the line:
24294 cat >"\$tmp/defines.sed" <<\\CEOF
24295 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24296 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24298 :def
24299 _ACEOF
24300 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24301 echo 'CEOF
24302 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24303 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24304 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24305 grep . conftest.tail >/dev/null || break
24306 rm -f conftest.defines
24307 mv conftest.tail conftest.defines
24308 done
24309 rm -f conftest.defines conftest.tail
24311 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24312 cat >>$CONFIG_STATUS <<\_ACEOF
24313 if test x"$ac_file" != x-; then
24314 echo "/* $configure_input */" >"$tmp/config.h"
24315 cat "$ac_result" >>"$tmp/config.h"
24316 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24318 echo "$as_me: $ac_file is unchanged" >&6;}
24319 else
24320 rm -f $ac_file
24321 mv "$tmp/config.h" $ac_file
24323 else
24324 echo "/* $configure_input */"
24325 cat "$ac_result"
24327 rm -f "$tmp/out12"
24330 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24331 echo "$as_me: executing $ac_file commands" >&6;}
24333 esac
24336 case $ac_file$ac_mode in
24337 "default":C)
24339 ### Make the necessary directories, if they don't exist.
24340 for dir in etc lisp ; do
24341 test -d ${dir} || mkdir ${dir}
24342 done
24344 # Build src/Makefile from ${srcdir}/src/Makefile.c
24345 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24346 # This must be done after src/config.h is built, since we rely on that file.
24348 # Now get this: Some word that is part of the ${srcdir} directory name
24349 # or the ${configuration} value might, just might, happen to be an
24350 # identifier like `sun4' or `i386' or something, and be predefined by
24351 # the C preprocessor to some helpful value like 1, or maybe the empty
24352 # string. Needless to say consequent macro substitutions are less
24353 # than conducive to the makefile finding the correct directory.
24354 undefs="`echo $top_srcdir $configuration $canonical |
24355 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24356 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24359 echo creating src/epaths.h
24360 ${MAKE-make} epaths-force
24362 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24363 # `..' to `. .' unless invoked with -traditional
24365 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24366 CPPFLAGS="$CPPFLAGS -traditional"
24369 echo creating lib-src/Makefile
24370 ( cd lib-src
24371 rm -f junk.c junk1.c junk2.c
24372 sed -e '/start of cpp stuff/q' \
24373 < Makefile.c > junk1.c
24374 sed -e '1,/start of cpp stuff/d'\
24375 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24376 < Makefile.c > junk.c
24377 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24378 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24379 cat junk1.c junk2.c > Makefile.new
24380 rm -f junk.c junk1.c junk2.c
24381 chmod 444 Makefile.new
24382 mv -f Makefile.new Makefile
24385 echo creating src/Makefile
24386 ( cd src
24387 rm -f junk.c junk1.c junk2.c
24388 sed -e '/start of cpp stuff/q' \
24389 < Makefile.c > junk1.c
24390 sed -e '1,/start of cpp stuff/d'\
24391 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24392 < Makefile.c > junk.c
24393 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24394 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24395 cat junk1.c junk2.c > Makefile.new
24396 rm -f junk.c junk1.c junk2.c
24397 chmod 444 Makefile.new
24398 mv -f Makefile.new Makefile
24401 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24402 echo creating src/.gdbinit
24403 echo source $srcdir/src/.gdbinit > src/.gdbinit
24406 # This is how we know whether to re-run configure in certain cases.
24407 touch src/config.stamp
24411 esac
24412 done # for ac_tag
24415 { (exit 0); exit 0; }
24416 _ACEOF
24417 chmod +x $CONFIG_STATUS
24418 ac_clean_files=$ac_clean_files_save
24421 # configure is writing to config.log, and then calls config.status.
24422 # config.status does its own redirection, appending to config.log.
24423 # Unfortunately, on DOS this fails, as config.log is still kept open
24424 # by configure, so config.status won't be able to write to it; its
24425 # output is simply discarded. So we exec the FD to /dev/null,
24426 # effectively closing config.log, so it can be properly (re)opened and
24427 # appended to by config.status. When coming back to configure, we
24428 # need to make the FD available again.
24429 if test "$no_create" != yes; then
24430 ac_cs_success=:
24431 ac_config_status_args=
24432 test "$silent" = yes &&
24433 ac_config_status_args="$ac_config_status_args --quiet"
24434 exec 5>/dev/null
24435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24436 exec 5>>config.log
24437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24438 # would make configure fail if this is the last instruction.
24439 $ac_cs_success || { (exit 1); exit 1; }