(bibtex-files): Fix customization type.
[emacs.git] / configure
blob094472d8463344e8a93278401837cb3d59cc9626
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, 2007 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 ALLOCA
693 liblockfile
694 LIBOBJS
695 NEED_SETGID
696 KMEM_GROUP
697 GETLOADAVG_LIBS
698 GETOPT_H
699 GETOPTOBJS
700 version
701 configuration
702 canonical
703 srcdir
704 lispdir
705 locallisppath
706 lisppath
707 x_default_search_path
708 etcdir
709 archlibdir
710 bitmapdir
711 gamedir
712 gameuser
713 c_switch_system
714 c_switch_machine
715 LD_SWITCH_X_SITE
716 LD_SWITCH_X_SITE_AUX
717 C_SWITCH_X_SITE
718 X_TOOLKIT_TYPE
719 machfile
720 opsysfile
721 carbon_appdir
722 LTLIBOBJS'
723 ac_subst_files=''
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
733 XMKMF'
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
782 ac_prev=
783 ac_dashdash=
784 for ac_option
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
802 ac_dashdash=yes ;;
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
821 --config-cache | -C)
822 cache_file=config.cache ;;
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
836 -disable-* | --disable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
855 -enable-* | --enable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1052 -with-* | --with-*)
1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_$ac_package=\$ac_optarg ;;
1061 -without-* | --without-*)
1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=no ;;
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1093 *=*)
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 esac
1111 done
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1119 # Be sure to have absolute directory names.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val=\$$ac_var
1126 case $ac_val in
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129 esac
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1132 done
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177 echo X"$0" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 s//\1/
1182 /^X\(\/\/\)[^/].*/{
1183 s//\1/
1186 /^X\(\/\/\)$/{
1187 s//\1/
1190 /^X\(\/\).*/{
1191 s//\1/
1194 s/.*/./; q'`
1195 srcdir=$ac_confdir
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 srcdir=..
1199 else
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1289 _ACEOF
1291 cat <<\_ACEOF
1293 Program names:
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298 X features:
1299 --x-includes=DIR X include files are in DIR
1300 --x-libraries=DIR X library files are in DIR
1302 System types:
1303 --build=BUILD configure for building on BUILD [guessed]
1304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 _ACEOF
1308 if test -n "$ac_init_help"; then
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-carbon-app[=DIR] [DIR=/Application]
1316 specify install directory for Emacs.app on Mac OS X
1317 --enable-asserts compile code with asserts enabled
1318 --enable-maintainer-mode enable make rules and dependencies not useful
1319 (and sometimes confusing) to the casual installer
1320 --enable-locallisppath=PATH
1321 directories Emacs should search for lisp files
1322 specific to this site
1323 --disable-largefile omit support for large files
1325 Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-gcc don't use GCC to compile Emacs if GCC is found
1329 --without-pop don't support POP mail retrieval with movemail
1330 --with-kerberos support Kerberos-authenticated POP
1331 --with-kerberos5 support Kerberos version 5 authenticated POP
1332 --with-hesiod support Hesiod to get the POP server host
1333 --without-sound don't compile with sound support
1334 --with-x-toolkit=KIT use an X toolkit
1335 (KIT = yes/lucid/athena/motif/gtk/no)
1336 --with-xpm use -lXpm for displaying XPM images
1337 --with-jpeg use -ljpeg for displaying JPEG images
1338 --with-tiff use -ltiff for displaying TIFF images
1339 --with-gif use -lungif for displaying GIF images
1340 --with-png use -lpng for displaying PNG images
1341 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1342 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1343 --without-toolkit-scroll-bars
1344 don't use Motif or Xaw3d scroll bars
1345 --without-xim don't use X11 XIM
1346 --without-carbon don't use Carbon GUI on Mac OS X
1347 --with-x use the X Window System
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CPP C preprocessor
1358 XMKMF Path to xmkmf, Makefile generator for X Window System
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 _ACEOF
1364 ac_status=$?
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" || continue
1371 ac_builddir=.
1373 case "$ac_dir" in
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1382 esac ;;
1383 esac
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1389 case $srcdir in
1390 .) # We are building in place.
1391 ac_srcdir=.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1398 *) # Relative name.
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 esac
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1413 else
1414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 fi || ac_status=$?
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1417 done
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1422 cat <<\_ACEOF
1423 configure
1424 generated by GNU Autoconf 2.61
1426 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1427 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1430 _ACEOF
1431 exit
1433 cat >config.log <<_ACEOF
1434 This file contains any messages produced by compilers while
1435 running configure, to aid debugging if configure makes a mistake.
1437 It was created by $as_me, which was
1438 generated by GNU Autoconf 2.61. Invocation command line was
1440 $ $0 $@
1442 _ACEOF
1443 exec 5>>config.log
1445 cat <<_ASUNAME
1446 ## --------- ##
1447 ## Platform. ##
1448 ## --------- ##
1450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1467 _ASUNAME
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1472 IFS=$as_save_IFS
1473 test -z "$as_dir" && as_dir=.
1474 echo "PATH: $as_dir"
1475 done
1476 IFS=$as_save_IFS
1478 } >&5
1480 cat >&5 <<_ACEOF
1483 ## ----------- ##
1484 ## Core tests. ##
1485 ## ----------- ##
1487 _ACEOF
1490 # Keep a trace of the command line.
1491 # Strip out --no-create and --no-recursion so they do not pile up.
1492 # Strip out --silent because we don't want to record it for future runs.
1493 # Also quote any args containing shell meta-characters.
1494 # Make two passes to allow for proper duplicate-argument suppression.
1495 ac_configure_args=
1496 ac_configure_args0=
1497 ac_configure_args1=
1498 ac_must_keep_next=false
1499 for ac_pass in 1 2
1501 for ac_arg
1503 case $ac_arg in
1504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506 | -silent | --silent | --silen | --sile | --sil)
1507 continue ;;
1508 *\'*)
1509 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1510 esac
1511 case $ac_pass in
1512 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1514 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1515 if test $ac_must_keep_next = true; then
1516 ac_must_keep_next=false # Got value, back to normal.
1517 else
1518 case $ac_arg in
1519 *=* | --config-cache | -C | -disable-* | --disable-* \
1520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1522 | -with-* | --with-* | -without-* | --without-* | --x)
1523 case "$ac_configure_args0 " in
1524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1525 esac
1527 -* ) ac_must_keep_next=true ;;
1528 esac
1530 ac_configure_args="$ac_configure_args '$ac_arg'"
1532 esac
1533 done
1534 done
1535 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1536 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1538 # When interrupted or exit'd, cleanup temporary files, and complete
1539 # config.log. We remove comments because anyway the quotes in there
1540 # would cause problems or look ugly.
1541 # WARNING: Use '\'' to represent an apostrophe within the trap.
1542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1543 trap 'exit_status=$?
1544 # Save into config.log some information that might help in debugging.
1546 echo
1548 cat <<\_ASBOX
1549 ## ---------------- ##
1550 ## Cache variables. ##
1551 ## ---------------- ##
1552 _ASBOX
1553 echo
1554 # The following way of writing the cache mishandles newlines in values,
1556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1557 eval ac_val=\$$ac_var
1558 case $ac_val in #(
1559 *${as_nl}*)
1560 case $ac_var in #(
1561 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1562 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1563 esac
1564 case $ac_var in #(
1565 _ | IFS | as_nl) ;; #(
1566 *) $as_unset $ac_var ;;
1567 esac ;;
1568 esac
1569 done
1570 (set) 2>&1 |
1571 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1572 *${as_nl}ac_space=\ *)
1573 sed -n \
1574 "s/'\''/'\''\\\\'\'''\''/g;
1575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1576 ;; #(
1578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1580 esac |
1581 sort
1583 echo
1585 cat <<\_ASBOX
1586 ## ----------------- ##
1587 ## Output variables. ##
1588 ## ----------------- ##
1589 _ASBOX
1590 echo
1591 for ac_var in $ac_subst_vars
1593 eval ac_val=\$$ac_var
1594 case $ac_val in
1595 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 esac
1597 echo "$ac_var='\''$ac_val'\''"
1598 done | sort
1599 echo
1601 if test -n "$ac_subst_files"; then
1602 cat <<\_ASBOX
1603 ## ------------------- ##
1604 ## File substitutions. ##
1605 ## ------------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_files
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1619 if test -s confdefs.h; then
1620 cat <<\_ASBOX
1621 ## ----------- ##
1622 ## confdefs.h. ##
1623 ## ----------- ##
1624 _ASBOX
1625 echo
1626 cat confdefs.h
1627 echo
1629 test "$ac_signal" != 0 &&
1630 echo "$as_me: caught signal $ac_signal"
1631 echo "$as_me: exit $exit_status"
1632 } >&5
1633 rm -f core *.core core.conftest.* &&
1634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1635 exit $exit_status
1637 for ac_signal in 1 2 13 15; do
1638 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1639 done
1640 ac_signal=0
1642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1643 rm -f -r conftest* confdefs.h
1645 # Predefined preprocessor variables.
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1649 _ACEOF
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654 _ACEOF
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1659 _ACEOF
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_STRING "$PACKAGE_STRING"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1669 _ACEOF
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer explicitly selected file to automatically selected ones.
1674 if test -n "$CONFIG_SITE"; then
1675 set x "$CONFIG_SITE"
1676 elif test "x$prefix" != xNONE; then
1677 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1678 else
1679 set x "$ac_default_prefix/share/config.site" \
1680 "$ac_default_prefix/etc/config.site"
1682 shift
1683 for ac_site_file
1685 if test -r "$ac_site_file"; then
1686 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1687 echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1689 . "$ac_site_file"
1691 done
1693 if test -r "$cache_file"; then
1694 # Some versions of bash will fail to source /dev/null (special
1695 # files actually), so we avoid doing that.
1696 if test -f "$cache_file"; then
1697 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1698 echo "$as_me: loading cache $cache_file" >&6;}
1699 case $cache_file in
1700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1701 *) . "./$cache_file";;
1702 esac
1704 else
1705 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1706 echo "$as_me: creating cache $cache_file" >&6;}
1707 >$cache_file
1710 ac_header_list="$ac_header_list sys/time.h"
1711 ac_header_list="$ac_header_list unistd.h"
1712 ac_func_list="$ac_func_list alarm"
1713 # Check that the precious variables saved in the cache have kept the same
1714 # value.
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1722 set,)
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1726 ,set)
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,);;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1736 echo "$as_me: former value: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1738 echo "$as_me: current value: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1740 fi;;
1741 esac
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1744 case $ac_new_val in
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1747 esac
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751 esac
1753 done
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1778 ac_ext=c
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788 test "$program_prefix" != NONE &&
1789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1790 # Use a double $ so make ignores it.
1791 test "$program_suffix" != NONE &&
1792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1793 # Double any \ or $. echo might interpret backslashes.
1794 # By default was `s,x,x', remove it if useless.
1795 cat <<\_ACEOF >conftest.sed
1796 s/[\\$]/&&/g;s/;s,x,x,$//
1797 _ACEOF
1798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1799 rm -f conftest.sed
1802 lispdir='${datadir}/emacs/${version}/lisp'
1803 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1804 '${datadir}/emacs/site-lisp'
1805 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1806 etcdir='${datadir}/emacs/${version}/etc'
1807 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1808 docdir='${datadir}/emacs/${version}/etc'
1809 gamedir='${localstatedir}/games/emacs'
1811 gameuser=games
1814 # Check whether --with-gcc was given.
1815 if test "${with_gcc+set}" = set; then
1816 withval=$with_gcc;
1820 # Check whether --with-pop was given.
1821 if test "${with_pop+set}" = set; then
1822 withval=$with_pop; if test "$withval" = yes; then
1823 cat >>confdefs.h <<\_ACEOF
1824 #define MAIL_USE_POP 1
1825 _ACEOF
1827 else :
1829 else
1830 cat >>confdefs.h <<\_ACEOF
1831 #define MAIL_USE_POP 1
1832 _ACEOF
1838 # Check whether --with-kerberos was given.
1839 if test "${with_kerberos+set}" = set; then
1840 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1841 #define KERBEROS 1
1842 _ACEOF
1848 # Check whether --with-kerberos5 was given.
1849 if test "${with_kerberos5+set}" = set; then
1850 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1851 if test "${with_kerberos+set}" != set; then
1852 with_kerberos=yes
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1860 cat >>confdefs.h <<\_ACEOF
1861 #define KERBEROS5 1
1862 _ACEOF
1867 # Check whether --with-hesiod was given.
1868 if test "${with_hesiod+set}" = set; then
1869 withval=$with_hesiod;
1870 cat >>confdefs.h <<\_ACEOF
1871 #define HESIOD 1
1872 _ACEOF
1878 # Check whether --with-sound was given.
1879 if test "${with_sound+set}" = set; then
1880 withval=$with_sound;
1885 # Check whether --with-x-toolkit was given.
1886 if test "${with_x_toolkit+set}" = set; then
1887 withval=$with_x_toolkit; case "${withval}" in
1888 y | ye | yes ) val=athena ;;
1889 n | no ) val=no ;;
1890 l | lu | luc | luci | lucid ) val=lucid ;;
1891 a | at | ath | athe | athen | athena ) val=athena ;;
1892 m | mo | mot | moti | motif ) val=motif ;;
1893 g | gt | gtk ) val=gtk ;;
1895 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1896 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1897 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1898 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1899 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1900 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1901 { (exit 1); exit 1; }; }
1903 esac
1904 with_x_toolkit=$val
1909 # Check whether --with-xpm was given.
1910 if test "${with_xpm+set}" = set; then
1911 withval=$with_xpm;
1915 # Check whether --with-jpeg was given.
1916 if test "${with_jpeg+set}" = set; then
1917 withval=$with_jpeg;
1921 # Check whether --with-tiff was given.
1922 if test "${with_tiff+set}" = set; then
1923 withval=$with_tiff;
1927 # Check whether --with-gif was given.
1928 if test "${with_gif+set}" = set; then
1929 withval=$with_gif;
1933 # Check whether --with-png was given.
1934 if test "${with_png+set}" = set; then
1935 withval=$with_png;
1939 # Check whether --with-gtk was given.
1940 if test "${with_gtk+set}" = set; then
1941 withval=$with_gtk;
1945 # Check whether --with-pkg-config-prog was given.
1946 if test "${with_pkg_config_prog+set}" = set; then
1947 withval=$with_pkg_config_prog;
1951 # Check whether --with-toolkit-scroll-bars was given.
1952 if test "${with_toolkit_scroll_bars+set}" = set; then
1953 withval=$with_toolkit_scroll_bars;
1957 # Check whether --with-xim was given.
1958 if test "${with_xim+set}" = set; then
1959 withval=$with_xim;
1963 # Check whether --with-carbon was given.
1964 if test "${with_carbon+set}" = set; then
1965 withval=$with_carbon;
1968 # Check whether --enable-carbon-app was given.
1969 if test "${enable_carbon_app+set}" = set; then
1970 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1974 # Check whether --enable-asserts was given.
1975 if test "${enable_asserts+set}" = set; then
1976 enableval=$enable_asserts; USE_XASSERTS=$enableval
1977 else
1978 USE_XASSERTS=no
1982 # Check whether --enable-maintainer-mode was given.
1983 if test "${enable_maintainer_mode+set}" = set; then
1984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1985 else
1986 USE_MAINTAINER_MODE=no
1989 if test $USE_MAINTAINER_MODE = yes; then
1990 MAINT=
1991 else
1992 MAINT=#
1996 # Check whether --enable-locallisppath was given.
1997 if test "${enable_locallisppath+set}" = set; then
1998 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1999 locallisppath=
2000 elif test "${enableval}" != "yes"; then
2001 locallisppath=${enableval}
2006 #### Make srcdir absolute, if it isn't already. It's important to
2007 #### avoid running the path through pwd unnecessarily, since pwd can
2008 #### give you automounter prefixes, which can go away. We do all this
2009 #### so Emacs can find its files when run uninstalled.
2010 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2011 unset CDPATH
2012 case "${srcdir}" in
2013 /* ) ;;
2015 ## We may be able to use the $PWD environment variable to make this
2016 ## absolute. But sometimes PWD is inaccurate.
2017 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2018 ## but that tested only for a well-formed and valid PWD,
2019 ## it did not object when PWD was well-formed and valid but just wrong.
2020 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2021 then
2022 srcdir="$PWD"
2023 else
2024 srcdir="`(cd ${srcdir}; pwd)`"
2027 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2028 esac
2030 #### Check if the source directory already has a configured system in it.
2031 if test `pwd` != `(cd ${srcdir} && pwd)` \
2032 && test -f "${srcdir}/src/config.h" ; then
2033 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2034 as a build directory right now; it has been configured in its own
2035 right. To configure in another directory as well, you MUST
2036 use GNU make. If you do not have GNU make, then you must
2037 now do \`make distclean' in ${srcdir},
2038 and then run $0 again." >&5
2039 echo "$as_me: 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." >&2;}
2047 #### Given the configuration name, set machfile and opsysfile to the
2048 #### names of the m/*.h and s/*.h files we should use.
2050 ### Canonicalize the configuration name.
2052 ac_aux_dir=
2053 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2054 if test -f "$ac_dir/install-sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install-sh -c"
2057 break
2058 elif test -f "$ac_dir/install.sh"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install.sh -c"
2061 break
2062 elif test -f "$ac_dir/shtool"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/shtool install -c"
2065 break
2067 done
2068 if test -z "$ac_aux_dir"; then
2069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2071 { (exit 1); exit 1; }; }
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083 # Make sure we can run config.sub.
2084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2085 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2086 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2087 { (exit 1); exit 1; }; }
2089 { echo "$as_me:$LINENO: checking build system type" >&5
2090 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_build+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 ac_build_alias=$build_alias
2095 test "x$ac_build_alias" = x &&
2096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2097 test "x$ac_build_alias" = x &&
2098 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2099 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2100 { (exit 1); exit 1; }; }
2101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2104 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2108 echo "${ECHO_T}$ac_cv_build" >&6; }
2109 case $ac_cv_build in
2110 *-*-*) ;;
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2112 echo "$as_me: error: invalid value of canonical build" >&2;}
2113 { (exit 1); exit 1; }; };;
2114 esac
2115 build=$ac_cv_build
2116 ac_save_IFS=$IFS; IFS='-'
2117 set x $ac_cv_build
2118 shift
2119 build_cpu=$1
2120 build_vendor=$2
2121 shift; shift
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2124 build_os=$*
2125 IFS=$ac_save_IFS
2126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129 { echo "$as_me:$LINENO: checking host system type" >&5
2130 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_host+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test "x$host_alias" = x; then
2135 ac_cv_host=$ac_cv_build
2136 else
2137 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2145 echo "${ECHO_T}$ac_cv_host" >&6; }
2146 case $ac_cv_host in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2149 echo "$as_me: error: invalid value of canonical host" >&2;}
2150 { (exit 1); exit 1; }; };;
2151 esac
2152 host=$ac_cv_host
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_host
2155 shift
2156 host_cpu=$1
2157 host_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 host_os=$*
2162 IFS=$ac_save_IFS
2163 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166 canonical=$host
2167 configuration=${host_alias-$host}
2171 ### If you add support for a new configuration, add code to this
2172 ### switch statement to recognize your configuration name and select
2173 ### the appropriate operating system and machine description files.
2175 ### You would hope that you could choose an m/*.h file pretty much
2176 ### based on the machine portion of the configuration name, and an s-
2177 ### file based on the operating system portion. However, it turns out
2178 ### that each m/*.h file is pretty manufacturer-specific - for
2179 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2180 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2181 ### machines. So we basically have to have a special case for each
2182 ### configuration name.
2184 ### As far as handling version numbers on operating systems is
2185 ### concerned, make sure things will fail in a fixable way. If
2186 ### /etc/MACHINES doesn't say anything about version numbers, be
2187 ### prepared to handle anything reasonably. If version numbers
2188 ### matter, be sure /etc/MACHINES says something about it.
2190 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2191 ### "System V Release 4"; he writes, "The old convention encouraged
2192 ### confusion between `system' and `release' levels'."
2194 machine='' opsys='' unported=no
2195 case "${canonical}" in
2197 ## FreeBSD ports
2198 *-*-freebsd* )
2199 opsys=freebsd
2200 case "${canonical}" in
2201 alpha*-*-freebsd*) machine=alpha ;;
2202 ia64-*-freebsd*) machine=ia64 ;;
2203 sparc64-*-freebsd*) machine=sparc ;;
2204 powerpc-*-freebsd*) machine=macppc ;;
2205 i[3456]86-*-freebsd*) machine=intel386 ;;
2206 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2207 esac
2210 ## NetBSD ports
2211 *-*-netbsd* )
2212 opsys=netbsd
2213 if test -f /usr/lib/crti.o; then
2215 cat >>confdefs.h <<\_ACEOF
2216 #define HAVE_CRTIN
2217 _ACEOF
2221 case "${canonical}" in
2222 alpha*-*-netbsd*) machine=alpha ;;
2223 i[3456]86-*-netbsd*) machine=intel386 ;;
2224 m68k-*-netbsd*)
2225 # This is somewhat bogus.
2226 machine=hp9000s300 ;;
2227 mips-*-netbsd*) machine=pmax ;;
2228 mipsel-*-netbsd*) machine=pmax ;;
2229 mipseb-*-netbsd*) machine=pmax ;;
2230 ns32k-*-netbsd*) machine=ns32000 ;;
2231 powerpc-*-netbsd*) machine=macppc ;;
2232 sparc*-*-netbsd*) machine=sparc ;;
2233 vax-*-netbsd*) machine=vax ;;
2234 arm-*-netbsd*) machine=arm ;;
2235 x86_64-*-netbsd*) machine=amdx86-64 ;;
2236 hppa-*-netbsd*) machine=hp800 ;;
2237 shle-*-netbsd*) machine=sh3el ;;
2238 esac
2241 ## OpenBSD ports
2242 *-*-openbsd* )
2243 opsys=openbsd
2244 case "${canonical}" in
2245 alpha*-*-openbsd*) machine=alpha ;;
2246 i386-*-openbsd*) machine=intel386 ;;
2247 x86_64-*-openbsd*) machine=amdx86-64 ;;
2248 m68k-*-openbsd*) machine=hp9000s300 ;;
2249 mipsel-*-openbsd*) machine=pmax ;;
2250 ns32k-*-openbsd*) machine=ns32000 ;;
2251 sparc-*-openbsd*) machine=sparc ;;
2252 vax-*-openbsd*) machine=vax ;;
2253 esac
2256 ## LynxOS ports
2257 *-*-lynxos* )
2258 opsys=lynxos
2259 case "${canonical}" in
2260 i[3456]86-*-lynxos*) machine=intel386 ;;
2261 powerpc-*-lynxos*) machine=powerpc ;;
2262 esac
2265 ## Acorn RISCiX:
2266 arm-acorn-riscix1.1* )
2267 machine=acorn opsys=riscix1-1
2269 arm-acorn-riscix1.2* | arm-acorn-riscix )
2270 ## This name is riscix12 instead of riscix1.2
2271 ## to avoid a file name conflict on MSDOS.
2272 machine=acorn opsys=riscix12
2275 ## BSDI ports
2276 *-*-bsdi* )
2277 opsys=bsdi
2278 case "${canonical}" in
2279 i[345]86-*-bsdi*) machine=intel386 ;;
2280 sparc-*-bsdi*) machine=sparc ;;
2281 powerpc-*-bsdi*) machine=macppc ;;
2282 esac
2283 case "${canonical}" in
2284 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2285 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2286 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2287 *-*-bsdi3* ) opsys=bsdos3 ;;
2288 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2289 esac
2292 ## Alliant machines
2293 ## Strictly speaking, we need the version of the alliant operating
2294 ## system to choose the right machine file, but currently the
2295 ## configuration name doesn't tell us enough to choose the right
2296 ## one; we need to give alliants their own operating system name to
2297 ## do this right. When someone cares, they can help us.
2298 fx80-alliant-* )
2299 machine=alliant4 opsys=bsd4-2
2301 i860-alliant-* )
2302 machine=alliant-2800 opsys=bsd4-3
2305 ## Alpha (DEC) machines.
2306 alpha*-dec-osf* )
2307 machine=alpha opsys=osf1
2308 # This is needed to find X11R6.1 libraries for certain tests.
2309 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2310 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2311 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2312 # due to non-traditional preprocessing with the current compiler
2313 # defaults. OSF 4 can also have that compiler version, and there
2314 # seems always to have been a usable /usr/bin/cpp.
2315 NON_GNU_CPP=/usr/bin/cpp
2316 case "${canonical}" in
2317 alpha*-dec-osf[5-9]*)
2318 opsys=osf5-0 ;;
2319 esac
2322 alpha*-*-linux-gnu* )
2323 machine=alpha opsys=gnu-linux
2326 arm*-*-linux-gnu* )
2327 machine=arm opsys=gnu-linux
2330 ## Altos 3068
2331 m68*-altos-sysv* )
2332 machine=altos opsys=usg5-2
2335 ## Amdahl UTS
2336 580-amdahl-sysv* )
2337 machine=amdahl opsys=usg5-2-2
2340 ## Apollo, Domain/OS
2341 m68*-apollo-* )
2342 machine=apollo opsys=bsd4-3
2345 ## AT&T 3b2, 3b5, 3b15, 3b20
2346 we32k-att-sysv* )
2347 machine=att3b opsys=usg5-2-2
2350 ## AT&T 3b1 - The Mighty Unix PC!
2351 m68*-att-sysv* )
2352 machine=7300 opsys=usg5-2-2
2355 ## Bull dpx20
2356 rs6000-bull-bosx* )
2357 machine=ibmrs6000 opsys=aix3-2
2360 ## Bull dpx2
2361 m68*-bull-sysv3* )
2362 machine=dpx2 opsys=usg5-3
2365 ## Bull sps7
2366 m68*-bull-sysv2* )
2367 machine=sps7 opsys=usg5-2
2370 ## CCI 5/32, 6/32 -- see "Tahoe".
2372 ## Celerity
2373 ## I don't know what configuration name to use for this; config.sub
2374 ## doesn't seem to know anything about it. Hey, Celerity users, get
2375 ## in touch with us!
2376 celerity-celerity-bsd* )
2377 machine=celerity opsys=bsd4-2
2380 ## Clipper
2381 ## What operating systems does this chip run that Emacs has been
2382 ## tested on?
2383 clipper-* )
2384 machine=clipper
2385 ## We'll use the catch-all code at the bottom to guess the
2386 ## operating system.
2389 ## Compaq Nonstop
2390 mips-compaq-nonstopux* )
2391 machine=nonstopux opsys=nonstopux
2394 ## Convex
2395 *-convex-bsd* | *-convex-convexos* )
2396 machine=convex opsys=bsd4-3
2397 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2398 NON_GNU_CPP="cc -E -P"
2401 ## Cubix QBx/386
2402 i[3456]86-cubix-sysv* )
2403 machine=intel386 opsys=usg5-3
2406 ## Cydra 5
2407 cydra*-cydrome-sysv* )
2408 machine=cydra5 opsys=usg5-3
2411 ## Data General AViiON Machines
2412 ## DG changed naming conventions with the release of 5.4.4.10, they
2413 ## dropped the initial 5.4 but left the intervening R. Because of the
2414 ## R this shouldn't conflict with older versions of the OS (which I
2415 ## think were named like dgux4.*). In addition, DG new AViiONs series
2416 ## uses either Motorola M88k or Intel Pentium CPUs.
2417 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2418 machine=aviion opsys=dgux4
2420 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2421 ## This name is dgux5-4-3 instead of dgux5-4r3
2422 ## to avoid a file name conflict on MSDOS.
2423 machine=aviion opsys=dgux5-4-3
2425 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2426 machine=aviion opsys=dgux5-4r2
2428 m88k-dg-dgux* )
2429 machine=aviion opsys=dgux
2432 ## Data General AViiON Intel (x86) Machines
2433 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2434 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2435 i[345]86-dg-dguxR4* )
2436 machine=aviion-intel opsys=dgux4
2439 ## DECstations
2440 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2441 machine=pmax opsys=bsd4-2
2443 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2444 machine=pmax opsys=bsd4-3
2446 mips-dec-ultrix* )
2447 machine=pmax opsys=ultrix4-3
2449 mips-dec-osf* )
2450 machine=pmax opsys=osf1
2452 mips-dec-mach_bsd4.3* )
2453 machine=pmax opsys=mach-bsd4-3
2456 ## Motorola Delta machines
2457 m68k-motorola-sysv* | m68000-motorola-sysv* )
2458 machine=delta opsys=usg5-3
2459 if test -z "`type gnucc | grep 'not found'`"
2460 then
2461 if test -s /etc/167config
2462 then CC="gnucc -m68040"
2463 else CC="gnucc -m68881"
2465 else
2466 if test -z "`type gcc | grep 'not found'`"
2467 then CC=gcc
2468 else CC=cc
2472 m88k-motorola-sysv4* )
2473 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2474 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2475 # I hope there are not other 4.0 versions for this machine
2476 # which really need usg5-4 instead.
2477 machine=delta88k opsys=usg5-4-2
2479 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2480 machine=delta88k opsys=usg5-3
2483 ## Dual machines
2484 m68*-dual-sysv* )
2485 machine=dual opsys=usg5-2
2487 m68*-dual-uniplus* )
2488 machine=dual opsys=unipl5-2
2491 ## Elxsi 6400
2492 elxsi-elxsi-sysv* )
2493 machine=elxsi opsys=usg5-2
2496 ## Encore machines
2497 ns16k-encore-bsd* )
2498 machine=ns16000 opsys=umax
2501 ## The GEC 63 - apparently, this port isn't really finished yet.
2502 # I'm sure we finished off the last of the machines, though. -- fx
2504 ## Gould Power Node and NP1
2505 pn-gould-bsd4.2* )
2506 machine=gould opsys=bsd4-2
2508 pn-gould-bsd4.3* )
2509 machine=gould opsys=bsd4-3
2511 np1-gould-bsd* )
2512 machine=gould-np1 opsys=bsd4-3
2515 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2516 ## as far as Emacs is concerned).
2517 m88k-harris-cxux* )
2518 # Build needs to be different on 7.0 and later releases
2519 case "`uname -r`" in
2520 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2521 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2522 esac
2523 NON_GNU_CPP="/lib/cpp"
2525 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2526 m68k-harris-cxux* )
2527 machine=nh3000 opsys=cxux
2529 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2530 powerpc-harris-powerunix )
2531 machine=nh6000 opsys=powerunix
2532 NON_GNU_CPP="cc -Xo -E -P"
2534 ## SR2001/SR2201 running HI-UX/MPP
2535 hppa1.1-hitachi-hiuxmpp* )
2536 machine=sr2k opsys=hiuxmpp
2538 hppa1.1-hitachi-hiuxwe2* )
2539 machine=sr2k opsys=hiuxwe2
2541 ## Honeywell XPS100
2542 xps*-honeywell-sysv* )
2543 machine=xps100 opsys=usg5-2
2546 ## HP 9000 series 200 or 300
2547 m68*-hp-bsd* )
2548 machine=hp9000s300 opsys=bsd4-3
2550 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2551 m68*-hp-hpux* )
2552 case "`uname -r`" in
2553 ## Someone's system reports A.B8.05 for this.
2554 ## I wonder what other possibilities there are.
2555 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2556 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2557 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2558 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2559 *) machine=hp9000s300 opsys=hpux ;;
2560 esac
2563 ## HP 9000 series 700 and 800, running HP/UX
2564 hppa*-hp-hpux7* )
2565 machine=hp800 opsys=hpux
2567 hppa*-hp-hpux8* )
2568 machine=hp800 opsys=hpux8
2570 hppa*-hp-hpux9shr* )
2571 machine=hp800 opsys=hpux9shr
2573 hppa*-hp-hpux9* )
2574 machine=hp800 opsys=hpux9
2576 hppa*-hp-hpux10.2* )
2577 machine=hp800 opsys=hpux10-20
2579 hppa*-hp-hpux10* )
2580 machine=hp800 opsys=hpux10
2582 hppa*-hp-hpux1[1-9]* )
2583 machine=hp800 opsys=hpux11
2584 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2587 hppa*-*-linux-gnu* )
2588 machine=hp800 opsys=gnu-linux
2591 ## HP 9000 series 700 and 800, running HP/UX
2592 hppa*-hp-hpux* )
2593 ## Cross-compilation? Nah!
2594 case "`uname -r`" in
2595 ## Someone's system reports A.B8.05 for this.
2596 ## I wonder what other possibilities there are.
2597 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2598 *.08.* ) machine=hp800 opsys=hpux8 ;;
2599 *.09.* ) machine=hp800 opsys=hpux9 ;;
2600 *) machine=hp800 opsys=hpux10 ;;
2601 esac
2603 hppa*-*-nextstep* )
2604 machine=hp800 opsys=nextstep
2607 ## Orion machines
2608 orion-orion-bsd* )
2609 machine=orion opsys=bsd4-2
2611 clipper-orion-bsd* )
2612 machine=orion105 opsys=bsd4-2
2615 ## IBM machines
2616 i[3456]86-ibm-aix1.1* )
2617 machine=ibmps2-aix opsys=usg5-2-2
2619 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2620 machine=ibmps2-aix opsys=usg5-3
2622 i370-ibm-aix*)
2623 machine=ibm370aix opsys=usg5-3
2625 s390-*-linux-gnu* )
2626 machine=ibms390 opsys=gnu-linux
2628 s390x-*-linux-gnu* )
2629 machine=ibms390x opsys=gnu-linux
2631 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2632 machine=ibmrs6000 opsys=aix3-1
2634 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2635 machine=ibmrs6000 opsys=aix3-2-5
2637 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2638 machine=ibmrs6000 opsys=aix4-1
2640 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2641 machine=ibmrs6000 opsys=aix4-2
2643 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2644 machine=ibmrs6000 opsys=aix4-2
2646 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2647 machine=ibmrs6000 opsys=aix4
2649 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2650 machine=ibmrs6000 opsys=aix4-1
2652 rs6000-ibm-aix* | powerpc-ibm-aix* )
2653 machine=ibmrs6000 opsys=aix3-2
2655 romp-ibm-bsd4.3* )
2656 machine=ibmrt opsys=bsd4-3
2658 romp-ibm-bsd4.2* )
2659 machine=ibmrt opsys=bsd4-2
2661 romp-ibm-aos4.3* )
2662 machine=ibmrt opsys=bsd4-3
2664 romp-ibm-aos4.2* )
2665 machine=ibmrt opsys=bsd4-2
2667 romp-ibm-aos* )
2668 machine=ibmrt opsys=bsd4-3
2670 romp-ibm-bsd* )
2671 machine=ibmrt opsys=bsd4-3
2673 romp-ibm-aix* )
2674 machine=ibmrt-aix opsys=usg5-2-2
2677 ## Integrated Solutions `Optimum V'
2678 m68*-isi-bsd4.2* )
2679 machine=isi-ov opsys=bsd4-2
2681 m68*-isi-bsd4.3* )
2682 machine=isi-ov opsys=bsd4-3
2685 ## Intel 386 machines where we do care about the manufacturer
2686 i[3456]86-intsys-sysv* )
2687 machine=is386 opsys=usg5-2-2
2690 ## Prime EXL
2691 i[3456]86-prime-sysv* )
2692 machine=i386 opsys=usg5-3
2695 ## Sequent Symmetry running Dynix
2696 i[3456]86-sequent-bsd* )
2697 machine=symmetry opsys=bsd4-3
2700 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2701 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2702 machine=sequent-ptx opsys=ptx4
2703 NON_GNU_CPP=/lib/cpp
2706 ## Sequent Symmetry running DYNIX/ptx
2707 ## Use the old cpp rather than the newer ANSI one.
2708 i[3456]86-sequent-ptx* )
2709 machine=sequent-ptx opsys=ptx
2710 NON_GNU_CPP="/lib/cpp"
2713 ## ncr machine running svr4.3.
2714 i[3456]86-ncr-sysv4.3 )
2715 machine=ncr386 opsys=usg5-4-3
2718 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2719 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2720 i[3456]86-ncr-sysv* )
2721 machine=ncr386 opsys=usg5-4-2
2724 ## Intel Paragon OSF/1
2725 i860-intel-osf1* )
2726 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2729 ## Intel 860
2730 i860-*-sysv4* )
2731 machine=i860 opsys=usg5-4
2732 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2733 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2736 ## Macintosh PowerPC
2737 powerpc*-*-linux-gnu* )
2738 machine=macppc opsys=gnu-linux
2741 ## Masscomp machines
2742 m68*-masscomp-rtu* )
2743 machine=masscomp opsys=rtu
2746 ## Megatest machines
2747 m68*-megatest-bsd* )
2748 machine=mega68 opsys=bsd4-2
2751 ## Workstations sold by MIPS
2752 ## This is not necessarily all workstations using the MIPS processor -
2753 ## Irises are produced by SGI, and DECstations by DEC.
2755 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2756 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2757 ## it gives for choosing between the alternatives seems to be "Use
2758 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2759 ## the BSD world." I'll assume that these are instructions for
2760 ## handling two odd situations, and that every other situation
2761 ## should use mips.h and usg5-2-2, they being listed first.
2762 mips-mips-usg* )
2763 machine=mips4
2764 ## Fall through to the general code at the bottom to decide on the OS.
2766 mips-mips-riscos4* )
2767 machine=mips4 opsys=bsd4-3
2768 NON_GNU_CC="cc -systype bsd43"
2769 NON_GNU_CPP="cc -systype bsd43 -E"
2771 mips-mips-riscos5* )
2772 machine=mips4 opsys=riscos5
2773 NON_GNU_CC="cc -systype bsd43"
2774 NON_GNU_CPP="cc -systype bsd43 -E"
2776 mips-mips-bsd* )
2777 machine=mips opsys=bsd4-3
2779 mips-mips-* )
2780 machine=mips opsys=usg5-2-2
2783 ## NeXT
2784 m68*-next-* | m68k-*-nextstep* )
2785 machine=m68k opsys=nextstep
2788 ## The complete machine from National Semiconductor
2789 ns32k-ns-genix* )
2790 machine=ns32000 opsys=usg5-2
2793 ## NCR machines
2794 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2795 machine=tower32 opsys=usg5-2-2
2797 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2798 machine=tower32v3 opsys=usg5-3
2801 ## NEC EWS4800
2802 mips-nec-sysv4*)
2803 machine=ews4800 opsys=ux4800
2806 ## Nixdorf Targon 31
2807 m68*-nixdorf-sysv* )
2808 machine=targon31 opsys=usg5-2-2
2811 ## Nu (TI or LMI)
2812 m68*-nu-sysv* )
2813 machine=nu opsys=usg5-2
2816 ## Plexus
2817 m68*-plexus-sysv* )
2818 machine=plexus opsys=usg5-2
2821 ## Pyramid machines
2822 ## I don't really have any idea what sort of processor the Pyramid has,
2823 ## so I'm assuming it is its own architecture.
2824 pyramid-pyramid-bsd* )
2825 machine=pyramid opsys=bsd4-2
2828 ## Sequent Balance
2829 ns32k-sequent-bsd4.2* )
2830 machine=sequent opsys=bsd4-2
2832 ns32k-sequent-bsd4.3* )
2833 machine=sequent opsys=bsd4-3
2836 ## Siemens Nixdorf
2837 mips-siemens-sysv* | mips-sni-sysv*)
2838 machine=mips-siemens opsys=usg5-4
2839 NON_GNU_CC=/usr/ccs/bin/cc
2840 NON_GNU_CPP=/usr/ccs/lib/cpp
2843 ## Silicon Graphics machines
2844 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2845 m68*-sgi-iris3.5* )
2846 machine=irist opsys=iris3-5
2848 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2849 machine=irist opsys=iris3-6
2851 ## Iris 4D
2852 mips-sgi-irix3* )
2853 machine=iris4d opsys=irix3-3
2855 mips-sgi-irix4* )
2856 machine=iris4d opsys=irix4-0
2858 mips-sgi-irix6.5 )
2859 machine=iris4d opsys=irix6-5
2860 # Without defining _LANGUAGE_C, things get masked out in the headers
2861 # so that, for instance, grepping for `free' in stdlib.h fails and
2862 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2863 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2864 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2866 mips-sgi-irix6* )
2867 machine=iris4d opsys=irix6-0
2868 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2869 # but presumably it does no harm.
2870 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2871 # -32 probably isn't necessary in later v.6s -- anyone know which?
2872 NON_GCC_TEST_OPTIONS=-32
2874 mips-sgi-irix5.[01]* )
2875 machine=iris4d opsys=irix5-0
2877 mips-sgi-irix5* | mips-sgi-irix* )
2878 machine=iris4d opsys=irix5-2
2881 ## SONY machines
2882 m68*-sony-bsd4.2* )
2883 machine=news opsys=bsd4-2
2885 m68*-sony-bsd4.3* )
2886 machine=news opsys=bsd4-3
2888 m68*-sony-newsos3* | m68*-sony-news3*)
2889 machine=news opsys=bsd4-3
2891 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2892 machine=news-risc opsys=bsd4-3
2894 mips-sony-newsos6* )
2895 machine=news-r6 opsys=newsos6
2897 mips-sony-news* )
2898 machine=news-risc opsys=newsos5
2901 ## Stride
2902 m68*-stride-sysv* )
2903 machine=stride opsys=usg5-2
2906 ## Suns
2907 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2908 machine=sparc opsys=gnu-linux
2911 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2912 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2913 | rs6000-*-solaris2*)
2914 case "${canonical}" in
2915 m68*-sunos1* ) machine=sun1 ;;
2916 m68*-sunos2* ) machine=sun2 ;;
2917 m68* ) machine=sun3 ;;
2918 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2919 i[3456]86-*-* ) machine=intel386 ;;
2920 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2921 powerpcle* ) machine=powerpcle ;;
2922 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2923 sparc* ) machine=sparc ;;
2924 * ) unported=yes ;;
2925 esac
2926 case "${canonical}" in
2927 ## The Sun386 didn't get past 4.0.
2928 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2929 *-sunos4.0* ) opsys=sunos4-0 ;;
2930 *-sunos4.1.[3-9]*noshare )
2931 ## This name is sunos413 instead of sunos4-1-3
2932 ## to avoid a file name conflict on MSDOS.
2933 opsys=sunos413
2934 NON_GNU_CPP=/usr/lib/cpp
2935 NON_GCC_TEST_OPTIONS=-Bstatic
2936 GCC_TEST_OPTIONS=-static
2938 *-sunos4.1.[3-9]* | *-sunos4shr*)
2939 opsys=sunos4shr
2940 NON_GNU_CPP=/usr/lib/cpp
2942 *-sunos4* | *-sunos )
2943 opsys=sunos4-1
2944 NON_GCC_TEST_OPTIONS=-Bstatic
2945 GCC_TEST_OPTIONS=-static
2947 *-sunos5.3* | *-solaris2.3* )
2948 opsys=sol2-3
2949 NON_GNU_CPP=/usr/ccs/lib/cpp
2951 *-sunos5.4* | *-solaris2.4* )
2952 opsys=sol2-4
2953 NON_GNU_CPP=/usr/ccs/lib/cpp
2954 RANLIB="ar -ts"
2956 *-sunos5.5* | *-solaris2.5* )
2957 opsys=sol2-5
2958 NON_GNU_CPP=/usr/ccs/lib/cpp
2959 RANLIB="ar -ts"
2961 *-sunos5.6* | *-solaris2.6* )
2962 opsys=sol2-6
2963 NON_GNU_CPP=/usr/ccs/lib/cpp
2964 RANLIB="ar -ts"
2966 *-sunos5* | *-solaris* )
2967 opsys=sol2-6
2968 NON_GNU_CPP=/usr/ccs/lib/cpp
2970 * ) opsys=bsd4-2 ;;
2971 esac
2972 ## Watch out for a compiler that we know will not work.
2973 case "${canonical}" in
2974 *-solaris* | *-sunos5* )
2975 if [ "x$CC" = x/usr/ucb/cc ]; then
2976 ## /usr/ucb/cc doesn't work;
2977 ## we should find some other compiler that does work.
2978 unset CC
2981 *) ;;
2982 esac
2984 sparc-*-nextstep* )
2985 machine=sparc opsys=nextstep
2988 ## Tadpole 68k
2989 m68*-tadpole-sysv* )
2990 machine=tad68k opsys=usg5-3
2993 ## Tahoe machines
2994 tahoe-tahoe-bsd4.2* )
2995 machine=tahoe opsys=bsd4-2
2997 tahoe-tahoe-bsd4.3* )
2998 machine=tahoe opsys=bsd4-3
3001 ## Tandem Integrity S2
3002 mips-tandem-sysv* )
3003 machine=tandem-s2 opsys=usg5-3
3006 ## Tektronix XD88
3007 m88k-tektronix-sysv3* )
3008 machine=tekxd88 opsys=usg5-3
3011 ## Tektronix 16000 box (6130?)
3012 ns16k-tektronix-bsd* )
3013 machine=ns16000 opsys=bsd4-2
3015 ## Tektronix 4300
3016 ## src/m/tek4300.h hints that this is a m68k machine.
3017 m68*-tektronix-bsd* )
3018 machine=tek4300 opsys=bsd4-3
3021 ## Titan P2 or P3
3022 ## We seem to have lost the machine-description file titan.h!
3023 titan-titan-sysv* )
3024 machine=titan opsys=usg5-3
3027 ## Ustation E30 (SS5E)
3028 m68*-unisys-uniplus* )
3029 machine=ustation opsystem=unipl5-2
3032 ## Vaxen.
3033 vax-dec-* )
3034 machine=vax
3035 case "${canonical}" in
3036 *-bsd4.1* ) opsys=bsd4-1 ;;
3037 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3038 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3039 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3040 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3041 *-vms* ) opsys=vms ;;
3042 * ) unported=yes
3043 esac
3046 ## Whitechapel MG1
3047 ns16k-whitechapel-* )
3048 machine=mg1
3049 ## We don't know what sort of OS runs on these; we'll let the
3050 ## operating system guessing code below try.
3053 ## Wicat
3054 m68*-wicat-sysv* )
3055 machine=wicat opsys=usg5-2
3058 ## IA-64
3059 ia64*-*-linux* )
3060 machine=ia64 opsys=gnu-linux
3063 ## Intel 386 machines where we don't care about the manufacturer
3064 i[3456]86-*-* )
3065 machine=intel386
3066 case "${canonical}" in
3067 *-cygwin ) opsys=cygwin ;;
3068 *-darwin* ) opsys=darwin
3069 CPP="${CC-cc} -E -no-cpp-precomp"
3071 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3072 *-isc2.2* ) opsys=isc2-2 ;;
3073 *-isc4.0* ) opsys=isc4-0 ;;
3074 *-isc4.* ) opsys=isc4-1
3075 GCC_TEST_OPTIONS=-posix
3076 NON_GCC_TEST_OPTIONS=-Xp
3078 *-isc* ) opsys=isc3-0 ;;
3079 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3080 *-esix* ) opsys=esix ;;
3081 *-xenix* ) opsys=xenix ;;
3082 *-linux-gnu* ) opsys=gnu-linux ;;
3083 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3084 *-sco3.2v5* ) opsys=sco5
3085 NON_GNU_CPP=/lib/cpp
3086 # Prevent -belf from being passed to $CPP.
3087 # /lib/cpp does not accept it.
3088 OVERRIDE_CPPFLAGS=" "
3090 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3091 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3092 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3093 *-386bsd* ) opsys=386bsd ;;
3094 *-nextstep* ) opsys=nextstep ;;
3095 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3096 esac
3099 ## m68k Linux-based GNU system
3100 m68k-*-linux-gnu* )
3101 machine=m68k opsys=gnu-linux
3104 ## Mips Linux-based GNU system
3105 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3106 machine=mips opsys=gnu-linux
3109 ## UXP/DS
3110 sparc-fujitsu-sysv4* )
3111 machine=sparc opsys=uxpds
3112 NON_GNU_CPP=/usr/ccs/lib/cpp
3113 RANLIB="ar -ts"
3116 ## UXP/V
3117 f301-fujitsu-uxpv4.1)
3118 machine=f301 opsys=uxpv
3121 ## Darwin / Mac OS X
3122 powerpc-apple-darwin* )
3123 machine=powermac opsys=darwin
3124 # Define CPP as follows to make autoconf work correctly.
3125 CPP="${CC-cc} -E -no-cpp-precomp"
3126 # Use fink packages if available.
3127 if test -d /sw/include && test -d /sw/lib; then
3128 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3129 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3130 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3134 ## AMD x86-64 Linux-based GNU system
3135 x86_64-*-linux-gnu* )
3136 machine=amdx86-64 opsys=gnu-linux
3140 unported=yes
3142 esac
3144 ### If the code above didn't choose an operating system, just choose
3145 ### an operating system based on the configuration name. You really
3146 ### only want to use this when you have no idea what the right
3147 ### operating system is; if you know what operating systems a machine
3148 ### runs, it's cleaner to make it explicit in the case statement
3149 ### above.
3150 if test x"${opsys}" = x; then
3151 case "${canonical}" in
3152 *-gnu* ) opsys=gnu ;;
3153 *-bsd4.[01] ) opsys=bsd4-1 ;;
3154 *-bsd4.2 ) opsys=bsd4-2 ;;
3155 *-bsd4.3 ) opsys=bsd4-3 ;;
3156 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3157 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3158 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3159 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3160 *-sysv4.2uw* ) opsys=unixware ;;
3161 *-sysv5uw* ) opsys=unixware ;;
3162 *-sysv5OpenUNIX* ) opsys=unixware ;;
3163 *-sysv4.1* | *-sysvr4.1* )
3164 NON_GNU_CPP=/usr/lib/cpp
3165 opsys=usg5-4 ;;
3166 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3167 if [ x$NON_GNU_CPP = x ]; then
3168 if [ -f /usr/ccs/lib/cpp ]; then
3169 NON_GNU_CPP=/usr/ccs/lib/cpp
3170 else
3171 NON_GNU_CPP=/lib/cpp
3174 opsys=usg5-4-2 ;;
3175 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3177 unported=yes
3179 esac
3184 if test $unported = yes; then
3185 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3186 Check \`etc/MACHINES' for recognized configuration names." >&5
3187 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3188 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3189 { (exit 1); exit 1; }; }
3192 machfile="m/${machine}.h"
3193 opsysfile="s/${opsys}.h"
3196 #### Choose a compiler.
3197 test -n "$CC" && cc_specified=yes
3199 # Save the value of CFLAGS that the user specified.
3200 SPECIFIED_CFLAGS="$CFLAGS"
3202 case ${with_gcc} in
3203 "yes" ) CC="gcc" GCC=yes ;;
3204 "no" ) : ${CC=cc} ;;
3206 esac
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_CC+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3234 done
3235 done
3236 IFS=$as_save_IFS
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { echo "$as_me:$LINENO: result: $CC" >&5
3243 echo "${ECHO_T}$CC" >&6; }
3244 else
3245 { echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6; }
3251 if test -z "$ac_cv_prog_CC"; then
3252 ac_ct_CC=$CC
3253 # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc; ac_word=$2
3255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_ac_ct_CC="gcc"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3274 done
3275 done
3276 IFS=$as_save_IFS
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3283 echo "${ECHO_T}$ac_ct_CC" >&6; }
3284 else
3285 { echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6; }
3289 if test "x$ac_ct_CC" = x; then
3290 CC=""
3291 else
3292 case $cross_compiling:$ac_tool_warned in
3293 yes:)
3294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3295 whose name does not start with the host triplet. If you think this
3296 configuration is useful to you, please write to autoconf@gnu.org." >&5
3297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3298 whose name does not start with the host triplet. If you think this
3299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 CC=$ac_ct_CC
3304 else
3305 CC="$ac_cv_prog_CC"
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3311 set dummy ${ac_tool_prefix}cc; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_CC="${ac_tool_prefix}cc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { echo "$as_me:$LINENO: result: $CC" >&5
3340 echo "${ECHO_T}$CC" >&6; }
3341 else
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3349 if test -z "$CC"; then
3350 # Extract the first word of "cc", so it can be a program name with args.
3351 set dummy cc; ac_word=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 ac_prog_rejected=no
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3369 ac_prog_rejected=yes
3370 continue
3372 ac_cv_prog_CC="cc"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3378 IFS=$as_save_IFS
3380 if test $ac_prog_rejected = yes; then
3381 # We found a bogon in the path, so make sure we never use it.
3382 set dummy $ac_cv_prog_CC
3383 shift
3384 if test $# != 0; then
3385 # We chose a different compiler from the bogus one.
3386 # However, it has the same basename, so the bogon will be chosen
3387 # first if we set CC to just the basename; use the full file name.
3388 shift
3389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { echo "$as_me:$LINENO: result: $CC" >&5
3397 echo "${ECHO_T}$CC" >&6; }
3398 else
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3405 if test -z "$CC"; then
3406 if test -n "$ac_tool_prefix"; then
3407 for ac_prog in cl.exe
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3432 IFS=$as_save_IFS
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438 { echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6; }
3440 else
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3446 test -n "$CC" && break
3447 done
3449 if test -z "$CC"; then
3450 ac_ct_CC=$CC
3451 for ac_prog in cl.exe
3453 # Extract the first word of "$ac_prog", so it can be a program name with args.
3454 set dummy $ac_prog; ac_word=$2
3455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="$ac_prog"
3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 echo "${ECHO_T}$ac_ct_CC" >&6; }
3484 else
3485 { echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6; }
3490 test -n "$ac_ct_CC" && break
3491 done
3493 if test "x$ac_ct_CC" = x; then
3494 CC=""
3495 else
3496 case $cross_compiling:$ac_tool_warned in
3497 yes:)
3498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3499 whose name does not start with the host triplet. If you think this
3500 configuration is useful to you, please write to autoconf@gnu.org." >&5
3501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet. If you think this
3503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3504 ac_tool_warned=yes ;;
3505 esac
3506 CC=$ac_ct_CC
3513 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: no acceptable C compiler found in \$PATH
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3519 # Provide some information about the compiler.
3520 echo "$as_me:$LINENO: checking for C compiler version" >&5
3521 ac_compiler=`set X $ac_compile; echo $2`
3522 { (ac_try="$ac_compiler --version >&5"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compiler --version >&5") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }
3532 { (ac_try="$ac_compiler -v >&5"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_compiler -v >&5") 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }
3542 { (ac_try="$ac_compiler -V >&5"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compiler -V >&5") 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3572 # of exeext.
3573 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3574 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3575 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3577 # List of possible output files, starting from the most likely.
3578 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3579 # only as a last resort. b.out is created by i960 compilers.
3580 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3582 # The IRIX 6 linker writes into existing files which may not be
3583 # executable, retaining their permissions. Remove them first so a
3584 # subsequent execution test works.
3585 ac_rmfiles=
3586 for ac_file in $ac_files
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3590 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591 esac
3592 done
3593 rm -f $ac_rmfiles
3595 if { (ac_try="$ac_link_default"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_link_default") 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; then
3605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3606 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3607 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3608 # so that the user can short-circuit this test for compilers unknown to
3609 # Autoconf.
3610 for ac_file in $ac_files ''
3612 test -f "$ac_file" || continue
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3616 [ab].out )
3617 # We found the default executable, but exeext='' is most
3618 # certainly right.
3619 break;;
3620 *.* )
3621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3622 then :; else
3623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 # We set ac_cv_exeext here because the later test for it is not
3626 # safe: cross compilers may not add the suffix if given an `-o'
3627 # argument, so we may need to know it at that point already.
3628 # Even if this section looks crufty: it has the advantage of
3629 # actually working.
3630 break;;
3632 break;;
3633 esac
3634 done
3635 test "$ac_cv_exeext" = no && ac_cv_exeext=
3637 else
3638 ac_file=''
3641 { echo "$as_me:$LINENO: result: $ac_file" >&5
3642 echo "${ECHO_T}$ac_file" >&6; }
3643 if test -z "$ac_file"; then
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3648 See \`config.log' for more details." >&5
3649 echo "$as_me: error: C compiler cannot create executables
3650 See \`config.log' for more details." >&2;}
3651 { (exit 77); exit 77; }; }
3654 ac_exeext=$ac_cv_exeext
3656 # Check that the compiler produces executables we can run. If not, either
3657 # the compiler is broken, or we cross compile.
3658 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3659 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3660 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3661 # If not cross compiling, check that we can run a simple program.
3662 if test "$cross_compiling" != yes; then
3663 if { ac_try='./$ac_file'
3664 { (case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_try") 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 cross_compiling=no
3674 else
3675 if test "$cross_compiling" = maybe; then
3676 cross_compiling=yes
3677 else
3678 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details." >&5
3681 echo "$as_me: error: cannot run C compiled programs.
3682 If you meant to cross compile, use \`--host'.
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3688 { echo "$as_me:$LINENO: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6; }
3691 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3692 ac_clean_files=$ac_clean_files_save
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3696 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3697 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3698 echo "${ECHO_T}$cross_compiling" >&6; }
3700 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3701 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3702 if { (ac_try="$ac_link"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_link") 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; then
3712 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3713 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3714 # work properly (i.e., refer to `conftest.exe'), while it won't with
3715 # `rm'.
3716 for ac_file in conftest.exe conftest conftest.*; do
3717 test -f "$ac_file" || continue
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 break;;
3722 * ) break;;
3723 esac
3724 done
3725 else
3726 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3729 See \`config.log' for more details." >&2;}
3730 { (exit 1); exit 1; }; }
3733 rm -f conftest$ac_cv_exeext
3734 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3735 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3737 rm -f conftest.$ac_ext
3738 EXEEXT=$ac_cv_exeext
3739 ac_exeext=$EXEEXT
3740 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3741 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3742 if test "${ac_cv_objext+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3753 main ()
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.o conftest.obj
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; then
3771 for ac_file in conftest.o conftest.obj conftest.*; do
3772 test -f "$ac_file" || continue;
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3776 break;;
3777 esac
3778 done
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log' for more details." >&5
3785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3786 See \`config.log' for more details." >&2;}
3787 { (exit 1); exit 1; }; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3793 echo "${ECHO_T}$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3795 ac_objext=$OBJEXT
3796 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3809 main ()
3811 #ifndef __GNUC__
3812 choke me
3813 #endif
3816 return 0;
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compile") 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest.$ac_objext; then
3836 ac_compiler_gnu=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_compiler_gnu=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3848 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3850 GCC=`test $ac_compiler_gnu = yes && echo yes`
3851 ac_test_CFLAGS=${CFLAGS+set}
3852 ac_save_CFLAGS=$CFLAGS
3853 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3854 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3855 if test "${ac_cv_prog_cc_g+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 ac_save_c_werror_flag=$ac_c_werror_flag
3859 ac_c_werror_flag=yes
3860 ac_cv_prog_cc_g=no
3861 CFLAGS="-g"
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 main ()
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_g=yes
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 CFLAGS=""
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compile") 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } && {
3929 test -z "$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 } && test -s conftest.$ac_objext; then
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 CFLAGS="-g"
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3947 main ()
3951 return 0;
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3971 ac_cv_prog_cc_g=yes
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_c_werror_flag=$ac_save_c_werror_flag
3988 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3990 if test "$ac_test_CFLAGS" = set; then
3991 CFLAGS=$ac_save_CFLAGS
3992 elif test $ac_cv_prog_cc_g = yes; then
3993 if test "$GCC" = yes; then
3994 CFLAGS="-g -O2"
3995 else
3996 CFLAGS="-g"
3998 else
3999 if test "$GCC" = yes; then
4000 CFLAGS="-O2"
4001 else
4002 CFLAGS=
4005 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4006 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4007 if test "${ac_cv_prog_cc_c89+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 ac_cv_prog_cc_c89=no
4011 ac_save_CC=$CC
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 #include <stdarg.h>
4019 #include <stdio.h>
4020 #include <sys/types.h>
4021 #include <sys/stat.h>
4022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4023 struct buf { int x; };
4024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4025 static char *e (p, i)
4026 char **p;
4027 int i;
4029 return p[i];
4031 static char *f (char * (*g) (char **, int), char **p, ...)
4033 char *s;
4034 va_list v;
4035 va_start (v,p);
4036 s = g (p, va_arg (v,int));
4037 va_end (v);
4038 return s;
4041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4042 function prototypes and stuff, but not '\xHH' hex character constants.
4043 These don't provoke an error unfortunately, instead are silently treated
4044 as 'x'. The following induces an error, until -std is added to get
4045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4046 array size at least. It's necessary to write '\x00'==0 to get something
4047 that's true only with -std. */
4048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4051 inside strings and character constants. */
4052 #define FOO(x) 'x'
4053 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055 int test (int i, double x);
4056 struct s1 {int (*f) (int a);};
4057 struct s2 {int (*f) (double a);};
4058 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4059 int argc;
4060 char **argv;
4062 main ()
4064 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066 return 0;
4068 _ACEOF
4069 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4070 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072 CC="$ac_save_CC $ac_arg"
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv_prog_cc_c89=$ac_arg
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f core conftest.err conftest.$ac_objext
4099 test "x$ac_cv_prog_cc_c89" != "xno" && break
4100 done
4101 rm -f conftest.$ac_ext
4102 CC=$ac_save_CC
4105 # AC_CACHE_VAL
4106 case "x$ac_cv_prog_cc_c89" in
4108 { echo "$as_me:$LINENO: result: none needed" >&5
4109 echo "${ECHO_T}none needed" >&6; } ;;
4110 xno)
4111 { echo "$as_me:$LINENO: result: unsupported" >&5
4112 echo "${ECHO_T}unsupported" >&6; } ;;
4114 CC="$CC $ac_cv_prog_cc_c89"
4115 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4116 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4117 esac
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 # On Suns, sometimes $CPP names a directory.
4128 if test -n "$CPP" && test -d "$CPP"; then
4129 CPP=
4132 #### Some systems specify a CPP to use unless we are using GCC.
4133 #### Now that we know whether we are using GCC, we can decide whether
4134 #### to use that one.
4135 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4136 then
4137 CPP="$NON_GNU_CPP"
4140 #### Some systems specify a CC to use unless we are using GCC.
4141 #### Now that we know whether we are using GCC, we can decide whether
4142 #### to use that one.
4143 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4144 test x$cc_specified != xyes
4145 then
4146 CC="$NON_GNU_CC"
4149 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4150 then
4151 CC="$CC $GCC_TEST_OPTIONS"
4154 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4155 then
4156 CC="$CC $NON_GCC_TEST_OPTIONS"
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4166 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4169 CPP=
4171 if test -z "$CPP"; then
4172 if test "${ac_cv_prog_CPP+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 # Double quotes because CPP needs to be expanded
4176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4198 Syntax error
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 }; then
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Broken: fails on valid input.
4222 continue
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4253 # Broken: success on invalid input.
4254 continue
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Passes both tests.
4260 ac_preproc_ok=:
4261 break
4264 rm -f conftest.err conftest.$ac_ext
4266 done
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4270 break
4273 done
4274 ac_cv_prog_CPP=$CPP
4277 CPP=$ac_cv_prog_CPP
4278 else
4279 ac_cv_prog_CPP=$CPP
4281 { echo "$as_me:$LINENO: result: $CPP" >&5
4282 echo "${ECHO_T}$CPP" >&6; }
4283 ac_preproc_ok=false
4284 for ac_c_preproc_warn_flag in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303 Syntax error
4304 _ACEOF
4305 if { (ac_try="$ac_cpp conftest.$ac_ext"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev/null && {
4318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 }; then
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 # Broken: fails on valid input.
4327 continue
4330 rm -f conftest.err conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.h>
4341 _ACEOF
4342 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 }; then
4358 # Broken: success on invalid input.
4359 continue
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 # Passes both tests.
4365 ac_preproc_ok=:
4366 break
4369 rm -f conftest.err conftest.$ac_ext
4371 done
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then
4376 else
4377 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4378 See \`config.log' for more details." >&5
4379 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4380 See \`config.log' for more details." >&2;}
4381 { (exit 1); exit 1; }; }
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4392 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_GREP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 # Extract the first word of "grep ggrep" to use in msg output
4397 if test -z "$GREP"; then
4398 set dummy grep ggrep; ac_prog_name=$2
4399 if test "${ac_cv_path_GREP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 ac_path_GREP_found=false
4403 # Loop through the user's path and test for each of PROGNAME-LIST
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_prog in grep ggrep; do
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4412 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4413 # Check for GNU ac_path_GREP and select it if it is found.
4414 # Check for GNU $ac_path_GREP
4415 case `"$ac_path_GREP" --version 2>&1` in
4416 *GNU*)
4417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4419 ac_count=0
4420 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4421 while :
4423 cat "conftest.in" "conftest.in" >"conftest.tmp"
4424 mv "conftest.tmp" "conftest.in"
4425 cp "conftest.in" "conftest.nl"
4426 echo 'GREP' >> "conftest.nl"
4427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429 ac_count=`expr $ac_count + 1`
4430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4431 # Best one so far, save it but keep looking for a better one
4432 ac_cv_path_GREP="$ac_path_GREP"
4433 ac_path_GREP_max=$ac_count
4435 # 10*(2^10) chars as input seems more than enough
4436 test $ac_count -gt 10 && break
4437 done
4438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439 esac
4442 $ac_path_GREP_found && break 3
4443 done
4444 done
4446 done
4447 IFS=$as_save_IFS
4452 GREP="$ac_cv_path_GREP"
4453 if test -z "$GREP"; then
4454 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456 { (exit 1); exit 1; }; }
4459 else
4460 ac_cv_path_GREP=$GREP
4465 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4466 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4467 GREP="$ac_cv_path_GREP"
4470 { echo "$as_me:$LINENO: checking for egrep" >&5
4471 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4472 if test "${ac_cv_path_EGREP+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4476 then ac_cv_path_EGREP="$GREP -E"
4477 else
4478 # Extract the first word of "egrep" to use in msg output
4479 if test -z "$EGREP"; then
4480 set dummy egrep; ac_prog_name=$2
4481 if test "${ac_cv_path_EGREP+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 ac_path_EGREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in egrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4494 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4495 # Check for GNU ac_path_EGREP and select it if it is found.
4496 # Check for GNU $ac_path_EGREP
4497 case `"$ac_path_EGREP" --version 2>&1` in
4498 *GNU*)
4499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501 ac_count=0
4502 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4503 while :
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 echo 'EGREP' >> "conftest.nl"
4509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 ac_count=`expr $ac_count + 1`
4512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_EGREP="$ac_path_EGREP"
4515 ac_path_EGREP_max=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4519 done
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521 esac
4524 $ac_path_EGREP_found && break 3
4525 done
4526 done
4528 done
4529 IFS=$as_save_IFS
4534 EGREP="$ac_cv_path_EGREP"
4535 if test -z "$EGREP"; then
4536 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4537 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4538 { (exit 1); exit 1; }; }
4541 else
4542 ac_cv_path_EGREP=$EGREP
4548 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4549 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4550 EGREP="$ac_cv_path_EGREP"
4554 { echo "$as_me:$LINENO: checking for AIX" >&5
4555 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #ifdef _AIX
4564 #endif
4566 _ACEOF
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568 $EGREP "yes" >/dev/null 2>&1; then
4569 { echo "$as_me:$LINENO: result: yes" >&5
4570 echo "${ECHO_T}yes" >&6; }
4571 cat >>confdefs.h <<\_ACEOF
4572 #define _ALL_SOURCE 1
4573 _ACEOF
4575 else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4579 rm -f conftest*
4583 cat >>confdefs.h <<\_ACEOF
4584 #define _GNU_SOURCE 1
4585 _ACEOF
4589 ### Use -Wno-pointer-sign if the compiler supports it
4590 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4591 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4592 SAVE_CFLAGS="$CFLAGS"
4593 CFLAGS="$CFLAGS -Wno-pointer-sign"
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4602 main ()
4606 return 0;
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_compile") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest.$ac_objext; then
4626 has_option=yes
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 has_option=no
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test $has_option = yes; then
4636 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4638 { echo "$as_me:$LINENO: result: $has_option" >&5
4639 echo "${ECHO_T}$has_option" >&6; }
4640 CFLAGS="$SAVE_CFLAGS"
4641 unset has_option
4642 unset SAVE_CFLAGS
4644 #### Some other nice autoconf tests.
4646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4648 LN_S=$as_ln_s
4649 if test "$LN_S" = "ln -s"; then
4650 { echo "$as_me:$LINENO: result: yes" >&5
4651 echo "${ECHO_T}yes" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4654 echo "${ECHO_T}no, using $LN_S" >&6; }
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4664 # On Suns, sometimes $CPP names a directory.
4665 if test -n "$CPP" && test -d "$CPP"; then
4666 CPP=
4668 if test -z "$CPP"; then
4669 if test "${ac_cv_prog_CPP+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 # Double quotes because CPP needs to be expanded
4673 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4675 ac_preproc_ok=false
4676 for ac_c_preproc_warn_flag in '' yes
4678 # Use a header file that comes with gcc, so configuring glibc
4679 # with a fresh cross-compiler works.
4680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4681 # <limits.h> exists even on freestanding compilers.
4682 # On the NeXT, cc -E runs the code through the compiler's parser,
4683 # not just through cpp. "Syntax error" is here to catch this case.
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #ifdef __STDC__
4691 # include <limits.h>
4692 #else
4693 # include <assert.h>
4694 #endif
4695 Syntax error
4696 _ACEOF
4697 if { (ac_try="$ac_cpp conftest.$ac_ext"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } >/dev/null && {
4710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4711 test ! -s conftest.err
4712 }; then
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 # Broken: fails on valid input.
4719 continue
4722 rm -f conftest.err conftest.$ac_ext
4724 # OK, works on sane cases. Now check whether nonexistent headers
4725 # can be detected and how.
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <ac_nonexistent.h>
4733 _ACEOF
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 }; then
4750 # Broken: success on invalid input.
4751 continue
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 # Passes both tests.
4757 ac_preproc_ok=:
4758 break
4761 rm -f conftest.err conftest.$ac_ext
4763 done
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then
4767 break
4770 done
4771 ac_cv_prog_CPP=$CPP
4774 CPP=$ac_cv_prog_CPP
4775 else
4776 ac_cv_prog_CPP=$CPP
4778 { echo "$as_me:$LINENO: result: $CPP" >&5
4779 echo "${ECHO_T}$CPP" >&6; }
4780 ac_preproc_ok=false
4781 for ac_c_preproc_warn_flag in '' yes
4783 # Use a header file that comes with gcc, so configuring glibc
4784 # with a fresh cross-compiler works.
4785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786 # <limits.h> exists even on freestanding compilers.
4787 # On the NeXT, cc -E runs the code through the compiler's parser,
4788 # not just through cpp. "Syntax error" is here to catch this case.
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #ifdef __STDC__
4796 # include <limits.h>
4797 #else
4798 # include <assert.h>
4799 #endif
4800 Syntax error
4801 _ACEOF
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4803 case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 }; then
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 # Broken: fails on valid input.
4824 continue
4827 rm -f conftest.err conftest.$ac_ext
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <ac_nonexistent.h>
4838 _ACEOF
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 }; then
4855 # Broken: success on invalid input.
4856 continue
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 # Passes both tests.
4862 ac_preproc_ok=:
4863 break
4866 rm -f conftest.err conftest.$ac_ext
4868 done
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.err conftest.$ac_ext
4871 if $ac_preproc_ok; then
4873 else
4874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details." >&5
4876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4877 See \`config.log' for more details." >&2;}
4878 { (exit 1); exit 1; }; }
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 # Find a good install program. We prefer a C program (faster),
4888 # so one script is as good as another. But avoid the broken or
4889 # incompatible versions:
4890 # SysV /etc/install, /usr/sbin/install
4891 # SunOS /usr/etc/install
4892 # IRIX /sbin/install
4893 # AIX /bin/install
4894 # AmigaOS /C/install, which installs bootblocks on floppy discs
4895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4898 # OS/2's system install, which has a completely different semantic
4899 # ./install, which can be erroneously created by make from ./install.sh.
4900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4902 if test -z "$INSTALL"; then
4903 if test "${ac_cv_path_install+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 # Account for people who put trailing slashes in PATH elements.
4912 case $as_dir/ in
4913 ./ | .// | /cC/* | \
4914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4916 /usr/ucb/* ) ;;
4918 # OSF1 and SCO ODT 3.0 have their own names for install.
4919 # Don't use installbsd from OSF since it installs stuff as root
4920 # by default.
4921 for ac_prog in ginstall scoinst install; do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4924 if test $ac_prog = install &&
4925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926 # AIX install. It has an incompatible calling convention.
4928 elif test $ac_prog = install &&
4929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4930 # program-specific install script used by HP pwplus--don't use.
4932 else
4933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4934 break 3
4937 done
4938 done
4940 esac
4941 done
4942 IFS=$as_save_IFS
4946 if test "${ac_cv_path_install+set}" = set; then
4947 INSTALL=$ac_cv_path_install
4948 else
4949 # As a last resort, use the slow shell script. Don't cache a
4950 # value for INSTALL within a source directory, because that will
4951 # break other packages using the cache if that directory is
4952 # removed, or if the value is a relative name.
4953 INSTALL=$ac_install_sh
4956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4957 echo "${ECHO_T}$INSTALL" >&6; }
4959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4960 # It thinks the first close brace ends the variable substitution.
4961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4967 if test "x$RANLIB" = x; then
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973 if test "${ac_cv_prog_RANLIB+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 if test -n "$RANLIB"; then
4977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 RANLIB=$ac_cv_prog_RANLIB
4997 if test -n "$RANLIB"; then
4998 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4999 echo "${ECHO_T}$RANLIB" >&6; }
5000 else
5001 { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_ac_ct_RANLIB="ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5039 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5040 else
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5045 if test "x$ac_ct_RANLIB" = x; then
5046 RANLIB=":"
5047 else
5048 case $cross_compiling:$ac_tool_warned in
5049 yes:)
5050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet. If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&5
5053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5054 whose name does not start with the host triplet. If you think this
5055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058 RANLIB=$ac_ct_RANLIB
5060 else
5061 RANLIB="$ac_cv_prog_RANLIB"
5065 # Extract the first word of "install-info", so it can be a program name with args.
5066 set dummy install-info; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 case $INSTALL_INFO in
5073 [\\/]* | ?:[\\/]*)
5074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5090 IFS=$as_save_IFS
5093 esac
5095 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5096 if test -n "$INSTALL_INFO"; then
5097 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5098 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5099 else
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5105 # Extract the first word of "install-info", so it can be a program name with args.
5106 set dummy install-info; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 case $INSTALL_INFO in
5113 [\\/]* | ?:[\\/]*)
5114 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in /usr/sbin
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5133 esac
5135 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5136 if test -n "$INSTALL_INFO"; then
5137 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5138 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5139 else
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "install-info", so it can be a program name with args.
5146 set dummy install-info; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152 case $INSTALL_INFO in
5153 [\\/]* | ?:[\\/]*)
5154 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in /sbin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5172 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5174 esac
5176 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5177 if test -n "$INSTALL_INFO"; then
5178 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5179 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5180 else
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 # Extract the first word of "gzip", so it can be a program name with args.
5187 set dummy gzip; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 case $GZIP_PROG in
5194 [\\/]* | ?:[\\/]*)
5195 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5214 esac
5216 GZIP_PROG=$ac_cv_path_GZIP_PROG
5217 if test -n "$GZIP_PROG"; then
5218 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5219 echo "${ECHO_T}$GZIP_PROG" >&6; }
5220 else
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5228 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5229 then
5230 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5233 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5234 then
5235 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5239 late_LDFLAGS=$LDFLAGS
5240 if test "$GCC" = yes; then
5241 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5242 else
5243 LDFLAGS="$LDFLAGS -znocombreloc"
5246 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5247 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5248 cat >conftest.$ac_ext <<_ACEOF
5249 main(){return 0;}
5250 _ACEOF
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest$ac_exeext &&
5268 $as_test_x conftest$ac_exeext; then
5269 { echo "$as_me:$LINENO: result: yes" >&5
5270 echo "${ECHO_T}yes" >&6; }
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 LDFLAGS=$late_LDFLAGS
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5281 conftest$ac_exeext conftest.$ac_ext
5283 #### Extract some information from the operating system and machine files.
5285 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5286 - which libraries the lib-src programs will want, and
5287 - whether the GNU malloc routines are usable..." >&5
5288 echo "$as_me: checking the machine- and system-dependent files to find out
5289 - which libraries the lib-src programs will want, and
5290 - whether the GNU malloc routines are usable..." >&6;}
5292 ### First figure out CFLAGS (which we use for running the compiler here)
5293 ### and REAL_CFLAGS (which we use for real compilation).
5294 ### The two are the same except on a few systems, where they are made
5295 ### different to work around various lossages. For example,
5296 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5297 ### as implying static linking.
5299 ### If the CFLAGS env var is specified, we use that value
5300 ### instead of the default.
5302 ### It's not important that this name contain the PID; you can't run
5303 ### two configures in the same directory and have anything work
5304 ### anyway.
5305 tempcname="conftest.c"
5307 echo '
5308 #include "'${srcdir}'/src/'${opsysfile}'"
5309 #include "'${srcdir}'/src/'${machfile}'"
5310 #ifndef LIBS_MACHINE
5311 #define LIBS_MACHINE
5312 #endif
5313 #ifndef LIBS_SYSTEM
5314 #define LIBS_SYSTEM
5315 #endif
5316 #ifndef C_SWITCH_SYSTEM
5317 #define C_SWITCH_SYSTEM
5318 #endif
5319 #ifndef C_SWITCH_MACHINE
5320 #define C_SWITCH_MACHINE
5321 #endif
5322 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5323 configure___ c_switch_system=C_SWITCH_SYSTEM
5324 configure___ c_switch_machine=C_SWITCH_MACHINE
5326 #ifndef LIB_X11_LIB
5327 #define LIB_X11_LIB -lX11
5328 #endif
5330 #ifndef LIBX11_MACHINE
5331 #define LIBX11_MACHINE
5332 #endif
5334 #ifndef LIBX11_SYSTEM
5335 #define LIBX11_SYSTEM
5336 #endif
5337 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5339 #ifdef UNEXEC
5340 configure___ unexec=UNEXEC
5341 #else
5342 configure___ unexec=unexec.o
5343 #endif
5345 #ifdef SYSTEM_MALLOC
5346 configure___ system_malloc=yes
5347 #else
5348 configure___ system_malloc=no
5349 #endif
5351 #ifdef USE_MMAP_FOR_BUFFERS
5352 configure___ use_mmap_for_buffers=yes
5353 #else
5354 configure___ use_mmap_for_buffers=no
5355 #endif
5357 #ifndef C_DEBUG_SWITCH
5358 #define C_DEBUG_SWITCH -g
5359 #endif
5361 #ifndef C_OPTIMIZE_SWITCH
5362 #ifdef __GNUC__
5363 #define C_OPTIMIZE_SWITCH -O2
5364 #else
5365 #define C_OPTIMIZE_SWITCH -O
5366 #endif
5367 #endif
5369 #ifndef C_WARNINGS_SWITCH
5370 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5371 #endif
5373 #ifndef LD_SWITCH_MACHINE
5374 #define LD_SWITCH_MACHINE
5375 #endif
5377 #ifndef LD_SWITCH_SYSTEM
5378 #define LD_SWITCH_SYSTEM
5379 #endif
5381 #ifndef LD_SWITCH_X_SITE_AUX
5382 #define LD_SWITCH_X_SITE_AUX
5383 #endif
5385 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5386 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5388 #ifdef THIS_IS_CONFIGURE
5390 /* Get the CFLAGS for tests in configure. */
5391 #ifdef __GNUC__
5392 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5393 #else
5394 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5395 #endif
5397 #else /* not THIS_IS_CONFIGURE */
5399 /* Get the CFLAGS for real compilation. */
5400 #ifdef __GNUC__
5401 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5402 #else
5403 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5404 #endif
5406 #endif /* not THIS_IS_CONFIGURE */
5407 ' > ${tempcname}
5409 # The value of CPP is a quoted variable reference, so we need to do this
5410 # to get its actual value...
5411 CPP=`eval "echo $CPP"`
5412 eval `${CPP} -Isrc ${tempcname} \
5413 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5414 if test "x$SPECIFIED_CFLAGS" = x; then
5415 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5416 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5417 else
5418 REAL_CFLAGS="$CFLAGS"
5420 rm ${tempcname}
5422 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5424 ### Make sure subsequent tests use flags consistent with the build flags.
5426 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5427 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5428 else
5429 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5434 # Check whether --enable-largefile was given.
5435 if test "${enable_largefile+set}" = set; then
5436 enableval=$enable_largefile;
5439 if test "$enable_largefile" != no; then
5441 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5442 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5443 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 ac_cv_sys_largefile_CC=no
5447 if test "$GCC" != yes; then
5448 ac_save_CC=$CC
5449 while :; do
5450 # IRIX 6.2 and later do not support large files by default,
5451 # so use the C compiler's -n32 option if that helps.
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5468 main ()
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 break
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5500 rm -f core conftest.err conftest.$ac_objext
5501 CC="$CC -n32"
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_cv_sys_largefile_CC=' -n32'; break
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5527 rm -f core conftest.err conftest.$ac_objext
5528 break
5529 done
5530 CC=$ac_save_CC
5531 rm -f conftest.$ac_ext
5534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5535 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5536 if test "$ac_cv_sys_largefile_CC" != no; then
5537 CC=$CC$ac_cv_sys_largefile_CC
5540 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5541 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5542 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 while :; do
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5560 ? 1 : -1];
5562 main ()
5566 return 0;
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5586 ac_cv_sys_file_offset_bits=no; break
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #define _FILE_OFFSET_BITS 64
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5610 ? 1 : -1];
5612 main ()
5616 return 0;
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_sys_file_offset_bits=64; break
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 ac_cv_sys_file_offset_bits=unknown
5646 break
5647 done
5649 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5650 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5651 case $ac_cv_sys_file_offset_bits in #(
5652 no | unknown) ;;
5654 cat >>confdefs.h <<_ACEOF
5655 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5656 _ACEOF
5658 esac
5659 rm -f conftest*
5660 if test $ac_cv_sys_file_offset_bits = unknown; then
5661 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5662 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5663 if test "${ac_cv_sys_large_files+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 while :; do
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5681 ? 1 : -1];
5683 main ()
5687 return 0;
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 ac_cv_sys_large_files=no; break
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #define _LARGE_FILES 1
5723 #include <sys/types.h>
5724 /* Check that off_t can represent 2**63 - 1 correctly.
5725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5726 since some C++ compilers masquerading as C compilers
5727 incorrectly reject 9223372036854775807. */
5728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5730 && LARGE_OFF_T % 2147483647 == 1)
5731 ? 1 : -1];
5733 main ()
5737 return 0;
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (ac_try="$ac_compile"
5742 case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_compile") 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
5757 ac_cv_sys_large_files=1; break
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_sys_large_files=unknown
5767 break
5768 done
5770 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5771 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5772 case $ac_cv_sys_large_files in #(
5773 no | unknown) ;;
5775 cat >>confdefs.h <<_ACEOF
5776 #define _LARGE_FILES $ac_cv_sys_large_files
5777 _ACEOF
5779 esac
5780 rm -f conftest*
5786 ### The standard library on x86-64 GNU/Linux distributions can
5787 ### be located in either /usr/lib64 or /usr/lib.
5788 case "${canonical}" in
5789 x86_64-*-linux-gnu* )
5790 if test -d /usr/lib64; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define HAVE_X86_64_LIB64_DIR 1
5794 _ACEOF
5797 esac
5802 if test "${with_sound}" != "no"; then
5803 # Sound support for GNU/Linux and the free BSDs.
5804 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5806 if test "${ac_cv_header_stdc+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #include <stdlib.h>
5816 #include <stdarg.h>
5817 #include <string.h>
5818 #include <float.h>
5821 main ()
5825 return 0;
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 ac_cv_header_stdc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_cv_header_stdc=no
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 if test $ac_cv_header_stdc = yes; then
5856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <string.h>
5865 _ACEOF
5866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 $EGREP "memchr" >/dev/null 2>&1; then
5869 else
5870 ac_cv_header_stdc=no
5872 rm -f conftest*
5876 if test $ac_cv_header_stdc = yes; then
5877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <stdlib.h>
5886 _ACEOF
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev/null 2>&1; then
5890 else
5891 ac_cv_header_stdc=no
5893 rm -f conftest*
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then
5901 else
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <ctype.h>
5909 #include <stdlib.h>
5910 #if ((' ' & 0x0FF) == 0x020)
5911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5913 #else
5914 # define ISLOWER(c) \
5915 (('a' <= (c) && (c) <= 'i') \
5916 || ('j' <= (c) && (c) <= 'r') \
5917 || ('s' <= (c) && (c) <= 'z'))
5918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5919 #endif
5921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5923 main ()
5925 int i;
5926 for (i = 0; i < 256; i++)
5927 if (XOR (islower (i), ISLOWER (i))
5928 || toupper (i) != TOUPPER (i))
5929 return 2;
5930 return 0;
5932 _ACEOF
5933 rm -f conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5954 else
5955 echo "$as_me: program exited with status $ac_status" >&5
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ( exit $ac_status )
5960 ac_cv_header_stdc=no
5962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5968 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5969 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5970 if test $ac_cv_header_stdc = yes; then
5972 cat >>confdefs.h <<\_ACEOF
5973 #define STDC_HEADERS 1
5974 _ACEOF
5978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5988 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5989 inttypes.h stdint.h unistd.h
5991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 $ac_includes_default
6005 #include <$ac_header>
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 eval "$as_ac_Header=yes"
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 eval "$as_ac_Header=no"
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_res=`eval echo '${'$as_ac_Header'}'`
6035 { echo "$as_me:$LINENO: result: $ac_res" >&5
6036 echo "${ECHO_T}$ac_res" >&6; }
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 _ACEOF
6044 done
6050 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_res=`eval echo '${'$as_ac_Header'}'`
6060 { echo "$as_me:$LINENO: result: $ac_res" >&5
6061 echo "${ECHO_T}$ac_res" >&6; }
6062 else
6063 # Is the header compilable?
6064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compile") 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && {
6089 test -z "$ac_c_werror_flag" ||
6090 test ! -s conftest.err
6091 } && test -s conftest.$ac_objext; then
6092 ac_header_compiler=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_header_compiler=no
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6102 echo "${ECHO_T}$ac_header_compiler" >&6; }
6104 # Is the header present?
6105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <$ac_header>
6114 _ACEOF
6115 if { (ac_try="$ac_cpp conftest.$ac_ext"
6116 case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } >/dev/null && {
6128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 }; then
6131 ac_header_preproc=yes
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ac_header_preproc=no
6139 rm -f conftest.err conftest.$ac_ext
6140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6141 echo "${ECHO_T}$ac_header_preproc" >&6; }
6143 # So? What about this header?
6144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6145 yes:no: )
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6150 ac_header_preproc=yes
6152 no:yes:* )
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6167 esac
6168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 eval "$as_ac_Header=\$ac_header_preproc"
6175 ac_res=`eval echo '${'$as_ac_Header'}'`
6176 { echo "$as_me:$LINENO: result: $ac_res" >&5
6177 echo "${ECHO_T}$ac_res" >&6; }
6180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6181 cat >>confdefs.h <<_ACEOF
6182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6183 _ACEOF
6187 done
6189 # Emulation library used on NetBSD.
6190 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6191 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6192 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 ac_check_lib_save_LIBS=$LIBS
6196 LIBS="-lossaudio $LIBS"
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 /* Override any GCC internal prototype to avoid an error.
6205 Use char because int might match the return type of a GCC
6206 builtin and then its argument prototype would still apply. */
6207 #ifdef __cplusplus
6208 extern "C"
6209 #endif
6210 char _oss_ioctl ();
6212 main ()
6214 return _oss_ioctl ();
6216 return 0;
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_link") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest$ac_exeext &&
6236 $as_test_x conftest$ac_exeext; then
6237 ac_cv_lib_ossaudio__oss_ioctl=yes
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_cv_lib_ossaudio__oss_ioctl=no
6245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6246 conftest$ac_exeext conftest.$ac_ext
6247 LIBS=$ac_check_lib_save_LIBS
6249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6250 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6251 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6252 LIBSOUND=-lossaudio
6253 else
6254 LIBSOUND=
6259 ALSA_REQUIRED=1.0.0
6260 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6261 if test "X${with_pkg_config_prog}" != X; then
6262 PKG_CONFIG="${with_pkg_config_prog}"
6265 succeeded=no
6267 if test -z "$PKG_CONFIG"; then
6268 # Extract the first word of "pkg-config", so it can be a program name with args.
6269 set dummy pkg-config; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 case $PKG_CONFIG in
6276 [\\/]* | ?:[\\/]*)
6277 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6293 IFS=$as_save_IFS
6295 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6297 esac
6299 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6300 if test -n "$PKG_CONFIG"; then
6301 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6302 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6303 else
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6311 if test "$PKG_CONFIG" = "no" ; then
6312 HAVE_ALSA=no
6313 else
6314 PKG_CONFIG_MIN_VERSION=0.9.0
6315 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6316 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6317 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6319 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6320 { echo "$as_me:$LINENO: result: yes" >&5
6321 echo "${ECHO_T}yes" >&6; }
6322 succeeded=yes
6324 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6325 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6326 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6327 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6328 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6330 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6331 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6332 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6333 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6334 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6335 else
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 ALSA_CFLAGS=""
6339 ALSA_LIBS=""
6340 ## If we have a custom action on failure, don't print errors, but
6341 ## do set a variable so people can do so.
6342 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6348 else
6349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6350 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6354 if test $succeeded = yes; then
6355 HAVE_ALSA=yes
6356 else
6357 HAVE_ALSA=no
6360 if test $HAVE_ALSA = yes; then
6361 SAVE_CFLAGS="$CFLAGS"
6362 SAVE_LDFLAGS="$LDFLAGS"
6363 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6364 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <asoundlib.h>
6373 main ()
6375 snd_lib_error_set_handler (0);
6377 return 0;
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 emacs_alsa_normal=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 emacs_alsa_normal=no
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 if test "$emacs_alsa_normal" != yes; then
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <alsa/asoundlib.h>
6415 main ()
6417 snd_lib_error_set_handler (0);
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 emacs_alsa_subdir=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 emacs_alsa_subdir=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 if test "$emacs_alsa_subdir" != yes; then
6449 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6450 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6451 { (exit 1); exit 1; }; }
6453 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6456 CFLAGS="$SAVE_CFLAGS"
6457 LDFLAGS="$SAVE_LDFLAGS"
6458 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6459 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6461 cat >>confdefs.h <<\_ACEOF
6462 #define HAVE_ALSA 1
6463 _ACEOF
6495 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6496 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6497 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6498 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6499 sys/utsname.h pwd.h
6501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_res=`eval echo '${'$as_ac_Header'}'`
6509 { echo "$as_me:$LINENO: result: $ac_res" >&5
6510 echo "${ECHO_T}$ac_res" >&6; }
6511 else
6512 # Is the header compilable?
6513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6522 #include <$ac_header>
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 ac_header_compiler=yes
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_header_compiler=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6551 echo "${ECHO_T}$ac_header_compiler" >&6; }
6553 # Is the header present?
6554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <$ac_header>
6563 _ACEOF
6564 if { (ac_try="$ac_cpp conftest.$ac_ext"
6565 case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568 esac
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } >/dev/null && {
6577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 }; then
6580 ac_header_preproc=yes
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_header_preproc=no
6588 rm -f conftest.err conftest.$ac_ext
6589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6590 echo "${ECHO_T}$ac_header_preproc" >&6; }
6592 # So? What about this header?
6593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6594 yes:no: )
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6599 ac_header_preproc=yes
6601 no:yes:* )
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6616 esac
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 eval "$as_ac_Header=\$ac_header_preproc"
6624 ac_res=`eval echo '${'$as_ac_Header'}'`
6625 { echo "$as_me:$LINENO: result: $ac_res" >&5
6626 echo "${ECHO_T}$ac_res" >&6; }
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6636 done
6639 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6640 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <sys/personality.h>
6649 main ()
6651 personality (PER_LINUX32)
6653 return 0;
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (ac_try="$ac_compile"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 emacs_cv_personality_linux32=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 emacs_cv_personality_linux32=no
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6683 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6685 if test $emacs_cv_personality_linux32 = yes; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_PERSONALITY_LINUX32 1
6689 _ACEOF
6694 for ac_header in term.h
6696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <$ac_header>
6709 _ACEOF
6710 if { (ac_try="$ac_cpp conftest.$ac_ext"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } >/dev/null && {
6723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 }; then
6726 eval "$as_ac_Header=yes"
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 eval "$as_ac_Header=no"
6734 rm -f conftest.err conftest.$ac_ext
6736 ac_res=`eval echo '${'$as_ac_Header'}'`
6737 { echo "$as_me:$LINENO: result: $ac_res" >&5
6738 echo "${ECHO_T}$ac_res" >&6; }
6739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 _ACEOF
6746 done
6748 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6750 if test "${ac_cv_header_stdc+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <stdlib.h>
6760 #include <stdarg.h>
6761 #include <string.h>
6762 #include <float.h>
6765 main ()
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6789 ac_cv_header_stdc=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_cv_header_stdc=no
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 if test $ac_cv_header_stdc = yes; then
6800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <string.h>
6809 _ACEOF
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "memchr" >/dev/null 2>&1; then
6813 else
6814 ac_cv_header_stdc=no
6816 rm -f conftest*
6820 if test $ac_cv_header_stdc = yes; then
6821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 #include <stdlib.h>
6830 _ACEOF
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 $EGREP "free" >/dev/null 2>&1; then
6834 else
6835 ac_cv_header_stdc=no
6837 rm -f conftest*
6841 if test $ac_cv_header_stdc = yes; then
6842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6843 if test "$cross_compiling" = yes; then
6845 else
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <ctype.h>
6853 #include <stdlib.h>
6854 #if ((' ' & 0x0FF) == 0x020)
6855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6857 #else
6858 # define ISLOWER(c) \
6859 (('a' <= (c) && (c) <= 'i') \
6860 || ('j' <= (c) && (c) <= 'r') \
6861 || ('s' <= (c) && (c) <= 'z'))
6862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6863 #endif
6865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6867 main ()
6869 int i;
6870 for (i = 0; i < 256; i++)
6871 if (XOR (islower (i), ISLOWER (i))
6872 || toupper (i) != TOUPPER (i))
6873 return 2;
6874 return 0;
6876 _ACEOF
6877 rm -f conftest$ac_exeext
6878 if { (ac_try="$ac_link"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_link") 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6888 { (case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_try") 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6898 else
6899 echo "$as_me: program exited with status $ac_status" >&5
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ( exit $ac_status )
6904 ac_cv_header_stdc=no
6906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6913 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6914 if test $ac_cv_header_stdc = yes; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define STDC_HEADERS 1
6918 _ACEOF
6922 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6923 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6924 if test "${ac_cv_header_time+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6934 #include <sys/time.h>
6935 #include <time.h>
6938 main ()
6940 if ((struct tm *) 0)
6941 return 0;
6943 return 0;
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_header_time=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_header_time=no
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6974 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6975 if test $ac_cv_header_time = yes; then
6977 cat >>confdefs.h <<\_ACEOF
6978 #define TIME_WITH_SYS_TIME 1
6979 _ACEOF
6983 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6984 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6985 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6996 main ()
6998 #ifndef sys_siglist
6999 (void) sys_siglist;
7000 #endif
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_have_decl_sys_siglist=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_have_decl_sys_siglist=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7034 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7035 if test $ac_cv_have_decl_sys_siglist = yes; then
7037 cat >>confdefs.h <<_ACEOF
7038 #define HAVE_DECL_SYS_SIGLIST 1
7039 _ACEOF
7042 else
7043 cat >>confdefs.h <<_ACEOF
7044 #define HAVE_DECL_SYS_SIGLIST 0
7045 _ACEOF
7051 if test $ac_cv_have_decl_sys_siglist != yes; then
7052 # For Tru64, at least:
7053 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7054 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7055 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7066 main ()
7068 #ifndef __sys_siglist
7069 (void) __sys_siglist;
7070 #endif
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 ac_cv_have_decl___sys_siglist=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_have_decl___sys_siglist=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7104 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7105 if test $ac_cv_have_decl___sys_siglist = yes; then
7107 cat >>confdefs.h <<_ACEOF
7108 #define HAVE_DECL___SYS_SIGLIST 1
7109 _ACEOF
7112 else
7113 cat >>confdefs.h <<_ACEOF
7114 #define HAVE_DECL___SYS_SIGLIST 0
7115 _ACEOF
7121 if test $ac_cv_have_decl___sys_siglist = yes; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define sys_siglist __sys_siglist
7125 _ACEOF
7129 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7131 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <sys/wait.h>
7142 #ifndef WEXITSTATUS
7143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7144 #endif
7145 #ifndef WIFEXITED
7146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7147 #endif
7150 main ()
7152 int s;
7153 wait (&s);
7154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7156 return 0;
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7161 case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_cv_header_sys_wait_h=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_header_sys_wait_h=no
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7187 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7188 if test $ac_cv_header_sys_wait_h = yes; then
7190 cat >>confdefs.h <<\_ACEOF
7191 #define HAVE_SYS_WAIT_H 1
7192 _ACEOF
7197 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7198 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7199 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #ifdef TIME_WITH_SYS_TIME
7209 #include <sys/time.h>
7210 #include <time.h>
7211 #else
7212 #ifdef HAVE_SYS_TIME_H
7213 #include <sys/time.h>
7214 #else
7215 #include <time.h>
7216 #endif
7217 #endif
7218 #ifdef HAVE_UTIME_H
7219 #include <utime.h>
7220 #endif
7222 main ()
7224 static struct utimbuf x; x.actime = x.modtime;
7226 return 0;
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 emacs_cv_struct_utimbuf=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 emacs_cv_struct_utimbuf=no
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7257 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7258 if test $emacs_cv_struct_utimbuf = yes; then
7260 cat >>confdefs.h <<\_ACEOF
7261 #define HAVE_STRUCT_UTIMBUF 1
7262 _ACEOF
7266 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7267 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7268 if test "${ac_cv_type_signal+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <sys/types.h>
7278 #include <signal.h>
7281 main ()
7283 return *(signal (0, 0)) (0) == 1;
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 ac_cv_type_signal=int
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_type_signal=void
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7316 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7318 cat >>confdefs.h <<_ACEOF
7319 #define RETSIGTYPE $ac_cv_type_signal
7320 _ACEOF
7324 { echo "$as_me:$LINENO: checking for speed_t" >&5
7325 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7326 if test "${emacs_cv_speed_t+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <termios.h>
7337 main ()
7339 speed_t x = 1;
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7346 case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349 esac
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_compile") 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } && {
7358 test -z "$ac_c_werror_flag" ||
7359 test ! -s conftest.err
7360 } && test -s conftest.$ac_objext; then
7361 emacs_cv_speed_t=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 emacs_cv_speed_t=no
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7372 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7373 if test $emacs_cv_speed_t = yes; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_SPEED_T 1
7377 _ACEOF
7381 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7382 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7383 if test "${emacs_cv_struct_timeval+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 #ifdef TIME_WITH_SYS_TIME
7393 #include <sys/time.h>
7394 #include <time.h>
7395 #else
7396 #ifdef HAVE_SYS_TIME_H
7397 #include <sys/time.h>
7398 #else
7399 #include <time.h>
7400 #endif
7401 #endif
7403 main ()
7405 static struct timeval x; x.tv_sec = x.tv_usec;
7407 return 0;
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 emacs_cv_struct_timeval=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 emacs_cv_struct_timeval=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7438 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7439 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7440 if test $emacs_cv_struct_timeval = yes; then
7442 cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_TIMEVAL 1
7444 _ACEOF
7448 { echo "$as_me:$LINENO: checking for struct exception" >&5
7449 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7450 if test "${emacs_cv_struct_exception+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <math.h>
7461 main ()
7463 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 emacs_cv_struct_exception=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 emacs_cv_struct_exception=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7496 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7497 HAVE_EXCEPTION=$emacs_cv_struct_exception
7498 if test $emacs_cv_struct_exception != yes; then
7500 cat >>confdefs.h <<\_ACEOF
7501 #define NO_MATHERR 1
7502 _ACEOF
7507 for ac_header in sys/socket.h
7509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_res=`eval echo '${'$as_ac_Header'}'`
7517 { echo "$as_me:$LINENO: result: $ac_res" >&5
7518 echo "${ECHO_T}$ac_res" >&6; }
7519 else
7520 # Is the header compilable?
7521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 #include <$ac_header>
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (ac_try="$ac_compile"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 ac_header_compiler=yes
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_header_compiler=no
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7559 echo "${ECHO_T}$ac_header_compiler" >&6; }
7561 # Is the header present?
7562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <$ac_header>
7571 _ACEOF
7572 if { (ac_try="$ac_cpp conftest.$ac_ext"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } >/dev/null && {
7585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 }; then
7588 ac_header_preproc=yes
7589 else
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_header_preproc=no
7596 rm -f conftest.err conftest.$ac_ext
7597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7598 echo "${ECHO_T}$ac_header_preproc" >&6; }
7600 # So? What about this header?
7601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7602 yes:no: )
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7607 ac_header_preproc=yes
7609 no:yes:* )
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7624 esac
7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 eval "$as_ac_Header=\$ac_header_preproc"
7632 ac_res=`eval echo '${'$as_ac_Header'}'`
7633 { echo "$as_me:$LINENO: result: $ac_res" >&5
7634 echo "${ECHO_T}$ac_res" >&6; }
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640 _ACEOF
7644 done
7647 for ac_header in net/if.h
7649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 $ac_includes_default
7662 #if HAVE_SYS_SOCKET_H
7663 #include <sys/socket.h>
7664 #endif
7666 #include <$ac_header>
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 eval "$as_ac_Header=yes"
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 eval "$as_ac_Header=no"
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 ac_res=`eval echo '${'$as_ac_Header'}'`
7696 { echo "$as_me:$LINENO: result: $ac_res" >&5
7697 echo "${ECHO_T}$ac_res" >&6; }
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699 cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7701 _ACEOF
7705 done
7708 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7709 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7710 if test "${ac_cv_struct_tm+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 #include <sys/types.h>
7720 #include <time.h>
7723 main ()
7725 struct tm tm;
7726 int *p = &tm.tm_sec;
7727 return !p;
7729 return 0;
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest.$ac_objext; then
7749 ac_cv_struct_tm=time.h
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_struct_tm=sys/time.h
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7760 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7761 if test $ac_cv_struct_tm = sys/time.h; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define TM_IN_SYS_TIME 1
7765 _ACEOF
7769 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7770 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7771 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 #include <$ac_cv_struct_tm>
7785 main ()
7787 static struct tm ac_aggr;
7788 if (ac_aggr.tm_zone)
7789 return 0;
7791 return 0;
7793 _ACEOF
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7796 case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7811 ac_cv_member_struct_tm_tm_zone=yes
7812 else
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <sys/types.h>
7823 #include <$ac_cv_struct_tm>
7827 main ()
7829 static struct tm ac_aggr;
7830 if (sizeof ac_aggr.tm_zone)
7831 return 0;
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_cv_member_struct_tm_tm_zone=yes
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 ac_cv_member_struct_tm_tm_zone=no
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7867 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7868 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7870 cat >>confdefs.h <<_ACEOF
7871 #define HAVE_STRUCT_TM_TM_ZONE 1
7872 _ACEOF
7877 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_TM_ZONE 1
7881 _ACEOF
7883 else
7884 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7885 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7886 if test "${ac_cv_have_decl_tzname+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <time.h>
7898 main ()
7900 #ifndef tzname
7901 (void) tzname;
7902 #endif
7905 return 0;
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_have_decl_tzname=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_cv_have_decl_tzname=no
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7936 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7937 if test $ac_cv_have_decl_tzname = yes; then
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DECL_TZNAME 1
7941 _ACEOF
7944 else
7945 cat >>confdefs.h <<_ACEOF
7946 #define HAVE_DECL_TZNAME 0
7947 _ACEOF
7953 { echo "$as_me:$LINENO: checking for tzname" >&5
7954 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7955 if test "${ac_cv_var_tzname+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <time.h>
7965 #if !HAVE_DECL_TZNAME
7966 extern char *tzname[];
7967 #endif
7970 main ()
7972 return tzname[0][0];
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest$ac_exeext &&
7994 $as_test_x conftest$ac_exeext; then
7995 ac_cv_var_tzname=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_var_tzname=no
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8006 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8007 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8008 if test $ac_cv_var_tzname = yes; then
8010 cat >>confdefs.h <<\_ACEOF
8011 #define HAVE_TZNAME 1
8012 _ACEOF
8017 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8018 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8019 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <time.h>
8031 main ()
8033 static struct tm ac_aggr;
8034 if (ac_aggr.tm_gmtoff)
8035 return 0;
8037 return 0;
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (ac_try="$ac_compile"
8042 case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_cv_member_struct_tm_tm_gmtoff=yes
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <time.h>
8071 main ()
8073 static struct tm ac_aggr;
8074 if (sizeof ac_aggr.tm_gmtoff)
8075 return 0;
8077 return 0;
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 ac_cv_member_struct_tm_tm_gmtoff=yes
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_cv_member_struct_tm_tm_gmtoff=no
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8111 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8112 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8114 cat >>confdefs.h <<\_ACEOF
8115 #define HAVE_TM_GMTOFF 1
8116 _ACEOF
8120 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8121 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8122 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8134 #endif
8135 #if HAVE_NET_IF_H
8136 #include <net/if.h>
8137 #endif
8140 main ()
8142 static struct ifreq ac_aggr;
8143 if (ac_aggr.ifr_flags)
8144 return 0;
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_flags=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 #if HAVE_SYS_SOCKET_H
8179 #include <sys/socket.h>
8180 #endif
8181 #if HAVE_NET_IF_H
8182 #include <net/if.h>
8183 #endif
8186 main ()
8188 static struct ifreq ac_aggr;
8189 if (sizeof ac_aggr.ifr_flags)
8190 return 0;
8192 return 0;
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.$ac_objext; then
8212 ac_cv_member_struct_ifreq_ifr_flags=yes
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_cv_member_struct_ifreq_ifr_flags=no
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8226 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8227 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8231 _ACEOF
8235 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8236 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8237 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8249 #endif
8250 #if HAVE_NET_IF_H
8251 #include <net/if.h>
8252 #endif
8255 main ()
8257 static struct ifreq ac_aggr;
8258 if (ac_aggr.ifr_hwaddr)
8259 return 0;
8261 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8295 #endif
8296 #if HAVE_NET_IF_H
8297 #include <net/if.h>
8298 #endif
8301 main ()
8303 static struct ifreq ac_aggr;
8304 if (sizeof ac_aggr.ifr_hwaddr)
8305 return 0;
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8328 else
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8341 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8342 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8346 _ACEOF
8350 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8351 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8352 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8364 #endif
8365 #if HAVE_NET_IF_H
8366 #include <net/if.h>
8367 #endif
8370 main ()
8372 static struct ifreq ac_aggr;
8373 if (ac_aggr.ifr_netmask)
8374 return 0;
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_netmask=yes
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 #if HAVE_SYS_SOCKET_H
8409 #include <sys/socket.h>
8410 #endif
8411 #if HAVE_NET_IF_H
8412 #include <net/if.h>
8413 #endif
8416 main ()
8418 static struct ifreq ac_aggr;
8419 if (sizeof ac_aggr.ifr_netmask)
8420 return 0;
8422 return 0;
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8427 case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest.$ac_objext; then
8442 ac_cv_member_struct_ifreq_ifr_netmask=yes
8443 else
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_member_struct_ifreq_ifr_netmask=no
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8456 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8457 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8461 _ACEOF
8465 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8466 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8467 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8479 #endif
8480 #if HAVE_NET_IF_H
8481 #include <net/if.h>
8482 #endif
8485 main ()
8487 static struct ifreq ac_aggr;
8488 if (ac_aggr.ifr_broadaddr)
8489 return 0;
8491 return 0;
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8496 case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8525 #endif
8526 #if HAVE_NET_IF_H
8527 #include <net/if.h>
8528 #endif
8531 main ()
8533 static struct ifreq ac_aggr;
8534 if (sizeof ac_aggr.ifr_broadaddr)
8535 return 0;
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8557 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8571 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8572 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8576 _ACEOF
8580 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8581 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8582 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 #if HAVE_SYS_SOCKET_H
8593 #include <sys/socket.h>
8594 #endif
8595 #if HAVE_NET_IF_H
8596 #include <net/if.h>
8597 #endif
8600 main ()
8602 static struct ifreq ac_aggr;
8603 if (ac_aggr.ifr_addr)
8604 return 0;
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_member_struct_ifreq_ifr_addr=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8640 #endif
8641 #if HAVE_NET_IF_H
8642 #include <net/if.h>
8643 #endif
8646 main ()
8648 static struct ifreq ac_aggr;
8649 if (sizeof ac_aggr.ifr_addr)
8650 return 0;
8652 return 0;
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_addr=yes
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_cv_member_struct_ifreq_ifr_addr=no
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8686 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8687 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8691 _ACEOF
8698 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8699 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8700 if test "$ac_cv_prog_cc_c89" != no; then
8701 { echo "$as_me:$LINENO: result: yes" >&5
8702 echo "${ECHO_T}yes" >&6; }
8704 cat >>confdefs.h <<\_ACEOF
8705 #define PROTOTYPES 1
8706 _ACEOF
8709 cat >>confdefs.h <<\_ACEOF
8710 #define __PROTOTYPES 1
8711 _ACEOF
8713 else
8714 { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8718 { echo "$as_me:$LINENO: checking for working volatile" >&5
8719 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8720 if test "${ac_cv_c_volatile+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8731 main ()
8734 volatile int x;
8735 int * volatile y = (int *) 0;
8736 return !x && !y;
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (ac_try="$ac_compile"
8743 case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest.$ac_objext; then
8758 ac_cv_c_volatile=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_cv_c_volatile=no
8766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8769 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8770 if test $ac_cv_c_volatile = no; then
8772 cat >>confdefs.h <<\_ACEOF
8773 #define volatile
8774 _ACEOF
8778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_const+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8791 main ()
8793 /* FIXME: Include the comments suggested by Paul. */
8794 #ifndef __cplusplus
8795 /* Ultrix mips cc rejects this. */
8796 typedef int charset[2];
8797 const charset cs;
8798 /* SunOS 4.1.1 cc rejects this. */
8799 char const *const *pcpcc;
8800 char **ppc;
8801 /* NEC SVR4.0.2 mips cc rejects this. */
8802 struct point {int x, y;};
8803 static struct point const zero = {0,0};
8804 /* AIX XL C 1.02.0.0 rejects this.
8805 It does not let you subtract one const X* pointer from another in
8806 an arm of an if-expression whose if-part is not a constant
8807 expression */
8808 const char *g = "string";
8809 pcpcc = &g + (g ? g-g : 0);
8810 /* HPUX 7.0 cc rejects these. */
8811 ++pcpcc;
8812 ppc = (char**) pcpcc;
8813 pcpcc = (char const *const *) ppc;
8814 { /* SCO 3.2v4 cc rejects this. */
8815 char *t;
8816 char const *s = 0 ? (char *) 0 : (char const *) 0;
8818 *t++ = 0;
8819 if (s) return 0;
8821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8822 int x[] = {25, 17};
8823 const int *foo = &x[0];
8824 ++foo;
8826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8827 typedef const int *iptr;
8828 iptr p = 0;
8829 ++p;
8831 { /* AIX XL C 1.02.0.0 rejects this saying
8832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8833 struct s { int j; const int *ap[3]; };
8834 struct s *b; b->j = 5;
8836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8837 const int foo = 10;
8838 if (!foo) return 0;
8840 return !cs[0] && !zero.x;
8841 #endif
8844 return 0;
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8849 case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.$ac_objext; then
8864 ac_cv_c_const=yes
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_c_const=no
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8876 if test $ac_cv_c_const = no; then
8878 cat >>confdefs.h <<\_ACEOF
8879 #define const
8880 _ACEOF
8884 { echo "$as_me:$LINENO: checking for void * support" >&5
8885 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8886 if test "${emacs_cv_void_star+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8897 main ()
8899 void * foo;
8901 return 0;
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8906 case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest.$ac_objext; then
8921 emacs_cv_void_star=yes
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 emacs_cv_void_star=no
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8932 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8933 if test $emacs_cv_void_star = yes; then
8934 cat >>confdefs.h <<\_ACEOF
8935 #define POINTER_TYPE void
8936 _ACEOF
8938 else
8939 cat >>confdefs.h <<\_ACEOF
8940 #define POINTER_TYPE char
8941 _ACEOF
8949 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8950 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8951 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8952 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 cat >conftest.make <<\_ACEOF
8956 SHELL = /bin/sh
8957 all:
8958 @echo '@@@%%%=$(MAKE)=@@@%%%'
8959 _ACEOF
8960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8962 *@@@%%%=?*=@@@%%%*)
8963 eval ac_cv_prog_make_${ac_make}_set=yes;;
8965 eval ac_cv_prog_make_${ac_make}_set=no;;
8966 esac
8967 rm -f conftest.make
8969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8970 { echo "$as_me:$LINENO: result: yes" >&5
8971 echo "${ECHO_T}yes" >&6; }
8972 SET_MAKE=
8973 else
8974 { echo "$as_me:$LINENO: result: no" >&5
8975 echo "${ECHO_T}no" >&6; }
8976 SET_MAKE="MAKE=${MAKE-make}"
8980 { echo "$as_me:$LINENO: checking for long file names" >&5
8981 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8982 if test "${ac_cv_sys_long_file_names+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985 ac_cv_sys_long_file_names=yes
8986 # Test for long file names in all the places we know might matter:
8987 # . the current directory, where building will happen
8988 # $prefix/lib where we will be installing things
8989 # $exec_prefix/lib likewise
8990 # $TMPDIR if set, where it might want to write temporary files
8991 # /tmp where it might want to write temporary files
8992 # /var/tmp likewise
8993 # /usr/tmp likewise
8994 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8995 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8996 # in the usual case where exec_prefix is '${prefix}'.
8997 case $ac_dir in #(
8998 . | /* | ?:[\\/]*) ;; #(
8999 *) continue;;
9000 esac
9001 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9002 ac_xdir=$ac_dir/cf$$
9003 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9004 ac_tf1=$ac_xdir/conftest9012345
9005 ac_tf2=$ac_xdir/conftest9012346
9006 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9007 ac_cv_sys_long_file_names=no
9008 rm -f -r "$ac_xdir" 2>/dev/null
9009 test $ac_cv_sys_long_file_names = no && break
9010 done
9012 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9013 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9014 if test $ac_cv_sys_long_file_names = yes; then
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_LONG_FILE_NAMES 1
9018 _ACEOF
9023 #### Choose a window system.
9025 { echo "$as_me:$LINENO: checking for X" >&5
9026 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9029 # Check whether --with-x was given.
9030 if test "${with_x+set}" = set; then
9031 withval=$with_x;
9034 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9035 if test "x$with_x" = xno; then
9036 # The user explicitly disabled X.
9037 have_x=disabled
9038 else
9039 case $x_includes,$x_libraries in #(
9040 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9041 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9042 { (exit 1); exit 1; }; };; #(
9043 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 # One or both of the vars are not set, and there is no cached value.
9047 ac_x_includes=no ac_x_libraries=no
9048 rm -f -r conftest.dir
9049 if mkdir conftest.dir; then
9050 cd conftest.dir
9051 cat >Imakefile <<'_ACEOF'
9052 incroot:
9053 @echo incroot='${INCROOT}'
9054 usrlibdir:
9055 @echo usrlibdir='${USRLIBDIR}'
9056 libdir:
9057 @echo libdir='${LIBDIR}'
9058 _ACEOF
9059 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9061 for ac_var in incroot usrlibdir libdir; do
9062 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9063 done
9064 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9065 for ac_extension in a so sl; do
9066 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9067 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9068 ac_im_usrlibdir=$ac_im_libdir; break
9070 done
9071 # Screen out bogus values from the imake configuration. They are
9072 # bogus both because they are the default anyway, and because
9073 # using them would break gcc on systems where it needs fixed includes.
9074 case $ac_im_incroot in
9075 /usr/include) ac_x_includes= ;;
9076 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9077 esac
9078 case $ac_im_usrlibdir in
9079 /usr/lib | /lib) ;;
9080 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9081 esac
9083 cd ..
9084 rm -f -r conftest.dir
9087 # Standard set of common directories for X headers.
9088 # Check X11 before X11Rn because it is often a symlink to the current release.
9089 ac_x_header_dirs='
9090 /usr/X11/include
9091 /usr/X11R6/include
9092 /usr/X11R5/include
9093 /usr/X11R4/include
9095 /usr/include/X11
9096 /usr/include/X11R6
9097 /usr/include/X11R5
9098 /usr/include/X11R4
9100 /usr/local/X11/include
9101 /usr/local/X11R6/include
9102 /usr/local/X11R5/include
9103 /usr/local/X11R4/include
9105 /usr/local/include/X11
9106 /usr/local/include/X11R6
9107 /usr/local/include/X11R5
9108 /usr/local/include/X11R4
9110 /usr/X386/include
9111 /usr/x386/include
9112 /usr/XFree86/include/X11
9114 /usr/include
9115 /usr/local/include
9116 /usr/unsupported/include
9117 /usr/athena/include
9118 /usr/local/x11r5/include
9119 /usr/lpp/Xamples/include
9121 /usr/openwin/include
9122 /usr/openwin/share/include'
9124 if test "$ac_x_includes" = no; then
9125 # Guess where to find include files, by looking for Xlib.h.
9126 # First, try using that file with no special directory specified.
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133 #include <X11/Xlib.h>
9134 _ACEOF
9135 if { (ac_try="$ac_cpp conftest.$ac_ext"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } >/dev/null && {
9148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 }; then
9151 # We can compile using X headers with no special include directory.
9152 ac_x_includes=
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 for ac_dir in $ac_x_header_dirs; do
9158 if test -r "$ac_dir/X11/Xlib.h"; then
9159 ac_x_includes=$ac_dir
9160 break
9162 done
9165 rm -f conftest.err conftest.$ac_ext
9166 fi # $ac_x_includes = no
9168 if test "$ac_x_libraries" = no; then
9169 # Check for the libraries.
9170 # See if we find them without any special options.
9171 # Don't add to $LIBS permanently.
9172 ac_save_LIBS=$LIBS
9173 LIBS="-lX11 $LIBS"
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #include <X11/Xlib.h>
9182 main ()
9184 XrmInitialize ()
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9191 case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194 esac
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_link") 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && {
9203 test -z "$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9205 } && test -s conftest$ac_exeext &&
9206 $as_test_x conftest$ac_exeext; then
9207 LIBS=$ac_save_LIBS
9208 # We can link X programs with no special library path.
9209 ac_x_libraries=
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 LIBS=$ac_save_LIBS
9215 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9217 # Don't even attempt the hair of trying to link an X program!
9218 for ac_extension in a so sl; do
9219 if test -r "$ac_dir/libX11.$ac_extension"; then
9220 ac_x_libraries=$ac_dir
9221 break 2
9223 done
9224 done
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9229 fi # $ac_x_libraries = no
9231 case $ac_x_includes,$ac_x_libraries in #(
9232 no,* | *,no | *\'*)
9233 # Didn't find X, or a directory has "'" in its name.
9234 ac_cv_have_x="have_x=no";; #(
9236 # Record where we found X for the cache.
9237 ac_cv_have_x="have_x=yes\
9238 ac_x_includes='$ac_x_includes'\
9239 ac_x_libraries='$ac_x_libraries'"
9240 esac
9242 ;; #(
9243 *) have_x=yes;;
9244 esac
9245 eval "$ac_cv_have_x"
9246 fi # $with_x != no
9248 if test "$have_x" != yes; then
9249 { echo "$as_me:$LINENO: result: $have_x" >&5
9250 echo "${ECHO_T}$have_x" >&6; }
9251 no_x=yes
9252 else
9253 # If each of the values was on the command line, it overrides each guess.
9254 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9255 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9256 # Update the cache value to reflect the command line values.
9257 ac_cv_have_x="have_x=yes\
9258 ac_x_includes='$x_includes'\
9259 ac_x_libraries='$x_libraries'"
9260 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9261 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9264 if test "$no_x" = yes; then
9265 window_system=none
9266 else
9267 window_system=x11
9270 if test "${x_libraries}" != NONE; then
9271 if test -n "${x_libraries}"; then
9272 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9273 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9275 x_default_search_path=""
9276 x_search_path=${x_libraries}
9277 if test -z "${x_search_path}"; then
9278 x_search_path=/usr/lib
9280 for x_library in `echo ${x_search_path}: | \
9281 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9282 x_search_path="\
9283 ${x_library}/X11/%L/%T/%N%C%S:\
9284 ${x_library}/X11/%l/%T/%N%C%S:\
9285 ${x_library}/X11/%T/%N%C%S:\
9286 ${x_library}/X11/%L/%T/%N%S:\
9287 ${x_library}/X11/%l/%T/%N%S:\
9288 ${x_library}/X11/%T/%N%S"
9289 if test x"${x_default_search_path}" = x; then
9290 x_default_search_path=${x_search_path}
9291 else
9292 x_default_search_path="${x_search_path}:${x_default_search_path}"
9294 done
9296 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9297 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9300 if test x"${x_includes}" = x; then
9301 bitmapdir=/usr/include/X11/bitmaps
9302 else
9303 # accumulate include directories that have X11 bitmap subdirectories
9304 bmd_acc="dummyval"
9305 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9306 if test -d "${bmd}/X11/bitmaps"; then
9307 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9309 if test -d "${bmd}/bitmaps"; then
9310 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9312 done
9313 if test ${bmd_acc} != "dummyval"; then
9314 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9318 HAVE_CARBON=no
9319 if test "${with_carbon}" != no; then
9320 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9321 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9322 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9323 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9328 else
9329 # Is the header compilable?
9330 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9331 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 #include <Carbon/Carbon.h>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (ac_try="$ac_compile"
9343 case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_compile") 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest.$ac_objext; then
9358 ac_header_compiler=yes
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 ac_header_compiler=no
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9368 echo "${ECHO_T}$ac_header_compiler" >&6; }
9370 # Is the header present?
9371 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9372 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 #include <Carbon/Carbon.h>
9380 _ACEOF
9381 if { (ac_try="$ac_cpp conftest.$ac_ext"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } >/dev/null && {
9394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 }; then
9397 ac_header_preproc=yes
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_preproc=no
9405 rm -f conftest.err conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9407 echo "${ECHO_T}$ac_header_preproc" >&6; }
9409 # So? What about this header?
9410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9411 yes:no: )
9412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9413 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9415 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9416 ac_header_preproc=yes
9418 no:yes:* )
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9426 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9428 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9430 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9433 esac
9434 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9435 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9436 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9441 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9442 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9445 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9446 HAVE_CARBON=yes
9451 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9452 if test "${with_carbon+set}" != set \
9453 && test "${carbon_appdir_x+set}" != set; then
9454 for var in with_x with_x_toolkit with_gtk with_xim \
9455 with_xpm with_jpeg with_tiff with_gif with_png; do
9456 if eval test \"\${$var+set}\" = set; then
9457 HAVE_CARBON=no
9458 break
9460 done
9463 if test "${HAVE_CARBON}" = yes; then
9464 window_system=mac
9467 case "${window_system}" in
9468 x11 )
9469 HAVE_X_WINDOWS=yes
9470 HAVE_X11=yes
9471 case "${with_x_toolkit}" in
9472 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9473 motif ) USE_X_TOOLKIT=MOTIF ;;
9474 gtk ) with_gtk=yes
9475 USE_X_TOOLKIT=none ;;
9476 no ) USE_X_TOOLKIT=none ;;
9477 * ) USE_X_TOOLKIT=maybe ;;
9478 esac
9480 mac | none )
9481 HAVE_X_WINDOWS=no
9482 HAVE_X11=no
9483 USE_X_TOOLKIT=none
9485 esac
9487 ### If we're using X11, we should use the X menu package.
9488 HAVE_MENUS=no
9489 case ${HAVE_X11} in
9490 yes ) HAVE_MENUS=yes ;;
9491 esac
9493 if test "${opsys}" = "hpux9"; then
9494 case "${x_libraries}" in
9495 *X11R4* )
9496 opsysfile="s/hpux9-x11r4.h"
9498 esac
9501 if test "${opsys}" = "hpux9shr"; then
9502 case "${x_libraries}" in
9503 *X11R4* )
9504 opsysfile="s/hpux9shxr4.h"
9506 esac
9509 ### Compute the unexec source name from the object name.
9510 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9512 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9513 # Assume not, until told otherwise.
9514 GNU_MALLOC=yes
9515 doug_lea_malloc=yes
9516 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9517 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9518 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9529 #define malloc_get_state innocuous_malloc_get_state
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char malloc_get_state (); below.
9533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534 <limits.h> exists even on freestanding compilers. */
9536 #ifdef __STDC__
9537 # include <limits.h>
9538 #else
9539 # include <assert.h>
9540 #endif
9542 #undef malloc_get_state
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 char malloc_get_state ();
9551 /* The GNU C library defines this for functions which it implements
9552 to always fail with ENOSYS. Some functions are actually named
9553 something starting with __ and the normal name is an alias. */
9554 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9555 choke me
9556 #endif
9559 main ()
9561 return malloc_get_state ();
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest$ac_exeext &&
9583 $as_test_x conftest$ac_exeext; then
9584 ac_cv_func_malloc_get_state=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_func_malloc_get_state=no
9592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593 conftest$ac_exeext conftest.$ac_ext
9595 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9596 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9597 if test $ac_cv_func_malloc_get_state = yes; then
9599 else
9600 doug_lea_malloc=no
9603 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9604 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9605 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define malloc_set_state innocuous_malloc_set_state
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char malloc_set_state (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9629 #undef malloc_set_state
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char malloc_set_state ();
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9642 choke me
9643 #endif
9646 main ()
9648 return malloc_set_state ();
9650 return 0;
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest$ac_exeext &&
9670 $as_test_x conftest$ac_exeext; then
9671 ac_cv_func_malloc_set_state=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_func_malloc_set_state=no
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9682 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9683 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9684 if test $ac_cv_func_malloc_set_state = yes; then
9686 else
9687 doug_lea_malloc=no
9690 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9691 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9692 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 extern void (* __after_morecore_hook)();
9703 main ()
9705 __after_morecore_hook = 0
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 emacs_cv_var___after_morecore_hook=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 emacs_cv_var___after_morecore_hook=no
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9739 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9740 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9741 if test $emacs_cv_var___after_morecore_hook = no; then
9742 doug_lea_malloc=no
9744 if test "${system_malloc}" = "yes"; then
9745 GNU_MALLOC=no
9746 GNU_MALLOC_reason="
9747 (The GNU allocators don't work with this system configuration.)"
9749 if test "$doug_lea_malloc" = "yes" ; then
9750 if test "$GNU_MALLOC" = yes ; then
9751 GNU_MALLOC_reason="
9752 (Using Doug Lea's new malloc from the GNU C Library.)"
9755 cat >>confdefs.h <<\_ACEOF
9756 #define DOUG_LEA_MALLOC 1
9757 _ACEOF
9761 if test x"${REL_ALLOC}" = x; then
9762 REL_ALLOC=${GNU_MALLOC}
9768 for ac_header in stdlib.h unistd.h
9770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 ac_res=`eval echo '${'$as_ac_Header'}'`
9778 { echo "$as_me:$LINENO: result: $ac_res" >&5
9779 echo "${ECHO_T}$ac_res" >&6; }
9780 else
9781 # Is the header compilable?
9782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 $ac_includes_default
9791 #include <$ac_header>
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_compile") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest.$ac_objext; then
9810 ac_header_compiler=yes
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_header_compiler=no
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9820 echo "${ECHO_T}$ac_header_compiler" >&6; }
9822 # Is the header present?
9823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9832 _ACEOF
9833 if { (ac_try="$ac_cpp conftest.$ac_ext"
9834 case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null && {
9846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 }; then
9849 ac_header_preproc=yes
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_header_preproc=no
9857 rm -f conftest.err conftest.$ac_ext
9858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859 echo "${ECHO_T}$ac_header_preproc" >&6; }
9861 # So? What about this header?
9862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 yes:no: )
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc=yes
9870 no:yes:* )
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9885 esac
9886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 eval "$as_ac_Header=\$ac_header_preproc"
9893 ac_res=`eval echo '${'$as_ac_Header'}'`
9894 { echo "$as_me:$LINENO: result: $ac_res" >&5
9895 echo "${ECHO_T}$ac_res" >&6; }
9898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9899 cat >>confdefs.h <<_ACEOF
9900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 _ACEOF
9905 done
9908 for ac_func in getpagesize
9910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924 #define $ac_func innocuous_$ac_func
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9931 #ifdef __STDC__
9932 # include <limits.h>
9933 #else
9934 # include <assert.h>
9935 #endif
9937 #undef $ac_func
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char $ac_func ();
9946 /* The GNU C library defines this for functions which it implements
9947 to always fail with ENOSYS. Some functions are actually named
9948 something starting with __ and the normal name is an alias. */
9949 #if defined __stub_$ac_func || defined __stub___$ac_func
9950 choke me
9951 #endif
9954 main ()
9956 return $ac_func ();
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && {
9975 test -z "$ac_c_werror_flag" ||
9976 test ! -s conftest.err
9977 } && test -s conftest$ac_exeext &&
9978 $as_test_x conftest$ac_exeext; then
9979 eval "$as_ac_var=yes"
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 eval "$as_ac_var=no"
9987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9988 conftest$ac_exeext conftest.$ac_ext
9990 ac_res=`eval echo '${'$as_ac_var'}'`
9991 { echo "$as_me:$LINENO: result: $ac_res" >&5
9992 echo "${ECHO_T}$ac_res" >&6; }
9993 if test `eval echo '${'$as_ac_var'}'` = yes; then
9994 cat >>confdefs.h <<_ACEOF
9995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9996 _ACEOF
9999 done
10001 { echo "$as_me:$LINENO: checking for working mmap" >&5
10002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 if test "$cross_compiling" = yes; then
10007 ac_cv_func_mmap_fixed_mapped=no
10008 else
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 $ac_includes_default
10016 /* malloc might have been renamed as rpl_malloc. */
10017 #undef malloc
10019 /* Thanks to Mike Haertel and Jim Avera for this test.
10020 Here is a matrix of mmap possibilities:
10021 mmap private not fixed
10022 mmap private fixed at somewhere currently unmapped
10023 mmap private fixed at somewhere already mapped
10024 mmap shared not fixed
10025 mmap shared fixed at somewhere currently unmapped
10026 mmap shared fixed at somewhere already mapped
10027 For private mappings, we should verify that changes cannot be read()
10028 back from the file, nor mmap's back from the file at a different
10029 address. (There have been systems where private was not correctly
10030 implemented like the infamous i386 svr4.0, and systems where the
10031 VM page cache was not coherent with the file system buffer cache
10032 like early versions of FreeBSD and possibly contemporary NetBSD.)
10033 For shared mappings, we should conversely verify that changes get
10034 propagated back to all the places they're supposed to be.
10036 Grep wants private fixed already mapped.
10037 The main things grep needs to know about mmap are:
10038 * does it exist and is it safe to write into the mmap'd area
10039 * how to use it (BSD variants) */
10041 #include <fcntl.h>
10042 #include <sys/mman.h>
10044 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10045 char *malloc ();
10046 #endif
10048 /* This mess was copied from the GNU getpagesize.h. */
10049 #ifndef HAVE_GETPAGESIZE
10050 /* Assume that all systems that can run configure have sys/param.h. */
10051 # ifndef HAVE_SYS_PARAM_H
10052 # define HAVE_SYS_PARAM_H 1
10053 # endif
10055 # ifdef _SC_PAGESIZE
10056 # define getpagesize() sysconf(_SC_PAGESIZE)
10057 # else /* no _SC_PAGESIZE */
10058 # ifdef HAVE_SYS_PARAM_H
10059 # include <sys/param.h>
10060 # ifdef EXEC_PAGESIZE
10061 # define getpagesize() EXEC_PAGESIZE
10062 # else /* no EXEC_PAGESIZE */
10063 # ifdef NBPG
10064 # define getpagesize() NBPG * CLSIZE
10065 # ifndef CLSIZE
10066 # define CLSIZE 1
10067 # endif /* no CLSIZE */
10068 # else /* no NBPG */
10069 # ifdef NBPC
10070 # define getpagesize() NBPC
10071 # else /* no NBPC */
10072 # ifdef PAGESIZE
10073 # define getpagesize() PAGESIZE
10074 # endif /* PAGESIZE */
10075 # endif /* no NBPC */
10076 # endif /* no NBPG */
10077 # endif /* no EXEC_PAGESIZE */
10078 # else /* no HAVE_SYS_PARAM_H */
10079 # define getpagesize() 8192 /* punt totally */
10080 # endif /* no HAVE_SYS_PARAM_H */
10081 # endif /* no _SC_PAGESIZE */
10083 #endif /* no HAVE_GETPAGESIZE */
10086 main ()
10088 char *data, *data2, *data3;
10089 int i, pagesize;
10090 int fd;
10092 pagesize = getpagesize ();
10094 /* First, make a file with some known garbage in it. */
10095 data = (char *) malloc (pagesize);
10096 if (!data)
10097 return 1;
10098 for (i = 0; i < pagesize; ++i)
10099 *(data + i) = rand ();
10100 umask (0);
10101 fd = creat ("conftest.mmap", 0600);
10102 if (fd < 0)
10103 return 1;
10104 if (write (fd, data, pagesize) != pagesize)
10105 return 1;
10106 close (fd);
10108 /* Next, try to mmap the file at a fixed address which already has
10109 something else allocated at it. If we can, also make sure that
10110 we see the same garbage. */
10111 fd = open ("conftest.mmap", O_RDWR);
10112 if (fd < 0)
10113 return 1;
10114 data2 = (char *) malloc (2 * pagesize);
10115 if (!data2)
10116 return 1;
10117 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10120 return 1;
10121 for (i = 0; i < pagesize; ++i)
10122 if (*(data + i) != *(data2 + i))
10123 return 1;
10125 /* Finally, make sure that changes to the mapped area do not
10126 percolate back to the file as seen by read(). (This is a bug on
10127 some variants of i386 svr4.0.) */
10128 for (i = 0; i < pagesize; ++i)
10129 *(data2 + i) = *(data2 + i) + 1;
10130 data3 = (char *) malloc (pagesize);
10131 if (!data3)
10132 return 1;
10133 if (read (fd, data3, pagesize) != pagesize)
10134 return 1;
10135 for (i = 0; i < pagesize; ++i)
10136 if (*(data + i) != *(data3 + i))
10137 return 1;
10138 close (fd);
10139 return 0;
10141 _ACEOF
10142 rm -f conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10153 { (case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156 esac
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_func_mmap_fixed_mapped=yes
10163 else
10164 echo "$as_me: program exited with status $ac_status" >&5
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ( exit $ac_status )
10169 ac_cv_func_mmap_fixed_mapped=no
10171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10176 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10177 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_MMAP 1
10182 _ACEOF
10185 rm -f conftest.mmap
10187 if test $use_mmap_for_buffers = yes; then
10188 REL_ALLOC=no
10191 LIBS="$libsrc_libs $LIBS"
10194 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10195 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldnet $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char dnet_ntoa ();
10216 main ()
10218 return dnet_ntoa ();
10220 return 0;
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10241 ac_cv_lib_dnet_dnet_ntoa=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_lib_dnet_dnet_ntoa=no
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10254 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10255 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_LIBDNET 1
10258 _ACEOF
10260 LIBS="-ldnet $LIBS"
10265 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10266 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lXbsd $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10281 main ()
10283 return main ();
10285 return 0;
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest$ac_exeext &&
10305 $as_test_x conftest$ac_exeext; then
10306 ac_cv_lib_Xbsd_main=yes
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_lib_Xbsd_main=no
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10319 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10320 if test $ac_cv_lib_Xbsd_main = yes; then
10321 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10326 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10327 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10328 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-lpthreads $LIBS"
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 char cma_open ();
10348 main ()
10350 return cma_open ();
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10360 esac
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && {
10369 test -z "$ac_c_werror_flag" ||
10370 test ! -s conftest.err
10371 } && test -s conftest$ac_exeext &&
10372 $as_test_x conftest$ac_exeext; then
10373 ac_cv_lib_pthreads_cma_open=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_cv_lib_pthreads_cma_open=no
10381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10382 conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10385 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10386 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10387 if test $ac_cv_lib_pthreads_cma_open = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_LIBPTHREADS 1
10390 _ACEOF
10392 LIBS="-lpthreads $LIBS"
10397 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10398 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10399 if test -d /usr/X386/include; then
10400 HAVE_XFREE386=yes
10401 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10402 else
10403 HAVE_XFREE386=no
10405 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10406 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10409 case ${host_os} in
10410 aix*)
10411 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10412 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10413 if test "${gdb_cv_bigtoc+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10417 case $GCC in
10418 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10419 *) gdb_cv_bigtoc=-bbigtoc ;;
10420 esac
10422 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10431 main ()
10433 int i;
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 gdb_cv_bigtoc=
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10469 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10471 esac
10473 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10474 # used for the tests that follow. We set them back to REAL_CFLAGS and
10475 # REAL_CPPFLAGS later on.
10477 REAL_CPPFLAGS="$CPPFLAGS"
10479 if test "${HAVE_X11}" = "yes"; then
10480 DEFS="$C_SWITCH_X_SITE $DEFS"
10481 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10482 LIBS="$LIBX $LIBS"
10483 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10484 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10486 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10487 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10488 # but it's more convenient here to set LD_RUN_PATH
10489 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10490 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10491 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10492 export LD_RUN_PATH
10495 if test "${opsys}" = "gnu-linux"; then
10496 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10497 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10506 main ()
10508 XOpenDisplay ("foo");
10510 return 0;
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10531 xlinux_first_failure=no
10532 else
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 xlinux_first_failure=yes
10539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540 conftest$ac_exeext conftest.$ac_ext
10541 if test "${xlinux_first_failure}" = "yes"; then
10542 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10543 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10544 OLD_CPPFLAGS="$CPPFLAGS"
10545 OLD_LIBS="$LIBS"
10546 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10547 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10548 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10549 LIBS="$LIBS -b i486-linuxaout"
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10558 main ()
10560 XOpenDisplay ("foo");
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext &&
10582 $as_test_x conftest$ac_exeext; then
10583 xlinux_second_failure=no
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 xlinux_second_failure=yes
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 if test "${xlinux_second_failure}" = "yes"; then
10594 # If we get the same failure with -b, there is no use adding -b.
10595 # So take it out. This plays safe.
10596 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10597 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10598 CPPFLAGS="$OLD_CPPFLAGS"
10599 LIBS="$OLD_LIBS"
10600 { echo "$as_me:$LINENO: result: no" >&5
10601 echo "${ECHO_T}no" >&6; }
10602 else
10603 { echo "$as_me:$LINENO: result: yes" >&5
10604 echo "${ECHO_T}yes" >&6; }
10606 else
10607 { echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6; }
10612 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10613 # header files included from there.
10614 { echo "$as_me:$LINENO: checking for Xkb" >&5
10615 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <X11/Xlib.h>
10623 #include <X11/XKBlib.h>
10625 main ()
10627 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10629 return 0;
10631 _ACEOF
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext &&
10649 $as_test_x conftest$ac_exeext; then
10650 emacs_xkb=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 emacs_xkb=no
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659 conftest$ac_exeext conftest.$ac_ext
10660 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10661 echo "${ECHO_T}$emacs_xkb" >&6; }
10662 if test $emacs_xkb = yes; then
10664 cat >>confdefs.h <<\_ACEOF
10665 #define HAVE_XKBGETKEYBOARD 1
10666 _ACEOF
10674 for ac_func in XrmSetDatabase XScreenResourceString \
10675 XScreenNumberOfScreen XSetWMProtocols
10677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691 #define $ac_func innocuous_$ac_func
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char $ac_func (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10698 #ifdef __STDC__
10699 # include <limits.h>
10700 #else
10701 # include <assert.h>
10702 #endif
10704 #undef $ac_func
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char $ac_func ();
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined __stub_$ac_func || defined __stub___$ac_func
10717 choke me
10718 #endif
10721 main ()
10723 return $ac_func ();
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 eval "$as_ac_var=yes"
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 eval "$as_ac_var=no"
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10757 ac_res=`eval echo '${'$as_ac_var'}'`
10758 { echo "$as_me:$LINENO: result: $ac_res" >&5
10759 echo "${ECHO_T}$ac_res" >&6; }
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763 _ACEOF
10766 done
10770 if test "${window_system}" = "x11"; then
10771 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10772 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10773 if test "${emacs_cv_x11_version_6+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <X11/Xlib.h>
10784 main ()
10786 #if XlibSpecificationRelease < 6
10787 fail;
10788 #endif
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext &&
10811 $as_test_x conftest$ac_exeext; then
10812 emacs_cv_x11_version_6=yes
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 emacs_cv_x11_version_6=no
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821 conftest$ac_exeext conftest.$ac_ext
10824 if test $emacs_cv_x11_version_6 = yes; then
10825 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10826 echo "${ECHO_T}6 or newer" >&6; }
10828 cat >>confdefs.h <<\_ACEOF
10829 #define HAVE_X11R6 1
10830 _ACEOF
10832 else
10833 { echo "$as_me:$LINENO: result: before 6" >&5
10834 echo "${ECHO_T}before 6" >&6; }
10838 if test "${window_system}" = "x11"; then
10839 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10840 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10841 if test "${emacs_cv_x11_version_5+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <X11/Xlib.h>
10852 main ()
10854 #if XlibSpecificationRelease < 5
10855 fail;
10856 #endif
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (ac_try="$ac_link"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest$ac_exeext &&
10879 $as_test_x conftest$ac_exeext; then
10880 emacs_cv_x11_version_5=yes
10881 else
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 emacs_cv_x11_version_5=no
10888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10889 conftest$ac_exeext conftest.$ac_ext
10892 if test $emacs_cv_x11_version_5 = yes; then
10893 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10894 echo "${ECHO_T}5 or newer" >&6; }
10895 HAVE_X11R5=yes
10897 cat >>confdefs.h <<\_ACEOF
10898 #define HAVE_X11R5 1
10899 _ACEOF
10901 else
10902 HAVE_X11R5=no
10903 { echo "$as_me:$LINENO: result: before 5" >&5
10904 echo "${ECHO_T}before 5" >&6; }
10908 HAVE_GTK=no
10909 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10910 USE_X_TOOLKIT=none
10912 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10913 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10914 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10915 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10916 { (exit 1); exit 1; }; };
10918 GLIB_REQUIRED=2.4
10919 GTK_REQUIRED=2.4
10920 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10922 if test "X${with_pkg_config_prog}" != X; then
10923 PKG_CONFIG="${with_pkg_config_prog}"
10926 succeeded=no
10928 if test -z "$PKG_CONFIG"; then
10929 # Extract the first word of "pkg-config", so it can be a program name with args.
10930 set dummy pkg-config; ac_word=$2
10931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936 case $PKG_CONFIG in
10937 [\\/]* | ?:[\\/]*)
10938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10952 done
10953 done
10954 IFS=$as_save_IFS
10956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10958 esac
10960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10961 if test -n "$PKG_CONFIG"; then
10962 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10963 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10964 else
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10972 if test "$PKG_CONFIG" = "no" ; then
10973 { { echo "$as_me:$LINENO: error:
10974 *** 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
10975 echo "$as_me: error:
10976 *** 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;}
10977 { (exit 1); exit 1; }; }
10978 else
10979 PKG_CONFIG_MIN_VERSION=0.9.0
10980 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10981 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10982 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10984 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10985 { echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6; }
10987 succeeded=yes
10989 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10990 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10991 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10992 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10993 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10995 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10996 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10997 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10998 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10999 echo "${ECHO_T}$GTK_LIBS" >&6; }
11000 else
11001 { echo "$as_me:$LINENO: result: no" >&5
11002 echo "${ECHO_T}no" >&6; }
11003 GTK_CFLAGS=""
11004 GTK_LIBS=""
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so.
11007 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11008 echo $GTK_PKG_ERRORS
11013 else
11014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11019 if test $succeeded = yes; then
11021 else
11022 { { 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
11023 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;}
11024 { (exit 1); exit 1; }; }
11029 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11030 CFLAGS="$CFLAGS $GTK_CFLAGS"
11031 LIBS="$GTK_LIBS $LIBS"
11032 GTK_COMPILES=no
11034 for ac_func in gtk_main
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11057 #ifdef __STDC__
11058 # include <limits.h>
11059 #else
11060 # include <assert.h>
11061 #endif
11063 #undef $ac_func
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char $ac_func ();
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11076 choke me
11077 #endif
11080 main ()
11082 return $ac_func ();
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext &&
11104 $as_test_x conftest$ac_exeext; then
11105 eval "$as_ac_var=yes"
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 eval "$as_ac_var=no"
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 _ACEOF
11123 GTK_COMPILES=yes
11125 done
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11129 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11130 { (exit 1); exit 1; }; };
11133 HAVE_GTK=yes
11135 cat >>confdefs.h <<\_ACEOF
11136 #define HAVE_GTK 1
11137 _ACEOF
11139 USE_X_TOOLKIT=none
11141 if test "$with_toolkit_scroll_bars" != no; then
11142 with_toolkit_scroll_bars=yes
11145 HAVE_GTK_MULTIDISPLAY=no
11147 for ac_func in gdk_display_open
11149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11163 #define $ac_func innocuous_$ac_func
11165 /* System header to define __stub macros and hopefully few prototypes,
11166 which can conflict with char $ac_func (); below.
11167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11168 <limits.h> exists even on freestanding compilers. */
11170 #ifdef __STDC__
11171 # include <limits.h>
11172 #else
11173 # include <assert.h>
11174 #endif
11176 #undef $ac_func
11178 /* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 char $ac_func ();
11185 /* The GNU C library defines this for functions which it implements
11186 to always fail with ENOSYS. Some functions are actually named
11187 something starting with __ and the normal name is an alias. */
11188 #if defined __stub_$ac_func || defined __stub___$ac_func
11189 choke me
11190 #endif
11193 main ()
11195 return $ac_func ();
11197 return 0;
11199 _ACEOF
11200 rm -f conftest.$ac_objext conftest$ac_exeext
11201 if { (ac_try="$ac_link"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest$ac_exeext &&
11217 $as_test_x conftest$ac_exeext; then
11218 eval "$as_ac_var=yes"
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 eval "$as_ac_var=no"
11226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11227 conftest$ac_exeext conftest.$ac_ext
11229 ac_res=`eval echo '${'$as_ac_var'}'`
11230 { echo "$as_me:$LINENO: result: $ac_res" >&5
11231 echo "${ECHO_T}$ac_res" >&6; }
11232 if test `eval echo '${'$as_ac_var'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11235 _ACEOF
11236 HAVE_GTK_MULTIDISPLAY=yes
11238 done
11240 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_GTK_MULTIDISPLAY 1
11244 _ACEOF
11247 HAVE_GTK_FILE_SELECTION=no
11249 for ac_func in gtk_file_selection_new
11251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11265 #define $ac_func innocuous_$ac_func
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below.
11269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270 <limits.h> exists even on freestanding compilers. */
11272 #ifdef __STDC__
11273 # include <limits.h>
11274 #else
11275 # include <assert.h>
11276 #endif
11278 #undef $ac_func
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char $ac_func ();
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined __stub_$ac_func || defined __stub___$ac_func
11291 choke me
11292 #endif
11295 main ()
11297 return $ac_func ();
11299 return 0;
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 eval "$as_ac_var=yes"
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 eval "$as_ac_var=no"
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11331 ac_res=`eval echo '${'$as_ac_var'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 if test `eval echo '${'$as_ac_var'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 _ACEOF
11338 HAVE_GTK_FILE_SELECTION=yes
11340 done
11343 HAVE_GTK_FILE_CHOOSER=no
11345 for ac_func in gtk_file_chooser_dialog_new
11347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11361 #define $ac_func innocuous_$ac_func
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func (); below.
11365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11366 <limits.h> exists even on freestanding compilers. */
11368 #ifdef __STDC__
11369 # include <limits.h>
11370 #else
11371 # include <assert.h>
11372 #endif
11374 #undef $ac_func
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char $ac_func ();
11383 /* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386 #if defined __stub_$ac_func || defined __stub___$ac_func
11387 choke me
11388 #endif
11391 main ()
11393 return $ac_func ();
11395 return 0;
11397 _ACEOF
11398 rm -f conftest.$ac_objext conftest$ac_exeext
11399 if { (ac_try="$ac_link"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_link") 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest$ac_exeext &&
11415 $as_test_x conftest$ac_exeext; then
11416 eval "$as_ac_var=yes"
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 eval "$as_ac_var=no"
11424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11425 conftest$ac_exeext conftest.$ac_ext
11427 ac_res=`eval echo '${'$as_ac_var'}'`
11428 { echo "$as_me:$LINENO: result: $ac_res" >&5
11429 echo "${ECHO_T}$ac_res" >&6; }
11430 if test `eval echo '${'$as_ac_var'}'` = yes; then
11431 cat >>confdefs.h <<_ACEOF
11432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11433 _ACEOF
11434 HAVE_GTK_FILE_CHOOSER=yes
11436 done
11439 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11440 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11442 cat >>confdefs.h <<\_ACEOF
11443 #define HAVE_GTK_FILE_BOTH 1
11444 _ACEOF
11448 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11449 HAVE_GTK_AND_PTHREAD=no
11451 for ac_header in pthread.h
11453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_res=`eval echo '${'$as_ac_Header'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 else
11464 # Is the header compilable?
11465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header>
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 ac_header_compiler=yes
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_compiler=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null && {
11529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11531 }; then
11532 ac_header_preproc=yes
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_preproc=no
11540 rm -f conftest.err conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 echo "${ECHO_T}$ac_header_preproc" >&6; }
11544 # So? What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 yes:no: )
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551 ac_header_preproc=yes
11553 no:yes:* )
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11568 esac
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 eval "$as_ac_Header=\$ac_header_preproc"
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577 { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11584 _ACEOF
11588 done
11590 if test "$ac_cv_header_pthread_h"; then
11591 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11592 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11593 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lpthread $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char pthread_self ();
11613 main ()
11615 return pthread_self ();
11617 return 0;
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest$ac_exeext &&
11637 $as_test_x conftest$ac_exeext; then
11638 ac_cv_lib_pthread_pthread_self=yes
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 ac_cv_lib_pthread_pthread_self=no
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11651 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11652 if test $ac_cv_lib_pthread_pthread_self = yes; then
11653 HAVE_GTK_AND_PTHREAD=yes
11657 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11658 GTK_LIBS="$GTK_LIBS -lpthread"
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_GTK_AND_PTHREAD 1
11662 _ACEOF
11668 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11669 if test x"${HAVE_X11R5}" = xyes; then
11670 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11671 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11672 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11682 #include <X11/Intrinsic.h>
11683 #include <X11/Xaw/Simple.h>
11685 main ()
11689 return 0;
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11710 emacs_cv_x11_version_5_with_xaw=yes
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 emacs_cv_x11_version_5_with_xaw=no
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11722 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11723 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11724 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11725 USE_X_TOOLKIT=LUCID
11726 else
11727 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11728 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11729 USE_X_TOOLKIT=none
11731 else
11732 USE_X_TOOLKIT=none
11736 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11738 if test "${USE_X_TOOLKIT}" != "none"; then
11739 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11740 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11741 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 #include <X11/Intrinsic.h>
11752 main ()
11754 #if XtSpecificationRelease < 6
11755 fail;
11756 #endif
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest$ac_exeext &&
11779 $as_test_x conftest$ac_exeext; then
11780 emacs_cv_x11_toolkit_version_6=yes
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 emacs_cv_x11_toolkit_version_6=no
11788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11789 conftest$ac_exeext conftest.$ac_ext
11792 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11793 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11794 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11795 echo "${ECHO_T}6 or newer" >&6; }
11797 cat >>confdefs.h <<\_ACEOF
11798 #define HAVE_X11XTR6 1
11799 _ACEOF
11801 else
11802 { echo "$as_me:$LINENO: result: before 6" >&5
11803 echo "${ECHO_T}before 6" >&6; }
11806 OLDLIBS="$LIBS"
11807 if test x$HAVE_X11XTR6 = xyes; then
11808 LIBS="-lXt -lSM -lICE $LIBS"
11809 else
11810 LIBS="-lXt $LIBS"
11813 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11814 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818 ac_check_lib_save_LIBS=$LIBS
11819 LIBS="-lXmu $LIBS"
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 char XmuConvertStandardSelection ();
11835 main ()
11837 return XmuConvertStandardSelection ();
11839 return 0;
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest$ac_exeext &&
11859 $as_test_x conftest$ac_exeext; then
11860 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11873 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11874 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBXMU 1
11877 _ACEOF
11879 LIBS="-lXmu $LIBS"
11883 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11886 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11887 if test "${HAVE_X11}" = "yes"; then
11888 if test "${USE_X_TOOLKIT}" != "none"; then
11890 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11891 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11892 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-lXext $LIBS"
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char XShapeQueryExtension ();
11912 main ()
11914 return XShapeQueryExtension ();
11916 return 0;
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest$ac_exeext &&
11936 $as_test_x conftest$ac_exeext; then
11937 ac_cv_lib_Xext_XShapeQueryExtension=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 ac_cv_lib_Xext_XShapeQueryExtension=no
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11949 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11950 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11951 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define HAVE_LIBXEXT 1
11954 _ACEOF
11956 LIBS="-lXext $LIBS"
11963 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11964 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11965 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11966 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <Xm/Xm.h>
11977 main ()
11979 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11980 int x = 5;
11981 #else
11982 Motif version prior to 2.1.
11983 #endif
11985 return 0;
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (ac_try="$ac_compile"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest.$ac_objext; then
12005 emacs_cv_motif_version_2_1=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 emacs_cv_motif_version_2_1=no
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12016 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12017 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12018 if test $emacs_cv_motif_version_2_1 = yes; then
12019 HAVE_LIBXP=no
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_MOTIF_2_1 1
12023 _ACEOF
12025 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12026 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12027 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-lXp $LIBS"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char XpCreateContext ();
12047 main ()
12049 return XpCreateContext ();
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest$ac_exeext &&
12071 $as_test_x conftest$ac_exeext; then
12072 ac_cv_lib_Xp_XpCreateContext=yes
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ac_cv_lib_Xp_XpCreateContext=no
12080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12084 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12085 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12086 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12087 HAVE_LIBXP=yes
12090 if test ${HAVE_LIBXP} = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_LIBXP 1
12094 _ACEOF
12097 else
12098 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12099 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12100 if test "${emacs_cv_lesstif+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 # We put this in CFLAGS temporarily to precede other -I options
12104 # that might be in CFLAGS temporarily.
12105 # We put this in CPPFLAGS where it precedes the other -I options.
12106 OLD_CPPFLAGS=$CPPFLAGS
12107 OLD_CFLAGS=$CFLAGS
12108 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12109 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12118 main ()
12120 int x = 5;
12122 return 0;
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (ac_try="$ac_compile"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_compile") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
12142 emacs_cv_lesstif=yes
12143 else
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 emacs_cv_lesstif=no
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12153 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12154 if test $emacs_cv_lesstif = yes; then
12155 # Make sure this -I option remains in CPPFLAGS after it is set
12156 # back to REAL_CPPFLAGS.
12157 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12158 # have those other -I options anyway. Ultimately, having this
12159 # directory ultimately in CPPFLAGS will be enough.
12160 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12161 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12162 else
12163 CFLAGS=$OLD_CFLAGS
12164 CPPFLAGS=$OLD_CPPFLAGS
12169 ### Is -lXaw3d available?
12170 HAVE_XAW3D=no
12171 if test "${HAVE_X11}" = "yes"; then
12172 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12173 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12174 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12175 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h. */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 #include <X11/Xaw3d/Scrollbar.h>
12185 _ACEOF
12186 if { (ac_try="$ac_cpp conftest.$ac_ext"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev/null && {
12199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 }; then
12202 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12210 rm -f conftest.err conftest.$ac_ext
12212 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12213 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12214 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12215 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12216 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12217 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-lXaw3d $LIBS"
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 char XawScrollbarSetThumb ();
12237 main ()
12239 return XawScrollbarSetThumb ();
12241 return 0;
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest$ac_exeext &&
12261 $as_test_x conftest$ac_exeext; then
12262 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12263 else
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12275 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12276 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12277 HAVE_XAW3D=yes
12283 if test "${HAVE_XAW3D}" = "yes"; then
12285 cat >>confdefs.h <<\_ACEOF
12286 #define HAVE_XAW3D 1
12287 _ACEOF
12295 USE_TOOLKIT_SCROLL_BARS=no
12296 if test "${with_toolkit_scroll_bars}" != "no"; then
12297 if test "${USE_X_TOOLKIT}" != "none"; then
12298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12299 cat >>confdefs.h <<\_ACEOF
12300 #define USE_TOOLKIT_SCROLL_BARS 1
12301 _ACEOF
12303 HAVE_XAW3D=no
12304 USE_TOOLKIT_SCROLL_BARS=yes
12305 elif test "${HAVE_XAW3D}" = "yes"; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define USE_TOOLKIT_SCROLL_BARS 1
12308 _ACEOF
12310 USE_TOOLKIT_SCROLL_BARS=yes
12312 elif test "${HAVE_GTK}" = "yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define USE_TOOLKIT_SCROLL_BARS 1
12315 _ACEOF
12317 USE_TOOLKIT_SCROLL_BARS=yes
12318 elif test "${HAVE_CARBON}" = "yes"; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define USE_TOOLKIT_SCROLL_BARS 1
12321 _ACEOF
12323 USE_TOOLKIT_SCROLL_BARS=yes
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 #include <X11/Xlib.h>
12335 #include <X11/Xresource.h>
12337 main ()
12339 XIMProc callback;
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 HAVE_XIM=yes
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_XIM 1
12365 _ACEOF
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 HAVE_XIM=no
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 if test "${with_xim}" != "no"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_XIM 1
12381 _ACEOF
12386 if test "${HAVE_XIM}" != "no"; then
12387 late_CFLAGS=$CFLAGS
12388 if test "$GCC" = yes; then
12389 CFLAGS="$CFLAGS --pedantic-errors"
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 #include <X11/Xlib.h>
12399 #include <X11/Xresource.h>
12401 main ()
12403 Display *display;
12404 XrmDatabase db;
12405 char *res_name;
12406 char *res_class;
12407 XIMProc callback;
12408 XPointer *client_data;
12409 #ifndef __GNUC__
12410 /* If we're not using GCC, it's probably not XFree86, and this is
12411 probably right, but we can't use something like --pedantic-errors. */
12412 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12413 char*, XIMProc, XPointer*);
12414 #endif
12415 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12416 client_data);
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12438 emacs_cv_arg6_star=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 if test "$emacs_cv_arg6_star" = yes; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12451 _ACEOF
12453 else
12454 cat >>confdefs.h <<\_ACEOF
12455 #define XRegisterIMInstantiateCallback_arg6 XPointer
12456 _ACEOF
12459 CFLAGS=$late_CFLAGS
12462 ### Use -lXpm if available, unless `--with-xpm=no'.
12463 HAVE_XPM=no
12464 if test "${HAVE_X11}" = "yes"; then
12465 if test "${with_xpm}" != "no"; then
12466 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12467 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12468 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12469 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12473 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12474 else
12475 # Is the header compilable?
12476 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12477 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
12485 #include <X11/xpm.h>
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 ac_header_compiler=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_header_compiler=no
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514 echo "${ECHO_T}$ac_header_compiler" >&6; }
12516 # Is the header present?
12517 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12518 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <X11/xpm.h>
12526 _ACEOF
12527 if { (ac_try="$ac_cpp conftest.$ac_ext"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } >/dev/null && {
12540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 }; then
12543 ac_header_preproc=yes
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_header_preproc=no
12551 rm -f conftest.err conftest.$ac_ext
12552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6; }
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12557 yes:no: )
12558 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12561 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12562 ac_header_preproc=yes
12564 no:yes:* )
12565 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12574 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12579 esac
12580 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12581 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12582 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 ac_cv_header_X11_xpm_h=$ac_header_preproc
12587 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12591 if test $ac_cv_header_X11_xpm_h = yes; then
12592 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12593 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12594 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lXpm -lX11 $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char XpmReadFileToPixmap ();
12614 main ()
12616 return XpmReadFileToPixmap ();
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest$ac_exeext &&
12638 $as_test_x conftest$ac_exeext; then
12639 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12640 else
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12652 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12653 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12654 HAVE_XPM=yes
12660 if test "${HAVE_XPM}" = "yes"; then
12661 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12662 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h. */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 #include "X11/xpm.h"
12670 #ifndef XpmReturnAllocPixels
12671 no_return_alloc_pixels
12672 #endif
12674 _ACEOF
12675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12676 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12677 HAVE_XPM=no
12678 else
12679 HAVE_XPM=yes
12681 rm -f conftest*
12684 if test "${HAVE_XPM}" = "yes"; then
12685 { echo "$as_me:$LINENO: result: yes" >&5
12686 echo "${ECHO_T}yes" >&6; }
12687 else
12688 { echo "$as_me:$LINENO: result: no" >&5
12689 echo "${ECHO_T}no" >&6; }
12694 if test "${HAVE_XPM}" = "yes"; then
12696 cat >>confdefs.h <<\_ACEOF
12697 #define HAVE_XPM 1
12698 _ACEOF
12703 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12704 HAVE_JPEG=no
12705 if test "${HAVE_X11}" = "yes"; then
12706 if test "${with_jpeg}" != "no"; then
12707 if test "${ac_cv_header_jerror_h+set}" = set; then
12708 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12709 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12710 if test "${ac_cv_header_jerror_h+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12714 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12715 else
12716 # Is the header compilable?
12717 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12718 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 #include <jerror.h>
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (ac_try="$ac_compile"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_compile") 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest.$ac_objext; then
12745 ac_header_compiler=yes
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_header_compiler=no
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755 echo "${ECHO_T}$ac_header_compiler" >&6; }
12757 # Is the header present?
12758 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12759 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <jerror.h>
12767 _ACEOF
12768 if { (ac_try="$ac_cpp conftest.$ac_ext"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev/null && {
12781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 }; then
12784 ac_header_preproc=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_header_preproc=no
12792 rm -f conftest.err conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12794 echo "${ECHO_T}$ac_header_preproc" >&6; }
12796 # So? What about this header?
12797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12798 yes:no: )
12799 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12800 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12802 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12803 ac_header_preproc=yes
12805 no:yes:* )
12806 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12807 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12809 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12811 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12813 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12815 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12817 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12820 esac
12821 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12822 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12823 if test "${ac_cv_header_jerror_h+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826 ac_cv_header_jerror_h=$ac_header_preproc
12828 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12832 if test $ac_cv_header_jerror_h = yes; then
12833 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12834 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12835 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 ac_check_lib_save_LIBS=$LIBS
12839 LIBS="-ljpeg $LIBS"
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h. */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12847 /* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 char jpeg_destroy_compress ();
12855 main ()
12857 return jpeg_destroy_compress ();
12859 return 0;
12861 _ACEOF
12862 rm -f conftest.$ac_objext conftest$ac_exeext
12863 if { (ac_try="$ac_link"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest$ac_exeext &&
12879 $as_test_x conftest$ac_exeext; then
12880 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12893 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12894 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12895 HAVE_JPEG=yes
12904 if test "${HAVE_JPEG}" = "yes"; then
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_JPEG 1
12907 _ACEOF
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #include <jpeglib.h>
12916 version=JPEG_LIB_VERSION
12918 _ACEOF
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_JPEG 1
12923 _ACEOF
12925 else
12926 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12927 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12928 HAVE_JPEG=no
12930 rm -f conftest*
12935 ### Use -lpng if available, unless `--with-png=no'.
12936 HAVE_PNG=no
12937 if test "${HAVE_X11}" = "yes"; then
12938 if test "${with_png}" != "no"; then
12939 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12940 # in /usr/include/libpng.
12943 for ac_header in png.h libpng/png.h
12945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_res=`eval echo '${'$as_ac_Header'}'`
12953 { echo "$as_me:$LINENO: result: $ac_res" >&5
12954 echo "${ECHO_T}$ac_res" >&6; }
12955 else
12956 # Is the header compilable?
12957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <$ac_header>
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (ac_try="$ac_compile"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_compile") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.$ac_objext; then
12985 ac_header_compiler=yes
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_header_compiler=no
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997 # Is the header present?
12998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <$ac_header>
13007 _ACEOF
13008 if { (ac_try="$ac_cpp conftest.$ac_ext"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null && {
13021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 }; then
13024 ac_header_preproc=yes
13025 else
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_header_preproc=no
13032 rm -f conftest.err conftest.$ac_ext
13033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13034 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036 # So? What about this header?
13037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13038 yes:no: )
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13043 ac_header_preproc=yes
13045 no:yes:* )
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13060 esac
13061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066 eval "$as_ac_Header=\$ac_header_preproc"
13068 ac_res=`eval echo '${'$as_ac_Header'}'`
13069 { echo "$as_me:$LINENO: result: $ac_res" >&5
13070 echo "${ECHO_T}$ac_res" >&6; }
13073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13074 cat >>confdefs.h <<_ACEOF
13075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13076 _ACEOF
13080 done
13082 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13083 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13084 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13085 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 ac_check_lib_save_LIBS=$LIBS
13089 LIBS="-lpng -lz -lm $LIBS"
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 char png_get_channels ();
13105 main ()
13107 return png_get_channels ();
13109 return 0;
13111 _ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (ac_try="$ac_link"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117 esac
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_link") 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest$ac_exeext &&
13129 $as_test_x conftest$ac_exeext; then
13130 ac_cv_lib_png_png_get_channels=yes
13131 else
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_lib_png_png_get_channels=no
13138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13143 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13144 if test $ac_cv_lib_png_png_get_channels = yes; then
13145 HAVE_PNG=yes
13151 if test "${HAVE_PNG}" = "yes"; then
13153 cat >>confdefs.h <<\_ACEOF
13154 #define HAVE_PNG 1
13155 _ACEOF
13160 ### Use -ltiff if available, unless `--with-tiff=no'.
13161 HAVE_TIFF=no
13162 if test "${HAVE_X11}" = "yes"; then
13163 if test "${with_tiff}" != "no"; then
13164 if test "${ac_cv_header_tiffio_h+set}" = set; then
13165 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13166 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13167 if test "${ac_cv_header_tiffio_h+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13171 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13172 else
13173 # Is the header compilable?
13174 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13175 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 $ac_includes_default
13183 #include <tiffio.h>
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compile") 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest.$ac_objext; then
13202 ac_header_compiler=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_header_compiler=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13212 echo "${ECHO_T}$ac_header_compiler" >&6; }
13214 # Is the header present?
13215 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13216 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13217 cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h. */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <tiffio.h>
13224 _ACEOF
13225 if { (ac_try="$ac_cpp conftest.$ac_ext"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } >/dev/null && {
13238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 }; then
13241 ac_header_preproc=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_header_preproc=no
13249 rm -f conftest.err conftest.$ac_ext
13250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13251 echo "${ECHO_T}$ac_header_preproc" >&6; }
13253 # So? What about this header?
13254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13255 yes:no: )
13256 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13257 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13259 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13260 ac_header_preproc=yes
13262 no:yes:* )
13263 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13268 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13270 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13272 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13274 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13277 esac
13278 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13279 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13280 if test "${ac_cv_header_tiffio_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 ac_cv_header_tiffio_h=$ac_header_preproc
13285 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13286 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13289 if test $ac_cv_header_tiffio_h = yes; then
13290 tifflibs="-lz -lm"
13291 # At least one tiff package requires the jpeg library.
13292 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13293 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13294 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13295 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298 ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-ltiff $tifflibs $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13310 #ifdef __cplusplus
13311 extern "C"
13312 #endif
13313 char TIFFGetVersion ();
13315 main ()
13317 return TIFFGetVersion ();
13319 return 0;
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_link") 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest$ac_exeext &&
13339 $as_test_x conftest$ac_exeext; then
13340 ac_cv_lib_tiff_TIFFGetVersion=yes
13341 else
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_lib_tiff_TIFFGetVersion=no
13348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349 conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13352 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13353 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13354 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13355 HAVE_TIFF=yes
13363 if test "${HAVE_TIFF}" = "yes"; then
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_TIFF 1
13367 _ACEOF
13372 ### Use -lgif if available, unless `--with-gif=no'.
13373 HAVE_GIF=no
13374 if test "${HAVE_X11}" = "yes"; then
13375 if test "${with_gif}" != "no"; then
13376 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13377 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13378 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13379 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13383 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13384 else
13385 # Is the header compilable?
13386 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13387 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13388 cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h. */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 $ac_includes_default
13395 #include <gif_lib.h>
13396 _ACEOF
13397 rm -f conftest.$ac_objext
13398 if { (ac_try="$ac_compile"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_compile") 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && {
13411 test -z "$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 } && test -s conftest.$ac_objext; then
13414 ac_header_compiler=yes
13415 else
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_header_compiler=no
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13424 echo "${ECHO_T}$ac_header_compiler" >&6; }
13426 # Is the header present?
13427 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13428 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h. */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 #include <gif_lib.h>
13436 _ACEOF
13437 if { (ac_try="$ac_cpp conftest.$ac_ext"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } >/dev/null && {
13450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 }; then
13453 ac_header_preproc=yes
13454 else
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_preproc=no
13461 rm -f conftest.err conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13463 echo "${ECHO_T}$ac_header_preproc" >&6; }
13465 # So? What about this header?
13466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13467 yes:no: )
13468 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13469 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13471 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13472 ac_header_preproc=yes
13474 no:yes:* )
13475 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13476 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13478 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13480 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13482 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13486 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13489 esac
13490 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13491 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13492 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 ac_cv_header_gif_lib_h=$ac_header_preproc
13497 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13498 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13501 if test $ac_cv_header_gif_lib_h = yes; then
13502 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13503 # Earlier versions can crash Emacs.
13504 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13505 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13506 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 ac_check_lib_save_LIBS=$LIBS
13510 LIBS="-lungif $LIBS"
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char EGifPutExtensionLast ();
13526 main ()
13528 return EGifPutExtensionLast ();
13530 return 0;
13532 _ACEOF
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (ac_try="$ac_link"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538 esac
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_link") 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && {
13547 test -z "$ac_c_werror_flag" ||
13548 test ! -s conftest.err
13549 } && test -s conftest$ac_exeext &&
13550 $as_test_x conftest$ac_exeext; then
13551 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13552 else
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 ac_cv_lib_ungif_EGifPutExtensionLast=no
13559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS=$ac_check_lib_save_LIBS
13563 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13564 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13565 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13566 HAVE_GIF=yes
13574 if test "${HAVE_GIF}" = "yes"; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_GIF 1
13578 _ACEOF
13583 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13584 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13585 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13586 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13591 else
13592 # Is the header compilable?
13593 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13594 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13595 cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13602 #include <malloc/malloc.h>
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (ac_try="$ac_compile"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
13621 ac_header_compiler=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_header_compiler=no
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6; }
13633 # Is the header present?
13634 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13635 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h. */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include <malloc/malloc.h>
13643 _ACEOF
13644 if { (ac_try="$ac_cpp conftest.$ac_ext"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null && {
13657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 }; then
13660 ac_header_preproc=yes
13661 else
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_header_preproc=no
13668 rm -f conftest.err conftest.$ac_ext
13669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670 echo "${ECHO_T}$ac_header_preproc" >&6; }
13672 # So? What about this header?
13673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13674 yes:no: )
13675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13676 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13678 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13679 ac_header_preproc=yes
13681 no:yes:* )
13682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13683 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13689 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13691 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13693 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13696 esac
13697 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13698 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13699 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13708 if test $ac_cv_header_malloc_malloc_h = yes; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_MALLOC_MALLOC_H 1
13712 _ACEOF
13718 ### Use Mac OS X Carbon API to implement GUI.
13719 if test "${HAVE_CARBON}" = "yes"; then
13721 cat >>confdefs.h <<\_ACEOF
13722 #define HAVE_CARBON 1
13723 _ACEOF
13725 ## Specify the install directory
13726 carbon_appdir=
13727 if test "${carbon_appdir_x}" != ""; then
13728 case ${carbon_appdir_x} in
13729 y | ye | yes) carbon_appdir=/Applications ;;
13730 * ) carbon_appdir=${carbon_appdir_x} ;;
13731 esac
13733 # We also have mouse menus.
13734 HAVE_MENUS=yes
13737 ### Use session management (-lSM -lICE) if available
13738 HAVE_X_SM=no
13739 if test "${HAVE_X11}" = "yes"; then
13740 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13742 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13748 else
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13751 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13759 #include <X11/SM/SMlib.h>
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (ac_try="$ac_compile"
13763 case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 ac_header_compiler=yes
13779 else
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_header_compiler=no
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13792 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <X11/SM/SMlib.h>
13800 _ACEOF
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null && {
13814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 }; then
13817 ac_header_preproc=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_header_preproc=no
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 yes:no: )
13832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
13838 no:yes:* )
13839 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13853 esac
13854 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13855 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13865 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13866 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13867 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13868 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871 ac_check_lib_save_LIBS=$LIBS
13872 LIBS="-lSM -lICE $LIBS"
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char SmcOpenConnection ();
13888 main ()
13890 return SmcOpenConnection ();
13892 return 0;
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest$ac_exeext &&
13912 $as_test_x conftest$ac_exeext; then
13913 ac_cv_lib_SM_SmcOpenConnection=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_cv_lib_SM_SmcOpenConnection=no
13921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13925 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13926 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13927 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13928 HAVE_X_SM=yes
13935 if test "${HAVE_X_SM}" = "yes"; then
13937 cat >>confdefs.h <<\_ACEOF
13938 #define HAVE_X_SM 1
13939 _ACEOF
13941 case "$LIBS" in
13942 *-lSM*) ;;
13943 *) LIBS="-lSM -lICE $LIBS" ;;
13944 esac
13948 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13949 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13950 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13951 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <netdb.h>
13962 main ()
13964 return h_errno;
13966 return 0;
13968 _ACEOF
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (ac_try="$ac_link"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_link") 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest$ac_exeext &&
13986 $as_test_x conftest$ac_exeext; then
13987 emacs_cv_netdb_declares_h_errno=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 emacs_cv_netdb_declares_h_errno=no
13995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13996 conftest$ac_exeext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13999 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14000 if test $emacs_cv_netdb_declares_h_errno = yes; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_H_ERRNO 1
14004 _ACEOF
14008 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14009 # for constant arguments. Useless!
14010 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14011 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14012 if test "${ac_cv_working_alloca_h+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <alloca.h>
14023 main ()
14025 char *p = (char *) alloca (2 * sizeof (int));
14026 if (p) return 0;
14028 return 0;
14030 _ACEOF
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (ac_try="$ac_link"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_link") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest$ac_exeext &&
14048 $as_test_x conftest$ac_exeext; then
14049 ac_cv_working_alloca_h=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_working_alloca_h=no
14057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14058 conftest$ac_exeext conftest.$ac_ext
14060 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14061 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14062 if test $ac_cv_working_alloca_h = yes; then
14064 cat >>confdefs.h <<\_ACEOF
14065 #define HAVE_ALLOCA_H 1
14066 _ACEOF
14070 { echo "$as_me:$LINENO: checking for alloca" >&5
14071 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14072 if test "${ac_cv_func_alloca_works+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #ifdef __GNUC__
14082 # define alloca __builtin_alloca
14083 #else
14084 # ifdef _MSC_VER
14085 # include <malloc.h>
14086 # define alloca _alloca
14087 # else
14088 # ifdef HAVE_ALLOCA_H
14089 # include <alloca.h>
14090 # else
14091 # ifdef _AIX
14092 #pragma alloca
14093 # else
14094 # ifndef alloca /* predefined by HP cc +Olibcalls */
14095 char *alloca ();
14096 # endif
14097 # endif
14098 # endif
14099 # endif
14100 #endif
14103 main ()
14105 char *p = (char *) alloca (1);
14106 if (p) return 0;
14108 return 0;
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (ac_try="$ac_link"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_link") 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest$ac_exeext &&
14128 $as_test_x conftest$ac_exeext; then
14129 ac_cv_func_alloca_works=yes
14130 else
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_cv_func_alloca_works=no
14137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14138 conftest$ac_exeext conftest.$ac_ext
14140 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14141 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14143 if test $ac_cv_func_alloca_works = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_ALLOCA 1
14147 _ACEOF
14149 else
14150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14151 # that cause trouble. Some versions do not even contain alloca or
14152 # contain a buggy version. If you still want to use their alloca,
14153 # use ar to extract alloca.o from them instead of compiling alloca.c.
14155 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14157 cat >>confdefs.h <<\_ACEOF
14158 #define C_ALLOCA 1
14159 _ACEOF
14162 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14163 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14164 if test "${ac_cv_os_cray+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #if defined CRAY && ! defined CRAY2
14174 webecray
14175 #else
14176 wenotbecray
14177 #endif
14179 _ACEOF
14180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14181 $EGREP "webecray" >/dev/null 2>&1; then
14182 ac_cv_os_cray=yes
14183 else
14184 ac_cv_os_cray=no
14186 rm -f conftest*
14189 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14190 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14191 if test $ac_cv_os_cray = yes; then
14192 for ac_func in _getb67 GETB67 getb67; do
14193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h. */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14207 #define $ac_func innocuous_$ac_func
14209 /* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char $ac_func (); below.
14211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14212 <limits.h> exists even on freestanding compilers. */
14214 #ifdef __STDC__
14215 # include <limits.h>
14216 #else
14217 # include <assert.h>
14218 #endif
14220 #undef $ac_func
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char $ac_func ();
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined __stub_$ac_func || defined __stub___$ac_func
14233 choke me
14234 #endif
14237 main ()
14239 return $ac_func ();
14241 return 0;
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 eval "$as_ac_var=yes"
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 eval "$as_ac_var=no"
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14273 ac_res=`eval echo '${'$as_ac_var'}'`
14274 { echo "$as_me:$LINENO: result: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14276 if test `eval echo '${'$as_ac_var'}'` = yes; then
14278 cat >>confdefs.h <<_ACEOF
14279 #define CRAY_STACKSEG_END $ac_func
14280 _ACEOF
14282 break
14285 done
14288 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14289 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14290 if test "${ac_cv_c_stack_direction+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 if test "$cross_compiling" = yes; then
14294 ac_cv_c_stack_direction=0
14295 else
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14304 find_stack_direction ()
14306 static char *addr = 0;
14307 auto char dummy;
14308 if (addr == 0)
14310 addr = &dummy;
14311 return find_stack_direction ();
14313 else
14314 return (&dummy > addr) ? 1 : -1;
14318 main ()
14320 return find_stack_direction () < 0;
14322 _ACEOF
14323 rm -f conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_c_stack_direction=1
14344 else
14345 echo "$as_me: program exited with status $ac_status" >&5
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 ( exit $ac_status )
14350 ac_cv_c_stack_direction=-1
14352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14357 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14358 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14360 cat >>confdefs.h <<_ACEOF
14361 #define STACK_DIRECTION $ac_cv_c_stack_direction
14362 _ACEOF
14368 # fmod, logb, and frexp are found in -lm on most systems.
14369 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14371 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14372 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14373 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 ac_check_lib_save_LIBS=$LIBS
14377 LIBS="-lm $LIBS"
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char sqrt ();
14393 main ()
14395 return sqrt ();
14397 return 0;
14399 _ACEOF
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest$ac_exeext &&
14417 $as_test_x conftest$ac_exeext; then
14418 ac_cv_lib_m_sqrt=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_lib_m_sqrt=no
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14430 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14431 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14432 if test $ac_cv_lib_m_sqrt = yes; then
14433 cat >>confdefs.h <<_ACEOF
14434 #define HAVE_LIBM 1
14435 _ACEOF
14437 LIBS="-lm $LIBS"
14442 # Check for mail-locking functions in a "mail" library. Probably this should
14443 # have the same check as for liblockfile below.
14445 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14446 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14447 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 ac_check_lib_save_LIBS=$LIBS
14451 LIBS="-lmail $LIBS"
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h. */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14459 /* Override any GCC internal prototype to avoid an error.
14460 Use char because int might match the return type of a GCC
14461 builtin and then its argument prototype would still apply. */
14462 #ifdef __cplusplus
14463 extern "C"
14464 #endif
14465 char maillock ();
14467 main ()
14469 return maillock ();
14471 return 0;
14473 _ACEOF
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (ac_try="$ac_link"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_link") 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest$ac_exeext &&
14491 $as_test_x conftest$ac_exeext; then
14492 ac_cv_lib_mail_maillock=yes
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_cv_lib_mail_maillock=no
14500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14504 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14505 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14506 if test $ac_cv_lib_mail_maillock = yes; then
14507 cat >>confdefs.h <<_ACEOF
14508 #define HAVE_LIBMAIL 1
14509 _ACEOF
14511 LIBS="-lmail $LIBS"
14516 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14517 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14518 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 ac_check_lib_save_LIBS=$LIBS
14522 LIBS="-llockfile $LIBS"
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14530 /* Override any GCC internal prototype to avoid an error.
14531 Use char because int might match the return type of a GCC
14532 builtin and then its argument prototype would still apply. */
14533 #ifdef __cplusplus
14534 extern "C"
14535 #endif
14536 char maillock ();
14538 main ()
14540 return maillock ();
14542 return 0;
14544 _ACEOF
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (ac_try="$ac_link"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_link") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext &&
14562 $as_test_x conftest$ac_exeext; then
14563 ac_cv_lib_lockfile_maillock=yes
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_cv_lib_lockfile_maillock=no
14571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14576 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14577 if test $ac_cv_lib_lockfile_maillock = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_LIBLOCKFILE 1
14580 _ACEOF
14582 LIBS="-llockfile $LIBS"
14586 # If we have the shared liblockfile, assume we must use it for mail
14587 # locking (e.g. Debian). If we couldn't link against liblockfile
14588 # (no liblockfile.a installed), ensure that we don't need to.
14589 if test "$ac_cv_lib_lockfile_maillock" = no; then
14590 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14591 set dummy liblockfile.so; ac_word=$2
14592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14594 if test "${ac_cv_prog_liblockfile+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597 if test -n "$liblockfile"; then
14598 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14599 else
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14602 for as_dir in $as_dummy
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14608 ac_cv_prog_liblockfile="yes"
14609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14610 break 2
14612 done
14613 done
14614 IFS=$as_save_IFS
14616 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14619 liblockfile=$ac_cv_prog_liblockfile
14620 if test -n "$liblockfile"; then
14621 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14622 echo "${ECHO_T}$liblockfile" >&6; }
14623 else
14624 { echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6; }
14629 if test $ac_cv_prog_liblockfile = yes; then
14630 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14631 This probably means that movemail could lose mail.
14632 There may be a \`development' package to install containing liblockfile." >&5
14633 echo "$as_me: error: Shared liblockfile found but can't link against it.
14634 This probably means that movemail could lose mail.
14635 There may be a \`development' package to install containing liblockfile." >&2;}
14636 { (exit 1); exit 1; }; }
14637 else :
14641 for ac_func in touchlock
14643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define $ac_func innocuous_$ac_func
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14664 #ifdef __STDC__
14665 # include <limits.h>
14666 #else
14667 # include <assert.h>
14668 #endif
14670 #undef $ac_func
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 char $ac_func ();
14679 /* The GNU C library defines this for functions which it implements
14680 to always fail with ENOSYS. Some functions are actually named
14681 something starting with __ and the normal name is an alias. */
14682 #if defined __stub_$ac_func || defined __stub___$ac_func
14683 choke me
14684 #endif
14687 main ()
14689 return $ac_func ();
14691 return 0;
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 eval "$as_ac_var=yes"
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 eval "$as_ac_var=no"
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721 conftest$ac_exeext conftest.$ac_ext
14723 ac_res=`eval echo '${'$as_ac_var'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726 if test `eval echo '${'$as_ac_var'}'` = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14729 _ACEOF
14732 done
14735 for ac_header in maillock.h
14737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14747 else
14748 # Is the header compilable?
14749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h. */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 $ac_includes_default
14758 #include <$ac_header>
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_header_compiler=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_header_compiler=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787 echo "${ECHO_T}$ac_header_compiler" >&6; }
14789 # Is the header present?
14790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <$ac_header>
14799 _ACEOF
14800 if { (ac_try="$ac_cpp conftest.$ac_ext"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } >/dev/null && {
14813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14815 }; then
14816 ac_header_preproc=yes
14817 else
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_header_preproc=no
14824 rm -f conftest.err conftest.$ac_ext
14825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14826 echo "${ECHO_T}$ac_header_preproc" >&6; }
14828 # So? What about this header?
14829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14830 yes:no: )
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14835 ac_header_preproc=yes
14837 no:yes:* )
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14852 esac
14853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858 eval "$as_ac_Header=\$ac_header_preproc"
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14868 _ACEOF
14872 done
14944 for ac_func in gethostname getdomainname dup2 \
14945 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14946 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14947 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14948 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14949 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14950 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14951 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14952 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14968 #define $ac_func innocuous_$ac_func
14970 /* System header to define __stub macros and hopefully few prototypes,
14971 which can conflict with char $ac_func (); below.
14972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14973 <limits.h> exists even on freestanding compilers. */
14975 #ifdef __STDC__
14976 # include <limits.h>
14977 #else
14978 # include <assert.h>
14979 #endif
14981 #undef $ac_func
14983 /* Override any GCC internal prototype to avoid an error.
14984 Use char because int might match the return type of a GCC
14985 builtin and then its argument prototype would still apply. */
14986 #ifdef __cplusplus
14987 extern "C"
14988 #endif
14989 char $ac_func ();
14990 /* The GNU C library defines this for functions which it implements
14991 to always fail with ENOSYS. Some functions are actually named
14992 something starting with __ and the normal name is an alias. */
14993 #if defined __stub_$ac_func || defined __stub___$ac_func
14994 choke me
14995 #endif
14998 main ()
15000 return $ac_func ();
15002 return 0;
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 eval "$as_ac_var=yes"
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 eval "$as_ac_var=no"
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15034 ac_res=`eval echo '${'$as_ac_var'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15043 done
15047 for ac_header in sys/un.h
15049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 ac_res=`eval echo '${'$as_ac_Header'}'`
15057 { echo "$as_me:$LINENO: result: $ac_res" >&5
15058 echo "${ECHO_T}$ac_res" >&6; }
15059 else
15060 # Is the header compilable?
15061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15063 cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h. */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 $ac_includes_default
15070 #include <$ac_header>
15071 _ACEOF
15072 rm -f conftest.$ac_objext
15073 if { (ac_try="$ac_compile"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_compile") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest.$ac_objext; then
15089 ac_header_compiler=yes
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 ac_header_compiler=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15099 echo "${ECHO_T}$ac_header_compiler" >&6; }
15101 # Is the header present?
15102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <$ac_header>
15111 _ACEOF
15112 if { (ac_try="$ac_cpp conftest.$ac_ext"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } >/dev/null && {
15125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 }; then
15128 ac_header_preproc=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_preproc=no
15136 rm -f conftest.err conftest.$ac_ext
15137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15138 echo "${ECHO_T}$ac_header_preproc" >&6; }
15140 # So? What about this header?
15141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15142 yes:no: )
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15147 ac_header_preproc=yes
15149 no:yes:* )
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15164 esac
15165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 eval "$as_ac_Header=\$ac_header_preproc"
15172 ac_res=`eval echo '${'$as_ac_Header'}'`
15173 { echo "$as_me:$LINENO: result: $ac_res" >&5
15174 echo "${ECHO_T}$ac_res" >&6; }
15177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15180 _ACEOF
15184 done
15191 for ac_header in $ac_header_list
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203 else
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.$ac_objext; then
15233 ac_header_compiler=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_compiler=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <$ac_header>
15255 _ACEOF
15256 if { (ac_try="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15271 }; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 yes:no: )
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15293 no:yes:* )
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15308 esac
15309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 eval "$as_ac_Header=\$ac_header_preproc"
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317 { echo "$as_me:$LINENO: result: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15322 cat >>confdefs.h <<_ACEOF
15323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15324 _ACEOF
15328 done
15338 for ac_func in $ac_func_list
15340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15354 #define $ac_func innocuous_$ac_func
15356 /* System header to define __stub macros and hopefully few prototypes,
15357 which can conflict with char $ac_func (); below.
15358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15359 <limits.h> exists even on freestanding compilers. */
15361 #ifdef __STDC__
15362 # include <limits.h>
15363 #else
15364 # include <assert.h>
15365 #endif
15367 #undef $ac_func
15369 /* Override any GCC internal prototype to avoid an error.
15370 Use char because int might match the return type of a GCC
15371 builtin and then its argument prototype would still apply. */
15372 #ifdef __cplusplus
15373 extern "C"
15374 #endif
15375 char $ac_func ();
15376 /* The GNU C library defines this for functions which it implements
15377 to always fail with ENOSYS. Some functions are actually named
15378 something starting with __ and the normal name is an alias. */
15379 #if defined __stub_$ac_func || defined __stub___$ac_func
15380 choke me
15381 #endif
15384 main ()
15386 return $ac_func ();
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 eval "$as_ac_var=yes"
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 eval "$as_ac_var=no"
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15420 ac_res=`eval echo '${'$as_ac_var'}'`
15421 { echo "$as_me:$LINENO: result: $ac_res" >&5
15422 echo "${ECHO_T}$ac_res" >&6; }
15423 if test `eval echo '${'$as_ac_var'}'` = yes; then
15424 cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15426 _ACEOF
15429 done
15447 { echo "$as_me:$LINENO: checking for working mktime" >&5
15448 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15449 if test "${ac_cv_func_working_mktime+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452 if test "$cross_compiling" = yes; then
15453 ac_cv_func_working_mktime=no
15454 else
15455 cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 /* Test program from Paul Eggert and Tony Leneis. */
15462 #ifdef TIME_WITH_SYS_TIME
15463 # include <sys/time.h>
15464 # include <time.h>
15465 #else
15466 # ifdef HAVE_SYS_TIME_H
15467 # include <sys/time.h>
15468 # else
15469 # include <time.h>
15470 # endif
15471 #endif
15473 #include <stdlib.h>
15475 #ifdef HAVE_UNISTD_H
15476 # include <unistd.h>
15477 #endif
15479 #ifndef HAVE_ALARM
15480 # define alarm(X) /* empty */
15481 #endif
15483 /* Work around redefinition to rpl_putenv by other config tests. */
15484 #undef putenv
15486 static time_t time_t_max;
15487 static time_t time_t_min;
15489 /* Values we'll use to set the TZ environment variable. */
15490 static char *tz_strings[] = {
15491 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15492 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15494 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15496 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15497 Based on a problem report from Andreas Jaeger. */
15498 static int
15499 spring_forward_gap ()
15501 /* glibc (up to about 1998-10-07) failed this test. */
15502 struct tm tm;
15504 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15505 instead of "TZ=America/Vancouver" in order to detect the bug even
15506 on systems that don't support the Olson extension, or don't have the
15507 full zoneinfo tables installed. */
15508 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15510 tm.tm_year = 98;
15511 tm.tm_mon = 3;
15512 tm.tm_mday = 5;
15513 tm.tm_hour = 2;
15514 tm.tm_min = 0;
15515 tm.tm_sec = 0;
15516 tm.tm_isdst = -1;
15517 return mktime (&tm) != (time_t) -1;
15520 static int
15521 mktime_test1 (now)
15522 time_t now;
15524 struct tm *lt;
15525 return ! (lt = localtime (&now)) || mktime (lt) == now;
15528 static int
15529 mktime_test (now)
15530 time_t now;
15532 return (mktime_test1 (now)
15533 && mktime_test1 ((time_t) (time_t_max - now))
15534 && mktime_test1 ((time_t) (time_t_min + now)));
15537 static int
15538 irix_6_4_bug ()
15540 /* Based on code from Ariel Faigon. */
15541 struct tm tm;
15542 tm.tm_year = 96;
15543 tm.tm_mon = 3;
15544 tm.tm_mday = 0;
15545 tm.tm_hour = 0;
15546 tm.tm_min = 0;
15547 tm.tm_sec = 0;
15548 tm.tm_isdst = -1;
15549 mktime (&tm);
15550 return tm.tm_mon == 2 && tm.tm_mday == 31;
15553 static int
15554 bigtime_test (j)
15555 int j;
15557 struct tm tm;
15558 time_t now;
15559 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15560 now = mktime (&tm);
15561 if (now != (time_t) -1)
15563 struct tm *lt = localtime (&now);
15564 if (! (lt
15565 && lt->tm_year == tm.tm_year
15566 && lt->tm_mon == tm.tm_mon
15567 && lt->tm_mday == tm.tm_mday
15568 && lt->tm_hour == tm.tm_hour
15569 && lt->tm_min == tm.tm_min
15570 && lt->tm_sec == tm.tm_sec
15571 && lt->tm_yday == tm.tm_yday
15572 && lt->tm_wday == tm.tm_wday
15573 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15574 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15575 return 0;
15577 return 1;
15580 static int
15581 year_2050_test ()
15583 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15584 ignoring leap seconds. */
15585 unsigned long int answer = 2527315200UL;
15587 struct tm tm;
15588 time_t t;
15589 tm.tm_year = 2050 - 1900;
15590 tm.tm_mon = 2 - 1;
15591 tm.tm_mday = 1;
15592 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15593 tm.tm_isdst = -1;
15595 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15596 instead of "TZ=America/Vancouver" in order to detect the bug even
15597 on systems that don't support the Olson extension, or don't have the
15598 full zoneinfo tables installed. */
15599 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15601 t = mktime (&tm);
15603 /* Check that the result is either a failure, or close enough
15604 to the correct answer that we can assume the discrepancy is
15605 due to leap seconds. */
15606 return (t == (time_t) -1
15607 || (0 < t && answer - 120 <= t && t <= answer + 120));
15611 main ()
15613 time_t t, delta;
15614 int i, j;
15616 /* This test makes some buggy mktime implementations loop.
15617 Give up after 60 seconds; a mktime slower than that
15618 isn't worth using anyway. */
15619 alarm (60);
15621 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15622 continue;
15623 time_t_max--;
15624 if ((time_t) -1 < 0)
15625 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15626 continue;
15627 delta = time_t_max / 997; /* a suitable prime number */
15628 for (i = 0; i < N_STRINGS; i++)
15630 if (tz_strings[i])
15631 putenv (tz_strings[i]);
15633 for (t = 0; t <= time_t_max - delta; t += delta)
15634 if (! mktime_test (t))
15635 return 1;
15636 if (! (mktime_test ((time_t) 1)
15637 && mktime_test ((time_t) (60 * 60))
15638 && mktime_test ((time_t) (60 * 60 * 24))))
15639 return 1;
15641 for (j = 1; 0 < j; j *= 2)
15642 if (! bigtime_test (j))
15643 return 1;
15644 if (! bigtime_test (j - 1))
15645 return 1;
15647 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15649 _ACEOF
15650 rm -f conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_link") 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_func_working_mktime=yes
15671 else
15672 echo "$as_me: program exited with status $ac_status" >&5
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ( exit $ac_status )
15677 ac_cv_func_working_mktime=no
15679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15685 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15686 if test $ac_cv_func_working_mktime = no; then
15687 case " $LIBOBJS " in
15688 *" mktime.$ac_objext "* ) ;;
15689 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15691 esac
15695 if test "$ac_cv_func_working_mktime" = no; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define BROKEN_MKTIME 1
15699 _ACEOF
15703 ac_have_func=no # yes means we've found a way to get the load average.
15705 # Make sure getloadavg.c is where it belongs, at configure-time.
15706 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15707 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15708 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15709 { (exit 1); exit 1; }; }
15711 ac_save_LIBS=$LIBS
15713 # Check for getloadavg, but be sure not to touch the cache variable.
15714 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15715 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15716 if test "${ac_cv_func_getloadavg+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h. */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15727 #define getloadavg innocuous_getloadavg
15729 /* System header to define __stub macros and hopefully few prototypes,
15730 which can conflict with char getloadavg (); below.
15731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15732 <limits.h> exists even on freestanding compilers. */
15734 #ifdef __STDC__
15735 # include <limits.h>
15736 #else
15737 # include <assert.h>
15738 #endif
15740 #undef getloadavg
15742 /* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply. */
15745 #ifdef __cplusplus
15746 extern "C"
15747 #endif
15748 char getloadavg ();
15749 /* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752 #if defined __stub_getloadavg || defined __stub___getloadavg
15753 choke me
15754 #endif
15757 main ()
15759 return getloadavg ();
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest$ac_exeext &&
15781 $as_test_x conftest$ac_exeext; then
15782 ac_cv_func_getloadavg=yes
15783 else
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_func_getloadavg=no
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15794 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15795 if test $ac_cv_func_getloadavg = yes; then
15796 exit 0
15797 else
15798 exit 1
15800 ) && ac_have_func=yes
15802 # On HPUX9, an unprivileged user can get load averages through this function.
15804 for ac_func in pstat_getdynamic
15806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820 #define $ac_func innocuous_$ac_func
15822 /* System header to define __stub macros and hopefully few prototypes,
15823 which can conflict with char $ac_func (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
15827 #ifdef __STDC__
15828 # include <limits.h>
15829 #else
15830 # include <assert.h>
15831 #endif
15833 #undef $ac_func
15835 /* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
15838 #ifdef __cplusplus
15839 extern "C"
15840 #endif
15841 char $ac_func ();
15842 /* The GNU C library defines this for functions which it implements
15843 to always fail with ENOSYS. Some functions are actually named
15844 something starting with __ and the normal name is an alias. */
15845 #if defined __stub_$ac_func || defined __stub___$ac_func
15846 choke me
15847 #endif
15850 main ()
15852 return $ac_func ();
15854 return 0;
15856 _ACEOF
15857 rm -f conftest.$ac_objext conftest$ac_exeext
15858 if { (ac_try="$ac_link"
15859 case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862 esac
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_link") 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } && {
15871 test -z "$ac_c_werror_flag" ||
15872 test ! -s conftest.err
15873 } && test -s conftest$ac_exeext &&
15874 $as_test_x conftest$ac_exeext; then
15875 eval "$as_ac_var=yes"
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 eval "$as_ac_var=no"
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15886 ac_res=`eval echo '${'$as_ac_var'}'`
15887 { echo "$as_me:$LINENO: result: $ac_res" >&5
15888 echo "${ECHO_T}$ac_res" >&6; }
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 _ACEOF
15895 done
15898 # Solaris has libkstat which does not require root.
15900 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15901 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905 ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-lkstat $LIBS"
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h. */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15917 #ifdef __cplusplus
15918 extern "C"
15919 #endif
15920 char kstat_open ();
15922 main ()
15924 return kstat_open ();
15926 return 0;
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && {
15943 test -z "$ac_c_werror_flag" ||
15944 test ! -s conftest.err
15945 } && test -s conftest$ac_exeext &&
15946 $as_test_x conftest$ac_exeext; then
15947 ac_cv_lib_kstat_kstat_open=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_kstat_kstat_open=no
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15959 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15960 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15961 if test $ac_cv_lib_kstat_kstat_open = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_LIBKSTAT 1
15964 _ACEOF
15966 LIBS="-lkstat $LIBS"
15970 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15972 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15973 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15974 # to get the right answer into the cache.
15975 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15976 if test $ac_have_func = no; then
15977 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15978 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
15979 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-lelf $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char elf_begin ();
15999 main ()
16001 return elf_begin ();
16003 return 0;
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 ac_cv_lib_elf_elf_begin=yes
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_elf_elf_begin=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16037 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16038 if test $ac_cv_lib_elf_elf_begin = yes; then
16039 LIBS="-lelf $LIBS"
16043 if test $ac_have_func = no; then
16044 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16045 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16046 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 else
16049 ac_check_lib_save_LIBS=$LIBS
16050 LIBS="-lkvm $LIBS"
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 /* Override any GCC internal prototype to avoid an error.
16059 Use char because int might match the return type of a GCC
16060 builtin and then its argument prototype would still apply. */
16061 #ifdef __cplusplus
16062 extern "C"
16063 #endif
16064 char kvm_open ();
16066 main ()
16068 return kvm_open ();
16070 return 0;
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (ac_try="$ac_link"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_link") 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } && {
16087 test -z "$ac_c_werror_flag" ||
16088 test ! -s conftest.err
16089 } && test -s conftest$ac_exeext &&
16090 $as_test_x conftest$ac_exeext; then
16091 ac_cv_lib_kvm_kvm_open=yes
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_cv_lib_kvm_kvm_open=no
16099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16100 conftest$ac_exeext conftest.$ac_ext
16101 LIBS=$ac_check_lib_save_LIBS
16103 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16104 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16105 if test $ac_cv_lib_kvm_kvm_open = yes; then
16106 LIBS="-lkvm $LIBS"
16109 # Check for the 4.4BSD definition of getloadavg.
16110 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16111 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16112 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-lutil $LIBS"
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 #ifdef __cplusplus
16128 extern "C"
16129 #endif
16130 char getloadavg ();
16132 main ()
16134 return getloadavg ();
16136 return 0;
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest$ac_exeext &&
16156 $as_test_x conftest$ac_exeext; then
16157 ac_cv_lib_util_getloadavg=yes
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_lib_util_getloadavg=no
16165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16166 conftest$ac_exeext conftest.$ac_ext
16167 LIBS=$ac_check_lib_save_LIBS
16169 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16170 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16171 if test $ac_cv_lib_util_getloadavg = yes; then
16172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16177 if test $ac_have_func = no; then
16178 # There is a commonly available library for RS/6000 AIX.
16179 # Since it is not a standard part of AIX, it might be installed locally.
16180 ac_getloadavg_LIBS=$LIBS
16181 LIBS="-L/usr/local/lib $LIBS"
16182 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16183 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lgetloadavg $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 /* Override any GCC internal prototype to avoid an error.
16197 Use char because int might match the return type of a GCC
16198 builtin and then its argument prototype would still apply. */
16199 #ifdef __cplusplus
16200 extern "C"
16201 #endif
16202 char getloadavg ();
16204 main ()
16206 return getloadavg ();
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (ac_try="$ac_link"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_link") 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } && {
16225 test -z "$ac_c_werror_flag" ||
16226 test ! -s conftest.err
16227 } && test -s conftest$ac_exeext &&
16228 $as_test_x conftest$ac_exeext; then
16229 ac_cv_lib_getloadavg_getloadavg=yes
16230 else
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_lib_getloadavg_getloadavg=no
16237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16242 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16243 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16244 LIBS="-lgetloadavg $LIBS"
16245 else
16246 LIBS=$ac_getloadavg_LIBS
16251 # Make sure it is really in the library, if we think we found it,
16252 # otherwise set up the replacement function.
16254 for ac_func in getloadavg
16256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262 cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16270 #define $ac_func innocuous_$ac_func
16272 /* System header to define __stub macros and hopefully few prototypes,
16273 which can conflict with char $ac_func (); below.
16274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16275 <limits.h> exists even on freestanding compilers. */
16277 #ifdef __STDC__
16278 # include <limits.h>
16279 #else
16280 # include <assert.h>
16281 #endif
16283 #undef $ac_func
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16288 #ifdef __cplusplus
16289 extern "C"
16290 #endif
16291 char $ac_func ();
16292 /* The GNU C library defines this for functions which it implements
16293 to always fail with ENOSYS. Some functions are actually named
16294 something starting with __ and the normal name is an alias. */
16295 #if defined __stub_$ac_func || defined __stub___$ac_func
16296 choke me
16297 #endif
16300 main ()
16302 return $ac_func ();
16304 return 0;
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16325 eval "$as_ac_var=yes"
16326 else
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 eval "$as_ac_var=no"
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16336 ac_res=`eval echo '${'$as_ac_var'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339 if test `eval echo '${'$as_ac_var'}'` = yes; then
16340 cat >>confdefs.h <<_ACEOF
16341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16342 _ACEOF
16344 else
16345 case " $LIBOBJS " in
16346 *" getloadavg.$ac_objext "* ) ;;
16347 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16349 esac
16352 cat >>confdefs.h <<\_ACEOF
16353 #define C_GETLOADAVG 1
16354 _ACEOF
16356 # Figure out what our getloadavg.c needs.
16357 ac_have_func=no
16358 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16359 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16360 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16361 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16365 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16366 else
16367 # Is the header compilable?
16368 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16369 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16370 cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h. */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16377 #include <sys/dg_sys_info.h>
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_header_compiler=yes
16397 else
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_header_compiler=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16406 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408 # Is the header present?
16409 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16410 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16412 /* confdefs.h. */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <sys/dg_sys_info.h>
16418 _ACEOF
16419 if { (ac_try="$ac_cpp conftest.$ac_ext"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } >/dev/null && {
16432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 }; then
16435 ac_header_preproc=yes
16436 else
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_header_preproc=no
16443 rm -f conftest.err conftest.$ac_ext
16444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16445 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447 # So? What about this header?
16448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16449 yes:no: )
16450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16451 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16453 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16454 ac_header_preproc=yes
16456 no:yes:* )
16457 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16458 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16460 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16462 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16464 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16466 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16468 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16471 esac
16472 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16473 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16474 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16479 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16480 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16483 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16484 ac_have_func=yes
16486 cat >>confdefs.h <<\_ACEOF
16487 #define DGUX 1
16488 _ACEOF
16491 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16492 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16493 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496 ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-ldgc $LIBS"
16498 cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h. */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508 #ifdef __cplusplus
16509 extern "C"
16510 #endif
16511 char dg_sys_info ();
16513 main ()
16515 return dg_sys_info ();
16517 return 0;
16519 _ACEOF
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext &&
16537 $as_test_x conftest$ac_exeext; then
16538 ac_cv_lib_dgc_dg_sys_info=yes
16539 else
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_lib_dgc_dg_sys_info=no
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16548 LIBS=$ac_check_lib_save_LIBS
16550 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define HAVE_LIBDGC 1
16555 _ACEOF
16557 LIBS="-ldgc $LIBS"
16565 if test "${ac_cv_header_locale_h+set}" = set; then
16566 { echo "$as_me:$LINENO: checking for locale.h" >&5
16567 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16568 if test "${ac_cv_header_locale_h+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16573 else
16574 # Is the header compilable?
16575 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16576 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16577 cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h. */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16583 $ac_includes_default
16584 #include <locale.h>
16585 _ACEOF
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_compile") 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest.$ac_objext; then
16603 ac_header_compiler=yes
16604 else
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_header_compiler=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16613 echo "${ECHO_T}$ac_header_compiler" >&6; }
16615 # Is the header present?
16616 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16617 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16618 cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 #include <locale.h>
16625 _ACEOF
16626 if { (ac_try="$ac_cpp conftest.$ac_ext"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630 esac
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } >/dev/null && {
16639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16641 }; then
16642 ac_header_preproc=yes
16643 else
16644 echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ac_header_preproc=no
16650 rm -f conftest.err conftest.$ac_ext
16651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16652 echo "${ECHO_T}$ac_header_preproc" >&6; }
16654 # So? What about this header?
16655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16656 yes:no: )
16657 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16658 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16659 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16660 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16661 ac_header_preproc=yes
16663 no:yes:* )
16664 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16665 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16667 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16669 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16671 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16673 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16675 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16678 esac
16679 { echo "$as_me:$LINENO: checking for locale.h" >&5
16680 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16681 if test "${ac_cv_header_locale_h+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 ac_cv_header_locale_h=$ac_header_preproc
16686 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16687 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16693 for ac_func in setlocale
16695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16709 #define $ac_func innocuous_$ac_func
16711 /* System header to define __stub macros and hopefully few prototypes,
16712 which can conflict with char $ac_func (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16716 #ifdef __STDC__
16717 # include <limits.h>
16718 #else
16719 # include <assert.h>
16720 #endif
16722 #undef $ac_func
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 char $ac_func ();
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined __stub_$ac_func || defined __stub___$ac_func
16735 choke me
16736 #endif
16739 main ()
16741 return $ac_func ();
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_link") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest$ac_exeext &&
16763 $as_test_x conftest$ac_exeext; then
16764 eval "$as_ac_var=yes"
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 eval "$as_ac_var=no"
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16775 ac_res=`eval echo '${'$as_ac_var'}'`
16776 { echo "$as_me:$LINENO: result: $ac_res" >&5
16777 echo "${ECHO_T}$ac_res" >&6; }
16778 if test `eval echo '${'$as_ac_var'}'` = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16781 _ACEOF
16784 done
16787 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16788 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16789 # Irix 4.0.5F has the header but not the library.
16790 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16791 ac_have_func=yes
16793 cat >>confdefs.h <<\_ACEOF
16794 #define SVR4 1
16795 _ACEOF
16799 if test $ac_have_func = no; then
16800 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16801 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16802 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16803 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16807 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16808 else
16809 # Is the header compilable?
16810 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16811 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
16812 cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h. */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 #include <inq_stats/cpustats.h>
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (ac_try="$ac_compile"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_compile") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest.$ac_objext; then
16838 ac_header_compiler=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_compiler=no
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6; }
16850 # Is the header present?
16851 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16852 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <inq_stats/cpustats.h>
16860 _ACEOF
16861 if { (ac_try="$ac_cpp conftest.$ac_ext"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } >/dev/null && {
16874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 }; then
16877 ac_header_preproc=yes
16878 else
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_header_preproc=no
16885 rm -f conftest.err conftest.$ac_ext
16886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16887 echo "${ECHO_T}$ac_header_preproc" >&6; }
16889 # So? What about this header?
16890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16891 yes:no: )
16892 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16893 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16895 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16896 ac_header_preproc=yes
16898 no:yes:* )
16899 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16900 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16902 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16904 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16906 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16908 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16910 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16913 esac
16914 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16915 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16916 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16921 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16922 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16925 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16926 ac_have_func=yes
16928 cat >>confdefs.h <<\_ACEOF
16929 #define UMAX 1
16930 _ACEOF
16933 cat >>confdefs.h <<\_ACEOF
16934 #define UMAX4_3 1
16935 _ACEOF
16942 if test $ac_have_func = no; then
16943 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16944 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16945 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
16946 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16950 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16951 else
16952 # Is the header compilable?
16953 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16954 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 $ac_includes_default
16962 #include <sys/cpustats.h>
16963 _ACEOF
16964 rm -f conftest.$ac_objext
16965 if { (ac_try="$ac_compile"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_compile") 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } && {
16978 test -z "$ac_c_werror_flag" ||
16979 test ! -s conftest.err
16980 } && test -s conftest.$ac_objext; then
16981 ac_header_compiler=yes
16982 else
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 ac_header_compiler=no
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16991 echo "${ECHO_T}$ac_header_compiler" >&6; }
16993 # Is the header present?
16994 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16995 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <sys/cpustats.h>
17003 _ACEOF
17004 if { (ac_try="$ac_cpp conftest.$ac_ext"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } >/dev/null && {
17017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17018 test ! -s conftest.err
17019 }; then
17020 ac_header_preproc=yes
17021 else
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_header_preproc=no
17028 rm -f conftest.err conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17030 echo "${ECHO_T}$ac_header_preproc" >&6; }
17032 # So? What about this header?
17033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17034 yes:no: )
17035 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17036 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17038 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17039 ac_header_preproc=yes
17041 no:yes:* )
17042 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17043 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17045 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17046 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17047 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17048 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17049 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17051 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17053 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17056 esac
17057 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17058 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17059 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17064 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17065 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17068 if test $ac_cv_header_sys_cpustats_h = yes; then
17069 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17070 #define UMAX 1
17071 _ACEOF
17078 if test $ac_have_func = no; then
17080 for ac_header in mach/mach.h
17082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 ac_res=`eval echo '${'$as_ac_Header'}'`
17090 { echo "$as_me:$LINENO: result: $ac_res" >&5
17091 echo "${ECHO_T}$ac_res" >&6; }
17092 else
17093 # Is the header compilable?
17094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 $ac_includes_default
17103 #include <$ac_header>
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (ac_try="$ac_compile"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_compile") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest.$ac_objext; then
17122 ac_header_compiler=yes
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17132 echo "${ECHO_T}$ac_header_compiler" >&6; }
17134 # Is the header present?
17135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <$ac_header>
17144 _ACEOF
17145 if { (ac_try="$ac_cpp conftest.$ac_ext"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } >/dev/null && {
17158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17159 test ! -s conftest.err
17160 }; then
17161 ac_header_preproc=yes
17162 else
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 ac_header_preproc=no
17169 rm -f conftest.err conftest.$ac_ext
17170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17171 echo "${ECHO_T}$ac_header_preproc" >&6; }
17173 # So? What about this header?
17174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17175 yes:no: )
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17180 ac_header_preproc=yes
17182 no:yes:* )
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17197 esac
17198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203 eval "$as_ac_Header=\$ac_header_preproc"
17205 ac_res=`eval echo '${'$as_ac_Header'}'`
17206 { echo "$as_me:$LINENO: result: $ac_res" >&5
17207 echo "${ECHO_T}$ac_res" >&6; }
17210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17211 cat >>confdefs.h <<_ACEOF
17212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17213 _ACEOF
17217 done
17222 for ac_header in nlist.h
17224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_res=`eval echo '${'$as_ac_Header'}'`
17232 { echo "$as_me:$LINENO: result: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17234 else
17235 # Is the header compilable?
17236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17238 cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h. */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17245 #include <$ac_header>
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (ac_try="$ac_compile"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_compile") 2>conftest.er1
17255 ac_status=$?
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest.$ac_objext; then
17264 ac_header_compiler=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_header_compiler=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17274 echo "${ECHO_T}$ac_header_compiler" >&6; }
17276 # Is the header present?
17277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include <$ac_header>
17286 _ACEOF
17287 if { (ac_try="$ac_cpp conftest.$ac_ext"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } >/dev/null && {
17300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17302 }; then
17303 ac_header_preproc=yes
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_header_preproc=no
17311 rm -f conftest.err conftest.$ac_ext
17312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17313 echo "${ECHO_T}$ac_header_preproc" >&6; }
17315 # So? What about this header?
17316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17317 yes:no: )
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17322 ac_header_preproc=yes
17324 no:yes:* )
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17339 esac
17340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 eval "$as_ac_Header=\$ac_header_preproc"
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17355 _ACEOF
17356 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17357 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17358 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 #include <nlist.h>
17370 main ()
17372 static struct nlist ac_aggr;
17373 if (ac_aggr.n_un.n_name)
17374 return 0;
17376 return 0;
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 ac_cv_member_struct_nlist_n_un_n_name=yes
17397 else
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h. */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <nlist.h>
17410 main ()
17412 static struct nlist ac_aggr;
17413 if (sizeof ac_aggr.n_un.n_name)
17414 return 0;
17416 return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext
17420 if { (ac_try="$ac_compile"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_compile") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest.$ac_objext; then
17436 ac_cv_member_struct_nlist_n_un_n_name=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_member_struct_nlist_n_un_n_name=no
17444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17450 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17451 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17453 cat >>confdefs.h <<_ACEOF
17454 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17455 _ACEOF
17458 cat >>confdefs.h <<\_ACEOF
17459 #define NLIST_NAME_UNION 1
17460 _ACEOF
17467 done
17470 done
17473 # Some definitions of getloadavg require that the program be installed setgid.
17474 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17475 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17476 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h. */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17486 #ifdef LDAV_PRIVILEGED
17487 Yowza Am I SETGID yet
17488 #endif
17489 _ACEOF
17490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17491 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17492 ac_cv_func_getloadavg_setgid=yes
17493 else
17494 ac_cv_func_getloadavg_setgid=no
17496 rm -f conftest*
17499 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17500 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17501 if test $ac_cv_func_getloadavg_setgid = yes; then
17502 NEED_SETGID=true
17504 cat >>confdefs.h <<\_ACEOF
17505 #define GETLOADAVG_PRIVILEGED 1
17506 _ACEOF
17508 else
17509 NEED_SETGID=false
17512 if test $ac_cv_func_getloadavg_setgid = yes; then
17513 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17514 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17515 if test "${ac_cv_group_kmem+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17519 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17520 # If we got an error (system does not support symlinks), try without -L.
17521 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17522 ac_cv_group_kmem=`echo $ac_ls_output \
17523 | sed -ne 's/[ ][ ]*/ /g;
17524 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17525 / /s/.* //;p;'`
17528 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17529 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17530 KMEM_GROUP=$ac_cv_group_kmem
17532 if test "x$ac_save_LIBS" = x; then
17533 GETLOADAVG_LIBS=$LIBS
17534 else
17535 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17537 LIBS=$ac_save_LIBS
17541 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17542 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17543 if test "${ac_cv_sys_largefile_source+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 while :; do
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include <stdio.h>
17555 main ()
17557 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17559 return 0;
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_link") 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest$ac_exeext &&
17579 $as_test_x conftest$ac_exeext; then
17580 ac_cv_sys_largefile_source=no; break
17581 else
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17589 conftest$ac_exeext conftest.$ac_ext
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h. */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 #define _LARGEFILE_SOURCE 1
17597 #include <stdio.h>
17599 main ()
17601 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17603 return 0;
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_sys_largefile_source=1; break
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 ac_cv_sys_largefile_source=unknown
17635 break
17636 done
17638 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17639 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17640 case $ac_cv_sys_largefile_source in #(
17641 no | unknown) ;;
17643 cat >>confdefs.h <<_ACEOF
17644 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17645 _ACEOF
17647 esac
17648 rm -f conftest*
17650 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17651 # in glibc 2.1.3, but that breaks too many other things.
17652 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17653 if test $ac_cv_sys_largefile_source != unknown; then
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_FSEEKO 1
17657 _ACEOF
17662 # Configure getopt.
17663 # getopt.m4 serial 10
17665 # The getopt module assume you want GNU getopt, with getopt_long etc,
17666 # rather than vanilla POSIX getopt. This means your your code should
17667 # always include <getopt.h> for the getopt prototypes.
17679 # Prerequisites of lib/getopt*.
17684 GETOPT_H=
17686 for ac_header in getopt.h
17688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 ac_res=`eval echo '${'$as_ac_Header'}'`
17696 { echo "$as_me:$LINENO: result: $ac_res" >&5
17697 echo "${ECHO_T}$ac_res" >&6; }
17698 else
17699 # Is the header compilable?
17700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17709 #include <$ac_header>
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest.$ac_objext; then
17728 ac_header_compiler=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_header_compiler=no
17736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17738 echo "${ECHO_T}$ac_header_compiler" >&6; }
17740 # Is the header present?
17741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <$ac_header>
17750 _ACEOF
17751 if { (ac_try="$ac_cpp conftest.$ac_ext"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } >/dev/null && {
17764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 }; then
17767 ac_header_preproc=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_header_preproc=no
17775 rm -f conftest.err conftest.$ac_ext
17776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17777 echo "${ECHO_T}$ac_header_preproc" >&6; }
17779 # So? What about this header?
17780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17781 yes:no: )
17782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17786 ac_header_preproc=yes
17788 no:yes:* )
17789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17803 esac
17804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 eval "$as_ac_Header=\$ac_header_preproc"
17811 ac_res=`eval echo '${'$as_ac_Header'}'`
17812 { echo "$as_me:$LINENO: result: $ac_res" >&5
17813 echo "${ECHO_T}$ac_res" >&6; }
17816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17819 _ACEOF
17821 else
17822 GETOPT_H=getopt.h
17825 done
17827 if test -z "$GETOPT_H"; then
17829 for ac_func in getopt_long_only
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845 #define $ac_func innocuous_$ac_func
17847 /* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17852 #ifdef __STDC__
17853 # include <limits.h>
17854 #else
17855 # include <assert.h>
17856 #endif
17858 #undef $ac_func
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char $ac_func ();
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17871 choke me
17872 #endif
17875 main ()
17877 return $ac_func ();
17879 return 0;
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 eval "$as_ac_var=yes"
17901 else
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 eval "$as_ac_var=no"
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17911 ac_res=`eval echo '${'$as_ac_var'}'`
17912 { echo "$as_me:$LINENO: result: $ac_res" >&5
17913 echo "${ECHO_T}$ac_res" >&6; }
17914 if test `eval echo '${'$as_ac_var'}'` = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17917 _ACEOF
17919 else
17920 GETOPT_H=getopt.h
17922 done
17926 if test -z "$GETOPT_H"; then
17927 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17928 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
17929 if test "${ac_cv_have_decl_optreset+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <getopt.h>
17941 main ()
17943 #ifndef optreset
17944 (void) optreset;
17945 #endif
17948 return 0;
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17959 ac_status=$?
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_cv_have_decl_optreset=yes
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_have_decl_optreset=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17979 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17980 if test $ac_cv_have_decl_optreset = yes; then
17981 GETOPT_H=getopt.h
17986 if test -z "$GETOPT_H"; then
17987 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17988 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
17989 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992 if test "$cross_compiling" = yes; then
17993 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17994 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
17995 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 #include <getopt.h>
18007 main ()
18009 #ifndef getopt_clip
18010 (void) getopt_clip;
18011 #endif
18014 return 0;
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (ac_try="$ac_compile"
18019 case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_compile") 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && {
18031 test -z "$ac_c_werror_flag" ||
18032 test ! -s conftest.err
18033 } && test -s conftest.$ac_objext; then
18034 ac_cv_have_decl_getopt_clip=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 ac_cv_have_decl_getopt_clip=no
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18045 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18046 if test $ac_cv_have_decl_getopt_clip = yes; then
18047 gl_cv_func_gnu_getopt=no
18048 else
18049 gl_cv_func_gnu_getopt=yes
18052 else
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 #include <getopt.h>
18061 main ()
18064 char *myargv[3];
18065 myargv[0] = "conftest";
18066 myargv[1] = "-+";
18067 myargv[2] = 0;
18068 return getopt (2, myargv, "+a") != '?';
18071 return 0;
18073 _ACEOF
18074 rm -f conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_link") 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 gl_cv_func_gnu_getopt=yes
18095 else
18096 echo "$as_me: program exited with status $ac_status" >&5
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ( exit $ac_status )
18101 gl_cv_func_gnu_getopt=no
18103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18108 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18109 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18110 if test "$gl_cv_func_gnu_getopt" = "no"; then
18111 GETOPT_H=getopt.h
18117 if test -n "$GETOPT_H"; then
18120 GETOPT_H=getopt.h
18122 cat >>confdefs.h <<\_ACEOF
18123 #define __GETOPT_PREFIX rpl_
18124 _ACEOF
18129 GETOPTOBJS='getopt.o getopt1.o'
18136 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18137 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18138 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 # Use it with a single arg.
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 $ac_includes_default
18150 main ()
18152 getpgrp (0);
18154 return 0;
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_compile") 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && {
18171 test -z "$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 } && test -s conftest.$ac_objext; then
18174 ac_cv_func_getpgrp_void=no
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_cv_func_getpgrp_void=yes
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18186 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18187 if test $ac_cv_func_getpgrp_void = yes; then
18189 cat >>confdefs.h <<\_ACEOF
18190 #define GETPGRP_VOID 1
18191 _ACEOF
18197 for ac_func in strftime
18199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205 cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h. */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18213 #define $ac_func innocuous_$ac_func
18215 /* System header to define __stub macros and hopefully few prototypes,
18216 which can conflict with char $ac_func (); below.
18217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18218 <limits.h> exists even on freestanding compilers. */
18220 #ifdef __STDC__
18221 # include <limits.h>
18222 #else
18223 # include <assert.h>
18224 #endif
18226 #undef $ac_func
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char $ac_func ();
18235 /* The GNU C library defines this for functions which it implements
18236 to always fail with ENOSYS. Some functions are actually named
18237 something starting with __ and the normal name is an alias. */
18238 #if defined __stub_$ac_func || defined __stub___$ac_func
18239 choke me
18240 #endif
18243 main ()
18245 return $ac_func ();
18247 return 0;
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest$ac_exeext &&
18267 $as_test_x conftest$ac_exeext; then
18268 eval "$as_ac_var=yes"
18269 else
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no"
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277 conftest$ac_exeext conftest.$ac_ext
18279 ac_res=`eval echo '${'$as_ac_var'}'`
18280 { echo "$as_me:$LINENO: result: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18282 if test `eval echo '${'$as_ac_var'}'` = yes; then
18283 cat >>confdefs.h <<_ACEOF
18284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18285 _ACEOF
18287 else
18288 # strftime is in -lintl on SCO UNIX.
18289 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18290 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18291 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-lintl $LIBS"
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306 #ifdef __cplusplus
18307 extern "C"
18308 #endif
18309 char strftime ();
18311 main ()
18313 return strftime ();
18315 return 0;
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18336 ac_cv_lib_intl_strftime=yes
18337 else
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_lib_intl_strftime=no
18344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18349 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18350 if test $ac_cv_lib_intl_strftime = yes; then
18351 cat >>confdefs.h <<\_ACEOF
18352 #define HAVE_STRFTIME 1
18353 _ACEOF
18355 LIBS="-lintl $LIBS"
18359 done
18362 # UNIX98 PTYs.
18364 for ac_func in grantpt
18366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18380 #define $ac_func innocuous_$ac_func
18382 /* System header to define __stub macros and hopefully few prototypes,
18383 which can conflict with char $ac_func (); below.
18384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18385 <limits.h> exists even on freestanding compilers. */
18387 #ifdef __STDC__
18388 # include <limits.h>
18389 #else
18390 # include <assert.h>
18391 #endif
18393 #undef $ac_func
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18398 #ifdef __cplusplus
18399 extern "C"
18400 #endif
18401 char $ac_func ();
18402 /* The GNU C library defines this for functions which it implements
18403 to always fail with ENOSYS. Some functions are actually named
18404 something starting with __ and the normal name is an alias. */
18405 #if defined __stub_$ac_func || defined __stub___$ac_func
18406 choke me
18407 #endif
18410 main ()
18412 return $ac_func ();
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest$ac_exeext &&
18434 $as_test_x conftest$ac_exeext; then
18435 eval "$as_ac_var=yes"
18436 else
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 eval "$as_ac_var=no"
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18446 ac_res=`eval echo '${'$as_ac_var'}'`
18447 { echo "$as_me:$LINENO: result: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18449 if test `eval echo '${'$as_ac_var'}'` = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18452 _ACEOF
18455 done
18458 # PTY-related GNU extensions.
18460 for ac_func in getpt
18462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18476 #define $ac_func innocuous_$ac_func
18478 /* System header to define __stub macros and hopefully few prototypes,
18479 which can conflict with char $ac_func (); below.
18480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18481 <limits.h> exists even on freestanding compilers. */
18483 #ifdef __STDC__
18484 # include <limits.h>
18485 #else
18486 # include <assert.h>
18487 #endif
18489 #undef $ac_func
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 char $ac_func ();
18498 /* The GNU C library defines this for functions which it implements
18499 to always fail with ENOSYS. Some functions are actually named
18500 something starting with __ and the normal name is an alias. */
18501 #if defined __stub_$ac_func || defined __stub___$ac_func
18502 choke me
18503 #endif
18506 main ()
18508 return $ac_func ();
18510 return 0;
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && {
18527 test -z "$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 } && test -s conftest$ac_exeext &&
18530 $as_test_x conftest$ac_exeext; then
18531 eval "$as_ac_var=yes"
18532 else
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 eval "$as_ac_var=no"
18539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18540 conftest$ac_exeext conftest.$ac_ext
18542 ac_res=`eval echo '${'$as_ac_var'}'`
18543 { echo "$as_me:$LINENO: result: $ac_res" >&5
18544 echo "${ECHO_T}$ac_res" >&6; }
18545 if test `eval echo '${'$as_ac_var'}'` = yes; then
18546 cat >>confdefs.h <<_ACEOF
18547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18548 _ACEOF
18551 done
18554 # Check this now, so that we will NOT find the above functions in ncurses.
18555 # That is because we have not set up to link ncurses in lib-src.
18556 # It's better to believe a function is not available
18557 # than to expect to find it in ncurses.
18559 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18560 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18561 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lncurses $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h. */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char tparm ();
18581 main ()
18583 return tparm ();
18585 return 0;
18587 _ACEOF
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext &&
18605 $as_test_x conftest$ac_exeext; then
18606 ac_cv_lib_ncurses_tparm=yes
18607 else
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_cv_lib_ncurses_tparm=no
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18619 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18620 if test $ac_cv_lib_ncurses_tparm = yes; then
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_LIBNCURSES 1
18623 _ACEOF
18625 LIBS="-lncurses $LIBS"
18630 # Do we need the Hesiod library to provide the support routines?
18631 if test "$with_hesiod" = yes ; then
18632 # Don't set $LIBS here -- see comments above.
18633 resolv=no
18634 { echo "$as_me:$LINENO: checking for res_send" >&5
18635 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18636 if test "${ac_cv_func_res_send+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h. */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18647 #define res_send innocuous_res_send
18649 /* System header to define __stub macros and hopefully few prototypes,
18650 which can conflict with char res_send (); below.
18651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652 <limits.h> exists even on freestanding compilers. */
18654 #ifdef __STDC__
18655 # include <limits.h>
18656 #else
18657 # include <assert.h>
18658 #endif
18660 #undef res_send
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char res_send ();
18669 /* The GNU C library defines this for functions which it implements
18670 to always fail with ENOSYS. Some functions are actually named
18671 something starting with __ and the normal name is an alias. */
18672 #if defined __stub_res_send || defined __stub___res_send
18673 choke me
18674 #endif
18677 main ()
18679 return res_send ();
18681 return 0;
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest$ac_exeext &&
18701 $as_test_x conftest$ac_exeext; then
18702 ac_cv_func_res_send=yes
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_func_res_send=no
18710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18711 conftest$ac_exeext conftest.$ac_ext
18713 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18714 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18715 if test $ac_cv_func_res_send = yes; then
18717 else
18718 { echo "$as_me:$LINENO: checking for __res_send" >&5
18719 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18720 if test "${ac_cv_func___res_send+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18731 #define __res_send innocuous___res_send
18733 /* System header to define __stub macros and hopefully few prototypes,
18734 which can conflict with char __res_send (); below.
18735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18736 <limits.h> exists even on freestanding compilers. */
18738 #ifdef __STDC__
18739 # include <limits.h>
18740 #else
18741 # include <assert.h>
18742 #endif
18744 #undef __res_send
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 char __res_send ();
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined __stub___res_send || defined __stub_____res_send
18757 choke me
18758 #endif
18761 main ()
18763 return __res_send ();
18765 return 0;
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest$ac_exeext &&
18785 $as_test_x conftest$ac_exeext; then
18786 ac_cv_func___res_send=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_func___res_send=no
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18797 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18798 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18799 if test $ac_cv_func___res_send = yes; then
18801 else
18802 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18803 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
18804 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lresolv $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819 #ifdef __cplusplus
18820 extern "C"
18821 #endif
18822 char res_send ();
18824 main ()
18826 return res_send ();
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext &&
18848 $as_test_x conftest$ac_exeext; then
18849 ac_cv_lib_resolv_res_send=yes
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_resolv_res_send=no
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18862 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18863 if test $ac_cv_lib_resolv_res_send = yes; then
18864 resolv=yes
18865 else
18866 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18867 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871 ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-lresolv $LIBS"
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h. */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 char __res_send ();
18888 main ()
18890 return __res_send ();
18892 return 0;
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest$ac_exeext &&
18912 $as_test_x conftest$ac_exeext; then
18913 ac_cv_lib_resolv___res_send=yes
18914 else
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_cv_lib_resolv___res_send=no
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18926 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18927 if test $ac_cv_lib_resolv___res_send = yes; then
18928 resolv=yes
18937 if test "$resolv" = yes ; then
18938 RESOLVLIB=-lresolv
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_LIBRESOLV 1
18942 _ACEOF
18944 else
18945 RESOLVLIB=
18947 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18948 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
18949 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h. */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960 #define hes_getmailhost innocuous_hes_getmailhost
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char hes_getmailhost (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18967 #ifdef __STDC__
18968 # include <limits.h>
18969 #else
18970 # include <assert.h>
18971 #endif
18973 #undef hes_getmailhost
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char hes_getmailhost ();
18982 /* The GNU C library defines this for functions which it implements
18983 to always fail with ENOSYS. Some functions are actually named
18984 something starting with __ and the normal name is an alias. */
18985 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18986 choke me
18987 #endif
18990 main ()
18992 return hes_getmailhost ();
18994 return 0;
18996 _ACEOF
18997 rm -f conftest.$ac_objext conftest$ac_exeext
18998 if { (ac_try="$ac_link"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19002 esac
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_link") 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest$ac_exeext &&
19014 $as_test_x conftest$ac_exeext; then
19015 ac_cv_func_hes_getmailhost=yes
19016 else
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_func_hes_getmailhost=no
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19026 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19027 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19028 if test $ac_cv_func_hes_getmailhost = yes; then
19030 else
19031 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19032 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19033 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lhesiod $RESOLVLIB $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any GCC internal prototype to avoid an error.
19046 Use char because int might match the return type of a GCC
19047 builtin and then its argument prototype would still apply. */
19048 #ifdef __cplusplus
19049 extern "C"
19050 #endif
19051 char hes_getmailhost ();
19053 main ()
19055 return hes_getmailhost ();
19057 return 0;
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 ac_cv_lib_hesiod_hes_getmailhost=yes
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_lib_hesiod_hes_getmailhost=no
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19091 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19092 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_LIBHESIOD 1
19096 _ACEOF
19098 else
19106 # These tell us which Kerberos-related libraries to use.
19107 if test "${with_kerberos+set}" = set; then
19109 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19110 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19111 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114 ac_check_lib_save_LIBS=$LIBS
19115 LIBS="-lcom_err $LIBS"
19116 cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h. */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19123 /* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 char com_err ();
19131 main ()
19133 return com_err ();
19135 return 0;
19137 _ACEOF
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (ac_try="$ac_link"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_link") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } && {
19152 test -z "$ac_c_werror_flag" ||
19153 test ! -s conftest.err
19154 } && test -s conftest$ac_exeext &&
19155 $as_test_x conftest$ac_exeext; then
19156 ac_cv_lib_com_err_com_err=yes
19157 else
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_lib_com_err_com_err=no
19164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19165 conftest$ac_exeext conftest.$ac_ext
19166 LIBS=$ac_check_lib_save_LIBS
19168 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19169 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19170 if test $ac_cv_lib_com_err_com_err = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_LIBCOM_ERR 1
19173 _ACEOF
19175 LIBS="-lcom_err $LIBS"
19180 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19181 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19182 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lk5crypto $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19197 #ifdef __cplusplus
19198 extern "C"
19199 #endif
19200 char mit_des_cbc_encrypt ();
19202 main ()
19204 return mit_des_cbc_encrypt ();
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest$ac_exeext &&
19226 $as_test_x conftest$ac_exeext; then
19227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19240 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19241 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_LIBK5CRYPTO 1
19244 _ACEOF
19246 LIBS="-lk5crypto $LIBS"
19251 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19252 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19253 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lcrypto $LIBS"
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 char mit_des_cbc_encrypt ();
19273 main ()
19275 return mit_des_cbc_encrypt ();
19277 return 0;
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
19298 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19310 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19311 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19312 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_LIBCRYPTO 1
19315 _ACEOF
19317 LIBS="-lcrypto $LIBS"
19322 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19323 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19324 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lkrb5 $LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 /* Override any GCC internal prototype to avoid an error.
19337 Use char because int might match the return type of a GCC
19338 builtin and then its argument prototype would still apply. */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 char krb5_init_context ();
19344 main ()
19346 return krb5_init_context ();
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 ac_cv_lib_krb5_krb5_init_context=yes
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_krb5_krb5_init_context=no
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_check_lib_save_LIBS
19381 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19382 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19383 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define HAVE_LIBKRB5 1
19386 _ACEOF
19388 LIBS="-lkrb5 $LIBS"
19392 if test "${with_kerberos5+set}" != set; then
19394 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19395 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-ldes425 $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char des_cbc_encrypt ();
19416 main ()
19418 return des_cbc_encrypt ();
19420 return 0;
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_des425_des_cbc_encrypt=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_des425_des_cbc_encrypt=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19454 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19455 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_LIBDES425 1
19458 _ACEOF
19460 LIBS="-ldes425 $LIBS"
19462 else
19464 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19465 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19466 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 ac_check_lib_save_LIBS=$LIBS
19470 LIBS="-ldes $LIBS"
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 char des_cbc_encrypt ();
19486 main ()
19488 return des_cbc_encrypt ();
19490 return 0;
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19501 ac_status=$?
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_lib_des_des_cbc_encrypt=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_lib_des_des_cbc_encrypt=no
19519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19523 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19524 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19525 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_LIBDES 1
19528 _ACEOF
19530 LIBS="-ldes $LIBS"
19537 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19538 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19539 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542 ac_check_lib_save_LIBS=$LIBS
19543 LIBS="-lkrb4 $LIBS"
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19554 #ifdef __cplusplus
19555 extern "C"
19556 #endif
19557 char krb_get_cred ();
19559 main ()
19561 return krb_get_cred ();
19563 return 0;
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19574 ac_status=$?
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_lib_krb4_krb_get_cred=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_krb4_krb_get_cred=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19594 LIBS=$ac_check_lib_save_LIBS
19596 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19597 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19598 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_LIBKRB4 1
19601 _ACEOF
19603 LIBS="-lkrb4 $LIBS"
19605 else
19607 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19608 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19609 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lkrb $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19624 #ifdef __cplusplus
19625 extern "C"
19626 #endif
19627 char krb_get_cred ();
19629 main ()
19631 return krb_get_cred ();
19633 return 0;
19635 _ACEOF
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_krb_krb_get_cred=yes
19655 else
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_krb_krb_get_cred=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19667 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19668 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBKRB 1
19671 _ACEOF
19673 LIBS="-lkrb $LIBS"
19681 if test "${with_kerberos5+set}" = set; then
19683 for ac_header in krb5.h
19685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_res=`eval echo '${'$as_ac_Header'}'`
19693 { echo "$as_me:$LINENO: result: $ac_res" >&5
19694 echo "${ECHO_T}$ac_res" >&6; }
19695 else
19696 # Is the header compilable?
19697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19699 cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h. */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 $ac_includes_default
19706 #include <$ac_header>
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest.$ac_objext; then
19725 ac_header_compiler=yes
19726 else
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_header_compiler=no
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19735 echo "${ECHO_T}$ac_header_compiler" >&6; }
19737 # Is the header present?
19738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <$ac_header>
19747 _ACEOF
19748 if { (ac_try="$ac_cpp conftest.$ac_ext"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19755 ac_status=$?
19756 grep -v '^ *+' conftest.er1 >conftest.err
19757 rm -f conftest.er1
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } >/dev/null && {
19761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 }; then
19764 ac_header_preproc=yes
19765 else
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 ac_header_preproc=no
19772 rm -f conftest.err conftest.$ac_ext
19773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19774 echo "${ECHO_T}$ac_header_preproc" >&6; }
19776 # So? What about this header?
19777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19778 yes:no: )
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19783 ac_header_preproc=yes
19785 no:yes:* )
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19800 esac
19801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806 eval "$as_ac_Header=\$ac_header_preproc"
19808 ac_res=`eval echo '${'$as_ac_Header'}'`
19809 { echo "$as_me:$LINENO: result: $ac_res" >&5
19810 echo "${ECHO_T}$ac_res" >&6; }
19813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19816 _ACEOF
19820 done
19822 else
19824 for ac_header in des.h
19826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 ac_res=`eval echo '${'$as_ac_Header'}'`
19834 { echo "$as_me:$LINENO: result: $ac_res" >&5
19835 echo "${ECHO_T}$ac_res" >&6; }
19836 else
19837 # Is the header compilable?
19838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 $ac_includes_default
19847 #include <$ac_header>
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest.$ac_objext; then
19866 ac_header_compiler=yes
19867 else
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_header_compiler=no
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19876 echo "${ECHO_T}$ac_header_compiler" >&6; }
19878 # Is the header present?
19879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <$ac_header>
19888 _ACEOF
19889 if { (ac_try="$ac_cpp conftest.$ac_ext"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 }; then
19905 ac_header_preproc=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 yes:no: )
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19926 no:yes:* )
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19941 esac
19942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947 eval "$as_ac_Header=\$ac_header_preproc"
19949 ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957 _ACEOF
19959 else
19961 for ac_header in kerberosIV/des.h
19963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 ac_res=`eval echo '${'$as_ac_Header'}'`
19971 { echo "$as_me:$LINENO: result: $ac_res" >&5
19972 echo "${ECHO_T}$ac_res" >&6; }
19973 else
19974 # Is the header compilable?
19975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19984 #include <$ac_header>
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 ac_header_compiler=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_header_compiler=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013 echo "${ECHO_T}$ac_header_compiler" >&6; }
20015 # Is the header present?
20016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <$ac_header>
20025 _ACEOF
20026 if { (ac_try="$ac_cpp conftest.$ac_ext"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } >/dev/null && {
20039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 }; then
20042 ac_header_preproc=yes
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_preproc=no
20050 rm -f conftest.err conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6; }
20054 # So? What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056 yes:no: )
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20061 ac_header_preproc=yes
20063 no:yes:* )
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20078 esac
20079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084 eval "$as_ac_Header=\$ac_header_preproc"
20086 ac_res=`eval echo '${'$as_ac_Header'}'`
20087 { echo "$as_me:$LINENO: result: $ac_res" >&5
20088 echo "${ECHO_T}$ac_res" >&6; }
20091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20094 _ACEOF
20096 else
20098 for ac_header in kerberos/des.h
20100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 ac_res=`eval echo '${'$as_ac_Header'}'`
20108 { echo "$as_me:$LINENO: result: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20110 else
20111 # Is the header compilable?
20112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 $ac_includes_default
20121 #include <$ac_header>
20122 _ACEOF
20123 rm -f conftest.$ac_objext
20124 if { (ac_try="$ac_compile"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_compile") 2>conftest.er1
20131 ac_status=$?
20132 grep -v '^ *+' conftest.er1 >conftest.err
20133 rm -f conftest.er1
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } && {
20137 test -z "$ac_c_werror_flag" ||
20138 test ! -s conftest.err
20139 } && test -s conftest.$ac_objext; then
20140 ac_header_compiler=yes
20141 else
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_header_compiler=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20150 echo "${ECHO_T}$ac_header_compiler" >&6; }
20152 # Is the header present?
20153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 #include <$ac_header>
20162 _ACEOF
20163 if { (ac_try="$ac_cpp conftest.$ac_ext"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } >/dev/null && {
20176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 }; then
20179 ac_header_preproc=yes
20180 else
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_header_preproc=no
20187 rm -f conftest.err conftest.$ac_ext
20188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20189 echo "${ECHO_T}$ac_header_preproc" >&6; }
20191 # So? What about this header?
20192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20193 yes:no: )
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20198 ac_header_preproc=yes
20200 no:yes:* )
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20215 esac
20216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 eval "$as_ac_Header=\$ac_header_preproc"
20223 ac_res=`eval echo '${'$as_ac_Header'}'`
20224 { echo "$as_me:$LINENO: result: $ac_res" >&5
20225 echo "${ECHO_T}$ac_res" >&6; }
20228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20231 _ACEOF
20235 done
20239 done
20243 done
20246 for ac_header in krb.h
20248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 ac_res=`eval echo '${'$as_ac_Header'}'`
20256 { echo "$as_me:$LINENO: result: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20258 else
20259 # Is the header compilable?
20260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20269 #include <$ac_header>
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20279 ac_status=$?
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_header_compiler=yes
20289 else
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_header_compiler=no
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20298 echo "${ECHO_T}$ac_header_compiler" >&6; }
20300 # Is the header present?
20301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <$ac_header>
20310 _ACEOF
20311 if { (ac_try="$ac_cpp conftest.$ac_ext"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 }; then
20327 ac_header_preproc=yes
20328 else
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20341 yes:no: )
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20346 ac_header_preproc=yes
20348 no:yes:* )
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20363 esac
20364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369 eval "$as_ac_Header=\$ac_header_preproc"
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20379 _ACEOF
20381 else
20383 for ac_header in kerberosIV/krb.h
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20395 else
20396 # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20406 #include <$ac_header>
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_header_compiler=yes
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_compiler=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6; }
20437 # Is the header present?
20438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20447 _ACEOF
20448 if { (ac_try="$ac_cpp conftest.$ac_ext"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } >/dev/null && {
20461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 }; then
20464 ac_header_preproc=yes
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_header_preproc=no
20472 rm -f conftest.err conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6; }
20476 # So? What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20478 yes:no: )
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20483 ac_header_preproc=yes
20485 no:yes:* )
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20500 esac
20501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 eval "$as_ac_Header=\$ac_header_preproc"
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20514 cat >>confdefs.h <<_ACEOF
20515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20516 _ACEOF
20518 else
20520 for ac_header in kerberos/krb.h
20522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 ac_res=`eval echo '${'$as_ac_Header'}'`
20530 { echo "$as_me:$LINENO: result: $ac_res" >&5
20531 echo "${ECHO_T}$ac_res" >&6; }
20532 else
20533 # Is the header compilable?
20534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20543 #include <$ac_header>
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (ac_try="$ac_compile"
20547 case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_compile") 2>conftest.er1
20553 ac_status=$?
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest.$ac_objext; then
20562 ac_header_compiler=yes
20563 else
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20567 ac_header_compiler=no
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20572 echo "${ECHO_T}$ac_header_compiler" >&6; }
20574 # Is the header present?
20575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <$ac_header>
20584 _ACEOF
20585 if { (ac_try="$ac_cpp conftest.$ac_ext"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } >/dev/null && {
20598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 }; then
20601 ac_header_preproc=yes
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20609 rm -f conftest.err conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20611 echo "${ECHO_T}$ac_header_preproc" >&6; }
20613 # So? What about this header?
20614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 yes:no: )
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20620 ac_header_preproc=yes
20622 no:yes:* )
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20637 esac
20638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643 eval "$as_ac_Header=\$ac_header_preproc"
20645 ac_res=`eval echo '${'$as_ac_Header'}'`
20646 { echo "$as_me:$LINENO: result: $ac_res" >&5
20647 echo "${ECHO_T}$ac_res" >&6; }
20650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20653 _ACEOF
20657 done
20661 done
20665 done
20669 for ac_header in com_err.h
20671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 ac_res=`eval echo '${'$as_ac_Header'}'`
20679 { echo "$as_me:$LINENO: result: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20681 else
20682 # Is the header compilable?
20683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 $ac_includes_default
20692 #include <$ac_header>
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest.$ac_objext; then
20711 ac_header_compiler=yes
20712 else
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_header_compiler=no
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20721 echo "${ECHO_T}$ac_header_compiler" >&6; }
20723 # Is the header present?
20724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h. */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include <$ac_header>
20733 _ACEOF
20734 if { (ac_try="$ac_cpp conftest.$ac_ext"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } >/dev/null && {
20747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20749 }; then
20750 ac_header_preproc=yes
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_preproc=no
20758 rm -f conftest.err conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20760 echo "${ECHO_T}$ac_header_preproc" >&6; }
20762 # So? What about this header?
20763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20764 yes:no: )
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20769 ac_header_preproc=yes
20771 no:yes:* )
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20786 esac
20787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792 eval "$as_ac_Header=\$ac_header_preproc"
20794 ac_res=`eval echo '${'$as_ac_Header'}'`
20795 { echo "$as_me:$LINENO: result: $ac_res" >&5
20796 echo "${ECHO_T}$ac_res" >&6; }
20799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20800 cat >>confdefs.h <<_ACEOF
20801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20802 _ACEOF
20806 done
20810 # Solaris requires -lintl if you want strerror (which calls dgettext)
20811 # to return localized messages.
20813 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20814 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20815 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818 ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lintl $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h. */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 /* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 char dgettext ();
20835 main ()
20837 return dgettext ();
20839 return 0;
20841 _ACEOF
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_link") 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest$ac_exeext &&
20859 $as_test_x conftest$ac_exeext; then
20860 ac_cv_lib_intl_dgettext=yes
20861 else
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_lib_intl_dgettext=no
20868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20873 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20874 if test $ac_cv_lib_intl_dgettext = yes; then
20875 cat >>confdefs.h <<_ACEOF
20876 #define HAVE_LIBINTL 1
20877 _ACEOF
20879 LIBS="-lintl $LIBS"
20884 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20885 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
20886 if test "${emacs_cv_localtime_cache+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 else
20889 if test x$ac_cv_func_tzset = xyes; then
20890 if test "$cross_compiling" = yes; then
20891 # If we have tzset, assume the worst when cross-compiling.
20892 emacs_cv_localtime_cache=yes
20893 else
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <time.h>
20901 extern char **environ;
20902 unset_TZ ()
20904 char **from, **to;
20905 for (to = from = environ; (*to = *from); from++)
20906 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20907 to++;
20909 char TZ_GMT0[] = "TZ=GMT0";
20910 char TZ_PST8[] = "TZ=PST8";
20911 main()
20913 time_t now = time ((time_t *) 0);
20914 int hour_GMT0, hour_unset;
20915 if (putenv (TZ_GMT0) != 0)
20916 exit (1);
20917 hour_GMT0 = localtime (&now)->tm_hour;
20918 unset_TZ ();
20919 hour_unset = localtime (&now)->tm_hour;
20920 if (putenv (TZ_PST8) != 0)
20921 exit (1);
20922 if (localtime (&now)->tm_hour == hour_GMT0)
20923 exit (1);
20924 unset_TZ ();
20925 if (localtime (&now)->tm_hour != hour_unset)
20926 exit (1);
20927 exit (0);
20929 _ACEOF
20930 rm -f conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937 (eval "$ac_link") 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 emacs_cv_localtime_cache=no
20951 else
20952 echo "$as_me: program exited with status $ac_status" >&5
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ( exit $ac_status )
20957 emacs_cv_localtime_cache=yes
20959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963 else
20964 # If we lack tzset, report that localtime does not cache TZ,
20965 # since we can't invalidate the cache if we don't have tzset.
20966 emacs_cv_localtime_cache=no
20969 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20970 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20971 if test $emacs_cv_localtime_cache = yes; then
20973 cat >>confdefs.h <<\_ACEOF
20974 #define LOCALTIME_CACHE 1
20975 _ACEOF
20979 if test "x$HAVE_TIMEVAL" = xyes; then
20981 for ac_func in gettimeofday
20983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20997 #define $ac_func innocuous_$ac_func
20999 /* System header to define __stub macros and hopefully few prototypes,
21000 which can conflict with char $ac_func (); below.
21001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21002 <limits.h> exists even on freestanding compilers. */
21004 #ifdef __STDC__
21005 # include <limits.h>
21006 #else
21007 # include <assert.h>
21008 #endif
21010 #undef $ac_func
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21015 #ifdef __cplusplus
21016 extern "C"
21017 #endif
21018 char $ac_func ();
21019 /* The GNU C library defines this for functions which it implements
21020 to always fail with ENOSYS. Some functions are actually named
21021 something starting with __ and the normal name is an alias. */
21022 #if defined __stub_$ac_func || defined __stub___$ac_func
21023 choke me
21024 #endif
21027 main ()
21029 return $ac_func ();
21031 return 0;
21033 _ACEOF
21034 rm -f conftest.$ac_objext conftest$ac_exeext
21035 if { (ac_try="$ac_link"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_link") 2>conftest.er1
21042 ac_status=$?
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && {
21048 test -z "$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 } && test -s conftest$ac_exeext &&
21051 $as_test_x conftest$ac_exeext; then
21052 eval "$as_ac_var=yes"
21053 else
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 eval "$as_ac_var=no"
21060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21061 conftest$ac_exeext conftest.$ac_ext
21063 ac_res=`eval echo '${'$as_ac_var'}'`
21064 { echo "$as_me:$LINENO: result: $ac_res" >&5
21065 echo "${ECHO_T}$ac_res" >&6; }
21066 if test `eval echo '${'$as_ac_var'}'` = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21069 _ACEOF
21072 done
21074 if test $ac_cv_func_gettimeofday = yes; then
21075 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21076 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21077 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21087 #ifdef TIME_WITH_SYS_TIME
21088 #include <sys/time.h>
21089 #include <time.h>
21090 #else
21091 #ifdef HAVE_SYS_TIME_H
21092 #include <sys/time.h>
21093 #else
21094 #include <time.h>
21095 #endif
21096 #endif
21098 main ()
21100 struct timeval time;
21101 gettimeofday (&time, 0);
21103 return 0;
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 emacs_cv_gettimeofday_two_arguments=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 emacs_cv_gettimeofday_two_arguments=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21134 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21135 if test $emacs_cv_gettimeofday_two_arguments = no; then
21137 cat >>confdefs.h <<\_ACEOF
21138 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21139 _ACEOF
21145 ok_so_far=yes
21146 { echo "$as_me:$LINENO: checking for socket" >&5
21147 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21148 if test "${ac_cv_func_socket+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151 cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h. */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21159 #define socket innocuous_socket
21161 /* System header to define __stub macros and hopefully few prototypes,
21162 which can conflict with char socket (); below.
21163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164 <limits.h> exists even on freestanding compilers. */
21166 #ifdef __STDC__
21167 # include <limits.h>
21168 #else
21169 # include <assert.h>
21170 #endif
21172 #undef socket
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 char socket ();
21181 /* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184 #if defined __stub_socket || defined __stub___socket
21185 choke me
21186 #endif
21189 main ()
21191 return socket ();
21193 return 0;
21195 _ACEOF
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest$ac_exeext &&
21213 $as_test_x conftest$ac_exeext; then
21214 ac_cv_func_socket=yes
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_cv_func_socket=no
21222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 conftest$ac_exeext conftest.$ac_ext
21225 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21226 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21227 if test $ac_cv_func_socket = yes; then
21229 else
21230 ok_so_far=no
21233 if test $ok_so_far = yes; then
21234 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21235 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21236 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21237 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21240 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21241 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21242 else
21243 # Is the header compilable?
21244 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21245 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 $ac_includes_default
21253 #include <netinet/in.h>
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21263 ac_status=$?
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
21272 ac_header_compiler=yes
21273 else
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_header_compiler=no
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21282 echo "${ECHO_T}$ac_header_compiler" >&6; }
21284 # Is the header present?
21285 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21286 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21294 _ACEOF
21295 if { (ac_try="$ac_cpp conftest.$ac_ext"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } >/dev/null && {
21308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 }; then
21311 ac_header_preproc=yes
21312 else
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_preproc=no
21319 rm -f conftest.err conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21321 echo "${ECHO_T}$ac_header_preproc" >&6; }
21323 # So? What about this header?
21324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21325 yes:no: )
21326 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21327 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21329 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21330 ac_header_preproc=yes
21332 no:yes:* )
21333 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21334 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21336 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21338 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21340 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21342 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21344 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21347 esac
21348 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21349 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21350 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353 ac_cv_header_netinet_in_h=$ac_header_preproc
21355 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21356 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21359 if test $ac_cv_header_netinet_in_h = yes; then
21361 else
21362 ok_so_far=no
21367 if test $ok_so_far = yes; then
21368 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21369 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21370 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21371 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21375 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21376 else
21377 # Is the header compilable?
21378 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21379 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21380 cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h. */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21387 #include <arpa/inet.h>
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest.$ac_objext; then
21406 ac_header_compiler=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_compiler=no
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21416 echo "${ECHO_T}$ac_header_compiler" >&6; }
21418 # Is the header present?
21419 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21420 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h. */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <arpa/inet.h>
21428 _ACEOF
21429 if { (ac_try="$ac_cpp conftest.$ac_ext"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } >/dev/null && {
21442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 }; then
21445 ac_header_preproc=yes
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_header_preproc=no
21453 rm -f conftest.err conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21455 echo "${ECHO_T}$ac_header_preproc" >&6; }
21457 # So? What about this header?
21458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21459 yes:no: )
21460 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21461 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21463 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21464 ac_header_preproc=yes
21466 no:yes:* )
21467 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21468 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21470 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21472 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21474 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21476 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21478 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21481 esac
21482 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21483 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21484 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 ac_cv_header_arpa_inet_h=$ac_header_preproc
21489 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21490 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21493 if test $ac_cv_header_arpa_inet_h = yes; then
21495 else
21496 ok_so_far=no
21501 if test $ok_so_far = yes; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_INET_SOCKETS 1
21505 _ACEOF
21510 for ac_header in sys/ioctl.h
21512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21522 else
21523 # Is the header compilable?
21524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21526 cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h. */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 $ac_includes_default
21533 #include <$ac_header>
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_header_compiler=yes
21553 else
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ac_header_compiler=no
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21562 echo "${ECHO_T}$ac_header_compiler" >&6; }
21564 # Is the header present?
21565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h. */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 #include <$ac_header>
21574 _ACEOF
21575 if { (ac_try="$ac_cpp conftest.$ac_ext"
21576 case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21582 ac_status=$?
21583 grep -v '^ *+' conftest.er1 >conftest.err
21584 rm -f conftest.er1
21585 cat conftest.err >&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } >/dev/null && {
21588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21590 }; then
21591 ac_header_preproc=yes
21592 else
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ac_header_preproc=no
21599 rm -f conftest.err conftest.$ac_ext
21600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21601 echo "${ECHO_T}$ac_header_preproc" >&6; }
21603 # So? What about this header?
21604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21605 yes:no: )
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21610 ac_header_preproc=yes
21612 no:yes:* )
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21627 esac
21628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633 eval "$as_ac_Header=\$ac_header_preproc"
21635 ac_res=`eval echo '${'$as_ac_Header'}'`
21636 { echo "$as_me:$LINENO: result: $ac_res" >&5
21637 echo "${ECHO_T}$ac_res" >&6; }
21640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21641 cat >>confdefs.h <<_ACEOF
21642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21643 _ACEOF
21647 done
21650 if test -f /usr/lpp/X11/bin/smt.exp; then
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_AIX_SMT_EXP 1
21654 _ACEOF
21658 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21659 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21660 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21661 { echo "$as_me:$LINENO: result: yes" >&5
21662 echo "${ECHO_T}yes" >&6; }
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_DEV_PTMX 1
21666 _ACEOF
21668 else
21669 { echo "$as_me:$LINENO: result: no" >&5
21670 echo "${ECHO_T}no" >&6; }
21673 { echo "$as_me:$LINENO: checking for pid_t" >&5
21674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21675 if test "${ac_cv_type_pid_t+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h. */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 typedef pid_t ac__type_new_;
21687 main ()
21689 if ((ac__type_new_ *) 0)
21690 return 0;
21691 if (sizeof (ac__type_new_))
21692 return 0;
21694 return 0;
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_compile") 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } && {
21711 test -z "$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 } && test -s conftest.$ac_objext; then
21714 ac_cv_type_pid_t=yes
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_cv_type_pid_t=no
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21725 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21726 if test $ac_cv_type_pid_t = yes; then
21728 else
21730 cat >>confdefs.h <<_ACEOF
21731 #define pid_t int
21732 _ACEOF
21737 for ac_header in vfork.h
21739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 ac_res=`eval echo '${'$as_ac_Header'}'`
21747 { echo "$as_me:$LINENO: result: $ac_res" >&5
21748 echo "${ECHO_T}$ac_res" >&6; }
21749 else
21750 # Is the header compilable?
21751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21753 cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 $ac_includes_default
21760 #include <$ac_header>
21761 _ACEOF
21762 rm -f conftest.$ac_objext
21763 if { (ac_try="$ac_compile"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest.$ac_objext; then
21779 ac_header_compiler=yes
21780 else
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 ac_header_compiler=no
21787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21789 echo "${ECHO_T}$ac_header_compiler" >&6; }
21791 # Is the header present?
21792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <$ac_header>
21801 _ACEOF
21802 if { (ac_try="$ac_cpp conftest.$ac_ext"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } >/dev/null && {
21815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 }; then
21818 ac_header_preproc=yes
21819 else
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_header_preproc=no
21826 rm -f conftest.err conftest.$ac_ext
21827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21828 echo "${ECHO_T}$ac_header_preproc" >&6; }
21830 # So? What about this header?
21831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21832 yes:no: )
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21837 ac_header_preproc=yes
21839 no:yes:* )
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21854 esac
21855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 else
21860 eval "$as_ac_Header=\$ac_header_preproc"
21862 ac_res=`eval echo '${'$as_ac_Header'}'`
21863 { echo "$as_me:$LINENO: result: $ac_res" >&5
21864 echo "${ECHO_T}$ac_res" >&6; }
21867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21868 cat >>confdefs.h <<_ACEOF
21869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21870 _ACEOF
21874 done
21878 for ac_func in fork vfork
21880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21894 #define $ac_func innocuous_$ac_func
21896 /* System header to define __stub macros and hopefully few prototypes,
21897 which can conflict with char $ac_func (); below.
21898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21899 <limits.h> exists even on freestanding compilers. */
21901 #ifdef __STDC__
21902 # include <limits.h>
21903 #else
21904 # include <assert.h>
21905 #endif
21907 #undef $ac_func
21909 /* Override any GCC internal prototype to avoid an error.
21910 Use char because int might match the return type of a GCC
21911 builtin and then its argument prototype would still apply. */
21912 #ifdef __cplusplus
21913 extern "C"
21914 #endif
21915 char $ac_func ();
21916 /* The GNU C library defines this for functions which it implements
21917 to always fail with ENOSYS. Some functions are actually named
21918 something starting with __ and the normal name is an alias. */
21919 #if defined __stub_$ac_func || defined __stub___$ac_func
21920 choke me
21921 #endif
21924 main ()
21926 return $ac_func ();
21928 return 0;
21930 _ACEOF
21931 rm -f conftest.$ac_objext conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_link") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest$ac_exeext &&
21948 $as_test_x conftest$ac_exeext; then
21949 eval "$as_ac_var=yes"
21950 else
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 eval "$as_ac_var=no"
21957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958 conftest$ac_exeext conftest.$ac_ext
21960 ac_res=`eval echo '${'$as_ac_var'}'`
21961 { echo "$as_me:$LINENO: result: $ac_res" >&5
21962 echo "${ECHO_T}$ac_res" >&6; }
21963 if test `eval echo '${'$as_ac_var'}'` = yes; then
21964 cat >>confdefs.h <<_ACEOF
21965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21966 _ACEOF
21969 done
21971 if test "x$ac_cv_func_fork" = xyes; then
21972 { echo "$as_me:$LINENO: checking for working fork" >&5
21973 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21974 if test "${ac_cv_func_fork_works+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977 if test "$cross_compiling" = yes; then
21978 ac_cv_func_fork_works=cross
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21988 main ()
21991 /* By Ruediger Kuhlmann. */
21992 return fork () < 0;
21995 return 0;
21997 _ACEOF
21998 rm -f conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22009 { (case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_try") 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_cv_func_fork_works=yes
22019 else
22020 echo "$as_me: program exited with status $ac_status" >&5
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ( exit $ac_status )
22025 ac_cv_func_fork_works=no
22027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22033 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22035 else
22036 ac_cv_func_fork_works=$ac_cv_func_fork
22038 if test "x$ac_cv_func_fork_works" = xcross; then
22039 case $host in
22040 *-*-amigaos* | *-*-msdosdjgpp*)
22041 # Override, as these systems have only a dummy fork() stub
22042 ac_cv_func_fork_works=no
22045 ac_cv_func_fork_works=yes
22047 esac
22048 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22049 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22051 ac_cv_func_vfork_works=$ac_cv_func_vfork
22052 if test "x$ac_cv_func_vfork" = xyes; then
22053 { echo "$as_me:$LINENO: checking for working vfork" >&5
22054 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22055 if test "${ac_cv_func_vfork_works+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058 if test "$cross_compiling" = yes; then
22059 ac_cv_func_vfork_works=cross
22060 else
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 /* Thanks to Paul Eggert for this test. */
22068 $ac_includes_default
22069 #include <sys/wait.h>
22070 #ifdef HAVE_VFORK_H
22071 # include <vfork.h>
22072 #endif
22073 /* On some sparc systems, changes by the child to local and incoming
22074 argument registers are propagated back to the parent. The compiler
22075 is told about this with #include <vfork.h>, but some compilers
22076 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22077 static variable whose address is put into a register that is
22078 clobbered by the vfork. */
22079 static void
22080 #ifdef __cplusplus
22081 sparc_address_test (int arg)
22082 # else
22083 sparc_address_test (arg) int arg;
22084 #endif
22086 static pid_t child;
22087 if (!child) {
22088 child = vfork ();
22089 if (child < 0) {
22090 perror ("vfork");
22091 _exit(2);
22093 if (!child) {
22094 arg = getpid();
22095 write(-1, "", 0);
22096 _exit (arg);
22102 main ()
22104 pid_t parent = getpid ();
22105 pid_t child;
22107 sparc_address_test (0);
22109 child = vfork ();
22111 if (child == 0) {
22112 /* Here is another test for sparc vfork register problems. This
22113 test uses lots of local variables, at least as many local
22114 variables as main has allocated so far including compiler
22115 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22116 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22117 reuse the register of parent for one of the local variables,
22118 since it will think that parent can't possibly be used any more
22119 in this routine. Assigning to the local variable will thus
22120 munge parent in the parent process. */
22121 pid_t
22122 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22123 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22124 /* Convince the compiler that p..p7 are live; otherwise, it might
22125 use the same hardware register for all 8 local variables. */
22126 if (p != p1 || p != p2 || p != p3 || p != p4
22127 || p != p5 || p != p6 || p != p7)
22128 _exit(1);
22130 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22131 from child file descriptors. If the child closes a descriptor
22132 before it execs or exits, this munges the parent's descriptor
22133 as well. Test for this by closing stdout in the child. */
22134 _exit(close(fileno(stdout)) != 0);
22135 } else {
22136 int status;
22137 struct stat st;
22139 while (wait(&status) != child)
22141 return (
22142 /* Was there some problem with vforking? */
22143 child < 0
22145 /* Did the child fail? (This shouldn't happen.) */
22146 || status
22148 /* Did the vfork/compiler bug occur? */
22149 || parent != getpid()
22151 /* Did the file descriptor bug occur? */
22152 || fstat(fileno(stdout), &st) != 0
22156 _ACEOF
22157 rm -f conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_link") 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_try") 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_cv_func_vfork_works=yes
22178 else
22179 echo "$as_me: program exited with status $ac_status" >&5
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ( exit $ac_status )
22184 ac_cv_func_vfork_works=no
22186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22192 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22195 if test "x$ac_cv_func_fork_works" = xcross; then
22196 ac_cv_func_vfork_works=$ac_cv_func_vfork
22197 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22198 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22201 if test "x$ac_cv_func_vfork_works" = xyes; then
22203 cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_WORKING_VFORK 1
22205 _ACEOF
22207 else
22209 cat >>confdefs.h <<\_ACEOF
22210 #define vfork fork
22211 _ACEOF
22214 if test "x$ac_cv_func_fork_works" = xyes; then
22216 cat >>confdefs.h <<\_ACEOF
22217 #define HAVE_WORKING_FORK 1
22218 _ACEOF
22223 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22224 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22225 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234 #include <langinfo.h>
22236 main ()
22238 char* cs = nl_langinfo(CODESET);
22240 return 0;
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_link") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest$ac_exeext &&
22260 $as_test_x conftest$ac_exeext; then
22261 emacs_cv_langinfo_codeset=yes
22262 else
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 emacs_cv_langinfo_codeset=no
22269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22270 conftest$ac_exeext conftest.$ac_ext
22273 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22274 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22275 if test $emacs_cv_langinfo_codeset = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_LANGINFO_CODESET 1
22279 _ACEOF
22283 { echo "$as_me:$LINENO: checking for size_t" >&5
22284 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22285 if test "${ac_cv_type_size_t+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 $ac_includes_default
22295 typedef size_t ac__type_new_;
22297 main ()
22299 if ((ac__type_new_ *) 0)
22300 return 0;
22301 if (sizeof (ac__type_new_))
22302 return 0;
22304 return 0;
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_cv_type_size_t=yes
22325 else
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_cv_type_size_t=no
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22335 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22336 if test $ac_cv_type_size_t = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339 #define HAVE_SIZE_T 1
22340 _ACEOF
22346 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22347 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22348 if test "${ac_cv_type_mbstate_t+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 # include <wchar.h>
22360 main ()
22362 mbstate_t x; return sizeof x;
22364 return 0;
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (ac_try="$ac_compile"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22375 ac_status=$?
22376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_cv_type_mbstate_t=yes
22385 else
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_cv_type_mbstate_t=no
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22395 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22396 if test $ac_cv_type_mbstate_t = yes; then
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_MBSTATE_T 1
22400 _ACEOF
22402 else
22404 cat >>confdefs.h <<\_ACEOF
22405 #define mbstate_t int
22406 _ACEOF
22410 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22411 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22412 if test "${emacs_cv_c_restrict+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 void fred (int *restrict x);
22423 main ()
22427 return 0;
22429 _ACEOF
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22438 ac_status=$?
22439 grep -v '^ *+' conftest.er1 >conftest.err
22440 rm -f conftest.er1
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22447 emacs_cv_c_restrict=yes
22448 else
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 void fred (int *__restrict x);
22460 main ()
22464 return 0;
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 emacs_cv_c_restrict=__restrict
22485 else
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 emacs_cv_c_restrict=no
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22498 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22499 case "$emacs_cv_c_restrict" in
22500 yes) emacs_restrict=restrict;;
22501 no) emacs_restrict="";;
22502 *) emacs_restrict="$emacs_cv_c_restrict";;
22503 esac
22504 if test "$emacs_restrict" != __restrict; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define __restrict $emacs_restrict
22508 _ACEOF
22512 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22513 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22514 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22515 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 else
22517 cat >conftest.$ac_ext <<_ACEOF
22518 /* confdefs.h. */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 void fred (int x[__restrict]);
22525 main ()
22529 return 0;
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 emacs_cv_c_restrict_arr=yes
22550 else
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 emacs_cv_c_restrict_arr=no
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22560 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22561 if test "$emacs_cv_c_restrict_arr" = yes; then
22563 cat >>confdefs.h <<\_ACEOF
22564 #define __restrict_arr __restrict
22565 _ACEOF
22571 # Set up the CFLAGS for real compilation, so we can substitute it.
22572 CFLAGS="$REAL_CFLAGS"
22573 CPPFLAGS="$REAL_CPPFLAGS"
22575 #### Find out which version of Emacs this is.
22576 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22577 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22578 if test x"${version}" = x; then
22579 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22580 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22581 { (exit 1); exit 1; }; }
22584 ### Specify what sort of things we'll be editing into Makefile and config.h.
22585 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22621 cat >>confdefs.h <<_ACEOF
22622 #define EMACS_CONFIGURATION "${canonical}"
22623 _ACEOF
22626 cat >>confdefs.h <<_ACEOF
22627 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22628 _ACEOF
22631 cat >>confdefs.h <<_ACEOF
22632 #define config_machfile "${machfile}"
22633 _ACEOF
22636 cat >>confdefs.h <<_ACEOF
22637 #define config_opsysfile "${opsysfile}"
22638 _ACEOF
22641 cat >>confdefs.h <<_ACEOF
22642 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22643 _ACEOF
22646 cat >>confdefs.h <<_ACEOF
22647 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22648 _ACEOF
22651 cat >>confdefs.h <<_ACEOF
22652 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22653 _ACEOF
22656 cat >>confdefs.h <<_ACEOF
22657 #define UNEXEC_SRC ${UNEXEC_SRC}
22658 _ACEOF
22661 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_X_WINDOWS 1
22665 _ACEOF
22668 if test "${USE_X_TOOLKIT}" != "none" ; then
22670 cat >>confdefs.h <<\_ACEOF
22671 #define USE_X_TOOLKIT 1
22672 _ACEOF
22675 if test "${HAVE_X11}" = "yes" ; then
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_X11 1
22679 _ACEOF
22682 if test "${HAVE_XFREE386}" = "yes" ; then
22684 cat >>confdefs.h <<\_ACEOF
22685 #define HAVE_XFREE386 1
22686 _ACEOF
22689 if test "${HAVE_MENUS}" = "yes" ; then
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_MENUS 1
22693 _ACEOF
22696 if test "${GNU_MALLOC}" = "yes" ; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define GNU_MALLOC 1
22700 _ACEOF
22703 if test "${REL_ALLOC}" = "yes" ; then
22705 cat >>confdefs.h <<\_ACEOF
22706 #define REL_ALLOC 1
22707 _ACEOF
22715 #### Report on what we decided to do.
22716 #### Report GTK as a toolkit, even if it doesn't use Xt.
22717 #### It makes printing result more understandable as using GTK sets
22718 #### toolkit_scroll_bars to yes by default.
22719 if test "${HAVE_GTK}" = "yes"; then
22720 USE_X_TOOLKIT=GTK
22723 echo "
22724 Configured for \`${canonical}'.
22726 Where should the build process find the source code? ${srcdir}
22727 What operating system and machine description files should Emacs use?
22728 \`${opsysfile}' and \`${machfile}'
22729 What compiler should emacs be built with? ${CC} ${CFLAGS}
22730 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22731 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22732 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22733 What window system should Emacs use? ${window_system}
22734 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22736 if test -n "${x_includes}"; then
22737 echo " Where do we find X Windows header files? ${x_includes}"
22738 else
22739 echo " Where do we find X Windows header files? Standard dirs"
22741 if test -n "${x_libraries}"; then
22742 echo " Where do we find X Windows libraries? ${x_libraries}"
22743 else
22744 echo " Where do we find X Windows libraries? Standard dirs"
22747 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22748 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22749 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22750 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22751 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22752 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22753 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22754 echo
22756 if test $USE_XASSERTS = yes; then
22757 echo " Compiling with asserts turned on."
22758 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22759 echo
22764 # Remove any trailing slashes in these variables.
22765 test "${prefix}" != NONE &&
22766 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22767 test "${exec_prefix}" != NONE &&
22768 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22770 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22771 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22772 ## from Makefile.c can correctly provide the arg `-traditional' to the
22773 ## C preprocessor.
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h. */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 yes..yes
22782 _ACEOF
22783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22784 $EGREP "yes..yes" >/dev/null 2>&1; then
22785 CPP_NEED_TRADITIONAL=no
22786 else
22787 CPP_NEED_TRADITIONAL=yes
22789 rm -f conftest*
22792 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"
22794 ac_config_commands="$ac_config_commands default"
22796 cat >confcache <<\_ACEOF
22797 # This file is a shell script that caches the results of configure
22798 # tests run on this system so they can be shared between configure
22799 # scripts and configure runs, see configure's option --config-cache.
22800 # It is not useful on other systems. If it contains results you don't
22801 # want to keep, you may remove or edit it.
22803 # config.status only pays attention to the cache file if you give it
22804 # the --recheck option to rerun configure.
22806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22808 # following values.
22810 _ACEOF
22812 # The following way of writing the cache mishandles newlines in values,
22813 # but we know of no workaround that is simple, portable, and efficient.
22814 # So, we kill variables containing newlines.
22815 # Ultrix sh set writes to stderr and can't be redirected directly,
22816 # and sets the high bit in the cache file unless we assign to the vars.
22818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22819 eval ac_val=\$$ac_var
22820 case $ac_val in #(
22821 *${as_nl}*)
22822 case $ac_var in #(
22823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22825 esac
22826 case $ac_var in #(
22827 _ | IFS | as_nl) ;; #(
22828 *) $as_unset $ac_var ;;
22829 esac ;;
22830 esac
22831 done
22833 (set) 2>&1 |
22834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22835 *${as_nl}ac_space=\ *)
22836 # `set' does not quote correctly, so add quotes (double-quote
22837 # substitution turns \\\\ into \\, and sed turns \\ into \).
22838 sed -n \
22839 "s/'/'\\\\''/g;
22840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22841 ;; #(
22843 # `set' quotes correctly as required by POSIX, so do not add quotes.
22844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22846 esac |
22847 sort
22849 sed '
22850 /^ac_cv_env_/b end
22851 t clear
22852 :clear
22853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22854 t end
22855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22856 :end' >>confcache
22857 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22858 if test -w "$cache_file"; then
22859 test "x$cache_file" != "x/dev/null" &&
22860 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22861 echo "$as_me: updating cache $cache_file" >&6;}
22862 cat confcache >$cache_file
22863 else
22864 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22865 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22868 rm -f confcache
22870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22871 # Let make expand exec_prefix.
22872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22874 DEFS=-DHAVE_CONFIG_H
22876 ac_libobjs=
22877 ac_ltlibobjs=
22878 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22879 # 1. Remove the extension, and $U if already installed.
22880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22881 ac_i=`echo "$ac_i" | sed "$ac_script"`
22882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22883 # will be set to the directory where LIBOBJS objects are built.
22884 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22885 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22886 done
22887 LIBOBJS=$ac_libobjs
22889 LTLIBOBJS=$ac_ltlibobjs
22893 : ${CONFIG_STATUS=./config.status}
22894 ac_clean_files_save=$ac_clean_files
22895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22896 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22898 cat >$CONFIG_STATUS <<_ACEOF
22899 #! $SHELL
22900 # Generated by $as_me.
22901 # Run this file to recreate the current configuration.
22902 # Compiler output produced by configure, useful for debugging
22903 # configure, is in config.log if it exists.
22905 debug=false
22906 ac_cs_recheck=false
22907 ac_cs_silent=false
22908 SHELL=\${CONFIG_SHELL-$SHELL}
22909 _ACEOF
22911 cat >>$CONFIG_STATUS <<\_ACEOF
22912 ## --------------------- ##
22913 ## M4sh Initialization. ##
22914 ## --------------------- ##
22916 # Be more Bourne compatible
22917 DUALCASE=1; export DUALCASE # for MKS sh
22918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22919 emulate sh
22920 NULLCMD=:
22921 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22922 # is contrary to our usage. Disable this feature.
22923 alias -g '${1+"$@"}'='"$@"'
22924 setopt NO_GLOB_SUBST
22925 else
22926 case `(set -o) 2>/dev/null` in
22927 *posix*) set -o posix ;;
22928 esac
22935 # PATH needs CR
22936 # Avoid depending upon Character Ranges.
22937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22940 as_cr_digits='0123456789'
22941 as_cr_alnum=$as_cr_Letters$as_cr_digits
22943 # The user is always right.
22944 if test "${PATH_SEPARATOR+set}" != set; then
22945 echo "#! /bin/sh" >conf$$.sh
22946 echo "exit 0" >>conf$$.sh
22947 chmod +x conf$$.sh
22948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22949 PATH_SEPARATOR=';'
22950 else
22951 PATH_SEPARATOR=:
22953 rm -f conf$$.sh
22956 # Support unset when possible.
22957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22958 as_unset=unset
22959 else
22960 as_unset=false
22964 # IFS
22965 # We need space, tab and new line, in precisely that order. Quoting is
22966 # there to prevent editors from complaining about space-tab.
22967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22968 # splitting by setting IFS to empty value.)
22969 as_nl='
22971 IFS=" "" $as_nl"
22973 # Find who we are. Look in the path if we contain no directory separator.
22974 case $0 in
22975 *[\\/]* ) as_myself=$0 ;;
22976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22977 for as_dir in $PATH
22979 IFS=$as_save_IFS
22980 test -z "$as_dir" && as_dir=.
22981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22982 done
22983 IFS=$as_save_IFS
22986 esac
22987 # We did not find ourselves, most probably we were run as `sh COMMAND'
22988 # in which case we are not to be found in the path.
22989 if test "x$as_myself" = x; then
22990 as_myself=$0
22992 if test ! -f "$as_myself"; then
22993 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22994 { (exit 1); exit 1; }
22997 # Work around bugs in pre-3.0 UWIN ksh.
22998 for as_var in ENV MAIL MAILPATH
22999 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23000 done
23001 PS1='$ '
23002 PS2='> '
23003 PS4='+ '
23005 # NLS nuisances.
23006 for as_var in \
23007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23009 LC_TELEPHONE LC_TIME
23011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23012 eval $as_var=C; export $as_var
23013 else
23014 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23016 done
23018 # Required to use basename.
23019 if expr a : '\(a\)' >/dev/null 2>&1 &&
23020 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23021 as_expr=expr
23022 else
23023 as_expr=false
23026 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23027 as_basename=basename
23028 else
23029 as_basename=false
23033 # Name of the executable.
23034 as_me=`$as_basename -- "$0" ||
23035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23036 X"$0" : 'X\(//\)$' \| \
23037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23038 echo X/"$0" |
23039 sed '/^.*\/\([^/][^/]*\)\/*$/{
23040 s//\1/
23043 /^X\/\(\/\/\)$/{
23044 s//\1/
23047 /^X\/\(\/\).*/{
23048 s//\1/
23051 s/.*/./; q'`
23053 # CDPATH.
23054 $as_unset CDPATH
23058 as_lineno_1=$LINENO
23059 as_lineno_2=$LINENO
23060 test "x$as_lineno_1" != "x$as_lineno_2" &&
23061 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23064 # uniformly replaced by the line number. The first 'sed' inserts a
23065 # line-number line after each line using $LINENO; the second 'sed'
23066 # does the real work. The second script uses 'N' to pair each
23067 # line-number line with the line containing $LINENO, and appends
23068 # trailing '-' during substitution so that $LINENO is not a special
23069 # case at line end.
23070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23071 # scripts with optimization help from Paolo Bonzini. Blame Lee
23072 # E. McMahon (1931-1989) for sed's syntax. :-)
23073 sed -n '
23075 /[$]LINENO/=
23076 ' <$as_myself |
23077 sed '
23078 s/[$]LINENO.*/&-/
23079 t lineno
23081 :lineno
23083 :loop
23084 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23085 t loop
23086 s/-\n.*//
23087 ' >$as_me.lineno &&
23088 chmod +x "$as_me.lineno" ||
23089 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23090 { (exit 1); exit 1; }; }
23092 # Don't try to exec as it changes $[0], causing all sort of problems
23093 # (the dirname of $[0] is not the place where we might find the
23094 # original and so on. Autoconf is especially sensitive to this).
23095 . "./$as_me.lineno"
23096 # Exit status is that of the last command.
23097 exit
23101 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23102 as_dirname=dirname
23103 else
23104 as_dirname=false
23107 ECHO_C= ECHO_N= ECHO_T=
23108 case `echo -n x` in
23109 -n*)
23110 case `echo 'x\c'` in
23111 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23112 *) ECHO_C='\c';;
23113 esac;;
23115 ECHO_N='-n';;
23116 esac
23118 if expr a : '\(a\)' >/dev/null 2>&1 &&
23119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23120 as_expr=expr
23121 else
23122 as_expr=false
23125 rm -f conf$$ conf$$.exe conf$$.file
23126 if test -d conf$$.dir; then
23127 rm -f conf$$.dir/conf$$.file
23128 else
23129 rm -f conf$$.dir
23130 mkdir conf$$.dir
23132 echo >conf$$.file
23133 if ln -s conf$$.file conf$$ 2>/dev/null; then
23134 as_ln_s='ln -s'
23135 # ... but there are two gotchas:
23136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23138 # In both cases, we have to default to `cp -p'.
23139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23140 as_ln_s='cp -p'
23141 elif ln conf$$.file conf$$ 2>/dev/null; then
23142 as_ln_s=ln
23143 else
23144 as_ln_s='cp -p'
23146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23147 rmdir conf$$.dir 2>/dev/null
23149 if mkdir -p . 2>/dev/null; then
23150 as_mkdir_p=:
23151 else
23152 test -d ./-p && rmdir ./-p
23153 as_mkdir_p=false
23156 if test -x / >/dev/null 2>&1; then
23157 as_test_x='test -x'
23158 else
23159 if ls -dL / >/dev/null 2>&1; then
23160 as_ls_L_option=L
23161 else
23162 as_ls_L_option=
23164 as_test_x='
23165 eval sh -c '\''
23166 if test -d "$1"; then
23167 test -d "$1/.";
23168 else
23169 case $1 in
23170 -*)set "./$1";;
23171 esac;
23172 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23173 ???[sx]*):;;*)false;;esac;fi
23174 '\'' sh
23177 as_executable_p=$as_test_x
23179 # Sed expression to map a string onto a valid CPP name.
23180 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23182 # Sed expression to map a string onto a valid variable name.
23183 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23186 exec 6>&1
23188 # Save the log message, to keep $[0] and so on meaningful, and to
23189 # report actual input values of CONFIG_FILES etc. instead of their
23190 # values after options handling.
23191 ac_log="
23192 This file was extended by $as_me, which was
23193 generated by GNU Autoconf 2.61. Invocation command line was
23195 CONFIG_FILES = $CONFIG_FILES
23196 CONFIG_HEADERS = $CONFIG_HEADERS
23197 CONFIG_LINKS = $CONFIG_LINKS
23198 CONFIG_COMMANDS = $CONFIG_COMMANDS
23199 $ $0 $@
23201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23204 _ACEOF
23206 cat >>$CONFIG_STATUS <<_ACEOF
23207 # Files that config.status was made for.
23208 config_files="$ac_config_files"
23209 config_headers="$ac_config_headers"
23210 config_commands="$ac_config_commands"
23212 _ACEOF
23214 cat >>$CONFIG_STATUS <<\_ACEOF
23215 ac_cs_usage="\
23216 \`$as_me' instantiates files from templates according to the
23217 current configuration.
23219 Usage: $0 [OPTIONS] [FILE]...
23221 -h, --help print this help, then exit
23222 -V, --version print version number and configuration settings, then exit
23223 -q, --quiet do not print progress messages
23224 -d, --debug don't remove temporary files
23225 --recheck update $as_me by reconfiguring in the same conditions
23226 --file=FILE[:TEMPLATE]
23227 instantiate the configuration file FILE
23228 --header=FILE[:TEMPLATE]
23229 instantiate the configuration header FILE
23231 Configuration files:
23232 $config_files
23234 Configuration headers:
23235 $config_headers
23237 Configuration commands:
23238 $config_commands
23240 Report bugs to <bug-autoconf@gnu.org>."
23242 _ACEOF
23243 cat >>$CONFIG_STATUS <<_ACEOF
23244 ac_cs_version="\\
23245 config.status
23246 configured by $0, generated by GNU Autoconf 2.61,
23247 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23249 Copyright (C) 2006, 2007 Free Software Foundation, Inc.
23250 This config.status script is free software; the Free Software Foundation
23251 gives unlimited permission to copy, distribute and modify it."
23253 ac_pwd='$ac_pwd'
23254 srcdir='$srcdir'
23255 INSTALL='$INSTALL'
23256 _ACEOF
23258 cat >>$CONFIG_STATUS <<\_ACEOF
23259 # If no file are specified by the user, then we need to provide default
23260 # value. By we need to know if files were specified by the user.
23261 ac_need_defaults=:
23262 while test $# != 0
23264 case $1 in
23265 --*=*)
23266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23268 ac_shift=:
23271 ac_option=$1
23272 ac_optarg=$2
23273 ac_shift=shift
23275 esac
23277 case $ac_option in
23278 # Handling of the options.
23279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23280 ac_cs_recheck=: ;;
23281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23282 echo "$ac_cs_version"; exit ;;
23283 --debug | --debu | --deb | --de | --d | -d )
23284 debug=: ;;
23285 --file | --fil | --fi | --f )
23286 $ac_shift
23287 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23288 ac_need_defaults=false;;
23289 --header | --heade | --head | --hea )
23290 $ac_shift
23291 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23292 ac_need_defaults=false;;
23293 --he | --h)
23294 # Conflict between --help and --header
23295 { echo "$as_me: error: ambiguous option: $1
23296 Try \`$0 --help' for more information." >&2
23297 { (exit 1); exit 1; }; };;
23298 --help | --hel | -h )
23299 echo "$ac_cs_usage"; exit ;;
23300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23302 ac_cs_silent=: ;;
23304 # This is an error.
23305 -*) { echo "$as_me: error: unrecognized option: $1
23306 Try \`$0 --help' for more information." >&2
23307 { (exit 1); exit 1; }; } ;;
23309 *) ac_config_targets="$ac_config_targets $1"
23310 ac_need_defaults=false ;;
23312 esac
23313 shift
23314 done
23316 ac_configure_extra_args=
23318 if $ac_cs_silent; then
23319 exec 6>/dev/null
23320 ac_configure_extra_args="$ac_configure_extra_args --silent"
23323 _ACEOF
23324 cat >>$CONFIG_STATUS <<_ACEOF
23325 if \$ac_cs_recheck; then
23326 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23327 CONFIG_SHELL=$SHELL
23328 export CONFIG_SHELL
23329 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23332 _ACEOF
23333 cat >>$CONFIG_STATUS <<\_ACEOF
23334 exec 5>>config.log
23336 echo
23337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23338 ## Running $as_me. ##
23339 _ASBOX
23340 echo "$ac_log"
23341 } >&5
23343 _ACEOF
23344 cat >>$CONFIG_STATUS <<_ACEOF
23346 # INIT-COMMANDS
23348 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23350 _ACEOF
23352 cat >>$CONFIG_STATUS <<\_ACEOF
23354 # Handling of arguments.
23355 for ac_config_target in $ac_config_targets
23357 case $ac_config_target in
23358 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23360 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23361 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23362 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23363 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23364 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23365 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23366 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23367 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23368 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23369 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23373 { (exit 1); exit 1; }; };;
23374 esac
23375 done
23378 # If the user did not use the arguments to specify the items to instantiate,
23379 # then the envvar interface is used. Set only those that are not.
23380 # We use the long form for the default assignment because of an extremely
23381 # bizarre bug on SunOS 4.1.3.
23382 if $ac_need_defaults; then
23383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23388 # Have a temporary directory for convenience. Make it in the build tree
23389 # simply because there is no reason against having it here, and in addition,
23390 # creating and moving files from /tmp can sometimes cause problems.
23391 # Hook for its removal unless debugging.
23392 # Note that there is a small window in which the directory will not be cleaned:
23393 # after its creation but before its name has been assigned to `$tmp'.
23394 $debug ||
23396 tmp=
23397 trap 'exit_status=$?
23398 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23400 trap '{ (exit 1); exit 1; }' 1 2 13 15
23402 # Create a (secure) tmp directory for tmp files.
23405 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23406 test -n "$tmp" && test -d "$tmp"
23407 } ||
23409 tmp=./conf$$-$RANDOM
23410 (umask 077 && mkdir "$tmp")
23411 } ||
23413 echo "$me: cannot create a temporary directory in ." >&2
23414 { (exit 1); exit 1; }
23418 # Set up the sed scripts for CONFIG_FILES section.
23421 # No need to generate the scripts if there are no CONFIG_FILES.
23422 # This happens for instance when ./config.status config.h
23423 if test -n "$CONFIG_FILES"; then
23425 _ACEOF
23429 ac_delim='%!_!# '
23430 for ac_last_try in false false false false false :; do
23431 cat >conf$$subs.sed <<_ACEOF
23432 SHELL!$SHELL$ac_delim
23433 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23434 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23435 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23436 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23437 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23438 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23439 exec_prefix!$exec_prefix$ac_delim
23440 prefix!$prefix$ac_delim
23441 program_transform_name!$program_transform_name$ac_delim
23442 bindir!$bindir$ac_delim
23443 sbindir!$sbindir$ac_delim
23444 libexecdir!$libexecdir$ac_delim
23445 datarootdir!$datarootdir$ac_delim
23446 datadir!$datadir$ac_delim
23447 sysconfdir!$sysconfdir$ac_delim
23448 sharedstatedir!$sharedstatedir$ac_delim
23449 localstatedir!$localstatedir$ac_delim
23450 includedir!$includedir$ac_delim
23451 oldincludedir!$oldincludedir$ac_delim
23452 docdir!$docdir$ac_delim
23453 infodir!$infodir$ac_delim
23454 htmldir!$htmldir$ac_delim
23455 dvidir!$dvidir$ac_delim
23456 pdfdir!$pdfdir$ac_delim
23457 psdir!$psdir$ac_delim
23458 libdir!$libdir$ac_delim
23459 localedir!$localedir$ac_delim
23460 mandir!$mandir$ac_delim
23461 DEFS!$DEFS$ac_delim
23462 ECHO_C!$ECHO_C$ac_delim
23463 ECHO_N!$ECHO_N$ac_delim
23464 ECHO_T!$ECHO_T$ac_delim
23465 LIBS!$LIBS$ac_delim
23466 build_alias!$build_alias$ac_delim
23467 host_alias!$host_alias$ac_delim
23468 target_alias!$target_alias$ac_delim
23469 MAINT!$MAINT$ac_delim
23470 build!$build$ac_delim
23471 build_cpu!$build_cpu$ac_delim
23472 build_vendor!$build_vendor$ac_delim
23473 build_os!$build_os$ac_delim
23474 host!$host$ac_delim
23475 host_cpu!$host_cpu$ac_delim
23476 host_vendor!$host_vendor$ac_delim
23477 host_os!$host_os$ac_delim
23478 CC!$CC$ac_delim
23479 CFLAGS!$CFLAGS$ac_delim
23480 LDFLAGS!$LDFLAGS$ac_delim
23481 CPPFLAGS!$CPPFLAGS$ac_delim
23482 ac_ct_CC!$ac_ct_CC$ac_delim
23483 EXEEXT!$EXEEXT$ac_delim
23484 OBJEXT!$OBJEXT$ac_delim
23485 CPP!$CPP$ac_delim
23486 GREP!$GREP$ac_delim
23487 EGREP!$EGREP$ac_delim
23488 LN_S!$LN_S$ac_delim
23489 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23490 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23491 INSTALL_DATA!$INSTALL_DATA$ac_delim
23492 RANLIB!$RANLIB$ac_delim
23493 INSTALL_INFO!$INSTALL_INFO$ac_delim
23494 GZIP_PROG!$GZIP_PROG$ac_delim
23495 LIBSOUND!$LIBSOUND$ac_delim
23496 PKG_CONFIG!$PKG_CONFIG$ac_delim
23497 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23498 ALSA_LIBS!$ALSA_LIBS$ac_delim
23499 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23500 SET_MAKE!$SET_MAKE$ac_delim
23501 XMKMF!$XMKMF$ac_delim
23502 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23503 GTK_LIBS!$GTK_LIBS$ac_delim
23504 ALLOCA!$ALLOCA$ac_delim
23505 liblockfile!$liblockfile$ac_delim
23506 LIBOBJS!$LIBOBJS$ac_delim
23507 NEED_SETGID!$NEED_SETGID$ac_delim
23508 KMEM_GROUP!$KMEM_GROUP$ac_delim
23509 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23510 GETOPT_H!$GETOPT_H$ac_delim
23511 GETOPTOBJS!$GETOPTOBJS$ac_delim
23512 version!$version$ac_delim
23513 configuration!$configuration$ac_delim
23514 canonical!$canonical$ac_delim
23515 srcdir!$srcdir$ac_delim
23516 lispdir!$lispdir$ac_delim
23517 locallisppath!$locallisppath$ac_delim
23518 lisppath!$lisppath$ac_delim
23519 x_default_search_path!$x_default_search_path$ac_delim
23520 etcdir!$etcdir$ac_delim
23521 archlibdir!$archlibdir$ac_delim
23522 bitmapdir!$bitmapdir$ac_delim
23523 gamedir!$gamedir$ac_delim
23524 gameuser!$gameuser$ac_delim
23525 c_switch_system!$c_switch_system$ac_delim
23526 c_switch_machine!$c_switch_machine$ac_delim
23527 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23528 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23529 _ACEOF
23531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23532 break
23533 elif $ac_last_try; then
23534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23536 { (exit 1); exit 1; }; }
23537 else
23538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23540 done
23542 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23543 if test -n "$ac_eof"; then
23544 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23545 ac_eof=`expr $ac_eof + 1`
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23551 _ACEOF
23552 sed '
23553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23554 s/^/s,@/; s/!/@,|#_!!_#|/
23557 s/'"$ac_delim"'$/,g/; t
23558 s/$/\\/; p
23559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23560 ' >>$CONFIG_STATUS <conf$$subs.sed
23561 rm -f conf$$subs.sed
23562 cat >>$CONFIG_STATUS <<_ACEOF
23563 CEOF$ac_eof
23564 _ACEOF
23567 ac_delim='%!_!# '
23568 for ac_last_try in false false false false false :; do
23569 cat >conf$$subs.sed <<_ACEOF
23570 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23571 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23572 machfile!$machfile$ac_delim
23573 opsysfile!$opsysfile$ac_delim
23574 carbon_appdir!$carbon_appdir$ac_delim
23575 LTLIBOBJS!$LTLIBOBJS$ac_delim
23576 _ACEOF
23578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23579 break
23580 elif $ac_last_try; then
23581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23583 { (exit 1); exit 1; }; }
23584 else
23585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23587 done
23589 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23590 if test -n "$ac_eof"; then
23591 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23592 ac_eof=`expr $ac_eof + 1`
23595 cat >>$CONFIG_STATUS <<_ACEOF
23596 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23598 _ACEOF
23599 sed '
23600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23601 s/^/s,@/; s/!/@,|#_!!_#|/
23604 s/'"$ac_delim"'$/,g/; t
23605 s/$/\\/; p
23606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23607 ' >>$CONFIG_STATUS <conf$$subs.sed
23608 rm -f conf$$subs.sed
23609 cat >>$CONFIG_STATUS <<_ACEOF
23610 :end
23611 s/|#_!!_#|//g
23612 CEOF$ac_eof
23613 _ACEOF
23616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23618 # trailing colons and then remove the whole line if VPATH becomes empty
23619 # (actually we leave an empty line to preserve line numbers).
23620 if test "x$srcdir" = x.; then
23621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23622 s/:*\$(srcdir):*/:/
23623 s/:*\${srcdir}:*/:/
23624 s/:*@srcdir@:*/:/
23625 s/^\([^=]*=[ ]*\):*/\1/
23626 s/:*$//
23627 s/^[^=]*=[ ]*$//
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23632 fi # test -n "$CONFIG_FILES"
23635 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23637 case $ac_tag in
23638 :[FHLC]) ac_mode=$ac_tag; continue;;
23639 esac
23640 case $ac_mode$ac_tag in
23641 :[FHL]*:*);;
23642 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23643 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23644 { (exit 1); exit 1; }; };;
23645 :[FH]-) ac_tag=-:-;;
23646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23647 esac
23648 ac_save_IFS=$IFS
23649 IFS=:
23650 set x $ac_tag
23651 IFS=$ac_save_IFS
23652 shift
23653 ac_file=$1
23654 shift
23656 case $ac_mode in
23657 :L) ac_source=$1;;
23658 :[FH])
23659 ac_file_inputs=
23660 for ac_f
23662 case $ac_f in
23663 -) ac_f="$tmp/stdin";;
23664 *) # Look for the file first in the build tree, then in the source tree
23665 # (if the path is not absolute). The absolute path cannot be DOS-style,
23666 # because $ac_f cannot contain `:'.
23667 test -f "$ac_f" ||
23668 case $ac_f in
23669 [\\/$]*) false;;
23670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23671 esac ||
23672 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23673 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23674 { (exit 1); exit 1; }; };;
23675 esac
23676 ac_file_inputs="$ac_file_inputs $ac_f"
23677 done
23679 # Let's still pretend it is `configure' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 configure_input="Generated from "`IFS=:
23683 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23684 if test x"$ac_file" != x-; then
23685 configure_input="$ac_file. $configure_input"
23686 { echo "$as_me:$LINENO: creating $ac_file" >&5
23687 echo "$as_me: creating $ac_file" >&6;}
23690 case $ac_tag in
23691 *:-:* | *:-) cat >"$tmp/stdin";;
23692 esac
23694 esac
23696 ac_dir=`$as_dirname -- "$ac_file" ||
23697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23698 X"$ac_file" : 'X\(//\)[^/]' \| \
23699 X"$ac_file" : 'X\(//\)$' \| \
23700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23701 echo X"$ac_file" |
23702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23703 s//\1/
23706 /^X\(\/\/\)[^/].*/{
23707 s//\1/
23710 /^X\(\/\/\)$/{
23711 s//\1/
23714 /^X\(\/\).*/{
23715 s//\1/
23718 s/.*/./; q'`
23719 { as_dir="$ac_dir"
23720 case $as_dir in #(
23721 -*) as_dir=./$as_dir;;
23722 esac
23723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23724 as_dirs=
23725 while :; do
23726 case $as_dir in #(
23727 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23728 *) as_qdir=$as_dir;;
23729 esac
23730 as_dirs="'$as_qdir' $as_dirs"
23731 as_dir=`$as_dirname -- "$as_dir" ||
23732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23733 X"$as_dir" : 'X\(//\)[^/]' \| \
23734 X"$as_dir" : 'X\(//\)$' \| \
23735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23736 echo X"$as_dir" |
23737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23738 s//\1/
23741 /^X\(\/\/\)[^/].*/{
23742 s//\1/
23745 /^X\(\/\/\)$/{
23746 s//\1/
23749 /^X\(\/\).*/{
23750 s//\1/
23753 s/.*/./; q'`
23754 test -d "$as_dir" && break
23755 done
23756 test -z "$as_dirs" || eval "mkdir $as_dirs"
23757 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23759 { (exit 1); exit 1; }; }; }
23760 ac_builddir=.
23762 case "$ac_dir" in
23763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23766 # A ".." for each directory in $ac_dir_suffix.
23767 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23768 case $ac_top_builddir_sub in
23769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23771 esac ;;
23772 esac
23773 ac_abs_top_builddir=$ac_pwd
23774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23775 # for backward compatibility:
23776 ac_top_builddir=$ac_top_build_prefix
23778 case $srcdir in
23779 .) # We are building in place.
23780 ac_srcdir=.
23781 ac_top_srcdir=$ac_top_builddir_sub
23782 ac_abs_top_srcdir=$ac_pwd ;;
23783 [\\/]* | ?:[\\/]* ) # Absolute name.
23784 ac_srcdir=$srcdir$ac_dir_suffix;
23785 ac_top_srcdir=$srcdir
23786 ac_abs_top_srcdir=$srcdir ;;
23787 *) # Relative name.
23788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23789 ac_top_srcdir=$ac_top_build_prefix$srcdir
23790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23791 esac
23792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23795 case $ac_mode in
23798 # CONFIG_FILE
23801 case $INSTALL in
23802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23804 esac
23805 _ACEOF
23807 cat >>$CONFIG_STATUS <<\_ACEOF
23808 # If the template does not know about datarootdir, expand it.
23809 # FIXME: This hack should be removed a few years after 2.60.
23810 ac_datarootdir_hack=; ac_datarootdir_seen=
23812 case `sed -n '/datarootdir/ {
23816 /@datadir@/p
23817 /@docdir@/p
23818 /@infodir@/p
23819 /@localedir@/p
23820 /@mandir@/p
23821 ' $ac_file_inputs` in
23822 *datarootdir*) ac_datarootdir_seen=yes;;
23823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23824 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23825 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23826 _ACEOF
23827 cat >>$CONFIG_STATUS <<_ACEOF
23828 ac_datarootdir_hack='
23829 s&@datadir@&$datadir&g
23830 s&@docdir@&$docdir&g
23831 s&@infodir@&$infodir&g
23832 s&@localedir@&$localedir&g
23833 s&@mandir@&$mandir&g
23834 s&\\\${datarootdir}&$datarootdir&g' ;;
23835 esac
23836 _ACEOF
23838 # Neutralize VPATH when `$srcdir' = `.'.
23839 # Shell code in configure.ac might set extrasub.
23840 # FIXME: do we really want to maintain this feature?
23841 cat >>$CONFIG_STATUS <<_ACEOF
23842 sed "$ac_vpsub
23843 $extrasub
23844 _ACEOF
23845 cat >>$CONFIG_STATUS <<\_ACEOF
23847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23848 s&@configure_input@&$configure_input&;t t
23849 s&@top_builddir@&$ac_top_builddir_sub&;t t
23850 s&@srcdir@&$ac_srcdir&;t t
23851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23852 s&@top_srcdir@&$ac_top_srcdir&;t t
23853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23854 s&@builddir@&$ac_builddir&;t t
23855 s&@abs_builddir@&$ac_abs_builddir&;t t
23856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23857 s&@INSTALL@&$ac_INSTALL&;t t
23858 $ac_datarootdir_hack
23859 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23864 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23865 which seems to be undefined. Please make sure it is defined." >&5
23866 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23867 which seems to be undefined. Please make sure it is defined." >&2;}
23869 rm -f "$tmp/stdin"
23870 case $ac_file in
23871 -) cat "$tmp/out"; rm -f "$tmp/out";;
23872 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23873 esac
23877 # CONFIG_HEADER
23879 _ACEOF
23881 # Transform confdefs.h into a sed script `conftest.defines', that
23882 # substitutes the proper values into config.h.in to produce config.h.
23883 rm -f conftest.defines conftest.tail
23884 # First, append a space to every undef/define line, to ease matching.
23885 echo 's/$/ /' >conftest.defines
23886 # Then, protect against being on the right side of a sed subst, or in
23887 # an unquoted here document, in config.status. If some macros were
23888 # called several times there might be several #defines for the same
23889 # symbol, which is useless. But do not sort them, since the last
23890 # AC_DEFINE must be honored.
23891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23892 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23893 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23894 # PARAMS is the parameter list in the macro definition--in most cases, it's
23895 # just an empty string.
23896 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23897 ac_dB='\\)[ (].*,\\1define\\2'
23898 ac_dC=' '
23899 ac_dD=' ,'
23901 uniq confdefs.h |
23902 sed -n '
23903 t rset
23904 :rset
23905 s/^[ ]*#[ ]*define[ ][ ]*//
23906 t ok
23909 s/[\\&,]/\\&/g
23910 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23911 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23912 ' >>conftest.defines
23914 # Remove the space that was appended to ease matching.
23915 # Then replace #undef with comments. This is necessary, for
23916 # example, in the case of _POSIX_SOURCE, which is predefined and required
23917 # on some systems where configure will not decide to define it.
23918 # (The regexp can be short, since the line contains either #define or #undef.)
23919 echo 's/ $//
23920 s,^[ #]*u.*,/* & */,' >>conftest.defines
23922 # Break up conftest.defines:
23923 ac_max_sed_lines=50
23925 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23926 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23927 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23928 # et cetera.
23929 ac_in='$ac_file_inputs'
23930 ac_out='"$tmp/out1"'
23931 ac_nxt='"$tmp/out2"'
23933 while :
23935 # Write a here document:
23936 cat >>$CONFIG_STATUS <<_ACEOF
23937 # First, check the format of the line:
23938 cat >"\$tmp/defines.sed" <<\\CEOF
23939 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23940 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23942 :def
23943 _ACEOF
23944 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23945 echo 'CEOF
23946 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23947 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23948 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23949 grep . conftest.tail >/dev/null || break
23950 rm -f conftest.defines
23951 mv conftest.tail conftest.defines
23952 done
23953 rm -f conftest.defines conftest.tail
23955 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23956 cat >>$CONFIG_STATUS <<\_ACEOF
23957 if test x"$ac_file" != x-; then
23958 echo "/* $configure_input */" >"$tmp/config.h"
23959 cat "$ac_result" >>"$tmp/config.h"
23960 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23962 echo "$as_me: $ac_file is unchanged" >&6;}
23963 else
23964 rm -f $ac_file
23965 mv "$tmp/config.h" $ac_file
23967 else
23968 echo "/* $configure_input */"
23969 cat "$ac_result"
23971 rm -f "$tmp/out12"
23974 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23975 echo "$as_me: executing $ac_file commands" >&6;}
23977 esac
23980 case $ac_file$ac_mode in
23981 "default":C)
23983 ### Make the necessary directories, if they don't exist.
23984 for dir in etc lisp ; do
23985 test -d ${dir} || mkdir ${dir}
23986 done
23988 # Build src/Makefile from ${srcdir}/src/Makefile.c
23989 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23990 # This must be done after src/config.h is built, since we rely on that file.
23992 # Now get this: Some word that is part of the ${srcdir} directory name
23993 # or the ${configuration} value might, just might, happen to be an
23994 # identifier like `sun4' or `i386' or something, and be predefined by
23995 # the C preprocessor to some helpful value like 1, or maybe the empty
23996 # string. Needless to say consequent macro substitutions are less
23997 # than conducive to the makefile finding the correct directory.
23998 undefs="`echo $top_srcdir $configuration $canonical |
23999 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24000 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24003 echo creating src/epaths.h
24004 ${MAKE-make} epaths-force
24006 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24007 # `..' to `. .' unless invoked with -traditional
24009 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24010 CPPFLAGS="$CPPFLAGS -traditional"
24013 echo creating lib-src/Makefile
24014 ( cd lib-src
24015 rm -f junk.c junk1.c junk2.c
24016 sed -e '/start of cpp stuff/q' \
24017 < Makefile.c > junk1.c
24018 sed -e '1,/start of cpp stuff/d'\
24019 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24020 < Makefile.c > junk.c
24021 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24022 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24023 cat junk1.c junk2.c > Makefile.new
24024 rm -f junk.c junk1.c junk2.c
24025 chmod 444 Makefile.new
24026 mv -f Makefile.new Makefile
24029 echo creating src/Makefile
24030 ( cd src
24031 rm -f junk.c junk1.c junk2.c
24032 sed -e '/start of cpp stuff/q' \
24033 < Makefile.c > junk1.c
24034 sed -e '1,/start of cpp stuff/d'\
24035 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24036 < Makefile.c > junk.c
24037 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24038 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24039 cat junk1.c junk2.c > Makefile.new
24040 rm -f junk.c junk1.c junk2.c
24041 chmod 444 Makefile.new
24042 mv -f Makefile.new Makefile
24045 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24046 echo creating src/.gdbinit
24047 echo source $srcdir/src/.gdbinit > src/.gdbinit
24050 # This is how we know whether to re-run configure in certain cases.
24051 touch src/config.stamp
24055 esac
24056 done # for ac_tag
24059 { (exit 0); exit 0; }
24060 _ACEOF
24061 chmod +x $CONFIG_STATUS
24062 ac_clean_files=$ac_clean_files_save
24065 # configure is writing to config.log, and then calls config.status.
24066 # config.status does its own redirection, appending to config.log.
24067 # Unfortunately, on DOS this fails, as config.log is still kept open
24068 # by configure, so config.status won't be able to write to it; its
24069 # output is simply discarded. So we exec the FD to /dev/null,
24070 # effectively closing config.log, so it can be properly (re)opened and
24071 # appended to by config.status. When coming back to configure, we
24072 # need to make the FD available again.
24073 if test "$no_create" != yes; then
24074 ac_cs_success=:
24075 ac_config_status_args=
24076 test "$silent" = yes &&
24077 ac_config_status_args="$ac_config_status_args --quiet"
24078 exec 5>/dev/null
24079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24080 exec 5>>config.log
24081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24082 # would make configure fail if this is the last instruction.
24083 $ac_cs_success || { (exit 1); exit 1; }