(dired-mark-prompt): Don't count/display the t element.
[emacs.git] / configure
blob98f7153b2833d011264f029ac2eddd7a6cf894c3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 ALLOCA
694 liblockfile
695 LIBOBJS
696 NEED_SETGID
697 KMEM_GROUP
698 GETLOADAVG_LIBS
699 GETOPT_H
700 GETOPTOBJS
701 version
702 configuration
703 canonical
704 srcdir
705 lispdir
706 locallisppath
707 lisppath
708 x_default_search_path
709 etcdir
710 archlibdir
711 bitmapdir
712 gamedir
713 gameuser
714 c_switch_system
715 c_switch_machine
716 LD_SWITCH_X_SITE
717 LD_SWITCH_X_SITE_AUX
718 C_SWITCH_X_SITE
719 X_TOOLKIT_TYPE
720 machfile
721 opsysfile
722 carbon_appdir
723 LTLIBOBJS'
724 ac_subst_files=''
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
734 XMKMF'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
783 ac_prev=
784 ac_dashdash=
785 for ac_option
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
803 ac_dashdash=yes ;;
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
822 --config-cache | -C)
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111 esac
1112 done
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156 test "$silent" = yes && exec 6>/dev/null
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1187 /^X\(\/\/\)$/{
1188 s//\1/
1191 /^X\(\/\).*/{
1192 s//\1/
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1200 else
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1292 cat <<\_ACEOF
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 X features:
1300 --x-includes=DIR X include files are in DIR
1301 --x-libraries=DIR X library files are in DIR
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 _ACEOF
1309 if test -n "$ac_init_help"; then
1311 cat <<\_ACEOF
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-carbon-app[=DIR] [DIR=/Application]
1317 specify install directory for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search for lisp files
1323 specific to this site
1324 --disable-largefile omit support for large files
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-gcc don't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version 5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server host
1334 --without-sound don't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358 CPP C preprocessor
1359 XMKMF Path to xmkmf, Makefile generator for X Window System
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 _ACEOF
1365 ac_status=$?
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1372 ac_builddir=.
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1390 case $srcdir in
1391 .) # We are building in place.
1392 ac_srcdir=.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1414 else
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423 cat <<\_ACEOF
1424 configure
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1441 $ $0 $@
1443 _ACEOF
1444 exec 5>>config.log
1446 cat <<_ASUNAME
1447 ## --------- ##
1448 ## Platform. ##
1449 ## --------- ##
1451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468 _ASUNAME
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1476 done
1477 IFS=$as_save_IFS
1479 } >&5
1481 cat >&5 <<_ACEOF
1484 ## ----------- ##
1485 ## Core tests. ##
1486 ## ----------- ##
1488 _ACEOF
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1496 ac_configure_args=
1497 ac_configure_args0=
1498 ac_configure_args1=
1499 ac_must_keep_next=false
1500 for ac_pass in 1 2
1502 for ac_arg
1504 case $ac_arg in
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 continue ;;
1509 *\'*)
1510 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1511 esac
1512 case $ac_pass in
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1518 else
1519 case $ac_arg in
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 esac
1528 -* ) ac_must_keep_next=true ;;
1529 esac
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 esac
1534 done
1535 done
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1547 echo
1549 cat <<\_ASBOX
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1553 _ASBOX
1554 echo
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1558 eval ac_val=\$$ac_var
1559 case $ac_val in #(
1560 *${as_nl}*)
1561 case $ac_var in #(
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 esac
1565 case $ac_var in #(
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1568 esac ;;
1569 esac
1570 done
1571 (set) 2>&1 |
1572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1574 sed -n \
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 ;; #(
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 esac |
1582 sort
1584 echo
1586 cat <<\_ASBOX
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1590 _ASBOX
1591 echo
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 echo "$ac_var='\''$ac_val'\''"
1599 done | sort
1600 echo
1602 if test -n "$ac_subst_files"; then
1603 cat <<\_ASBOX
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1620 if test -s confdefs.h; then
1621 cat <<\_ASBOX
1622 ## ----------- ##
1623 ## confdefs.h. ##
1624 ## ----------- ##
1625 _ASBOX
1626 echo
1627 cat confdefs.h
1628 echo
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1633 } >&5
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1636 exit $exit_status
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1640 done
1641 ac_signal=0
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1650 _ACEOF
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1655 _ACEOF
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1660 _ACEOF
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1665 _ACEOF
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1670 _ACEOF
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679 else
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1683 shift
1684 for ac_site_file
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1690 . "$ac_site_file"
1692 done
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1700 case $cache_file in
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1703 esac
1705 else
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1708 >$cache_file
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1779 ac_ext=c
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s,x,x', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1798 _ACEOF
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1800 rm -f conftest.sed
1803 lispdir='${datadir}/emacs/${version}/lisp'
1804 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1805 '${datadir}/emacs/site-lisp'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1807 etcdir='${datadir}/emacs/${version}/etc'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs/${version}/etc'
1810 gamedir='${localstatedir}/games/emacs'
1812 gameuser=games
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1817 withval=$with_gcc;
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1826 _ACEOF
1828 else :
1830 else
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1833 _ACEOF
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1855 with_kerberos=yes
1856 cat >>confdefs.h <<\_ACEOF
1857 #define KERBEROS 1
1858 _ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1875 #define HESIOD 1
1876 _ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1894 n | no ) val=no ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1904 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1905 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1908 esac
1909 with_x_toolkit=$val
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1916 withval=$with_xpm;
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1922 withval=$with_jpeg;
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1928 withval=$with_tiff;
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1934 withval=$with_gif;
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1940 withval=$with_png;
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1946 withval=$with_gtk;
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1964 withval=$with_xim;
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1982 else
1983 USE_XASSERTS=no
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1990 else
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
1995 MAINT=
1996 else
1997 MAINT=#
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2004 locallisppath=
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2016 unset CDPATH
2017 case "${srcdir}" in
2018 /* ) ;;
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 then
2027 srcdir="$PWD"
2028 else
2029 srcdir="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2033 esac
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2057 ac_aux_dir=
2058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
2063 elif test -f "$ac_dir/install.sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
2067 elif test -f "$ac_dir/shtool"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2072 done
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119 esac
2120 build=$ac_cv_build
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_build
2123 shift
2124 build_cpu=$1
2125 build_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 build_os=$*
2130 IFS=$ac_save_IFS
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141 else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 case $ac_cv_host in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 host=$ac_cv_host
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_host
2160 shift
2161 host_cpu=$1
2162 host_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 host_os=$*
2167 IFS=$ac_save_IFS
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171 canonical=$host
2172 configuration=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine='' opsys='' unported=no
2200 case "${canonical}" in
2202 ## FreeBSD ports
2203 *-*-freebsd* )
2204 opsys=freebsd
2205 case "${canonical}" in
2206 alpha*-*-freebsd*) machine=alpha ;;
2207 arm*-*-freebsd*) machine=arm ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2216 ## FreeBSD kernel + glibc based userland
2217 *-*-kfreebsd*gnu* )
2218 opsys=gnu-kfreebsd
2219 case "${canonical}" in
2220 alpha*-*-kfreebsd*) machine=alpha ;;
2221 ia64-*-kfreebsd*) machine=ia64 ;;
2222 sparc64-*-kfreebsd*) machine=sparc ;;
2223 powerpc-*-kfreebsd*) machine=macppc ;;
2224 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2225 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2226 esac
2229 ## NetBSD ports
2230 *-*-netbsd* )
2231 opsys=netbsd
2232 if test -f /usr/lib/crti.o; then
2234 cat >>confdefs.h <<\_ACEOF
2235 #define HAVE_CRTIN
2236 _ACEOF
2240 case "${canonical}" in
2241 alpha*-*-netbsd*) machine=alpha ;;
2242 i[3456]86-*-netbsd*) machine=intel386 ;;
2243 m68k-*-netbsd*)
2244 # This is somewhat bogus.
2245 machine=hp9000s300 ;;
2246 mips-*-netbsd*) machine=pmax ;;
2247 mipsel-*-netbsd*) machine=pmax ;;
2248 mipseb-*-netbsd*) machine=pmax ;;
2249 ns32k-*-netbsd*) machine=ns32000 ;;
2250 powerpc-*-netbsd*) machine=macppc ;;
2251 sparc*-*-netbsd*) machine=sparc ;;
2252 vax-*-netbsd*) machine=vax ;;
2253 arm-*-netbsd*) machine=arm ;;
2254 x86_64-*-netbsd*) machine=amdx86-64 ;;
2255 hppa-*-netbsd*) machine=hp800 ;;
2256 shle-*-netbsd*) machine=sh3el ;;
2257 esac
2260 ## OpenBSD ports
2261 *-*-openbsd* )
2262 opsys=openbsd
2263 case "${canonical}" in
2264 alpha*-*-openbsd*) machine=alpha ;;
2265 arm-*-openbsd*) machine=arm ;;
2266 hppa-*-openbsd*) machine=hp9000s300 ;;
2267 i386-*-openbsd*) machine=intel386 ;;
2268 m68k-*-openbsd*) machine=hp9000s300 ;;
2269 m88k-*-openbsd*) machine=aviion ;;
2270 mips64-*-openbsd*) machine=mips64 ;;
2271 powerpc-*-openbsd*) machine=macppc ;;
2272 sh-*-openbsd*) machine=sh3el ;;
2273 sparc*-*-openbsd*) machine=sparc ;;
2274 vax-*-openbsd*) machine=vax ;;
2275 x86_64-*-openbsd*) machine=amdx86-64 ;;
2276 esac
2279 ## LynxOS ports
2280 *-*-lynxos* )
2281 opsys=lynxos
2282 case "${canonical}" in
2283 i[3456]86-*-lynxos*) machine=intel386 ;;
2284 powerpc-*-lynxos*) machine=powerpc ;;
2285 esac
2288 ## Acorn RISCiX:
2289 arm-acorn-riscix1.1* )
2290 machine=acorn opsys=riscix1-1
2292 arm-acorn-riscix1.2* | arm-acorn-riscix )
2293 ## This name is riscix12 instead of riscix1.2
2294 ## to avoid a file name conflict on MSDOS.
2295 machine=acorn opsys=riscix12
2298 ## BSDI ports
2299 *-*-bsdi* )
2300 opsys=bsdi
2301 case "${canonical}" in
2302 i[345]86-*-bsdi*) machine=intel386 ;;
2303 sparc-*-bsdi*) machine=sparc ;;
2304 powerpc-*-bsdi*) machine=macppc ;;
2305 esac
2306 case "${canonical}" in
2307 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2308 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2309 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2310 *-*-bsdi3* ) opsys=bsdos3 ;;
2311 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2312 esac
2315 ## Alliant machines
2316 ## Strictly speaking, we need the version of the alliant operating
2317 ## system to choose the right machine file, but currently the
2318 ## configuration name doesn't tell us enough to choose the right
2319 ## one; we need to give alliants their own operating system name to
2320 ## do this right. When someone cares, they can help us.
2321 fx80-alliant-* )
2322 machine=alliant4 opsys=bsd4-2
2324 i860-alliant-* )
2325 machine=alliant-2800 opsys=bsd4-3
2328 ## Alpha (DEC) machines.
2329 alpha*-dec-osf* )
2330 machine=alpha opsys=osf1
2331 # This is needed to find X11R6.1 libraries for certain tests.
2332 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2333 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2334 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2335 # due to non-traditional preprocessing with the current compiler
2336 # defaults. OSF 4 can also have that compiler version, and there
2337 # seems always to have been a usable /usr/bin/cpp.
2338 NON_GNU_CPP=/usr/bin/cpp
2339 case "${canonical}" in
2340 alpha*-dec-osf[5-9]*)
2341 opsys=osf5-0 ;;
2342 esac
2345 alpha*-*-linux-gnu* )
2346 machine=alpha opsys=gnu-linux
2349 arm*-*-linux-gnu* )
2350 machine=arm opsys=gnu-linux
2353 ## Altos 3068
2354 m68*-altos-sysv* )
2355 machine=altos opsys=usg5-2
2358 ## Amdahl UTS
2359 580-amdahl-sysv* )
2360 machine=amdahl opsys=usg5-2-2
2363 ## Apollo, Domain/OS
2364 m68*-apollo-* )
2365 machine=apollo opsys=bsd4-3
2368 ## Apple Darwin / Mac OS X
2369 *-apple-darwin* )
2370 case "${canonical}" in
2371 i[3456]86-* ) machine=intel386 ;;
2372 powerpc-* ) machine=powermac ;;
2373 * ) unported=yes ;;
2374 esac
2375 opsys=darwin
2376 # Define CPP as follows to make autoconf work correctly.
2377 CPP="${CC-cc} -E -no-cpp-precomp"
2378 # Use fink packages if available.
2379 if test -d /sw/include && test -d /sw/lib; then
2380 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2381 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2382 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2386 ## AT&T 3b2, 3b5, 3b15, 3b20
2387 we32k-att-sysv* )
2388 machine=att3b opsys=usg5-2-2
2391 ## AT&T 3b1 - The Mighty Unix PC!
2392 m68*-att-sysv* )
2393 machine=7300 opsys=usg5-2-2
2396 ## Bull dpx20
2397 rs6000-bull-bosx* )
2398 machine=ibmrs6000 opsys=aix3-2
2401 ## Bull dpx2
2402 m68*-bull-sysv3* )
2403 machine=dpx2 opsys=usg5-3
2406 ## Bull sps7
2407 m68*-bull-sysv2* )
2408 machine=sps7 opsys=usg5-2
2411 ## CCI 5/32, 6/32 -- see "Tahoe".
2413 ## Celerity
2414 ## I don't know what configuration name to use for this; config.sub
2415 ## doesn't seem to know anything about it. Hey, Celerity users, get
2416 ## in touch with us!
2417 celerity-celerity-bsd* )
2418 machine=celerity opsys=bsd4-2
2421 ## Clipper
2422 ## What operating systems does this chip run that Emacs has been
2423 ## tested on?
2424 clipper-* )
2425 machine=clipper
2426 ## We'll use the catch-all code at the bottom to guess the
2427 ## operating system.
2430 ## Compaq Nonstop
2431 mips-compaq-nonstopux* )
2432 machine=nonstopux opsys=nonstopux
2435 ## Convex
2436 *-convex-bsd* | *-convex-convexos* )
2437 machine=convex opsys=bsd4-3
2438 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2439 NON_GNU_CPP="cc -E -P"
2442 ## Cubix QBx/386
2443 i[3456]86-cubix-sysv* )
2444 machine=intel386 opsys=usg5-3
2447 ## Cydra 5
2448 cydra*-cydrome-sysv* )
2449 machine=cydra5 opsys=usg5-3
2452 ## Data General AViiON Machines
2453 ## DG changed naming conventions with the release of 5.4.4.10, they
2454 ## dropped the initial 5.4 but left the intervening R. Because of the
2455 ## R this shouldn't conflict with older versions of the OS (which I
2456 ## think were named like dgux4.*). In addition, DG new AViiONs series
2457 ## uses either Motorola M88k or Intel Pentium CPUs.
2458 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2459 machine=aviion opsys=dgux4
2461 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2462 ## This name is dgux5-4-3 instead of dgux5-4r3
2463 ## to avoid a file name conflict on MSDOS.
2464 machine=aviion opsys=dgux5-4-3
2466 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2467 machine=aviion opsys=dgux5-4r2
2469 m88k-dg-dgux* )
2470 machine=aviion opsys=dgux
2473 ## Data General AViiON Intel (x86) Machines
2474 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2475 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2476 i[345]86-dg-dguxR4* )
2477 machine=aviion-intel opsys=dgux4
2480 ## DECstations
2481 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2482 machine=pmax opsys=bsd4-2
2484 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2485 machine=pmax opsys=bsd4-3
2487 mips-dec-ultrix* )
2488 machine=pmax opsys=ultrix4-3
2490 mips-dec-osf* )
2491 machine=pmax opsys=osf1
2493 mips-dec-mach_bsd4.3* )
2494 machine=pmax opsys=mach-bsd4-3
2497 ## Motorola Delta machines
2498 m68k-motorola-sysv* | m68000-motorola-sysv* )
2499 machine=delta opsys=usg5-3
2500 if test -z "`type gnucc | grep 'not found'`"
2501 then
2502 if test -s /etc/167config
2503 then CC="gnucc -m68040"
2504 else CC="gnucc -m68881"
2506 else
2507 if test -z "`type gcc | grep 'not found'`"
2508 then CC=gcc
2509 else CC=cc
2513 m88k-motorola-sysv4* )
2514 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2515 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2516 # I hope there are not other 4.0 versions for this machine
2517 # which really need usg5-4 instead.
2518 machine=delta88k opsys=usg5-4-2
2520 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2521 machine=delta88k opsys=usg5-3
2524 ## Dual machines
2525 m68*-dual-sysv* )
2526 machine=dual opsys=usg5-2
2528 m68*-dual-uniplus* )
2529 machine=dual opsys=unipl5-2
2532 ## Elxsi 6400
2533 elxsi-elxsi-sysv* )
2534 machine=elxsi opsys=usg5-2
2537 ## Encore machines
2538 ns16k-encore-bsd* )
2539 machine=ns16000 opsys=umax
2542 ## The GEC 63 - apparently, this port isn't really finished yet.
2543 # I'm sure we finished off the last of the machines, though. -- fx
2545 ## Gould Power Node and NP1
2546 pn-gould-bsd4.2* )
2547 machine=gould opsys=bsd4-2
2549 pn-gould-bsd4.3* )
2550 machine=gould opsys=bsd4-3
2552 np1-gould-bsd* )
2553 machine=gould-np1 opsys=bsd4-3
2556 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2557 ## as far as Emacs is concerned).
2558 m88k-harris-cxux* )
2559 # Build needs to be different on 7.0 and later releases
2560 case "`uname -r`" in
2561 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2562 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2563 esac
2564 NON_GNU_CPP="/lib/cpp"
2566 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2567 m68k-harris-cxux* )
2568 machine=nh3000 opsys=cxux
2570 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2571 powerpc-harris-powerunix )
2572 machine=nh6000 opsys=powerunix
2573 NON_GNU_CPP="cc -Xo -E -P"
2575 ## SR2001/SR2201 running HI-UX/MPP
2576 hppa1.1-hitachi-hiuxmpp* )
2577 machine=sr2k opsys=hiuxmpp
2579 hppa1.1-hitachi-hiuxwe2* )
2580 machine=sr2k opsys=hiuxwe2
2582 ## Honeywell XPS100
2583 xps*-honeywell-sysv* )
2584 machine=xps100 opsys=usg5-2
2587 ## HP 9000 series 200 or 300
2588 m68*-hp-bsd* )
2589 machine=hp9000s300 opsys=bsd4-3
2591 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2592 m68*-hp-hpux* )
2593 case "`uname -r`" in
2594 ## Someone's system reports A.B8.05 for this.
2595 ## I wonder what other possibilities there are.
2596 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2597 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2598 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2599 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2600 *) machine=hp9000s300 opsys=hpux ;;
2601 esac
2604 ## HP 9000 series 700 and 800, running HP/UX
2605 hppa*-hp-hpux7* )
2606 machine=hp800 opsys=hpux
2608 hppa*-hp-hpux8* )
2609 machine=hp800 opsys=hpux8
2611 hppa*-hp-hpux9shr* )
2612 machine=hp800 opsys=hpux9shr
2614 hppa*-hp-hpux9* )
2615 machine=hp800 opsys=hpux9
2617 hppa*-hp-hpux10.2* )
2618 machine=hp800 opsys=hpux10-20
2620 hppa*-hp-hpux10* )
2621 machine=hp800 opsys=hpux10
2623 hppa*-hp-hpux1[1-9]* )
2624 machine=hp800 opsys=hpux11
2625 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2628 hppa*-*-linux-gnu* )
2629 machine=hp800 opsys=gnu-linux
2632 ## HP 9000 series 700 and 800, running HP/UX
2633 hppa*-hp-hpux* )
2634 ## Cross-compilation? Nah!
2635 case "`uname -r`" in
2636 ## Someone's system reports A.B8.05 for this.
2637 ## I wonder what other possibilities there are.
2638 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2639 *.08.* ) machine=hp800 opsys=hpux8 ;;
2640 *.09.* ) machine=hp800 opsys=hpux9 ;;
2641 *) machine=hp800 opsys=hpux10 ;;
2642 esac
2644 hppa*-*-nextstep* )
2645 machine=hp800 opsys=nextstep
2648 ## Orion machines
2649 orion-orion-bsd* )
2650 machine=orion opsys=bsd4-2
2652 clipper-orion-bsd* )
2653 machine=orion105 opsys=bsd4-2
2656 ## IBM machines
2657 i[3456]86-ibm-aix1.1* )
2658 machine=ibmps2-aix opsys=usg5-2-2
2660 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2661 machine=ibmps2-aix opsys=usg5-3
2663 i370-ibm-aix*)
2664 machine=ibm370aix opsys=usg5-3
2666 s390-*-linux-gnu* )
2667 machine=ibms390 opsys=gnu-linux
2669 s390x-*-linux-gnu* )
2670 machine=ibms390x opsys=gnu-linux
2672 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2673 machine=ibmrs6000 opsys=aix3-1
2675 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2676 machine=ibmrs6000 opsys=aix3-2-5
2678 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2679 machine=ibmrs6000 opsys=aix4-1
2681 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2682 machine=ibmrs6000 opsys=aix4-2
2684 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2685 machine=ibmrs6000 opsys=aix4-2
2687 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2688 machine=ibmrs6000 opsys=aix4-2
2690 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2691 machine=ibmrs6000 opsys=aix4
2693 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2694 machine=ibmrs6000 opsys=aix4-1
2696 rs6000-ibm-aix* | powerpc-ibm-aix* )
2697 machine=ibmrs6000 opsys=aix3-2
2699 romp-ibm-bsd4.3* )
2700 machine=ibmrt opsys=bsd4-3
2702 romp-ibm-bsd4.2* )
2703 machine=ibmrt opsys=bsd4-2
2705 romp-ibm-aos4.3* )
2706 machine=ibmrt opsys=bsd4-3
2708 romp-ibm-aos4.2* )
2709 machine=ibmrt opsys=bsd4-2
2711 romp-ibm-aos* )
2712 machine=ibmrt opsys=bsd4-3
2714 romp-ibm-bsd* )
2715 machine=ibmrt opsys=bsd4-3
2717 romp-ibm-aix* )
2718 machine=ibmrt-aix opsys=usg5-2-2
2721 ## Integrated Solutions `Optimum V'
2722 m68*-isi-bsd4.2* )
2723 machine=isi-ov opsys=bsd4-2
2725 m68*-isi-bsd4.3* )
2726 machine=isi-ov opsys=bsd4-3
2729 ## Intel 386 machines where we do care about the manufacturer
2730 i[3456]86-intsys-sysv* )
2731 machine=is386 opsys=usg5-2-2
2734 ## Prime EXL
2735 i[3456]86-prime-sysv* )
2736 machine=i386 opsys=usg5-3
2739 ## Sequent Symmetry running Dynix
2740 i[3456]86-sequent-bsd* )
2741 machine=symmetry opsys=bsd4-3
2744 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2745 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2746 machine=sequent-ptx opsys=ptx4
2747 NON_GNU_CPP=/lib/cpp
2750 ## Sequent Symmetry running DYNIX/ptx
2751 ## Use the old cpp rather than the newer ANSI one.
2752 i[3456]86-sequent-ptx* )
2753 machine=sequent-ptx opsys=ptx
2754 NON_GNU_CPP="/lib/cpp"
2757 ## ncr machine running svr4.3.
2758 i[3456]86-ncr-sysv4.3 )
2759 machine=ncr386 opsys=usg5-4-3
2762 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2763 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2764 i[3456]86-ncr-sysv* )
2765 machine=ncr386 opsys=usg5-4-2
2768 ## Intel Paragon OSF/1
2769 i860-intel-osf1* )
2770 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2773 ## Intel 860
2774 i860-*-sysv4* )
2775 machine=i860 opsys=usg5-4
2776 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2777 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2780 ## Macintosh PowerPC
2781 powerpc*-*-linux-gnu* )
2782 machine=macppc opsys=gnu-linux
2785 ## Masscomp machines
2786 m68*-masscomp-rtu* )
2787 machine=masscomp opsys=rtu
2790 ## Megatest machines
2791 m68*-megatest-bsd* )
2792 machine=mega68 opsys=bsd4-2
2795 ## Workstations sold by MIPS
2796 ## This is not necessarily all workstations using the MIPS processor -
2797 ## Irises are produced by SGI, and DECstations by DEC.
2799 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2800 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2801 ## it gives for choosing between the alternatives seems to be "Use
2802 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2803 ## the BSD world." I'll assume that these are instructions for
2804 ## handling two odd situations, and that every other situation
2805 ## should use mips.h and usg5-2-2, they being listed first.
2806 mips-mips-usg* )
2807 machine=mips4
2808 ## Fall through to the general code at the bottom to decide on the OS.
2810 mips-mips-riscos4* )
2811 machine=mips4 opsys=bsd4-3
2812 NON_GNU_CC="cc -systype bsd43"
2813 NON_GNU_CPP="cc -systype bsd43 -E"
2815 mips-mips-riscos5* )
2816 machine=mips4 opsys=riscos5
2817 NON_GNU_CC="cc -systype bsd43"
2818 NON_GNU_CPP="cc -systype bsd43 -E"
2820 mips-mips-bsd* )
2821 machine=mips opsys=bsd4-3
2823 mips-mips-* )
2824 machine=mips opsys=usg5-2-2
2827 ## NeXT
2828 m68*-next-* | m68k-*-nextstep* )
2829 machine=m68k opsys=nextstep
2832 ## The complete machine from National Semiconductor
2833 ns32k-ns-genix* )
2834 machine=ns32000 opsys=usg5-2
2837 ## NCR machines
2838 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2839 machine=tower32 opsys=usg5-2-2
2841 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2842 machine=tower32v3 opsys=usg5-3
2845 ## NEC EWS4800
2846 mips-nec-sysv4*)
2847 machine=ews4800 opsys=ux4800
2850 ## Nixdorf Targon 31
2851 m68*-nixdorf-sysv* )
2852 machine=targon31 opsys=usg5-2-2
2855 ## Nu (TI or LMI)
2856 m68*-nu-sysv* )
2857 machine=nu opsys=usg5-2
2860 ## Plexus
2861 m68*-plexus-sysv* )
2862 machine=plexus opsys=usg5-2
2865 ## Pyramid machines
2866 ## I don't really have any idea what sort of processor the Pyramid has,
2867 ## so I'm assuming it is its own architecture.
2868 pyramid-pyramid-bsd* )
2869 machine=pyramid opsys=bsd4-2
2872 ## Sequent Balance
2873 ns32k-sequent-bsd4.2* )
2874 machine=sequent opsys=bsd4-2
2876 ns32k-sequent-bsd4.3* )
2877 machine=sequent opsys=bsd4-3
2880 ## Siemens Nixdorf
2881 mips-siemens-sysv* | mips-sni-sysv*)
2882 machine=mips-siemens opsys=usg5-4
2883 NON_GNU_CC=/usr/ccs/bin/cc
2884 NON_GNU_CPP=/usr/ccs/lib/cpp
2887 ## Silicon Graphics machines
2888 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2889 m68*-sgi-iris3.5* )
2890 machine=irist opsys=iris3-5
2892 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2893 machine=irist opsys=iris3-6
2895 ## Iris 4D
2896 mips-sgi-irix3* )
2897 machine=iris4d opsys=irix3-3
2899 mips-sgi-irix4* )
2900 machine=iris4d opsys=irix4-0
2902 mips-sgi-irix6.5 )
2903 machine=iris4d opsys=irix6-5
2904 # Without defining _LANGUAGE_C, things get masked out in the headers
2905 # so that, for instance, grepping for `free' in stdlib.h fails and
2906 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2907 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2908 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2910 mips-sgi-irix6* )
2911 machine=iris4d opsys=irix6-0
2912 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2913 # but presumably it does no harm.
2914 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2915 # -32 probably isn't necessary in later v.6s -- anyone know which?
2916 NON_GCC_TEST_OPTIONS=-32
2918 mips-sgi-irix5.[01]* )
2919 machine=iris4d opsys=irix5-0
2921 mips-sgi-irix5* | mips-sgi-irix* )
2922 machine=iris4d opsys=irix5-2
2925 ## SONY machines
2926 m68*-sony-bsd4.2* )
2927 machine=news opsys=bsd4-2
2929 m68*-sony-bsd4.3* )
2930 machine=news opsys=bsd4-3
2932 m68*-sony-newsos3* | m68*-sony-news3*)
2933 machine=news opsys=bsd4-3
2935 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2936 machine=news-risc opsys=bsd4-3
2938 mips-sony-newsos6* )
2939 machine=news-r6 opsys=newsos6
2941 mips-sony-news* )
2942 machine=news-risc opsys=newsos5
2945 ## Stride
2946 m68*-stride-sysv* )
2947 machine=stride opsys=usg5-2
2950 ## Suns
2951 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2952 machine=sparc opsys=gnu-linux
2955 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2956 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2957 | rs6000-*-solaris2*)
2958 case "${canonical}" in
2959 m68*-sunos1* ) machine=sun1 ;;
2960 m68*-sunos2* ) machine=sun2 ;;
2961 m68* ) machine=sun3 ;;
2962 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2963 i[3456]86-*-* ) machine=intel386 ;;
2964 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2965 powerpcle* ) machine=powerpcle ;;
2966 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2967 sparc* ) machine=sparc ;;
2968 * ) unported=yes ;;
2969 esac
2970 case "${canonical}" in
2971 ## The Sun386 didn't get past 4.0.
2972 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2973 *-sunos4.0* ) opsys=sunos4-0 ;;
2974 *-sunos4.1.[3-9]*noshare )
2975 ## This name is sunos413 instead of sunos4-1-3
2976 ## to avoid a file name conflict on MSDOS.
2977 opsys=sunos413
2978 NON_GNU_CPP=/usr/lib/cpp
2979 NON_GCC_TEST_OPTIONS=-Bstatic
2980 GCC_TEST_OPTIONS=-static
2982 *-sunos4.1.[3-9]* | *-sunos4shr*)
2983 opsys=sunos4shr
2984 NON_GNU_CPP=/usr/lib/cpp
2986 *-sunos4* | *-sunos )
2987 opsys=sunos4-1
2988 NON_GCC_TEST_OPTIONS=-Bstatic
2989 GCC_TEST_OPTIONS=-static
2991 *-sunos5.3* | *-solaris2.3* )
2992 opsys=sol2-3
2993 NON_GNU_CPP=/usr/ccs/lib/cpp
2995 *-sunos5.4* | *-solaris2.4* )
2996 opsys=sol2-4
2997 NON_GNU_CPP=/usr/ccs/lib/cpp
2998 RANLIB="ar -ts"
3000 *-sunos5.5* | *-solaris2.5* )
3001 opsys=sol2-5
3002 NON_GNU_CPP=/usr/ccs/lib/cpp
3003 RANLIB="ar -ts"
3005 *-sunos5.6* | *-solaris2.6* )
3006 opsys=sol2-6
3007 NON_GNU_CPP=/usr/ccs/lib/cpp
3008 RANLIB="ar -ts"
3010 *-sunos5* | *-solaris* )
3011 opsys=sol2-6
3012 ## FIXME: make this into a proper fix that checks the compiler type,
3013 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3014 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3015 ## -Xs prevents spurious whitespace.
3016 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3017 else
3018 NON_GNU_CPP=/usr/ccs/lib/cpp
3021 * ) opsys=bsd4-2 ;;
3022 esac
3023 ## Watch out for a compiler that we know will not work.
3024 case "${canonical}" in
3025 *-solaris* | *-sunos5* )
3026 if [ "x$CC" = x/usr/ucb/cc ]; then
3027 ## /usr/ucb/cc doesn't work;
3028 ## we should find some other compiler that does work.
3029 unset CC
3032 *) ;;
3033 esac
3035 sparc-*-nextstep* )
3036 machine=sparc opsys=nextstep
3039 ## Tadpole 68k
3040 m68*-tadpole-sysv* )
3041 machine=tad68k opsys=usg5-3
3044 ## Tahoe machines
3045 tahoe-tahoe-bsd4.2* )
3046 machine=tahoe opsys=bsd4-2
3048 tahoe-tahoe-bsd4.3* )
3049 machine=tahoe opsys=bsd4-3
3052 ## Tandem Integrity S2
3053 mips-tandem-sysv* )
3054 machine=tandem-s2 opsys=usg5-3
3057 ## Tektronix XD88
3058 m88k-tektronix-sysv3* )
3059 machine=tekxd88 opsys=usg5-3
3062 ## Tektronix 16000 box (6130?)
3063 ns16k-tektronix-bsd* )
3064 machine=ns16000 opsys=bsd4-2
3066 ## Tektronix 4300
3067 ## src/m/tek4300.h hints that this is a m68k machine.
3068 m68*-tektronix-bsd* )
3069 machine=tek4300 opsys=bsd4-3
3072 ## Titan P2 or P3
3073 ## We seem to have lost the machine-description file titan.h!
3074 titan-titan-sysv* )
3075 machine=titan opsys=usg5-3
3078 ## Ustation E30 (SS5E)
3079 m68*-unisys-uniplus* )
3080 machine=ustation opsystem=unipl5-2
3083 ## Vaxen.
3084 vax-dec-* )
3085 machine=vax
3086 case "${canonical}" in
3087 *-bsd4.1* ) opsys=bsd4-1 ;;
3088 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3089 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3090 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3091 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3092 *-vms* ) opsys=vms ;;
3093 * ) unported=yes
3094 esac
3097 ## Whitechapel MG1
3098 ns16k-whitechapel-* )
3099 machine=mg1
3100 ## We don't know what sort of OS runs on these; we'll let the
3101 ## operating system guessing code below try.
3104 ## Wicat
3105 m68*-wicat-sysv* )
3106 machine=wicat opsys=usg5-2
3109 ## IA-64
3110 ia64*-*-linux* )
3111 machine=ia64 opsys=gnu-linux
3114 ## Intel 386 machines where we don't care about the manufacturer
3115 i[3456]86-*-* )
3116 machine=intel386
3117 case "${canonical}" in
3118 *-cygwin ) opsys=cygwin ;;
3119 *-darwin* ) opsys=darwin
3120 CPP="${CC-cc} -E -no-cpp-precomp"
3122 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3123 *-isc2.2* ) opsys=isc2-2 ;;
3124 *-isc4.0* ) opsys=isc4-0 ;;
3125 *-isc4.* ) opsys=isc4-1
3126 GCC_TEST_OPTIONS=-posix
3127 NON_GCC_TEST_OPTIONS=-Xp
3129 *-isc* ) opsys=isc3-0 ;;
3130 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3131 *-esix* ) opsys=esix ;;
3132 *-xenix* ) opsys=xenix ;;
3133 *-linux-gnu* ) opsys=gnu-linux ;;
3134 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3135 *-sco3.2v5* ) opsys=sco5
3136 NON_GNU_CPP=/lib/cpp
3137 # Prevent -belf from being passed to $CPP.
3138 # /lib/cpp does not accept it.
3139 OVERRIDE_CPPFLAGS=" "
3141 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3142 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3143 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3144 *-386bsd* ) opsys=386bsd ;;
3145 *-nextstep* ) opsys=nextstep ;;
3146 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3147 esac
3150 ## m68k Linux-based GNU system
3151 m68k-*-linux-gnu* )
3152 machine=m68k opsys=gnu-linux
3155 ## Mips Linux-based GNU system
3156 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3157 machine=mips opsys=gnu-linux
3160 ## UXP/DS
3161 sparc-fujitsu-sysv4* )
3162 machine=sparc opsys=uxpds
3163 NON_GNU_CPP=/usr/ccs/lib/cpp
3164 RANLIB="ar -ts"
3167 ## UXP/V
3168 f301-fujitsu-uxpv4.1)
3169 machine=f301 opsys=uxpv
3172 ## AMD x86-64 Linux-based GNU system
3173 x86_64-*-linux-gnu* )
3174 machine=amdx86-64 opsys=gnu-linux
3177 ## Tensilica Xtensa Linux-based GNU system
3178 xtensa*-*-linux-* )
3179 machine=xtensa opsys=gnu-linux
3183 unported=yes
3185 esac
3187 ### If the code above didn't choose an operating system, just choose
3188 ### an operating system based on the configuration name. You really
3189 ### only want to use this when you have no idea what the right
3190 ### operating system is; if you know what operating systems a machine
3191 ### runs, it's cleaner to make it explicit in the case statement
3192 ### above.
3193 if test x"${opsys}" = x; then
3194 case "${canonical}" in
3195 *-gnu* ) opsys=gnu ;;
3196 *-bsd4.[01] ) opsys=bsd4-1 ;;
3197 *-bsd4.2 ) opsys=bsd4-2 ;;
3198 *-bsd4.3 ) opsys=bsd4-3 ;;
3199 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3200 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3201 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3202 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3203 *-sysv4.2uw* ) opsys=unixware ;;
3204 *-sysv5uw* ) opsys=unixware ;;
3205 *-sysv5OpenUNIX* ) opsys=unixware ;;
3206 *-sysv4.1* | *-sysvr4.1* )
3207 NON_GNU_CPP=/usr/lib/cpp
3208 opsys=usg5-4 ;;
3209 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3210 if [ x$NON_GNU_CPP = x ]; then
3211 if [ -f /usr/ccs/lib/cpp ]; then
3212 NON_GNU_CPP=/usr/ccs/lib/cpp
3213 else
3214 NON_GNU_CPP=/lib/cpp
3217 opsys=usg5-4-2 ;;
3218 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3220 unported=yes
3222 esac
3227 if test $unported = yes; then
3228 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3229 Check \`etc/MACHINES' for recognized configuration names." >&5
3230 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3231 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3232 { (exit 1); exit 1; }; }
3235 machfile="m/${machine}.h"
3236 opsysfile="s/${opsys}.h"
3239 #### Choose a compiler.
3240 test -n "$CC" && cc_specified=yes
3242 # Save the value of CFLAGS that the user specified.
3243 SPECIFIED_CFLAGS="$CFLAGS"
3245 case ${with_gcc} in
3246 "yes" ) CC="gcc" GCC=yes ;;
3247 "no" ) : ${CC=cc} ;;
3249 esac
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3279 IFS=$as_save_IFS
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { echo "$as_me:$LINENO: result: $CC" >&5
3286 echo "${ECHO_T}$CC" >&6; }
3287 else
3288 { echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6; }
3294 if test -z "$ac_cv_prog_CC"; then
3295 ac_ct_CC=$CC
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_ac_ct_CC="gcc"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3317 done
3318 done
3319 IFS=$as_save_IFS
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3326 echo "${ECHO_T}$ac_ct_CC" >&6; }
3327 else
3328 { echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6; }
3332 if test "x$ac_ct_CC" = x; then
3333 CC=""
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3338 whose name does not start with the host triplet. If you think this
3339 configuration is useful to you, please write to autoconf@gnu.org." >&5
3340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3341 whose name does not start with the host triplet. If you think this
3342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3343 ac_tool_warned=yes ;;
3344 esac
3345 CC=$ac_ct_CC
3347 else
3348 CC="$ac_cv_prog_CC"
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3374 done
3375 done
3376 IFS=$as_save_IFS
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 { echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6; }
3384 else
3385 { echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6; }
3392 if test -z "$CC"; then
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 ac_prog_rejected=no
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412 ac_prog_rejected=yes
3413 continue
3415 ac_cv_prog_CC="cc"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3423 if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy $ac_cv_prog_CC
3426 shift
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3431 shift
3432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { echo "$as_me:$LINENO: result: $CC" >&5
3440 echo "${ECHO_T}$CC" >&6; }
3441 else
3442 { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3448 if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in cl.exe
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3473 done
3474 done
3475 IFS=$as_save_IFS
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6; }
3483 else
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3489 test -n "$CC" && break
3490 done
3492 if test -z "$CC"; then
3493 ac_ct_CC=$CC
3494 for ac_prog in cl.exe
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy $ac_prog; ac_word=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC="$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3526 echo "${ECHO_T}$ac_ct_CC" >&6; }
3527 else
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3533 test -n "$ac_ct_CC" && break
3534 done
3536 if test "x$ac_ct_CC" = x; then
3537 CC=""
3538 else
3539 case $cross_compiling:$ac_tool_warned in
3540 yes:)
3541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet. If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&5
3544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3545 whose name does not start with the host triplet. If you think this
3546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549 CC=$ac_ct_CC
3556 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3562 # Provide some information about the compiler.
3563 echo "$as_me:$LINENO: checking for C compiler version" >&5
3564 ac_compiler=`set X $ac_compile; echo $2`
3565 { (ac_try="$ac_compiler --version >&5"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compiler --version >&5") 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 { (ac_try="$ac_compiler -v >&5"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compiler -v >&5") 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }
3585 { (ac_try="$ac_compiler -V >&5"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compiler -V >&5") 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3615 # of exeext.
3616 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3617 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3618 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3620 # List of possible output files, starting from the most likely.
3621 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3622 # only as a last resort. b.out is created by i960 compilers.
3623 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3625 # The IRIX 6 linker writes into existing files which may not be
3626 # executable, retaining their permissions. Remove them first so a
3627 # subsequent execution test works.
3628 ac_rmfiles=
3629 for ac_file in $ac_files
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3633 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3634 esac
3635 done
3636 rm -f $ac_rmfiles
3638 if { (ac_try="$ac_link_default"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_link_default") 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; then
3648 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3649 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3650 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3651 # so that the user can short-circuit this test for compilers unknown to
3652 # Autoconf.
3653 for ac_file in $ac_files ''
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3659 [ab].out )
3660 # We found the default executable, but exeext='' is most
3661 # certainly right.
3662 break;;
3663 *.* )
3664 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3665 then :; else
3666 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 # We set ac_cv_exeext here because the later test for it is not
3669 # safe: cross compilers may not add the suffix if given an `-o'
3670 # argument, so we may need to know it at that point already.
3671 # Even if this section looks crufty: it has the advantage of
3672 # actually working.
3673 break;;
3675 break;;
3676 esac
3677 done
3678 test "$ac_cv_exeext" = no && ac_cv_exeext=
3680 else
3681 ac_file=''
3684 { echo "$as_me:$LINENO: result: $ac_file" >&5
3685 echo "${ECHO_T}$ac_file" >&6; }
3686 if test -z "$ac_file"; then
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: C compiler cannot create executables
3693 See \`config.log' for more details." >&2;}
3694 { (exit 77); exit 77; }; }
3697 ac_exeext=$ac_cv_exeext
3699 # Check that the compiler produces executables we can run. If not, either
3700 # the compiler is broken, or we cross compile.
3701 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3702 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3703 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3704 # If not cross compiling, check that we can run a simple program.
3705 if test "$cross_compiling" != yes; then
3706 if { ac_try='./$ac_file'
3707 { (case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 cross_compiling=no
3717 else
3718 if test "$cross_compiling" = maybe; then
3719 cross_compiling=yes
3720 else
3721 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3722 If you meant to cross compile, use \`--host'.
3723 See \`config.log' for more details." >&5
3724 echo "$as_me: error: cannot run C compiled programs.
3725 If you meant to cross compile, use \`--host'.
3726 See \`config.log' for more details." >&2;}
3727 { (exit 1); exit 1; }; }
3731 { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3734 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3735 ac_clean_files=$ac_clean_files_save
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3740 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3741 echo "${ECHO_T}$cross_compiling" >&6; }
3743 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3745 if { (ac_try="$ac_link"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_link") 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3756 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3757 # work properly (i.e., refer to `conftest.exe'), while it won't with
3758 # `rm'.
3759 for ac_file in conftest.exe conftest conftest.*; do
3760 test -f "$ac_file" || continue
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3764 break;;
3765 * ) break;;
3766 esac
3767 done
3768 else
3769 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3772 See \`config.log' for more details." >&2;}
3773 { (exit 1); exit 1; }; }
3776 rm -f conftest$ac_cv_exeext
3777 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3778 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3780 rm -f conftest.$ac_ext
3781 EXEEXT=$ac_cv_exeext
3782 ac_exeext=$EXEEXT
3783 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3784 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3785 if test "${ac_cv_objext+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h. */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3796 main ()
3800 return 0;
3802 _ACEOF
3803 rm -f conftest.o conftest.obj
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; then
3814 for ac_file in conftest.o conftest.obj conftest.*; do
3815 test -f "$ac_file" || continue;
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819 break;;
3820 esac
3821 done
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3835 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3836 echo "${ECHO_T}$ac_cv_objext" >&6; }
3837 OBJEXT=$ac_cv_objext
3838 ac_objext=$OBJEXT
3839 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3840 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3852 main ()
3854 #ifndef __GNUC__
3855 choke me
3856 #endif
3859 return 0;
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3879 ac_compiler_gnu=yes
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_compiler_gnu=no
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3893 GCC=`test $ac_compiler_gnu = yes && echo yes`
3894 ac_test_CFLAGS=${CFLAGS+set}
3895 ac_save_CFLAGS=$CFLAGS
3896 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3897 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3898 if test "${ac_cv_prog_cc_g+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 ac_save_c_werror_flag=$ac_c_werror_flag
3902 ac_c_werror_flag=yes
3903 ac_cv_prog_cc_g=no
3904 CFLAGS="-g"
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3913 main ()
3917 return 0;
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3937 ac_cv_prog_cc_g=yes
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 CFLAGS=""
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3951 main ()
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3981 CFLAGS="-g"
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3990 main ()
3994 return 0;
3996 _ACEOF
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compile") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest.$ac_objext; then
4014 ac_cv_prog_cc_g=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_c_werror_flag=$ac_save_c_werror_flag
4031 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4032 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4033 if test "$ac_test_CFLAGS" = set; then
4034 CFLAGS=$ac_save_CFLAGS
4035 elif test $ac_cv_prog_cc_g = yes; then
4036 if test "$GCC" = yes; then
4037 CFLAGS="-g -O2"
4038 else
4039 CFLAGS="-g"
4041 else
4042 if test "$GCC" = yes; then
4043 CFLAGS="-O2"
4044 else
4045 CFLAGS=
4048 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4049 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_cc_c89+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 ac_cv_prog_cc_c89=no
4054 ac_save_CC=$CC
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <stdarg.h>
4062 #include <stdio.h>
4063 #include <sys/types.h>
4064 #include <sys/stat.h>
4065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066 struct buf { int x; };
4067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068 static char *e (p, i)
4069 char **p;
4070 int i;
4072 return p[i];
4074 static char *f (char * (*g) (char **, int), char **p, ...)
4076 char *s;
4077 va_list v;
4078 va_start (v,p);
4079 s = g (p, va_arg (v,int));
4080 va_end (v);
4081 return s;
4084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4095 #define FOO(x) 'x'
4096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098 int test (int i, double x);
4099 struct s1 {int (*f) (int a);};
4100 struct s2 {int (*f) (double a);};
4101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4102 int argc;
4103 char **argv;
4105 main ()
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4109 return 0;
4111 _ACEOF
4112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 CC="$ac_save_CC $ac_arg"
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4133 ac_cv_prog_cc_c89=$ac_arg
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4141 rm -f core conftest.err conftest.$ac_objext
4142 test "x$ac_cv_prog_cc_c89" != "xno" && break
4143 done
4144 rm -f conftest.$ac_ext
4145 CC=$ac_save_CC
4148 # AC_CACHE_VAL
4149 case "x$ac_cv_prog_cc_c89" in
4151 { echo "$as_me:$LINENO: result: none needed" >&5
4152 echo "${ECHO_T}none needed" >&6; } ;;
4153 xno)
4154 { echo "$as_me:$LINENO: result: unsupported" >&5
4155 echo "${ECHO_T}unsupported" >&6; } ;;
4157 CC="$CC $ac_cv_prog_cc_c89"
4158 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4159 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4160 esac
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4172 CPP=
4175 #### Some systems specify a CPP to use unless we are using GCC.
4176 #### Now that we know whether we are using GCC, we can decide whether
4177 #### to use that one.
4178 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4179 then
4180 CPP="$NON_GNU_CPP"
4183 #### Some systems specify a CC to use unless we are using GCC.
4184 #### Now that we know whether we are using GCC, we can decide whether
4185 #### to use that one.
4186 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4187 test x$cc_specified != xyes
4188 then
4189 CC="$NON_GNU_CC"
4192 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4193 then
4194 CC="$CC $GCC_TEST_OPTIONS"
4197 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4198 then
4199 CC="$CC $NON_GCC_TEST_OPTIONS"
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4210 # On Suns, sometimes $CPP names a directory.
4211 if test -n "$CPP" && test -d "$CPP"; then
4212 CPP=
4214 if test -z "$CPP"; then
4215 if test "${ac_cv_prog_CPP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 # Double quotes because CPP needs to be expanded
4219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 ac_preproc_ok=false
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241 Syntax error
4242 _ACEOF
4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null && {
4256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 }; then
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 # Broken: fails on valid input.
4265 continue
4268 rm -f conftest.err conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether nonexistent headers
4271 # can be detected and how.
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if { (ac_try="$ac_cpp conftest.$ac_ext"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } >/dev/null && {
4293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 }; then
4296 # Broken: success on invalid input.
4297 continue
4298 else
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 # Passes both tests.
4303 ac_preproc_ok=:
4304 break
4307 rm -f conftest.err conftest.$ac_ext
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then
4313 break
4316 done
4317 ac_cv_prog_CPP=$CPP
4320 CPP=$ac_cv_prog_CPP
4321 else
4322 ac_cv_prog_CPP=$CPP
4324 { echo "$as_me:$LINENO: result: $CPP" >&5
4325 echo "${ECHO_T}$CPP" >&6; }
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346 Syntax error
4347 _ACEOF
4348 if { (ac_try="$ac_cpp conftest.$ac_ext"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null && {
4361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 }; then
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 # Broken: fails on valid input.
4370 continue
4373 rm -f conftest.err conftest.$ac_ext
4375 # OK, works on sane cases. Now check whether nonexistent headers
4376 # can be detected and how.
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4384 _ACEOF
4385 if { (ac_try="$ac_cpp conftest.$ac_ext"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null && {
4398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 }; then
4401 # Broken: success on invalid input.
4402 continue
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 # Passes both tests.
4408 ac_preproc_ok=:
4409 break
4412 rm -f conftest.err conftest.$ac_ext
4414 done
4415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4416 rm -f conftest.err conftest.$ac_ext
4417 if $ac_preproc_ok; then
4419 else
4420 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4421 See \`config.log' for more details." >&5
4422 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4423 See \`config.log' for more details." >&2;}
4424 { (exit 1); exit 1; }; }
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4435 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 # Extract the first word of "grep ggrep" to use in msg output
4440 if test -z "$GREP"; then
4441 set dummy grep ggrep; ac_prog_name=$2
4442 if test "${ac_cv_path_GREP+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 ac_path_GREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in grep ggrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4456 # Check for GNU ac_path_GREP and select it if it is found.
4457 # Check for GNU $ac_path_GREP
4458 case `"$ac_path_GREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462 ac_count=0
4463 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4464 while :
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 echo 'GREP' >> "conftest.nl"
4470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 ac_count=`expr $ac_count + 1`
4473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_GREP="$ac_path_GREP"
4476 ac_path_GREP_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4485 $ac_path_GREP_found && break 3
4486 done
4487 done
4489 done
4490 IFS=$as_save_IFS
4495 GREP="$ac_cv_path_GREP"
4496 if test -z "$GREP"; then
4497 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4498 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4499 { (exit 1); exit 1; }; }
4502 else
4503 ac_cv_path_GREP=$GREP
4508 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4509 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4510 GREP="$ac_cv_path_GREP"
4513 { echo "$as_me:$LINENO: checking for egrep" >&5
4514 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_EGREP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519 then ac_cv_path_EGREP="$GREP -E"
4520 else
4521 # Extract the first word of "egrep" to use in msg output
4522 if test -z "$EGREP"; then
4523 set dummy egrep; ac_prog_name=$2
4524 if test "${ac_cv_path_EGREP+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 ac_path_EGREP_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_prog in egrep; do
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4538 # Check for GNU ac_path_EGREP and select it if it is found.
4539 # Check for GNU $ac_path_EGREP
4540 case `"$ac_path_EGREP" --version 2>&1` in
4541 *GNU*)
4542 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4544 ac_count=0
4545 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4546 while :
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 echo 'EGREP' >> "conftest.nl"
4552 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 ac_count=`expr $ac_count + 1`
4555 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_EGREP="$ac_path_EGREP"
4558 ac_path_EGREP_max=$ac_count
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4562 done
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564 esac
4567 $ac_path_EGREP_found && break 3
4568 done
4569 done
4571 done
4572 IFS=$as_save_IFS
4577 EGREP="$ac_cv_path_EGREP"
4578 if test -z "$EGREP"; then
4579 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4580 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4581 { (exit 1); exit 1; }; }
4584 else
4585 ac_cv_path_EGREP=$EGREP
4591 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4592 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4593 EGREP="$ac_cv_path_EGREP"
4597 { echo "$as_me:$LINENO: checking for AIX" >&5
4598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 #ifdef _AIX
4607 #endif
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "yes" >/dev/null 2>&1; then
4612 { echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6; }
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _ALL_SOURCE 1
4616 _ACEOF
4618 else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4622 rm -f conftest*
4626 cat >>confdefs.h <<\_ACEOF
4627 #define _GNU_SOURCE 1
4628 _ACEOF
4632 ### Use -Wno-pointer-sign if the compiler supports it
4633 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4634 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4635 SAVE_CFLAGS="$CFLAGS"
4636 CFLAGS="$CFLAGS -Wno-pointer-sign"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4645 main ()
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4669 has_option=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 has_option=no
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 if test $has_option = yes; then
4679 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4681 { echo "$as_me:$LINENO: result: $has_option" >&5
4682 echo "${ECHO_T}$has_option" >&6; }
4683 CFLAGS="$SAVE_CFLAGS"
4684 unset has_option
4685 unset SAVE_CFLAGS
4687 #### Some other nice autoconf tests.
4689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4691 LN_S=$as_ln_s
4692 if test "$LN_S" = "ln -s"; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4697 echo "${ECHO_T}no, using $LN_S" >&6; }
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4707 # On Suns, sometimes $CPP names a directory.
4708 if test -n "$CPP" && test -d "$CPP"; then
4709 CPP=
4711 if test -z "$CPP"; then
4712 if test "${ac_cv_prog_CPP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 # Double quotes because CPP needs to be expanded
4716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4718 ac_preproc_ok=false
4719 for ac_c_preproc_warn_flag in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #ifdef __STDC__
4734 # include <limits.h>
4735 #else
4736 # include <assert.h>
4737 #endif
4738 Syntax error
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 }; then
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 # Broken: fails on valid input.
4762 continue
4765 rm -f conftest.err conftest.$ac_ext
4767 # OK, works on sane cases. Now check whether nonexistent headers
4768 # can be detected and how.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 }; then
4793 # Broken: success on invalid input.
4794 continue
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4804 rm -f conftest.err conftest.$ac_ext
4806 done
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok; then
4810 break
4813 done
4814 ac_cv_prog_CPP=$CPP
4817 CPP=$ac_cv_prog_CPP
4818 else
4819 ac_cv_prog_CPP=$CPP
4821 { echo "$as_me:$LINENO: result: $CPP" >&5
4822 echo "${ECHO_T}$CPP" >&6; }
4823 ac_preproc_ok=false
4824 for ac_c_preproc_warn_flag in '' yes
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829 # <limits.h> exists even on freestanding compilers.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #ifdef __STDC__
4839 # include <limits.h>
4840 #else
4841 # include <assert.h>
4842 #endif
4843 Syntax error
4844 _ACEOF
4845 if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null && {
4858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4860 }; then
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4867 continue
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 # Passes both tests.
4905 ac_preproc_ok=:
4906 break
4909 rm -f conftest.err conftest.$ac_ext
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then
4916 else
4917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 # Find a good install program. We prefer a C program (faster),
4931 # so one script is as good as another. But avoid the broken or
4932 # incompatible versions:
4933 # SysV /etc/install, /usr/sbin/install
4934 # SunOS /usr/etc/install
4935 # IRIX /sbin/install
4936 # AIX /bin/install
4937 # AmigaOS /C/install, which installs bootblocks on floppy discs
4938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4941 # OS/2's system install, which has a completely different semantic
4942 # ./install, which can be erroneously created by make from ./install.sh.
4943 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 # Account for people who put trailing slashes in PATH elements.
4955 case $as_dir/ in
4956 ./ | .// | /cC/* | \
4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4958 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4959 /usr/ucb/* ) ;;
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4963 # by default.
4964 for ac_prog in ginstall scoinst install; do
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4975 else
4976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4977 break 3
4980 done
4981 done
4983 esac
4984 done
4985 IFS=$as_save_IFS
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL=$ac_cv_path_install
4991 else
4992 # As a last resort, use the slow shell script. Don't cache a
4993 # value for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the value is a relative name.
4996 INSTALL=$ac_install_sh
4999 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6; }
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5010 if test "x$RANLIB" = x; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_RANLIB+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 if test -n "$RANLIB"; then
5020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5033 done
5034 done
5035 IFS=$as_save_IFS
5039 RANLIB=$ac_cv_prog_RANLIB
5040 if test -n "$RANLIB"; then
5041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5042 echo "${ECHO_T}$RANLIB" >&6; }
5043 else
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5050 if test -z "$ac_cv_prog_RANLIB"; then
5051 ac_ct_RANLIB=$RANLIB
5052 # Extract the first word of "ranlib", so it can be a program name with args.
5053 set dummy ranlib; ac_word=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 if test -n "$ac_ct_RANLIB"; then
5060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_RANLIB="ranlib"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5080 if test -n "$ac_ct_RANLIB"; then
5081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5083 else
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5088 if test "x$ac_ct_RANLIB" = x; then
5089 RANLIB=":"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&5
5096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 RANLIB=$ac_ct_RANLIB
5103 else
5104 RANLIB="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "install-info", so it can be a program name with args.
5109 set dummy install-info; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 case $INSTALL_INFO in
5116 [\\/]* | ?:[\\/]*)
5117 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5136 esac
5138 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5139 if test -n "$INSTALL_INFO"; then
5140 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5141 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5142 else
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5148 # Extract the first word of "install-info", so it can be a program name with args.
5149 set dummy install-info; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 case $INSTALL_INFO in
5156 [\\/]* | ?:[\\/]*)
5157 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in /usr/sbin
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5176 esac
5178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5179 if test -n "$INSTALL_INFO"; then
5180 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5181 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5182 else
5183 { echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6; }
5188 # Extract the first word of "install-info", so it can be a program name with args.
5189 set dummy install-info; ac_word=$2
5190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5192 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 case $INSTALL_INFO in
5196 [\\/]* | ?:[\\/]*)
5197 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in /sbin
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5215 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5217 esac
5219 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5220 if test -n "$INSTALL_INFO"; then
5221 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5222 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 # Extract the first word of "gzip", so it can be a program name with args.
5230 set dummy gzip; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 case $GZIP_PROG in
5237 [\\/]* | ?:[\\/]*)
5238 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5257 esac
5259 GZIP_PROG=$ac_cv_path_GZIP_PROG
5260 if test -n "$GZIP_PROG"; then
5261 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5262 echo "${ECHO_T}$GZIP_PROG" >&6; }
5263 else
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5271 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5272 then
5273 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5276 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5277 then
5278 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5282 late_LDFLAGS=$LDFLAGS
5283 if test "$GCC" = yes; then
5284 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5285 else
5286 LDFLAGS="$LDFLAGS -znocombreloc"
5289 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5290 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5291 cat >conftest.$ac_ext <<_ACEOF
5292 main(){return 0;}
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (ac_try="$ac_link"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_link") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest$ac_exeext &&
5311 $as_test_x conftest$ac_exeext; then
5312 { echo "$as_me:$LINENO: result: yes" >&5
5313 echo "${ECHO_T}yes" >&6; }
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 LDFLAGS=$late_LDFLAGS
5319 { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324 conftest$ac_exeext conftest.$ac_ext
5326 #### Extract some information from the operating system and machine files.
5328 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5329 - which libraries the lib-src programs will want, and
5330 - whether the GNU malloc routines are usable..." >&5
5331 echo "$as_me: checking the machine- and system-dependent files to find out
5332 - which libraries the lib-src programs will want, and
5333 - whether the GNU malloc routines are usable..." >&6;}
5335 ### First figure out CFLAGS (which we use for running the compiler here)
5336 ### and REAL_CFLAGS (which we use for real compilation).
5337 ### The two are the same except on a few systems, where they are made
5338 ### different to work around various lossages. For example,
5339 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5340 ### as implying static linking.
5342 ### If the CFLAGS env var is specified, we use that value
5343 ### instead of the default.
5345 ### It's not important that this name contain the PID; you can't run
5346 ### two configures in the same directory and have anything work
5347 ### anyway.
5348 tempcname="conftest.c"
5350 echo '
5351 #include "'${srcdir}'/src/'${opsysfile}'"
5352 #include "'${srcdir}'/src/'${machfile}'"
5353 #ifndef LIBS_MACHINE
5354 #define LIBS_MACHINE
5355 #endif
5356 #ifndef LIBS_SYSTEM
5357 #define LIBS_SYSTEM
5358 #endif
5359 #ifndef C_SWITCH_SYSTEM
5360 #define C_SWITCH_SYSTEM
5361 #endif
5362 #ifndef C_SWITCH_MACHINE
5363 #define C_SWITCH_MACHINE
5364 #endif
5365 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5366 configure___ c_switch_system=C_SWITCH_SYSTEM
5367 configure___ c_switch_machine=C_SWITCH_MACHINE
5369 #ifndef LIB_X11_LIB
5370 #define LIB_X11_LIB -lX11
5371 #endif
5373 #ifndef LIBX11_MACHINE
5374 #define LIBX11_MACHINE
5375 #endif
5377 #ifndef LIBX11_SYSTEM
5378 #define LIBX11_SYSTEM
5379 #endif
5380 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5382 #ifdef UNEXEC
5383 configure___ unexec=UNEXEC
5384 #else
5385 configure___ unexec=unexec.o
5386 #endif
5388 #ifdef SYSTEM_MALLOC
5389 configure___ system_malloc=yes
5390 #else
5391 configure___ system_malloc=no
5392 #endif
5394 #ifdef USE_MMAP_FOR_BUFFERS
5395 configure___ use_mmap_for_buffers=yes
5396 #else
5397 configure___ use_mmap_for_buffers=no
5398 #endif
5400 #ifndef C_DEBUG_SWITCH
5401 #define C_DEBUG_SWITCH -g
5402 #endif
5404 #ifndef C_OPTIMIZE_SWITCH
5405 #ifdef __GNUC__
5406 #define C_OPTIMIZE_SWITCH -O2
5407 #else
5408 #define C_OPTIMIZE_SWITCH -O
5409 #endif
5410 #endif
5412 #ifndef C_WARNINGS_SWITCH
5413 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5414 #endif
5416 #ifndef LD_SWITCH_MACHINE
5417 #define LD_SWITCH_MACHINE
5418 #endif
5420 #ifndef LD_SWITCH_SYSTEM
5421 #define LD_SWITCH_SYSTEM
5422 #endif
5424 #ifndef LD_SWITCH_X_SITE_AUX
5425 #define LD_SWITCH_X_SITE_AUX
5426 #endif
5428 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5429 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5431 #ifdef THIS_IS_CONFIGURE
5433 /* Get the CFLAGS for tests in configure. */
5434 #ifdef __GNUC__
5435 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5436 #else
5437 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5438 #endif
5440 #else /* not THIS_IS_CONFIGURE */
5442 /* Get the CFLAGS for real compilation. */
5443 #ifdef __GNUC__
5444 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5445 #else
5446 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5447 #endif
5449 #endif /* not THIS_IS_CONFIGURE */
5450 ' > ${tempcname}
5452 # The value of CPP is a quoted variable reference, so we need to do this
5453 # to get its actual value...
5454 CPP=`eval "echo $CPP"`
5455 eval `${CPP} -Isrc ${tempcname} \
5456 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5457 if test "x$SPECIFIED_CFLAGS" = x; then
5458 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5459 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5460 else
5461 REAL_CFLAGS="$CFLAGS"
5463 rm ${tempcname}
5465 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5467 ### Make sure subsequent tests use flags consistent with the build flags.
5469 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5470 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5471 else
5472 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5477 # Check whether --enable-largefile was given.
5478 if test "${enable_largefile+set}" = set; then
5479 enableval=$enable_largefile;
5482 if test "$enable_largefile" != no; then
5484 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5485 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5486 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 ac_cv_sys_largefile_CC=no
5490 if test "$GCC" != yes; then
5491 ac_save_CC=$CC
5492 while :; do
5493 # IRIX 6.2 and later do not support large files by default,
5494 # so use the C compiler's -n32 option if that helps.
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <sys/types.h>
5502 /* Check that off_t can represent 2**63 - 1 correctly.
5503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5504 since some C++ compilers masquerading as C compilers
5505 incorrectly reject 9223372036854775807. */
5506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5508 && LARGE_OFF_T % 2147483647 == 1)
5509 ? 1 : -1];
5511 main ()
5515 return 0;
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 break
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core conftest.err conftest.$ac_objext
5544 CC="$CC -n32"
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 ac_cv_sys_largefile_CC=' -n32'; break
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5570 rm -f core conftest.err conftest.$ac_objext
5571 break
5572 done
5573 CC=$ac_save_CC
5574 rm -f conftest.$ac_ext
5577 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5578 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5579 if test "$ac_cv_sys_largefile_CC" != no; then
5580 CC=$CC$ac_cv_sys_largefile_CC
5583 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5584 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 while :; do
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5596 /* Check that off_t can represent 2**63 - 1 correctly.
5597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5598 since some C++ compilers masquerading as C compilers
5599 incorrectly reject 9223372036854775807. */
5600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5602 && LARGE_OFF_T % 2147483647 == 1)
5603 ? 1 : -1];
5605 main ()
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5614 case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
5629 ac_cv_sys_file_offset_bits=no; break
5630 else
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #define _FILE_OFFSET_BITS 64
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5653 ? 1 : -1];
5655 main ()
5659 return 0;
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 ac_cv_sys_file_offset_bits=64; break
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_sys_file_offset_bits=unknown
5689 break
5690 done
5692 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5693 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5694 case $ac_cv_sys_file_offset_bits in #(
5695 no | unknown) ;;
5697 cat >>confdefs.h <<_ACEOF
5698 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5699 _ACEOF
5701 esac
5702 rm -f conftest*
5703 if test $ac_cv_sys_file_offset_bits = unknown; then
5704 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5705 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5706 if test "${ac_cv_sys_large_files+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 while :; do
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <sys/types.h>
5717 /* Check that off_t can represent 2**63 - 1 correctly.
5718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5719 since some C++ compilers masquerading as C compilers
5720 incorrectly reject 9223372036854775807. */
5721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5723 && LARGE_OFF_T % 2147483647 == 1)
5724 ? 1 : -1];
5726 main ()
5730 return 0;
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5735 case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5741 ac_status=$?
5742 grep -v '^ *+' conftest.er1 >conftest.err
5743 rm -f conftest.er1
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && {
5747 test -z "$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5749 } && test -s conftest.$ac_objext; then
5750 ac_cv_sys_large_files=no; break
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5774 ? 1 : -1];
5776 main ()
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_cv_sys_large_files=1; break
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cv_sys_large_files=unknown
5810 break
5811 done
5813 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5814 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5815 case $ac_cv_sys_large_files in #(
5816 no | unknown) ;;
5818 cat >>confdefs.h <<_ACEOF
5819 #define _LARGE_FILES $ac_cv_sys_large_files
5820 _ACEOF
5822 esac
5823 rm -f conftest*
5829 ### The standard library on x86-64 GNU/Linux distributions can
5830 ### be located in either /usr/lib64 or /usr/lib.
5831 case "${canonical}" in
5832 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5833 if test -d /usr/lib64; then
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_X86_64_LIB64_DIR 1
5837 _ACEOF
5840 esac
5845 if test "${with_sound}" != "no"; then
5846 # Sound support for GNU/Linux and the free BSDs.
5847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5849 if test "${ac_cv_header_stdc+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <stdlib.h>
5859 #include <stdarg.h>
5860 #include <string.h>
5861 #include <float.h>
5864 main ()
5868 return 0;
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest.$ac_objext; then
5888 ac_cv_header_stdc=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_cv_header_stdc=no
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 if test $ac_cv_header_stdc = yes; then
5899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <string.h>
5908 _ACEOF
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "memchr" >/dev/null 2>&1; then
5912 else
5913 ac_cv_header_stdc=no
5915 rm -f conftest*
5919 if test $ac_cv_header_stdc = yes; then
5920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #include <stdlib.h>
5929 _ACEOF
5930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5931 $EGREP "free" >/dev/null 2>&1; then
5933 else
5934 ac_cv_header_stdc=no
5936 rm -f conftest*
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <ctype.h>
5952 #include <stdlib.h>
5953 #if ((' ' & 0x0FF) == 0x020)
5954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5956 #else
5957 # define ISLOWER(c) \
5958 (('a' <= (c) && (c) <= 'i') \
5959 || ('j' <= (c) && (c) <= 'r') \
5960 || ('s' <= (c) && (c) <= 'z'))
5961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5962 #endif
5964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5966 main ()
5968 int i;
5969 for (i = 0; i < 256; i++)
5970 if (XOR (islower (i), ISLOWER (i))
5971 || toupper (i) != TOUPPER (i))
5972 return 2;
5973 return 0;
5975 _ACEOF
5976 rm -f conftest$ac_exeext
5977 if { (ac_try="$ac_link"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_link") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5987 { (case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_try") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5997 else
5998 echo "$as_me: program exited with status $ac_status" >&5
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ( exit $ac_status )
6003 ac_cv_header_stdc=no
6005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6013 if test $ac_cv_header_stdc = yes; then
6015 cat >>confdefs.h <<\_ACEOF
6016 #define STDC_HEADERS 1
6017 _ACEOF
6021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6032 inttypes.h stdint.h unistd.h
6034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 #include <$ac_header>
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6067 eval "$as_ac_Header=yes"
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 eval "$as_ac_Header=no"
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_res=`eval echo '${'$as_ac_Header'}'`
6078 { echo "$as_me:$LINENO: result: $ac_res" >&5
6079 echo "${ECHO_T}$ac_res" >&6; }
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6083 _ACEOF
6087 done
6093 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 ac_res=`eval echo '${'$as_ac_Header'}'`
6103 { echo "$as_me:$LINENO: result: $ac_res" >&5
6104 echo "${ECHO_T}$ac_res" >&6; }
6105 else
6106 # Is the header compilable?
6107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 #include <$ac_header>
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6135 ac_header_compiler=yes
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_header_compiler=no
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145 echo "${ECHO_T}$ac_header_compiler" >&6; }
6147 # Is the header present?
6148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <$ac_header>
6157 _ACEOF
6158 if { (ac_try="$ac_cpp conftest.$ac_ext"
6159 case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162 esac
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null && {
6171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 }; then
6174 ac_header_preproc=yes
6175 else
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_header_preproc=no
6182 rm -f conftest.err conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6; }
6186 # So? What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188 yes:no: )
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6193 ac_header_preproc=yes
6195 no:yes:* )
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6210 esac
6211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 eval "$as_ac_Header=\$ac_header_preproc"
6218 ac_res=`eval echo '${'$as_ac_Header'}'`
6219 { echo "$as_me:$LINENO: result: $ac_res" >&5
6220 echo "${ECHO_T}$ac_res" >&6; }
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 _ACEOF
6230 done
6232 # Emulation library used on NetBSD.
6233 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6234 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6235 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238 ac_check_lib_save_LIBS=$LIBS
6239 LIBS="-lossaudio $LIBS"
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6247 /* Override any GCC internal prototype to avoid an error.
6248 Use char because int might match the return type of a GCC
6249 builtin and then its argument prototype would still apply. */
6250 #ifdef __cplusplus
6251 extern "C"
6252 #endif
6253 char _oss_ioctl ();
6255 main ()
6257 return _oss_ioctl ();
6259 return 0;
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (ac_try="$ac_link"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_link") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest$ac_exeext &&
6279 $as_test_x conftest$ac_exeext; then
6280 ac_cv_lib_ossaudio__oss_ioctl=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_cv_lib_ossaudio__oss_ioctl=no
6288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6289 conftest$ac_exeext conftest.$ac_ext
6290 LIBS=$ac_check_lib_save_LIBS
6292 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6293 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6294 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6295 LIBSOUND=-lossaudio
6296 else
6297 LIBSOUND=
6302 ALSA_REQUIRED=1.0.0
6303 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6304 if test "X${with_pkg_config_prog}" != X; then
6305 PKG_CONFIG="${with_pkg_config_prog}"
6308 succeeded=no
6310 if test -z "$PKG_CONFIG"; then
6311 # Extract the first word of "pkg-config", so it can be a program name with args.
6312 set dummy pkg-config; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 case $PKG_CONFIG in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6334 done
6335 done
6336 IFS=$as_save_IFS
6338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6340 esac
6342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6343 if test -n "$PKG_CONFIG"; then
6344 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6345 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6346 else
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6354 if test "$PKG_CONFIG" = "no" ; then
6355 HAVE_ALSA=no
6356 else
6357 PKG_CONFIG_MIN_VERSION=0.9.0
6358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6359 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6360 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6362 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6363 { echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6; }
6365 succeeded=yes
6367 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6368 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6369 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6370 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6371 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6373 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6374 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6375 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6376 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6377 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6378 else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6381 ALSA_CFLAGS=""
6382 ALSA_LIBS=""
6383 ## If we have a custom action on failure, don't print errors, but
6384 ## do set a variable so people can do so.
6385 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6391 else
6392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6397 if test $succeeded = yes; then
6398 HAVE_ALSA=yes
6399 else
6400 HAVE_ALSA=no
6403 if test $HAVE_ALSA = yes; then
6404 SAVE_CFLAGS="$CFLAGS"
6405 SAVE_LDFLAGS="$LDFLAGS"
6406 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6407 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <asoundlib.h>
6416 main ()
6418 snd_lib_error_set_handler (0);
6420 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 emacs_alsa_normal=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 emacs_alsa_normal=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 if test "$emacs_alsa_normal" != yes; then
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 #include <alsa/asoundlib.h>
6458 main ()
6460 snd_lib_error_set_handler (0);
6462 return 0;
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 emacs_alsa_subdir=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 emacs_alsa_subdir=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 if test "$emacs_alsa_subdir" != yes; then
6492 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6493 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6494 { (exit 1); exit 1; }; }
6496 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6499 CFLAGS="$SAVE_CFLAGS"
6500 LDFLAGS="$SAVE_LDFLAGS"
6501 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6502 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_ALSA 1
6506 _ACEOF
6537 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6538 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6539 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6540 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6541 sys/utsname.h pwd.h
6543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_res=`eval echo '${'$as_ac_Header'}'`
6551 { echo "$as_me:$LINENO: result: $ac_res" >&5
6552 echo "${ECHO_T}$ac_res" >&6; }
6553 else
6554 # Is the header compilable?
6555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6568 case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_header_compiler=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_compiler=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6; }
6595 # Is the header present?
6596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <$ac_header>
6605 _ACEOF
6606 if { (ac_try="$ac_cpp conftest.$ac_ext"
6607 case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev/null && {
6619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 }; then
6622 ac_header_preproc=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_header_preproc=no
6630 rm -f conftest.err conftest.$ac_ext
6631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6632 echo "${ECHO_T}$ac_header_preproc" >&6; }
6634 # So? What about this header?
6635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6636 yes:no: )
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6641 ac_header_preproc=yes
6643 no:yes:* )
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6658 esac
6659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 eval "$as_ac_Header=\$ac_header_preproc"
6666 ac_res=`eval echo '${'$as_ac_Header'}'`
6667 { echo "$as_me:$LINENO: result: $ac_res" >&5
6668 echo "${ECHO_T}$ac_res" >&6; }
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 _ACEOF
6678 done
6681 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6682 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <sys/personality.h>
6691 main ()
6693 personality (PER_LINUX32)
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 emacs_cv_personality_linux32=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 emacs_cv_personality_linux32=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6725 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6727 if test $emacs_cv_personality_linux32 = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_PERSONALITY_LINUX32 1
6731 _ACEOF
6736 for ac_header in term.h
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <$ac_header>
6751 _ACEOF
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null && {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 }; then
6768 eval "$as_ac_Header=yes"
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 eval "$as_ac_Header=no"
6776 rm -f conftest.err conftest.$ac_ext
6778 ac_res=`eval echo '${'$as_ac_Header'}'`
6779 { echo "$as_me:$LINENO: result: $ac_res" >&5
6780 echo "${ECHO_T}$ac_res" >&6; }
6781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784 _ACEOF
6788 done
6790 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_stdc+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <stdlib.h>
6802 #include <stdarg.h>
6803 #include <string.h>
6804 #include <float.h>
6807 main ()
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_header_stdc=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_header_stdc=no
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 if test $ac_cv_header_stdc = yes; then
6842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <string.h>
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "memchr" >/dev/null 2>&1; then
6855 else
6856 ac_cv_header_stdc=no
6858 rm -f conftest*
6862 if test $ac_cv_header_stdc = yes; then
6863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <stdlib.h>
6872 _ACEOF
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6874 $EGREP "free" >/dev/null 2>&1; then
6876 else
6877 ac_cv_header_stdc=no
6879 rm -f conftest*
6883 if test $ac_cv_header_stdc = yes; then
6884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6885 if test "$cross_compiling" = yes; then
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <ctype.h>
6895 #include <stdlib.h>
6896 #if ((' ' & 0x0FF) == 0x020)
6897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6899 #else
6900 # define ISLOWER(c) \
6901 (('a' <= (c) && (c) <= 'i') \
6902 || ('j' <= (c) && (c) <= 'r') \
6903 || ('s' <= (c) && (c) <= 'z'))
6904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905 #endif
6907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6909 main ()
6911 int i;
6912 for (i = 0; i < 256; i++)
6913 if (XOR (islower (i), ISLOWER (i))
6914 || toupper (i) != TOUPPER (i))
6915 return 2;
6916 return 0;
6918 _ACEOF
6919 rm -f conftest$ac_exeext
6920 if { (ac_try="$ac_link"
6921 case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_link") 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6930 { (case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_try") 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6940 else
6941 echo "$as_me: program exited with status $ac_status" >&5
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ( exit $ac_status )
6946 ac_cv_header_stdc=no
6948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6955 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6956 if test $ac_cv_header_stdc = yes; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define STDC_HEADERS 1
6960 _ACEOF
6964 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6965 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6966 if test "${ac_cv_header_time+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <sys/time.h>
6977 #include <time.h>
6980 main ()
6982 if ((struct tm *) 0)
6983 return 0;
6985 return 0;
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (ac_try="$ac_compile"
6990 case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993 esac
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_compile") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest.$ac_objext; then
7005 ac_cv_header_time=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_cv_header_time=no
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7016 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7017 if test $ac_cv_header_time = yes; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define TIME_WITH_SYS_TIME 1
7021 _ACEOF
7025 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7026 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7027 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7038 main ()
7040 #ifndef sys_siglist
7041 (void) sys_siglist;
7042 #endif
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (ac_try="$ac_compile"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_compile") 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && {
7062 test -z "$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 } && test -s conftest.$ac_objext; then
7065 ac_cv_have_decl_sys_siglist=yes
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_cv_have_decl_sys_siglist=no
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7076 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7077 if test $ac_cv_have_decl_sys_siglist = yes; then
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_DECL_SYS_SIGLIST 1
7081 _ACEOF
7084 else
7085 cat >>confdefs.h <<_ACEOF
7086 #define HAVE_DECL_SYS_SIGLIST 0
7087 _ACEOF
7093 if test $ac_cv_have_decl_sys_siglist != yes; then
7094 # For Tru64, at least:
7095 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7096 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7097 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 #ifndef __sys_siglist
7111 (void) __sys_siglist;
7112 #endif
7115 return 0;
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7120 case "(($ac_try" in
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7123 esac
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7126 ac_status=$?
7127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.$ac_objext; then
7135 ac_cv_have_decl___sys_siglist=yes
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_cv_have_decl___sys_siglist=no
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7146 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7147 if test $ac_cv_have_decl___sys_siglist = yes; then
7149 cat >>confdefs.h <<_ACEOF
7150 #define HAVE_DECL___SYS_SIGLIST 1
7151 _ACEOF
7154 else
7155 cat >>confdefs.h <<_ACEOF
7156 #define HAVE_DECL___SYS_SIGLIST 0
7157 _ACEOF
7163 if test $ac_cv_have_decl___sys_siglist = yes; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define sys_siglist __sys_siglist
7167 _ACEOF
7171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <sys/types.h>
7183 #include <sys/wait.h>
7184 #ifndef WEXITSTATUS
7185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7186 #endif
7187 #ifndef WIFEXITED
7188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7189 #endif
7192 main ()
7194 int s;
7195 wait (&s);
7196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_cv_header_sys_wait_h=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_header_sys_wait_h=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7230 if test $ac_cv_header_sys_wait_h = yes; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_SYS_WAIT_H 1
7234 _ACEOF
7239 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7240 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7241 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #ifdef TIME_WITH_SYS_TIME
7251 #include <sys/time.h>
7252 #include <time.h>
7253 #else
7254 #ifdef HAVE_SYS_TIME_H
7255 #include <sys/time.h>
7256 #else
7257 #include <time.h>
7258 #endif
7259 #endif
7260 #ifdef HAVE_UTIME_H
7261 #include <utime.h>
7262 #endif
7264 main ()
7266 static struct utimbuf x; x.actime = x.modtime;
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_c_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.$ac_objext; then
7288 emacs_cv_struct_utimbuf=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 emacs_cv_struct_utimbuf=no
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7299 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7300 if test $emacs_cv_struct_utimbuf = yes; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define HAVE_STRUCT_UTIMBUF 1
7304 _ACEOF
7308 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7309 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7310 if test "${ac_cv_type_signal+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <sys/types.h>
7320 #include <signal.h>
7323 main ()
7325 return *(signal (0, 0)) (0) == 1;
7327 return 0;
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (ac_try="$ac_compile"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_cv_type_signal=int
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_type_signal=void
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7358 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7360 cat >>confdefs.h <<_ACEOF
7361 #define RETSIGTYPE $ac_cv_type_signal
7362 _ACEOF
7366 { echo "$as_me:$LINENO: checking for speed_t" >&5
7367 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7368 if test "${emacs_cv_speed_t+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <termios.h>
7379 main ()
7381 speed_t x = 1;
7383 return 0;
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7388 case "(($ac_try" in
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7391 esac
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.$ac_objext; then
7403 emacs_cv_speed_t=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 emacs_cv_speed_t=no
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7414 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7415 if test $emacs_cv_speed_t = yes; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_SPEED_T 1
7419 _ACEOF
7423 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7424 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7425 if test "${emacs_cv_struct_timeval+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #ifdef TIME_WITH_SYS_TIME
7435 #include <sys/time.h>
7436 #include <time.h>
7437 #else
7438 #ifdef HAVE_SYS_TIME_H
7439 #include <sys/time.h>
7440 #else
7441 #include <time.h>
7442 #endif
7443 #endif
7445 main ()
7447 static struct timeval x; x.tv_sec = x.tv_usec;
7449 return 0;
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_timeval=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 emacs_cv_struct_timeval=no
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7480 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7481 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7482 if test $emacs_cv_struct_timeval = yes; then
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_TIMEVAL 1
7486 _ACEOF
7490 { echo "$as_me:$LINENO: checking for struct exception" >&5
7491 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7492 if test "${emacs_cv_struct_exception+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 #include <math.h>
7503 main ()
7505 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7507 return 0;
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 emacs_cv_struct_exception=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 emacs_cv_struct_exception=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7538 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7539 HAVE_EXCEPTION=$emacs_cv_struct_exception
7540 if test $emacs_cv_struct_exception != yes; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define NO_MATHERR 1
7544 _ACEOF
7549 for ac_header in sys/socket.h
7551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_res=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7561 else
7562 # Is the header compilable?
7563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #include <$ac_header>
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_header_compiler=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_compiler=no
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 echo "${ECHO_T}$ac_header_compiler" >&6; }
7603 # Is the header present?
7604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <$ac_header>
7613 _ACEOF
7614 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev/null && {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 }; then
7630 ac_header_preproc=yes
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644 yes:no: )
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7651 no:yes:* )
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7666 esac
7667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 eval "$as_ac_Header=\$ac_header_preproc"
7674 ac_res=`eval echo '${'$as_ac_Header'}'`
7675 { echo "$as_me:$LINENO: result: $ac_res" >&5
7676 echo "${ECHO_T}$ac_res" >&6; }
7679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682 _ACEOF
7686 done
7689 for ac_header in net/if.h
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #if HAVE_SYS_SOCKET_H
7705 #include <sys/socket.h>
7706 #endif
7708 #include <$ac_header>
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 eval "$as_ac_Header=yes"
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 eval "$as_ac_Header=no"
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739 echo "${ECHO_T}$ac_res" >&6; }
7740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7741 cat >>confdefs.h <<_ACEOF
7742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7747 done
7750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7752 if test "${ac_cv_struct_tm+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7762 #include <time.h>
7765 main ()
7767 struct tm tm;
7768 int *p = &tm.tm_sec;
7769 return !p;
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_struct_tm=time.h
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_cv_struct_tm=sys/time.h
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7803 if test $ac_cv_struct_tm = sys/time.h; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define TM_IN_SYS_TIME 1
7807 _ACEOF
7811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <sys/types.h>
7865 #include <$ac_cv_struct_tm>
7869 main ()
7871 static struct tm ac_aggr;
7872 if (sizeof ac_aggr.tm_zone)
7873 return 0;
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.$ac_objext; then
7895 ac_cv_member_struct_tm_tm_zone=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_member_struct_tm_tm_zone=no
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_STRUCT_TM_TM_ZONE 1
7914 _ACEOF
7919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7921 cat >>confdefs.h <<\_ACEOF
7922 #define HAVE_TM_ZONE 1
7923 _ACEOF
7925 else
7926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7928 if test "${ac_cv_have_decl_tzname+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <time.h>
7940 main ()
7942 #ifndef tzname
7943 (void) tzname;
7944 #endif
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (ac_try="$ac_compile"
7952 case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 ac_cv_have_decl_tzname=yes
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_have_decl_tzname=no
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7979 if test $ac_cv_have_decl_tzname = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_DECL_TZNAME 1
7983 _ACEOF
7986 else
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DECL_TZNAME 0
7989 _ACEOF
7995 { echo "$as_me:$LINENO: checking for tzname" >&5
7996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7997 if test "${ac_cv_var_tzname+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 #include <time.h>
8007 #if !HAVE_DECL_TZNAME
8008 extern char *tzname[];
8009 #endif
8012 main ()
8014 return tzname[0][0];
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_link") 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest$ac_exeext &&
8036 $as_test_x conftest$ac_exeext; then
8037 ac_cv_var_tzname=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_var_tzname=no
8045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8046 conftest$ac_exeext conftest.$ac_ext
8048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8050 if test $ac_cv_var_tzname = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_TZNAME 1
8054 _ACEOF
8059 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8060 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8061 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <time.h>
8073 main ()
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_gmtoff)
8077 return 0;
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8099 ac_cv_member_struct_tm_tm_gmtoff=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #include <time.h>
8113 main ()
8115 static struct tm ac_aggr;
8116 if (sizeof ac_aggr.tm_gmtoff)
8117 return 0;
8119 return 0;
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8124 case "(($ac_try" in
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8139 ac_cv_member_struct_tm_tm_gmtoff=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_member_struct_tm_tm_gmtoff=no
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8153 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8154 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8156 cat >>confdefs.h <<\_ACEOF
8157 #define HAVE_TM_GMTOFF 1
8158 _ACEOF
8162 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8163 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8164 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8176 #endif
8177 #if HAVE_NET_IF_H
8178 #include <net/if.h>
8179 #endif
8182 main ()
8184 static struct ifreq ac_aggr;
8185 if (ac_aggr.ifr_flags)
8186 return 0;
8188 return 0;
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_cv_member_struct_ifreq_ifr_flags=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h. */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8220 #if HAVE_SYS_SOCKET_H
8221 #include <sys/socket.h>
8222 #endif
8223 #if HAVE_NET_IF_H
8224 #include <net/if.h>
8225 #endif
8228 main ()
8230 static struct ifreq ac_aggr;
8231 if (sizeof ac_aggr.ifr_flags)
8232 return 0;
8234 return 0;
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (ac_try="$ac_compile"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_cv_member_struct_ifreq_ifr_flags=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_member_struct_ifreq_ifr_flags=no
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8268 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8269 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8273 _ACEOF
8277 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8278 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8279 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8291 #endif
8292 #if HAVE_NET_IF_H
8293 #include <net/if.h>
8294 #endif
8297 main ()
8299 static struct ifreq ac_aggr;
8300 if (ac_aggr.ifr_hwaddr)
8301 return 0;
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8323 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 #if HAVE_SYS_SOCKET_H
8336 #include <sys/socket.h>
8337 #endif
8338 #if HAVE_NET_IF_H
8339 #include <net/if.h>
8340 #endif
8343 main ()
8345 static struct ifreq ac_aggr;
8346 if (sizeof ac_aggr.ifr_hwaddr)
8347 return 0;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8354 case "(($ac_try" in
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
8369 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8383 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8384 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8388 _ACEOF
8392 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8393 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8394 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 #if HAVE_SYS_SOCKET_H
8405 #include <sys/socket.h>
8406 #endif
8407 #if HAVE_NET_IF_H
8408 #include <net/if.h>
8409 #endif
8412 main ()
8414 static struct ifreq ac_aggr;
8415 if (ac_aggr.ifr_netmask)
8416 return 0;
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_netmask=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8452 #endif
8453 #if HAVE_NET_IF_H
8454 #include <net/if.h>
8455 #endif
8458 main ()
8460 static struct ifreq ac_aggr;
8461 if (sizeof ac_aggr.ifr_netmask)
8462 return 0;
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_cv_member_struct_ifreq_ifr_netmask=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_member_struct_ifreq_ifr_netmask=no
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8498 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8499 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8503 _ACEOF
8507 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8508 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8509 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #if HAVE_SYS_SOCKET_H
8520 #include <sys/socket.h>
8521 #endif
8522 #if HAVE_NET_IF_H
8523 #include <net/if.h>
8524 #endif
8527 main ()
8529 static struct ifreq ac_aggr;
8530 if (ac_aggr.ifr_broadaddr)
8531 return 0;
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8553 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #if HAVE_SYS_SOCKET_H
8566 #include <sys/socket.h>
8567 #endif
8568 #if HAVE_NET_IF_H
8569 #include <net/if.h>
8570 #endif
8573 main ()
8575 static struct ifreq ac_aggr;
8576 if (sizeof ac_aggr.ifr_broadaddr)
8577 return 0;
8579 return 0;
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8613 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8614 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8618 _ACEOF
8622 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8623 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8624 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #if HAVE_SYS_SOCKET_H
8635 #include <sys/socket.h>
8636 #endif
8637 #if HAVE_NET_IF_H
8638 #include <net/if.h>
8639 #endif
8642 main ()
8644 static struct ifreq ac_aggr;
8645 if (ac_aggr.ifr_addr)
8646 return 0;
8648 return 0;
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_member_struct_ifreq_ifr_addr=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 $ac_includes_default
8680 #if HAVE_SYS_SOCKET_H
8681 #include <sys/socket.h>
8682 #endif
8683 #if HAVE_NET_IF_H
8684 #include <net/if.h>
8685 #endif
8688 main ()
8690 static struct ifreq ac_aggr;
8691 if (sizeof ac_aggr.ifr_addr)
8692 return 0;
8694 return 0;
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_addr=yes
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_addr=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8728 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8733 _ACEOF
8740 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8741 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8742 if test "$ac_cv_prog_cc_c89" != no; then
8743 { echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6; }
8746 cat >>confdefs.h <<\_ACEOF
8747 #define PROTOTYPES 1
8748 _ACEOF
8751 cat >>confdefs.h <<\_ACEOF
8752 #define __PROTOTYPES 1
8753 _ACEOF
8755 else
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8760 { echo "$as_me:$LINENO: checking for working volatile" >&5
8761 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8762 if test "${ac_cv_c_volatile+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8773 main ()
8776 volatile int x;
8777 int * volatile y = (int *) 0;
8778 return !x && !y;
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (ac_try="$ac_compile"
8785 case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 ac_cv_c_volatile=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 ac_cv_c_volatile=no
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8811 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8812 if test $ac_cv_c_volatile = no; then
8814 cat >>confdefs.h <<\_ACEOF
8815 #define volatile
8816 _ACEOF
8820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8822 if test "${ac_cv_c_const+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8833 main ()
8835 /* FIXME: Include the comments suggested by Paul. */
8836 #ifndef __cplusplus
8837 /* Ultrix mips cc rejects this. */
8838 typedef int charset[2];
8839 const charset cs;
8840 /* SunOS 4.1.1 cc rejects this. */
8841 char const *const *pcpcc;
8842 char **ppc;
8843 /* NEC SVR4.0.2 mips cc rejects this. */
8844 struct point {int x, y;};
8845 static struct point const zero = {0,0};
8846 /* AIX XL C 1.02.0.0 rejects this.
8847 It does not let you subtract one const X* pointer from another in
8848 an arm of an if-expression whose if-part is not a constant
8849 expression */
8850 const char *g = "string";
8851 pcpcc = &g + (g ? g-g : 0);
8852 /* HPUX 7.0 cc rejects these. */
8853 ++pcpcc;
8854 ppc = (char**) pcpcc;
8855 pcpcc = (char const *const *) ppc;
8856 { /* SCO 3.2v4 cc rejects this. */
8857 char *t;
8858 char const *s = 0 ? (char *) 0 : (char const *) 0;
8860 *t++ = 0;
8861 if (s) return 0;
8863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8864 int x[] = {25, 17};
8865 const int *foo = &x[0];
8866 ++foo;
8868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8869 typedef const int *iptr;
8870 iptr p = 0;
8871 ++p;
8873 { /* AIX XL C 1.02.0.0 rejects this saying
8874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8875 struct s { int j; const int *ap[3]; };
8876 struct s *b; b->j = 5;
8878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8879 const int foo = 10;
8880 if (!foo) return 0;
8882 return !cs[0] && !zero.x;
8883 #endif
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_c_const=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_c_const=no
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8918 if test $ac_cv_c_const = no; then
8920 cat >>confdefs.h <<\_ACEOF
8921 #define const
8922 _ACEOF
8926 { echo "$as_me:$LINENO: checking for void * support" >&5
8927 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8928 if test "${emacs_cv_void_star+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8939 main ()
8941 void * foo;
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8948 case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && {
8960 test -z "$ac_c_werror_flag" ||
8961 test ! -s conftest.err
8962 } && test -s conftest.$ac_objext; then
8963 emacs_cv_void_star=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 emacs_cv_void_star=no
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8974 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8975 if test $emacs_cv_void_star = yes; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE void
8978 _ACEOF
8980 else
8981 cat >>confdefs.h <<\_ACEOF
8982 #define POINTER_TYPE char
8983 _ACEOF
8991 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8992 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8993 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.make <<\_ACEOF
8998 SHELL = /bin/sh
8999 all:
9000 @echo '@@@%%%=$(MAKE)=@@@%%%'
9001 _ACEOF
9002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9004 *@@@%%%=?*=@@@%%%*)
9005 eval ac_cv_prog_make_${ac_make}_set=yes;;
9007 eval ac_cv_prog_make_${ac_make}_set=no;;
9008 esac
9009 rm -f conftest.make
9011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9012 { echo "$as_me:$LINENO: result: yes" >&5
9013 echo "${ECHO_T}yes" >&6; }
9014 SET_MAKE=
9015 else
9016 { echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6; }
9018 SET_MAKE="MAKE=${MAKE-make}"
9022 { echo "$as_me:$LINENO: checking for long file names" >&5
9023 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9024 if test "${ac_cv_sys_long_file_names+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027 ac_cv_sys_long_file_names=yes
9028 # Test for long file names in all the places we know might matter:
9029 # . the current directory, where building will happen
9030 # $prefix/lib where we will be installing things
9031 # $exec_prefix/lib likewise
9032 # $TMPDIR if set, where it might want to write temporary files
9033 # /tmp where it might want to write temporary files
9034 # /var/tmp likewise
9035 # /usr/tmp likewise
9036 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9037 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9038 # in the usual case where exec_prefix is '${prefix}'.
9039 case $ac_dir in #(
9040 . | /* | ?:[\\/]*) ;; #(
9041 *) continue;;
9042 esac
9043 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9044 ac_xdir=$ac_dir/cf$$
9045 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9046 ac_tf1=$ac_xdir/conftest9012345
9047 ac_tf2=$ac_xdir/conftest9012346
9048 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9049 ac_cv_sys_long_file_names=no
9050 rm -f -r "$ac_xdir" 2>/dev/null
9051 test $ac_cv_sys_long_file_names = no && break
9052 done
9054 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9055 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9056 if test $ac_cv_sys_long_file_names = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_LONG_FILE_NAMES 1
9060 _ACEOF
9065 #### Choose a window system.
9067 { echo "$as_me:$LINENO: checking for X" >&5
9068 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9071 # Check whether --with-x was given.
9072 if test "${with_x+set}" = set; then
9073 withval=$with_x;
9076 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9077 if test "x$with_x" = xno; then
9078 # The user explicitly disabled X.
9079 have_x=disabled
9080 else
9081 case $x_includes,$x_libraries in #(
9082 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9083 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9084 { (exit 1); exit 1; }; };; #(
9085 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 # One or both of the vars are not set, and there is no cached value.
9089 ac_x_includes=no ac_x_libraries=no
9090 rm -f -r conftest.dir
9091 if mkdir conftest.dir; then
9092 cd conftest.dir
9093 cat >Imakefile <<'_ACEOF'
9094 incroot:
9095 @echo incroot='${INCROOT}'
9096 usrlibdir:
9097 @echo usrlibdir='${USRLIBDIR}'
9098 libdir:
9099 @echo libdir='${LIBDIR}'
9100 _ACEOF
9101 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9103 for ac_var in incroot usrlibdir libdir; do
9104 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9105 done
9106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9107 for ac_extension in a so sl; do
9108 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9109 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9110 ac_im_usrlibdir=$ac_im_libdir; break
9112 done
9113 # Screen out bogus values from the imake configuration. They are
9114 # bogus both because they are the default anyway, and because
9115 # using them would break gcc on systems where it needs fixed includes.
9116 case $ac_im_incroot in
9117 /usr/include) ac_x_includes= ;;
9118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9119 esac
9120 case $ac_im_usrlibdir in
9121 /usr/lib | /lib) ;;
9122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9123 esac
9125 cd ..
9126 rm -f -r conftest.dir
9129 # Standard set of common directories for X headers.
9130 # Check X11 before X11Rn because it is often a symlink to the current release.
9131 ac_x_header_dirs='
9132 /usr/X11/include
9133 /usr/X11R6/include
9134 /usr/X11R5/include
9135 /usr/X11R4/include
9137 /usr/include/X11
9138 /usr/include/X11R6
9139 /usr/include/X11R5
9140 /usr/include/X11R4
9142 /usr/local/X11/include
9143 /usr/local/X11R6/include
9144 /usr/local/X11R5/include
9145 /usr/local/X11R4/include
9147 /usr/local/include/X11
9148 /usr/local/include/X11R6
9149 /usr/local/include/X11R5
9150 /usr/local/include/X11R4
9152 /usr/X386/include
9153 /usr/x386/include
9154 /usr/XFree86/include/X11
9156 /usr/include
9157 /usr/local/include
9158 /usr/unsupported/include
9159 /usr/athena/include
9160 /usr/local/x11r5/include
9161 /usr/lpp/Xamples/include
9163 /usr/openwin/include
9164 /usr/openwin/share/include'
9166 if test "$ac_x_includes" = no; then
9167 # Guess where to find include files, by looking for Xlib.h.
9168 # First, try using that file with no special directory specified.
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include <X11/Xlib.h>
9176 _ACEOF
9177 if { (ac_try="$ac_cpp conftest.$ac_ext"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } >/dev/null && {
9190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 }; then
9193 # We can compile using X headers with no special include directory.
9194 ac_x_includes=
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 for ac_dir in $ac_x_header_dirs; do
9200 if test -r "$ac_dir/X11/Xlib.h"; then
9201 ac_x_includes=$ac_dir
9202 break
9204 done
9207 rm -f conftest.err conftest.$ac_ext
9208 fi # $ac_x_includes = no
9210 if test "$ac_x_libraries" = no; then
9211 # Check for the libraries.
9212 # See if we find them without any special options.
9213 # Don't add to $LIBS permanently.
9214 ac_save_LIBS=$LIBS
9215 LIBS="-lX11 $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 #include <X11/Xlib.h>
9224 main ()
9226 XrmInitialize ()
9228 return 0;
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (ac_try="$ac_link"
9233 case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_link") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest$ac_exeext &&
9248 $as_test_x conftest$ac_exeext; then
9249 LIBS=$ac_save_LIBS
9250 # We can link X programs with no special library path.
9251 ac_x_libraries=
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 LIBS=$ac_save_LIBS
9257 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9259 # Don't even attempt the hair of trying to link an X program!
9260 for ac_extension in a so sl; do
9261 if test -r "$ac_dir/libX11.$ac_extension"; then
9262 ac_x_libraries=$ac_dir
9263 break 2
9265 done
9266 done
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270 conftest$ac_exeext conftest.$ac_ext
9271 fi # $ac_x_libraries = no
9273 case $ac_x_includes,$ac_x_libraries in #(
9274 no,* | *,no | *\'*)
9275 # Didn't find X, or a directory has "'" in its name.
9276 ac_cv_have_x="have_x=no";; #(
9278 # Record where we found X for the cache.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$ac_x_includes'\
9281 ac_x_libraries='$ac_x_libraries'"
9282 esac
9284 ;; #(
9285 *) have_x=yes;;
9286 esac
9287 eval "$ac_cv_have_x"
9288 fi # $with_x != no
9290 if test "$have_x" != yes; then
9291 { echo "$as_me:$LINENO: result: $have_x" >&5
9292 echo "${ECHO_T}$have_x" >&6; }
9293 no_x=yes
9294 else
9295 # If each of the values was on the command line, it overrides each guess.
9296 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9297 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9298 # Update the cache value to reflect the command line values.
9299 ac_cv_have_x="have_x=yes\
9300 ac_x_includes='$x_includes'\
9301 ac_x_libraries='$x_libraries'"
9302 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9303 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9306 if test "$no_x" = yes; then
9307 window_system=none
9308 else
9309 window_system=x11
9312 if test "${x_libraries}" != NONE; then
9313 if test -n "${x_libraries}"; then
9314 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9315 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9317 x_default_search_path=""
9318 x_search_path=${x_libraries}
9319 if test -z "${x_search_path}"; then
9320 x_search_path=/usr/lib
9322 for x_library in `echo ${x_search_path}: | \
9323 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9324 x_search_path="\
9325 ${x_library}/X11/%L/%T/%N%C%S:\
9326 ${x_library}/X11/%l/%T/%N%C%S:\
9327 ${x_library}/X11/%T/%N%C%S:\
9328 ${x_library}/X11/%L/%T/%N%S:\
9329 ${x_library}/X11/%l/%T/%N%S:\
9330 ${x_library}/X11/%T/%N%S"
9331 if test x"${x_default_search_path}" = x; then
9332 x_default_search_path=${x_search_path}
9333 else
9334 x_default_search_path="${x_search_path}:${x_default_search_path}"
9336 done
9338 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9339 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9342 if test x"${x_includes}" = x; then
9343 bitmapdir=/usr/include/X11/bitmaps
9344 else
9345 # accumulate include directories that have X11 bitmap subdirectories
9346 bmd_acc="dummyval"
9347 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9348 if test -d "${bmd}/X11/bitmaps"; then
9349 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9351 if test -d "${bmd}/bitmaps"; then
9352 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9354 done
9355 if test ${bmd_acc} != "dummyval"; then
9356 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9360 HAVE_CARBON=no
9361 if test "${with_carbon}" != no; then
9362 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9363 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9364 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9365 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9369 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9370 else
9371 # Is the header compilable?
9372 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9373 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 #include <Carbon/Carbon.h>
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9400 ac_header_compiler=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_header_compiler=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9410 echo "${ECHO_T}$ac_header_compiler" >&6; }
9412 # Is the header present?
9413 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9414 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 #include <Carbon/Carbon.h>
9422 _ACEOF
9423 if { (ac_try="$ac_cpp conftest.$ac_ext"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null && {
9436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 }; then
9439 ac_header_preproc=yes
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_header_preproc=no
9447 rm -f conftest.err conftest.$ac_ext
9448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9449 echo "${ECHO_T}$ac_header_preproc" >&6; }
9451 # So? What about this header?
9452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9453 yes:no: )
9454 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9455 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9458 ac_header_preproc=yes
9460 no:yes:* )
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9466 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9468 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9472 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9475 esac
9476 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9477 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9478 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9483 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9484 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9487 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9488 HAVE_CARBON=yes
9493 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9494 if test "${with_carbon+set}" != set \
9495 && test "${carbon_appdir_x+set}" != set; then
9496 for var in with_x with_x_toolkit with_gtk with_xim \
9497 with_xpm with_jpeg with_tiff with_gif with_png; do
9498 if eval test \"\${$var+set}\" = set; then
9499 HAVE_CARBON=no
9500 break
9502 done
9505 if test "${HAVE_CARBON}" = yes; then
9506 window_system=mac
9509 case "${window_system}" in
9510 x11 )
9511 HAVE_X_WINDOWS=yes
9512 HAVE_X11=yes
9513 case "${with_x_toolkit}" in
9514 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9515 motif ) USE_X_TOOLKIT=MOTIF ;;
9516 gtk ) with_gtk=yes
9517 USE_X_TOOLKIT=none ;;
9518 no ) USE_X_TOOLKIT=none ;;
9519 * ) USE_X_TOOLKIT=maybe ;;
9520 esac
9522 mac | none )
9523 HAVE_X_WINDOWS=no
9524 HAVE_X11=no
9525 USE_X_TOOLKIT=none
9527 esac
9529 ### If we're using X11, we should use the X menu package.
9530 HAVE_MENUS=no
9531 case ${HAVE_X11} in
9532 yes ) HAVE_MENUS=yes ;;
9533 esac
9535 if test "${opsys}" = "hpux9"; then
9536 case "${x_libraries}" in
9537 *X11R4* )
9538 opsysfile="s/hpux9-x11r4.h"
9540 esac
9543 if test "${opsys}" = "hpux9shr"; then
9544 case "${x_libraries}" in
9545 *X11R4* )
9546 opsysfile="s/hpux9shxr4.h"
9548 esac
9551 ### Compute the unexec source name from the object name.
9552 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9554 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9555 # Assume not, until told otherwise.
9556 GNU_MALLOC=yes
9557 doug_lea_malloc=yes
9558 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9559 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define malloc_get_state innocuous_malloc_get_state
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char malloc_get_state (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9584 #undef malloc_get_state
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char malloc_get_state ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9597 choke me
9598 #endif
9601 main ()
9603 return malloc_get_state ();
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest$ac_exeext &&
9625 $as_test_x conftest$ac_exeext; then
9626 ac_cv_func_malloc_get_state=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_cv_func_malloc_get_state=no
9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9635 conftest$ac_exeext conftest.$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9638 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9639 if test $ac_cv_func_malloc_get_state = yes; then
9641 else
9642 doug_lea_malloc=no
9645 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9646 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9647 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658 #define malloc_set_state innocuous_malloc_set_state
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char malloc_set_state (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9665 #ifdef __STDC__
9666 # include <limits.h>
9667 #else
9668 # include <assert.h>
9669 #endif
9671 #undef malloc_set_state
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char malloc_set_state ();
9680 /* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9684 choke me
9685 #endif
9688 main ()
9690 return malloc_set_state ();
9692 return 0;
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9697 case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && {
9709 test -z "$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 } && test -s conftest$ac_exeext &&
9712 $as_test_x conftest$ac_exeext; then
9713 ac_cv_func_malloc_set_state=yes
9714 else
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9718 ac_cv_func_malloc_set_state=no
9721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9724 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9725 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9726 if test $ac_cv_func_malloc_set_state = yes; then
9728 else
9729 doug_lea_malloc=no
9732 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9733 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9734 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 extern void (* __after_morecore_hook)();
9745 main ()
9747 __after_morecore_hook = 0
9749 return 0;
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && {
9766 test -z "$ac_c_werror_flag" ||
9767 test ! -s conftest.err
9768 } && test -s conftest$ac_exeext &&
9769 $as_test_x conftest$ac_exeext; then
9770 emacs_cv_var___after_morecore_hook=yes
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 emacs_cv_var___after_morecore_hook=no
9778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9779 conftest$ac_exeext conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9782 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9783 if test $emacs_cv_var___after_morecore_hook = no; then
9784 doug_lea_malloc=no
9786 if test "${system_malloc}" = "yes"; then
9787 GNU_MALLOC=no
9788 GNU_MALLOC_reason="
9789 (The GNU allocators don't work with this system configuration.)"
9791 if test "$doug_lea_malloc" = "yes" ; then
9792 if test "$GNU_MALLOC" = yes ; then
9793 GNU_MALLOC_reason="
9794 (Using Doug Lea's new malloc from the GNU C Library.)"
9797 cat >>confdefs.h <<\_ACEOF
9798 #define DOUG_LEA_MALLOC 1
9799 _ACEOF
9803 if test x"${REL_ALLOC}" = x; then
9804 REL_ALLOC=${GNU_MALLOC}
9810 for ac_header in stdlib.h unistd.h
9812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_res=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9822 else
9823 # Is the header compilable?
9824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <$ac_header>
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_header_compiler=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6; }
9864 # Is the header present?
9865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <$ac_header>
9874 _ACEOF
9875 if { (ac_try="$ac_cpp conftest.$ac_ext"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null && {
9888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 }; then
9891 ac_header_preproc=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_header_preproc=no
9899 rm -f conftest.err conftest.$ac_ext
9900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901 echo "${ECHO_T}$ac_header_preproc" >&6; }
9903 # So? What about this header?
9904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9905 yes:no: )
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910 ac_header_preproc=yes
9912 no:yes:* )
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927 esac
9928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 eval "$as_ac_Header=\$ac_header_preproc"
9935 ac_res=`eval echo '${'$as_ac_Header'}'`
9936 { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 _ACEOF
9947 done
9950 for ac_func in getpagesize
9952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966 #define $ac_func innocuous_$ac_func
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9973 #ifdef __STDC__
9974 # include <limits.h>
9975 #else
9976 # include <assert.h>
9977 #endif
9979 #undef $ac_func
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char $ac_func ();
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined __stub_$ac_func || defined __stub___$ac_func
9992 choke me
9993 #endif
9996 main ()
9998 return $ac_func ();
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext &&
10020 $as_test_x conftest$ac_exeext; then
10021 eval "$as_ac_var=yes"
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 eval "$as_ac_var=no"
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10032 ac_res=`eval echo '${'$as_ac_var'}'`
10033 { echo "$as_me:$LINENO: result: $ac_res" >&5
10034 echo "${ECHO_T}$ac_res" >&6; }
10035 if test `eval echo '${'$as_ac_var'}'` = yes; then
10036 cat >>confdefs.h <<_ACEOF
10037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10038 _ACEOF
10041 done
10043 { echo "$as_me:$LINENO: checking for working mmap" >&5
10044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048 if test "$cross_compiling" = yes; then
10049 ac_cv_func_mmap_fixed_mapped=no
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 $ac_includes_default
10058 /* malloc might have been renamed as rpl_malloc. */
10059 #undef malloc
10061 /* Thanks to Mike Haertel and Jim Avera for this test.
10062 Here is a matrix of mmap possibilities:
10063 mmap private not fixed
10064 mmap private fixed at somewhere currently unmapped
10065 mmap private fixed at somewhere already mapped
10066 mmap shared not fixed
10067 mmap shared fixed at somewhere currently unmapped
10068 mmap shared fixed at somewhere already mapped
10069 For private mappings, we should verify that changes cannot be read()
10070 back from the file, nor mmap's back from the file at a different
10071 address. (There have been systems where private was not correctly
10072 implemented like the infamous i386 svr4.0, and systems where the
10073 VM page cache was not coherent with the file system buffer cache
10074 like early versions of FreeBSD and possibly contemporary NetBSD.)
10075 For shared mappings, we should conversely verify that changes get
10076 propagated back to all the places they're supposed to be.
10078 Grep wants private fixed already mapped.
10079 The main things grep needs to know about mmap are:
10080 * does it exist and is it safe to write into the mmap'd area
10081 * how to use it (BSD variants) */
10083 #include <fcntl.h>
10084 #include <sys/mman.h>
10086 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10087 char *malloc ();
10088 #endif
10090 /* This mess was copied from the GNU getpagesize.h. */
10091 #ifndef HAVE_GETPAGESIZE
10092 /* Assume that all systems that can run configure have sys/param.h. */
10093 # ifndef HAVE_SYS_PARAM_H
10094 # define HAVE_SYS_PARAM_H 1
10095 # endif
10097 # ifdef _SC_PAGESIZE
10098 # define getpagesize() sysconf(_SC_PAGESIZE)
10099 # else /* no _SC_PAGESIZE */
10100 # ifdef HAVE_SYS_PARAM_H
10101 # include <sys/param.h>
10102 # ifdef EXEC_PAGESIZE
10103 # define getpagesize() EXEC_PAGESIZE
10104 # else /* no EXEC_PAGESIZE */
10105 # ifdef NBPG
10106 # define getpagesize() NBPG * CLSIZE
10107 # ifndef CLSIZE
10108 # define CLSIZE 1
10109 # endif /* no CLSIZE */
10110 # else /* no NBPG */
10111 # ifdef NBPC
10112 # define getpagesize() NBPC
10113 # else /* no NBPC */
10114 # ifdef PAGESIZE
10115 # define getpagesize() PAGESIZE
10116 # endif /* PAGESIZE */
10117 # endif /* no NBPC */
10118 # endif /* no NBPG */
10119 # endif /* no EXEC_PAGESIZE */
10120 # else /* no HAVE_SYS_PARAM_H */
10121 # define getpagesize() 8192 /* punt totally */
10122 # endif /* no HAVE_SYS_PARAM_H */
10123 # endif /* no _SC_PAGESIZE */
10125 #endif /* no HAVE_GETPAGESIZE */
10128 main ()
10130 char *data, *data2, *data3;
10131 int i, pagesize;
10132 int fd;
10134 pagesize = getpagesize ();
10136 /* First, make a file with some known garbage in it. */
10137 data = (char *) malloc (pagesize);
10138 if (!data)
10139 return 1;
10140 for (i = 0; i < pagesize; ++i)
10141 *(data + i) = rand ();
10142 umask (0);
10143 fd = creat ("conftest.mmap", 0600);
10144 if (fd < 0)
10145 return 1;
10146 if (write (fd, data, pagesize) != pagesize)
10147 return 1;
10148 close (fd);
10150 /* Next, try to mmap the file at a fixed address which already has
10151 something else allocated at it. If we can, also make sure that
10152 we see the same garbage. */
10153 fd = open ("conftest.mmap", O_RDWR);
10154 if (fd < 0)
10155 return 1;
10156 data2 = (char *) malloc (2 * pagesize);
10157 if (!data2)
10158 return 1;
10159 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10162 return 1;
10163 for (i = 0; i < pagesize; ++i)
10164 if (*(data + i) != *(data2 + i))
10165 return 1;
10167 /* Finally, make sure that changes to the mapped area do not
10168 percolate back to the file as seen by read(). (This is a bug on
10169 some variants of i386 svr4.0.) */
10170 for (i = 0; i < pagesize; ++i)
10171 *(data2 + i) = *(data2 + i) + 1;
10172 data3 = (char *) malloc (pagesize);
10173 if (!data3)
10174 return 1;
10175 if (read (fd, data3, pagesize) != pagesize)
10176 return 1;
10177 for (i = 0; i < pagesize; ++i)
10178 if (*(data + i) != *(data3 + i))
10179 return 1;
10180 close (fd);
10181 return 0;
10183 _ACEOF
10184 rm -f conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_link") 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_func_mmap_fixed_mapped=yes
10205 else
10206 echo "$as_me: program exited with status $ac_status" >&5
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ( exit $ac_status )
10211 ac_cv_func_mmap_fixed_mapped=no
10213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10219 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10220 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_MMAP 1
10224 _ACEOF
10227 rm -f conftest.mmap
10229 if test $use_mmap_for_buffers = yes; then
10230 REL_ALLOC=no
10233 LIBS="$libsrc_libs $LIBS"
10236 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10237 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldnet $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char dnet_ntoa ();
10258 main ()
10260 return dnet_ntoa ();
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 ac_cv_lib_dnet_dnet_ntoa=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_lib_dnet_dnet_ntoa=no
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10296 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10297 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define HAVE_LIBDNET 1
10300 _ACEOF
10302 LIBS="-ldnet $LIBS"
10307 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10308 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10309 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 ac_check_lib_save_LIBS=$LIBS
10313 LIBS="-lXbsd $LIBS"
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10323 main ()
10325 return main ();
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_Xbsd_main=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_lib_Xbsd_main=no
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10361 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10362 if test $ac_cv_lib_Xbsd_main = yes; then
10363 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10368 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10369 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10370 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-lpthreads $LIBS"
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10385 #ifdef __cplusplus
10386 extern "C"
10387 #endif
10388 char cma_open ();
10390 main ()
10392 return cma_open ();
10394 return 0;
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
10405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest$ac_exeext &&
10414 $as_test_x conftest$ac_exeext; then
10415 ac_cv_lib_pthreads_cma_open=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_cv_lib_pthreads_cma_open=no
10423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10428 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10429 if test $ac_cv_lib_pthreads_cma_open = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define HAVE_LIBPTHREADS 1
10432 _ACEOF
10434 LIBS="-lpthreads $LIBS"
10439 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10440 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10441 if test -d /usr/X386/include; then
10442 HAVE_XFREE386=yes
10443 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10444 else
10445 HAVE_XFREE386=no
10447 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10448 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10451 case ${host_os} in
10452 aix*)
10453 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10454 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10455 if test "${gdb_cv_bigtoc+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10459 case $GCC in
10460 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10461 *) gdb_cv_bigtoc=-bbigtoc ;;
10462 esac
10464 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10473 main ()
10475 int i;
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 gdb_cv_bigtoc=
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10510 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10511 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10513 esac
10515 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10516 # used for the tests that follow. We set them back to REAL_CFLAGS and
10517 # REAL_CPPFLAGS later on.
10519 REAL_CPPFLAGS="$CPPFLAGS"
10521 if test "${HAVE_X11}" = "yes"; then
10522 DEFS="$C_SWITCH_X_SITE $DEFS"
10523 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10524 LIBS="$LIBX $LIBS"
10525 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10526 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10528 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10529 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10530 # but it's more convenient here to set LD_RUN_PATH
10531 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10532 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10533 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10534 export LD_RUN_PATH
10537 if test "${opsys}" = "gnu-linux"; then
10538 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10539 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10548 main ()
10550 XOpenDisplay ("foo");
10552 return 0;
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext &&
10572 $as_test_x conftest$ac_exeext; then
10573 xlinux_first_failure=no
10574 else
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 xlinux_first_failure=yes
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 if test "${xlinux_first_failure}" = "yes"; then
10584 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10585 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10586 OLD_CPPFLAGS="$CPPFLAGS"
10587 OLD_LIBS="$LIBS"
10588 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10589 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10590 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10591 LIBS="$LIBS -b i486-linuxaout"
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10600 main ()
10602 XOpenDisplay ("foo");
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 xlinux_second_failure=no
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 xlinux_second_failure=yes
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 if test "${xlinux_second_failure}" = "yes"; then
10636 # If we get the same failure with -b, there is no use adding -b.
10637 # So take it out. This plays safe.
10638 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10639 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10640 CPPFLAGS="$OLD_CPPFLAGS"
10641 LIBS="$OLD_LIBS"
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10644 else
10645 { echo "$as_me:$LINENO: result: yes" >&5
10646 echo "${ECHO_T}yes" >&6; }
10648 else
10649 { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10654 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10655 # header files included from there.
10656 { echo "$as_me:$LINENO: checking for Xkb" >&5
10657 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 #include <X11/Xlib.h>
10665 #include <X11/XKBlib.h>
10667 main ()
10669 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext &&
10691 $as_test_x conftest$ac_exeext; then
10692 emacs_xkb=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 emacs_xkb=no
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10703 echo "${ECHO_T}$emacs_xkb" >&6; }
10704 if test $emacs_xkb = yes; then
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_XKBGETKEYBOARD 1
10708 _ACEOF
10716 for ac_func in XrmSetDatabase XScreenResourceString \
10717 XScreenNumberOfScreen XSetWMProtocols
10719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10733 #define $ac_func innocuous_$ac_func
10735 /* System header to define __stub macros and hopefully few prototypes,
10736 which can conflict with char $ac_func (); below.
10737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738 <limits.h> exists even on freestanding compilers. */
10740 #ifdef __STDC__
10741 # include <limits.h>
10742 #else
10743 # include <assert.h>
10744 #endif
10746 #undef $ac_func
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char $ac_func ();
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined __stub_$ac_func || defined __stub___$ac_func
10759 choke me
10760 #endif
10763 main ()
10765 return $ac_func ();
10767 return 0;
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 eval "$as_ac_var=yes"
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 eval "$as_ac_var=no"
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10799 ac_res=`eval echo '${'$as_ac_var'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10802 if test `eval echo '${'$as_ac_var'}'` = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10805 _ACEOF
10808 done
10812 if test "${window_system}" = "x11"; then
10813 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10814 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10815 if test "${emacs_cv_x11_version_6+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <X11/Xlib.h>
10826 main ()
10828 #if XlibSpecificationRelease < 6
10829 fail;
10830 #endif
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest$ac_exeext &&
10853 $as_test_x conftest$ac_exeext; then
10854 emacs_cv_x11_version_6=yes
10855 else
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 emacs_cv_x11_version_6=no
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863 conftest$ac_exeext conftest.$ac_ext
10866 if test $emacs_cv_x11_version_6 = yes; then
10867 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10868 echo "${ECHO_T}6 or newer" >&6; }
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_X11R6 1
10872 _ACEOF
10874 else
10875 { echo "$as_me:$LINENO: result: before 6" >&5
10876 echo "${ECHO_T}before 6" >&6; }
10880 if test "${window_system}" = "x11"; then
10881 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10882 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10883 if test "${emacs_cv_x11_version_5+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <X11/Xlib.h>
10894 main ()
10896 #if XlibSpecificationRelease < 5
10897 fail;
10898 #endif
10901 return 0;
10903 _ACEOF
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (ac_try="$ac_link"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_link") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext &&
10921 $as_test_x conftest$ac_exeext; then
10922 emacs_cv_x11_version_5=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 emacs_cv_x11_version_5=no
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931 conftest$ac_exeext conftest.$ac_ext
10934 if test $emacs_cv_x11_version_5 = yes; then
10935 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10936 echo "${ECHO_T}5 or newer" >&6; }
10937 HAVE_X11R5=yes
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_X11R5 1
10941 _ACEOF
10943 else
10944 HAVE_X11R5=no
10945 { echo "$as_me:$LINENO: result: before 5" >&5
10946 echo "${ECHO_T}before 5" >&6; }
10950 HAVE_GTK=no
10951 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10952 USE_X_TOOLKIT=none
10954 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10955 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10956 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10957 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10958 { (exit 1); exit 1; }; };
10960 GLIB_REQUIRED=2.6
10961 GTK_REQUIRED=2.6
10962 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10964 if test "X${with_pkg_config_prog}" != X; then
10965 PKG_CONFIG="${with_pkg_config_prog}"
10968 succeeded=no
10970 if test -z "$PKG_CONFIG"; then
10971 # Extract the first word of "pkg-config", so it can be a program name with args.
10972 set dummy pkg-config; ac_word=$2
10973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978 case $PKG_CONFIG in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10994 done
10995 done
10996 IFS=$as_save_IFS
10998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11000 esac
11002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11003 if test -n "$PKG_CONFIG"; then
11004 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11005 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11006 else
11007 { echo "$as_me:$LINENO: result: no" >&5
11008 echo "${ECHO_T}no" >&6; }
11014 if test "$PKG_CONFIG" = "no" ; then
11015 { { echo "$as_me:$LINENO: error:
11016 *** 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
11017 echo "$as_me: error:
11018 *** 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;}
11019 { (exit 1); exit 1; }; }
11020 else
11021 PKG_CONFIG_MIN_VERSION=0.9.0
11022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11023 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11024 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11026 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11027 { echo "$as_me:$LINENO: result: yes" >&5
11028 echo "${ECHO_T}yes" >&6; }
11029 succeeded=yes
11031 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11032 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11033 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11034 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11035 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11037 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11038 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11039 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11040 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11041 echo "${ECHO_T}$GTK_LIBS" >&6; }
11042 else
11043 { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11045 GTK_CFLAGS=""
11046 GTK_LIBS=""
11047 ## If we have a custom action on failure, don't print errors, but
11048 ## do set a variable so people can do so.
11049 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11050 echo $GTK_PKG_ERRORS
11055 else
11056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11061 if test $succeeded = yes; then
11063 else
11064 { { 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
11065 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;}
11066 { (exit 1); exit 1; }; }
11071 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11072 CFLAGS="$CFLAGS $GTK_CFLAGS"
11073 LIBS="$GTK_LIBS $LIBS"
11074 GTK_COMPILES=no
11076 for ac_func in gtk_main
11078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11099 #ifdef __STDC__
11100 # include <limits.h>
11101 #else
11102 # include <assert.h>
11103 #endif
11105 #undef $ac_func
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char $ac_func ();
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11118 choke me
11119 #endif
11122 main ()
11124 return $ac_func ();
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext &&
11146 $as_test_x conftest$ac_exeext; then
11147 eval "$as_ac_var=yes"
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 eval "$as_ac_var=no"
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11158 ac_res=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h <<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 _ACEOF
11165 GTK_COMPILES=yes
11167 done
11169 if test "${GTK_COMPILES}" != "yes"; then
11170 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11171 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11172 { (exit 1); exit 1; }; };
11175 HAVE_GTK=yes
11177 cat >>confdefs.h <<\_ACEOF
11178 #define HAVE_GTK 1
11179 _ACEOF
11181 USE_X_TOOLKIT=none
11183 if test "$with_toolkit_scroll_bars" != no; then
11184 with_toolkit_scroll_bars=yes
11187 HAVE_GTK_MULTIDISPLAY=no
11189 for ac_func in gdk_display_open
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11218 #undef $ac_func
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char $ac_func ();
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11231 choke me
11232 #endif
11235 main ()
11237 return $ac_func ();
11239 return 0;
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11260 eval "$as_ac_var=yes"
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278 HAVE_GTK_MULTIDISPLAY=yes
11280 done
11282 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HAVE_GTK_MULTIDISPLAY 1
11286 _ACEOF
11289 HAVE_GTK_FILE_SELECTION=no
11291 for ac_func in gtk_file_selection_new
11293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11307 #define $ac_func innocuous_$ac_func
11309 /* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func (); below.
11311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11312 <limits.h> exists even on freestanding compilers. */
11314 #ifdef __STDC__
11315 # include <limits.h>
11316 #else
11317 # include <assert.h>
11318 #endif
11320 #undef $ac_func
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char $ac_func ();
11329 /* The GNU C library defines this for functions which it implements
11330 to always fail with ENOSYS. Some functions are actually named
11331 something starting with __ and the normal name is an alias. */
11332 #if defined __stub_$ac_func || defined __stub___$ac_func
11333 choke me
11334 #endif
11337 main ()
11339 return $ac_func ();
11341 return 0;
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_link") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest$ac_exeext &&
11361 $as_test_x conftest$ac_exeext; then
11362 eval "$as_ac_var=yes"
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 eval "$as_ac_var=no"
11370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11371 conftest$ac_exeext conftest.$ac_ext
11373 ac_res=`eval echo '${'$as_ac_var'}'`
11374 { echo "$as_me:$LINENO: result: $ac_res" >&5
11375 echo "${ECHO_T}$ac_res" >&6; }
11376 if test `eval echo '${'$as_ac_var'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11379 _ACEOF
11380 HAVE_GTK_FILE_SELECTION=yes
11382 done
11385 HAVE_GTK_FILE_CHOOSER=no
11387 for ac_func in gtk_file_chooser_dialog_new
11389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403 #define $ac_func innocuous_$ac_func
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11410 #ifdef __STDC__
11411 # include <limits.h>
11412 #else
11413 # include <assert.h>
11414 #endif
11416 #undef $ac_func
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char $ac_func ();
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined __stub_$ac_func || defined __stub___$ac_func
11429 choke me
11430 #endif
11433 main ()
11435 return $ac_func ();
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (ac_try="$ac_link"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
11458 eval "$as_ac_var=yes"
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 eval "$as_ac_var=no"
11466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11467 conftest$ac_exeext conftest.$ac_ext
11469 ac_res=`eval echo '${'$as_ac_var'}'`
11470 { echo "$as_me:$LINENO: result: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475 _ACEOF
11476 HAVE_GTK_FILE_CHOOSER=yes
11478 done
11481 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11482 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_GTK_FILE_BOTH 1
11486 _ACEOF
11490 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11491 HAVE_GTK_AND_PTHREAD=no
11493 for ac_header in pthread.h
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 else
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_header_compiler=yes
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_header_compiler=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <$ac_header>
11557 _ACEOF
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null && {
11571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572 test ! -s conftest.err
11573 }; then
11574 ac_header_preproc=yes
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_header_preproc=no
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 yes:no: )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11595 no:yes:* )
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610 esac
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 eval "$as_ac_Header=\$ac_header_preproc"
11618 ac_res=`eval echo '${'$as_ac_Header'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11626 _ACEOF
11630 done
11632 if test "$ac_cv_header_pthread_h"; then
11633 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11634 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11635 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lpthread $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char pthread_self ();
11655 main ()
11657 return pthread_self ();
11659 return 0;
11661 _ACEOF
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest$ac_exeext &&
11679 $as_test_x conftest$ac_exeext; then
11680 ac_cv_lib_pthread_pthread_self=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_cv_lib_pthread_pthread_self=no
11688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11689 conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11694 if test $ac_cv_lib_pthread_pthread_self = yes; then
11695 HAVE_GTK_AND_PTHREAD=yes
11699 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11700 case "${canonical}" in
11701 *-hpux*) ;;
11702 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11703 esac
11705 cat >>confdefs.h <<\_ACEOF
11706 #define HAVE_GTK_AND_PTHREAD 1
11707 _ACEOF
11713 ### Link with -lXft if available to work around a bug.
11714 HAVE_XFT=maybe
11715 if test "${HAVE_GTK}" = "yes"; then
11716 if test "X${with_pkg_config_prog}" != X; then
11717 PKG_CONFIG="${with_pkg_config_prog}"
11721 succeeded=no
11723 if test -z "$PKG_CONFIG"; then
11724 # Extract the first word of "pkg-config", so it can be a program name with args.
11725 set dummy pkg-config; ac_word=$2
11726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 case $PKG_CONFIG in
11732 [\\/]* | ?:[\\/]*)
11733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11747 done
11748 done
11749 IFS=$as_save_IFS
11751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11753 esac
11755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11756 if test -n "$PKG_CONFIG"; then
11757 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11758 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11759 else
11760 { echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6; }
11767 if test "$PKG_CONFIG" = "no" ; then
11768 HAVE_XFT=no
11769 else
11770 PKG_CONFIG_MIN_VERSION=0.9.0
11771 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11772 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11773 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11775 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11776 { echo "$as_me:$LINENO: result: yes" >&5
11777 echo "${ECHO_T}yes" >&6; }
11778 succeeded=yes
11780 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11781 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11782 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11783 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11784 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11786 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11787 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11788 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11789 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11790 echo "${ECHO_T}$XFT_LIBS" >&6; }
11791 else
11792 { echo "$as_me:$LINENO: result: no" >&5
11793 echo "${ECHO_T}no" >&6; }
11794 XFT_CFLAGS=""
11795 XFT_LIBS=""
11796 ## If we have a custom action on failure, don't print errors, but
11797 ## do set a variable so people can do so.
11798 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11804 else
11805 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11806 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11810 if test $succeeded = yes; then
11812 else
11813 HAVE_XFT=no
11816 if test "$HAVE_XFT" != no; then
11817 OLD_CFLAGS="$CPPFLAGS"
11818 OLD_CPPFLAGS="$CFLAGS"
11819 OLD_LIBS="$LIBS"
11820 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11821 CFLAGS="$CFLAGS $XFT_CFLAGS"
11822 LIBS="$XFT_LIBS $LIBS"
11823 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11824 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11825 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11826 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11830 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11831 else
11832 # Is the header compilable?
11833 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11834 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <X11/Xft/Xft.h>
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (ac_try="$ac_compile"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_header_compiler=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_header_compiler=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871 echo "${ECHO_T}$ac_header_compiler" >&6; }
11873 # Is the header present?
11874 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11875 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <X11/Xft/Xft.h>
11883 _ACEOF
11884 if { (ac_try="$ac_cpp conftest.$ac_ext"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } >/dev/null && {
11897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 }; then
11900 ac_header_preproc=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_header_preproc=no
11908 rm -f conftest.err conftest.$ac_ext
11909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11910 echo "${ECHO_T}$ac_header_preproc" >&6; }
11912 # So? What about this header?
11913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11914 yes:no: )
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11919 ac_header_preproc=yes
11921 no:yes:* )
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11925 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11927 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11929 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11931 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11933 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11936 esac
11937 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11938 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11939 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11944 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11945 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11948 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11949 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11950 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11951 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lXft $XFT_LIBS $LIBS"
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char XftFontOpen ();
11971 main ()
11973 return XftFontOpen ();
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest$ac_exeext &&
11995 $as_test_x conftest$ac_exeext; then
11996 ac_cv_lib_Xft_XftFontOpen=yes
11997 else
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_lib_Xft_XftFontOpen=no
12004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12009 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12010 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12011 HAVE_XFT=yes
12018 if test "${HAVE_XFT}" = "yes"; then
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_XFT 1
12022 _ACEOF
12025 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12026 else
12027 CFLAGS="$OLD_CPPFLAGS"
12028 CFLAGS="$OLD_CFLAGS"
12029 LIBS="$OLD_LIBS"
12034 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12035 if test x"${HAVE_X11R5}" = xyes; then
12036 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12037 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12038 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12048 #include <X11/Intrinsic.h>
12049 #include <X11/Xaw/Simple.h>
12051 main ()
12055 return 0;
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest$ac_exeext &&
12075 $as_test_x conftest$ac_exeext; then
12076 emacs_cv_x11_version_5_with_xaw=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 emacs_cv_x11_version_5_with_xaw=no
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12088 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12089 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12090 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12091 USE_X_TOOLKIT=LUCID
12092 else
12093 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12094 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12095 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12096 { (exit 1); exit 1; }; }
12097 else
12098 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12099 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12100 USE_X_TOOLKIT=none
12103 else
12104 USE_X_TOOLKIT=none
12108 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12110 if test "${USE_X_TOOLKIT}" != "none"; then
12111 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12112 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12113 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include <X11/Intrinsic.h>
12124 main ()
12126 #if XtSpecificationRelease < 6
12127 fail;
12128 #endif
12131 return 0;
12133 _ACEOF
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (ac_try="$ac_link"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && {
12148 test -z "$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 } && test -s conftest$ac_exeext &&
12151 $as_test_x conftest$ac_exeext; then
12152 emacs_cv_x11_toolkit_version_6=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 emacs_cv_x11_toolkit_version_6=no
12160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12161 conftest$ac_exeext conftest.$ac_ext
12164 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12165 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12166 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12167 echo "${ECHO_T}6 or newer" >&6; }
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_X11XTR6 1
12171 _ACEOF
12173 else
12174 { echo "$as_me:$LINENO: result: before 6" >&5
12175 echo "${ECHO_T}before 6" >&6; }
12178 OLDLIBS="$LIBS"
12179 if test x$HAVE_X11XTR6 = xyes; then
12180 LIBS="-lXt -lSM -lICE $LIBS"
12181 else
12182 LIBS="-lXt $LIBS"
12185 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12186 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lXmu $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char XmuConvertStandardSelection ();
12207 main ()
12209 return XmuConvertStandardSelection ();
12211 return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext &&
12231 $as_test_x conftest$ac_exeext; then
12232 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12245 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_LIBXMU 1
12249 _ACEOF
12251 LIBS="-lXmu $LIBS"
12255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12258 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12259 if test "${HAVE_X11}" = "yes"; then
12260 if test "${USE_X_TOOLKIT}" != "none"; then
12262 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12263 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lXext $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char XShapeQueryExtension ();
12284 main ()
12286 return XShapeQueryExtension ();
12288 return 0;
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest$ac_exeext &&
12308 $as_test_x conftest$ac_exeext; then
12309 ac_cv_lib_Xext_XShapeQueryExtension=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_Xext_XShapeQueryExtension=no
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12322 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12323 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBXEXT 1
12326 _ACEOF
12328 LIBS="-lXext $LIBS"
12335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12336 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12337 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12338 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <Xm/Xm.h>
12349 main ()
12351 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12352 int x = 5;
12353 #else
12354 Motif version prior to 2.1.
12355 #endif
12357 return 0;
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12377 emacs_cv_motif_version_2_1=yes
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 emacs_cv_motif_version_2_1=no
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12388 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12389 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12390 if test $emacs_cv_motif_version_2_1 = yes; then
12391 HAVE_LIBXP=no
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_MOTIF_2_1 1
12395 _ACEOF
12397 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12398 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lXp $LIBS"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char XpCreateContext ();
12419 main ()
12421 return XpCreateContext ();
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_link") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest$ac_exeext &&
12443 $as_test_x conftest$ac_exeext; then
12444 ac_cv_lib_Xp_XpCreateContext=yes
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_lib_Xp_XpCreateContext=no
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12457 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12458 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12459 HAVE_LIBXP=yes
12462 if test ${HAVE_LIBXP} = yes; then
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_LIBXP 1
12466 _ACEOF
12469 else
12470 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12471 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12472 if test "${emacs_cv_lesstif+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475 # We put this in CFLAGS temporarily to precede other -I options
12476 # that might be in CFLAGS temporarily.
12477 # We put this in CPPFLAGS where it precedes the other -I options.
12478 OLD_CPPFLAGS=$CPPFLAGS
12479 OLD_CFLAGS=$CFLAGS
12480 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12481 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12490 main ()
12492 int x = 5;
12494 return 0;
12496 _ACEOF
12497 rm -f conftest.$ac_objext
12498 if { (ac_try="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 emacs_cv_lesstif=yes
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 emacs_cv_lesstif=no
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12525 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12526 if test $emacs_cv_lesstif = yes; then
12527 # Make sure this -I option remains in CPPFLAGS after it is set
12528 # back to REAL_CPPFLAGS.
12529 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12530 # have those other -I options anyway. Ultimately, having this
12531 # directory ultimately in CPPFLAGS will be enough.
12532 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12533 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12534 else
12535 CFLAGS=$OLD_CFLAGS
12536 CPPFLAGS=$OLD_CPPFLAGS
12541 ### Is -lXaw3d available?
12542 HAVE_XAW3D=no
12543 if test "${HAVE_X11}" = "yes"; then
12544 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12545 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12546 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12547 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 #include <X11/Xaw3d/Scrollbar.h>
12557 _ACEOF
12558 if { (ac_try="$ac_cpp conftest.$ac_ext"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null && {
12571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 }; then
12574 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12582 rm -f conftest.err conftest.$ac_ext
12584 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12586 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12587 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12588 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12589 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lXaw3d $LIBS"
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char XawScrollbarSetThumb ();
12609 main ()
12611 return XawScrollbarSetThumb ();
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest$ac_exeext &&
12633 $as_test_x conftest$ac_exeext; then
12634 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12647 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12648 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12649 HAVE_XAW3D=yes
12655 if test "${HAVE_XAW3D}" = "yes"; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_XAW3D 1
12659 _ACEOF
12667 USE_TOOLKIT_SCROLL_BARS=no
12668 if test "${with_toolkit_scroll_bars}" != "no"; then
12669 if test "${USE_X_TOOLKIT}" != "none"; then
12670 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12671 cat >>confdefs.h <<\_ACEOF
12672 #define USE_TOOLKIT_SCROLL_BARS 1
12673 _ACEOF
12675 HAVE_XAW3D=no
12676 USE_TOOLKIT_SCROLL_BARS=yes
12677 elif test "${HAVE_XAW3D}" = "yes"; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define USE_TOOLKIT_SCROLL_BARS 1
12680 _ACEOF
12682 USE_TOOLKIT_SCROLL_BARS=yes
12684 elif test "${HAVE_GTK}" = "yes"; then
12685 cat >>confdefs.h <<\_ACEOF
12686 #define USE_TOOLKIT_SCROLL_BARS 1
12687 _ACEOF
12689 USE_TOOLKIT_SCROLL_BARS=yes
12690 elif test "${HAVE_CARBON}" = "yes"; then
12691 cat >>confdefs.h <<\_ACEOF
12692 #define USE_TOOLKIT_SCROLL_BARS 1
12693 _ACEOF
12695 USE_TOOLKIT_SCROLL_BARS=yes
12699 cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h. */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 #include <X11/Xlib.h>
12707 #include <X11/Xresource.h>
12709 main ()
12711 XIMProc callback;
12713 return 0;
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (ac_try="$ac_compile"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.$ac_objext; then
12733 HAVE_XIM=yes
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_XIM 1
12737 _ACEOF
12739 else
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 HAVE_XIM=no
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 if test "${with_xim}" != "no"; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define USE_XIM 1
12753 _ACEOF
12758 if test "${HAVE_XIM}" != "no"; then
12759 late_CFLAGS=$CFLAGS
12760 if test "$GCC" = yes; then
12761 CFLAGS="$CFLAGS --pedantic-errors"
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 #include <X11/Xlib.h>
12771 #include <X11/Xresource.h>
12773 main ()
12775 Display *display;
12776 XrmDatabase db;
12777 char *res_name;
12778 char *res_class;
12779 XIMProc callback;
12780 XPointer *client_data;
12781 #ifndef __GNUC__
12782 /* If we're not using GCC, it's probably not XFree86, and this is
12783 probably right, but we can't use something like --pedantic-errors. */
12784 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12785 char*, XIMProc, XPointer*);
12786 #endif
12787 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12788 client_data);
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 emacs_cv_arg6_star=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 if test "$emacs_cv_arg6_star" = yes; then
12821 cat >>confdefs.h <<\_ACEOF
12822 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12823 _ACEOF
12825 else
12826 cat >>confdefs.h <<\_ACEOF
12827 #define XRegisterIMInstantiateCallback_arg6 XPointer
12828 _ACEOF
12831 CFLAGS=$late_CFLAGS
12834 ### Use -lXpm if available, unless `--with-xpm=no'.
12835 HAVE_XPM=no
12836 if test "${HAVE_X11}" = "yes"; then
12837 if test "${with_xpm}" != "no"; then
12838 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12839 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12840 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12841 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12846 else
12847 # Is the header compilable?
12848 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12849 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12857 #include <X11/xpm.h>
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (ac_try="$ac_compile"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_compile") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && {
12873 test -z "$ac_c_werror_flag" ||
12874 test ! -s conftest.err
12875 } && test -s conftest.$ac_objext; then
12876 ac_header_compiler=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_header_compiler=no
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12886 echo "${ECHO_T}$ac_header_compiler" >&6; }
12888 # Is the header present?
12889 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12890 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <X11/xpm.h>
12898 _ACEOF
12899 if { (ac_try="$ac_cpp conftest.$ac_ext"
12900 case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } >/dev/null && {
12912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12914 }; then
12915 ac_header_preproc=yes
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_header_preproc=no
12923 rm -f conftest.err conftest.$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12925 echo "${ECHO_T}$ac_header_preproc" >&6; }
12927 # So? What about this header?
12928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12929 yes:no: )
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12934 ac_header_preproc=yes
12936 no:yes:* )
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12940 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12942 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12944 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12946 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12948 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12951 esac
12952 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12953 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12954 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 ac_cv_header_X11_xpm_h=$ac_header_preproc
12959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12960 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12963 if test $ac_cv_header_X11_xpm_h = yes; then
12964 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12965 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12966 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969 ac_check_lib_save_LIBS=$LIBS
12970 LIBS="-lXpm -lX11 $LIBS"
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char XpmReadFileToPixmap ();
12986 main ()
12988 return XpmReadFileToPixmap ();
12990 return 0;
12992 _ACEOF
12993 rm -f conftest.$ac_objext conftest$ac_exeext
12994 if { (ac_try="$ac_link"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_link") 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest$ac_exeext &&
13010 $as_test_x conftest$ac_exeext; then
13011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13012 else
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13024 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13025 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13026 HAVE_XPM=yes
13032 if test "${HAVE_XPM}" = "yes"; then
13033 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13034 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include "X11/xpm.h"
13042 #ifndef XpmReturnAllocPixels
13043 no_return_alloc_pixels
13044 #endif
13046 _ACEOF
13047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13048 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13049 HAVE_XPM=no
13050 else
13051 HAVE_XPM=yes
13053 rm -f conftest*
13056 if test "${HAVE_XPM}" = "yes"; then
13057 { echo "$as_me:$LINENO: result: yes" >&5
13058 echo "${ECHO_T}yes" >&6; }
13059 else
13060 { echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6; }
13066 if test "${HAVE_XPM}" = "yes"; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_XPM 1
13070 _ACEOF
13075 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13076 HAVE_JPEG=no
13077 if test "${HAVE_X11}" = "yes"; then
13078 if test "${with_jpeg}" != "no"; then
13079 if test "${ac_cv_header_jerror_h+set}" = set; then
13080 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13081 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13082 if test "${ac_cv_header_jerror_h+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13086 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13087 else
13088 # Is the header compilable?
13089 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13090 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13098 #include <jerror.h>
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
13117 ac_header_compiler=yes
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_header_compiler=no
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6; }
13129 # Is the header present?
13130 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13131 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <jerror.h>
13139 _ACEOF
13140 if { (ac_try="$ac_cpp conftest.$ac_ext"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null && {
13153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 }; then
13156 ac_header_preproc=yes
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_header_preproc=no
13164 rm -f conftest.err conftest.$ac_ext
13165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6; }
13168 # So? What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13170 yes:no: )
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13174 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13175 ac_header_preproc=yes
13177 no:yes:* )
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13192 esac
13193 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13194 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13195 if test "${ac_cv_header_jerror_h+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198 ac_cv_header_jerror_h=$ac_header_preproc
13200 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13201 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13204 if test $ac_cv_header_jerror_h = yes; then
13205 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13206 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-ljpeg $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char jpeg_destroy_compress ();
13227 main ()
13229 return jpeg_destroy_compress ();
13231 return 0;
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest$ac_exeext &&
13251 $as_test_x conftest$ac_exeext; then
13252 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13253 else
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13265 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13266 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13267 HAVE_JPEG=yes
13276 if test "${HAVE_JPEG}" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_JPEG 1
13279 _ACEOF
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <jpeglib.h>
13288 version=JPEG_LIB_VERSION
13290 _ACEOF
13291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13292 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13293 cat >>confdefs.h <<\_ACEOF
13294 #define HAVE_JPEG 1
13295 _ACEOF
13297 else
13298 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13299 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13300 HAVE_JPEG=no
13302 rm -f conftest*
13307 ### Use -lpng if available, unless `--with-png=no'.
13308 HAVE_PNG=no
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${with_png}" != "no"; then
13311 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13312 # in /usr/include/libpng.
13315 for ac_header in png.h libpng/png.h
13317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 ac_res=`eval echo '${'$as_ac_Header'}'`
13325 { echo "$as_me:$LINENO: result: $ac_res" >&5
13326 echo "${ECHO_T}$ac_res" >&6; }
13327 else
13328 # Is the header compilable?
13329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h. */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <$ac_header>
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (ac_try="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } && {
13354 test -z "$ac_c_werror_flag" ||
13355 test ! -s conftest.err
13356 } && test -s conftest.$ac_objext; then
13357 ac_header_compiler=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_header_compiler=no
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13367 echo "${ECHO_T}$ac_header_compiler" >&6; }
13369 # Is the header present?
13370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 #include <$ac_header>
13379 _ACEOF
13380 if { (ac_try="$ac_cpp conftest.$ac_ext"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } >/dev/null && {
13393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 }; then
13396 ac_header_preproc=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_preproc=no
13404 rm -f conftest.err conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13406 echo "${ECHO_T}$ac_header_preproc" >&6; }
13408 # So? What about this header?
13409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13410 yes:no: )
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13415 ac_header_preproc=yes
13417 no:yes:* )
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13432 esac
13433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 eval "$as_ac_Header=\$ac_header_preproc"
13440 ac_res=`eval echo '${'$as_ac_Header'}'`
13441 { echo "$as_me:$LINENO: result: $ac_res" >&5
13442 echo "${ECHO_T}$ac_res" >&6; }
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h <<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448 _ACEOF
13452 done
13454 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13455 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13456 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13457 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lpng -lz -lm $LIBS"
13462 cat >conftest.$ac_ext <<_ACEOF
13463 /* confdefs.h. */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char png_get_channels ();
13477 main ()
13479 return png_get_channels ();
13481 return 0;
13483 _ACEOF
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (ac_try="$ac_link"
13486 case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_link") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest$ac_exeext &&
13501 $as_test_x conftest$ac_exeext; then
13502 ac_cv_lib_png_png_get_channels=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_cv_lib_png_png_get_channels=no
13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13515 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13516 if test $ac_cv_lib_png_png_get_channels = yes; then
13517 HAVE_PNG=yes
13523 if test "${HAVE_PNG}" = "yes"; then
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_PNG 1
13527 _ACEOF
13532 ### Use -ltiff if available, unless `--with-tiff=no'.
13533 HAVE_TIFF=no
13534 if test "${HAVE_X11}" = "yes"; then
13535 if test "${with_tiff}" != "no"; then
13536 if test "${ac_cv_header_tiffio_h+set}" = set; then
13537 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13538 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13539 if test "${ac_cv_header_tiffio_h+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13544 else
13545 # Is the header compilable?
13546 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13547 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 #include <tiffio.h>
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (ac_try="$ac_compile"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_header_compiler=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_header_compiler=no
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13584 echo "${ECHO_T}$ac_header_compiler" >&6; }
13586 # Is the header present?
13587 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13588 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 #include <tiffio.h>
13596 _ACEOF
13597 if { (ac_try="$ac_cpp conftest.$ac_ext"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null && {
13610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 }; then
13613 ac_header_preproc=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_header_preproc=no
13621 rm -f conftest.err conftest.$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13623 echo "${ECHO_T}$ac_header_preproc" >&6; }
13625 # So? What about this header?
13626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13627 yes:no: )
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13629 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13631 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13632 ac_header_preproc=yes
13634 no:yes:* )
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13636 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13638 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13640 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13642 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13644 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13646 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13649 esac
13650 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13651 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_header_tiffio_h+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 ac_cv_header_tiffio_h=$ac_header_preproc
13657 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13658 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13661 if test $ac_cv_header_tiffio_h = yes; then
13662 tifflibs="-lz -lm"
13663 # At least one tiff package requires the jpeg library.
13664 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13665 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13666 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13667 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-ltiff $tifflibs $LIBS"
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char TIFFGetVersion ();
13687 main ()
13689 return TIFFGetVersion ();
13691 return 0;
13693 _ACEOF
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest$ac_exeext &&
13711 $as_test_x conftest$ac_exeext; then
13712 ac_cv_lib_tiff_TIFFGetVersion=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_cv_lib_tiff_TIFFGetVersion=no
13720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13725 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13726 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13727 HAVE_TIFF=yes
13735 if test "${HAVE_TIFF}" = "yes"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_TIFF 1
13739 _ACEOF
13744 ### Use -lgif if available, unless `--with-gif=no'.
13745 HAVE_GIF=no
13746 if test "${HAVE_X11}" = "yes"; then
13747 if test "${with_gif}" != "no"; then
13748 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13749 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13750 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13751 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13755 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13756 else
13757 # Is the header compilable?
13758 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13759 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 $ac_includes_default
13767 #include <gif_lib.h>
13768 _ACEOF
13769 rm -f conftest.$ac_objext
13770 if { (ac_try="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest.$ac_objext; then
13786 ac_header_compiler=yes
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_header_compiler=no
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 echo "${ECHO_T}$ac_header_compiler" >&6; }
13798 # Is the header present?
13799 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13800 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <gif_lib.h>
13808 _ACEOF
13809 if { (ac_try="$ac_cpp conftest.$ac_ext"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } >/dev/null && {
13822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13824 }; then
13825 ac_header_preproc=yes
13826 else
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_header_preproc=no
13833 rm -f conftest.err conftest.$ac_ext
13834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835 echo "${ECHO_T}$ac_header_preproc" >&6; }
13837 # So? What about this header?
13838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 yes:no: )
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13841 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13843 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc=yes
13846 no:yes:* )
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13848 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13850 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13852 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13854 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13856 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13858 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13861 esac
13862 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13863 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13864 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 ac_cv_header_gif_lib_h=$ac_header_preproc
13869 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13870 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13873 if test $ac_cv_header_gif_lib_h = yes; then
13874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13875 # Earlier versions can crash Emacs.
13876 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13877 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-lungif $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char EGifPutExtensionLast ();
13898 main ()
13900 return EGifPutExtensionLast ();
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest$ac_exeext &&
13922 $as_test_x conftest$ac_exeext; then
13923 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_cv_lib_ungif_EGifPutExtensionLast=no
13931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13936 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13937 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13938 HAVE_GIF=yes
13946 if test "${HAVE_GIF}" = "yes"; then
13948 cat >>confdefs.h <<\_ACEOF
13949 #define HAVE_GIF 1
13950 _ACEOF
13955 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13956 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13957 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13958 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13962 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13963 else
13964 # Is the header compilable?
13965 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13966 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 $ac_includes_default
13974 #include <malloc/malloc.h>
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.$ac_objext; then
13993 ac_header_compiler=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_header_compiler=no
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14003 echo "${ECHO_T}$ac_header_compiler" >&6; }
14005 # Is the header present?
14006 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14007 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 #include <malloc/malloc.h>
14015 _ACEOF
14016 if { (ac_try="$ac_cpp conftest.$ac_ext"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } >/dev/null && {
14029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 }; then
14032 ac_header_preproc=yes
14033 else
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ac_header_preproc=no
14040 rm -f conftest.err conftest.$ac_ext
14041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14042 echo "${ECHO_T}$ac_header_preproc" >&6; }
14044 # So? What about this header?
14045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14046 yes:no: )
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14051 ac_header_preproc=yes
14053 no:yes:* )
14054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14055 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14057 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14059 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14061 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14063 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14065 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14068 esac
14069 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14070 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14071 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14076 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14080 if test $ac_cv_header_malloc_malloc_h = yes; then
14082 cat >>confdefs.h <<\_ACEOF
14083 #define HAVE_MALLOC_MALLOC_H 1
14084 _ACEOF
14090 ### Use Mac OS X Carbon API to implement GUI.
14091 if test "${HAVE_CARBON}" = "yes"; then
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_CARBON 1
14095 _ACEOF
14097 ## Specify the install directory
14098 carbon_appdir=
14099 if test "${carbon_appdir_x}" != ""; then
14100 case ${carbon_appdir_x} in
14101 y | ye | yes) carbon_appdir=/Applications ;;
14102 * ) carbon_appdir=${carbon_appdir_x} ;;
14103 esac
14105 # We also have mouse menus.
14106 HAVE_MENUS=yes
14109 ### Use session management (-lSM -lICE) if available
14110 HAVE_X_SM=no
14111 if test "${HAVE_X11}" = "yes"; then
14112 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14113 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14114 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14120 else
14121 # Is the header compilable?
14122 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14123 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 $ac_includes_default
14131 #include <X11/SM/SMlib.h>
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 ac_header_compiler=yes
14151 else
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_header_compiler=no
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14160 echo "${ECHO_T}$ac_header_compiler" >&6; }
14162 # Is the header present?
14163 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14164 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include <X11/SM/SMlib.h>
14172 _ACEOF
14173 if { (ac_try="$ac_cpp conftest.$ac_ext"
14174 case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } >/dev/null && {
14186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14187 test ! -s conftest.err
14188 }; then
14189 ac_header_preproc=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_header_preproc=no
14197 rm -f conftest.err conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14199 echo "${ECHO_T}$ac_header_preproc" >&6; }
14201 # So? What about this header?
14202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14203 yes:no: )
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14208 ac_header_preproc=yes
14210 no:yes:* )
14211 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14212 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14214 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14215 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14216 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14218 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14220 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14222 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14225 esac
14226 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14227 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14233 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14234 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14237 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14238 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14239 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14240 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-lSM -lICE $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h. */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char SmcOpenConnection ();
14260 main ()
14262 return SmcOpenConnection ();
14264 return 0;
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest$ac_exeext &&
14284 $as_test_x conftest$ac_exeext; then
14285 ac_cv_lib_SM_SmcOpenConnection=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_lib_SM_SmcOpenConnection=no
14293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14294 conftest$ac_exeext conftest.$ac_ext
14295 LIBS=$ac_check_lib_save_LIBS
14297 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14298 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14299 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14300 HAVE_X_SM=yes
14307 if test "${HAVE_X_SM}" = "yes"; then
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_X_SM 1
14311 _ACEOF
14313 case "$LIBS" in
14314 *-lSM*) ;;
14315 *) LIBS="-lSM -lICE $LIBS" ;;
14316 esac
14320 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14321 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14322 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14323 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 #include <netdb.h>
14334 main ()
14336 return h_errno;
14338 return 0;
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14359 emacs_cv_netdb_declares_h_errno=yes
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 emacs_cv_netdb_declares_h_errno=no
14367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14368 conftest$ac_exeext conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14371 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14372 if test $emacs_cv_netdb_declares_h_errno = yes; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_H_ERRNO 1
14376 _ACEOF
14380 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14381 # for constant arguments. Useless!
14382 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14383 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14384 if test "${ac_cv_working_alloca_h+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h. */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 #include <alloca.h>
14395 main ()
14397 char *p = (char *) alloca (2 * sizeof (int));
14398 if (p) return 0;
14400 return 0;
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (ac_try="$ac_link"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest$ac_exeext &&
14420 $as_test_x conftest$ac_exeext; then
14421 ac_cv_working_alloca_h=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_working_alloca_h=no
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14433 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14434 if test $ac_cv_working_alloca_h = yes; then
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_ALLOCA_H 1
14438 _ACEOF
14442 { echo "$as_me:$LINENO: checking for alloca" >&5
14443 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14444 if test "${ac_cv_func_alloca_works+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #ifdef __GNUC__
14454 # define alloca __builtin_alloca
14455 #else
14456 # ifdef _MSC_VER
14457 # include <malloc.h>
14458 # define alloca _alloca
14459 # else
14460 # ifdef HAVE_ALLOCA_H
14461 # include <alloca.h>
14462 # else
14463 # ifdef _AIX
14464 #pragma alloca
14465 # else
14466 # ifndef alloca /* predefined by HP cc +Olibcalls */
14467 char *alloca ();
14468 # endif
14469 # endif
14470 # endif
14471 # endif
14472 #endif
14475 main ()
14477 char *p = (char *) alloca (1);
14478 if (p) return 0;
14480 return 0;
14482 _ACEOF
14483 rm -f conftest.$ac_objext conftest$ac_exeext
14484 if { (ac_try="$ac_link"
14485 case "(($ac_try" in
14486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490 (eval "$ac_link") 2>conftest.er1
14491 ac_status=$?
14492 grep -v '^ *+' conftest.er1 >conftest.err
14493 rm -f conftest.er1
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest$ac_exeext &&
14500 $as_test_x conftest$ac_exeext; then
14501 ac_cv_func_alloca_works=yes
14502 else
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_func_alloca_works=no
14509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14510 conftest$ac_exeext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14513 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14515 if test $ac_cv_func_alloca_works = yes; then
14517 cat >>confdefs.h <<\_ACEOF
14518 #define HAVE_ALLOCA 1
14519 _ACEOF
14521 else
14522 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14523 # that cause trouble. Some versions do not even contain alloca or
14524 # contain a buggy version. If you still want to use their alloca,
14525 # use ar to extract alloca.o from them instead of compiling alloca.c.
14527 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14529 cat >>confdefs.h <<\_ACEOF
14530 #define C_ALLOCA 1
14531 _ACEOF
14534 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14535 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14536 if test "${ac_cv_os_cray+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #if defined CRAY && ! defined CRAY2
14546 webecray
14547 #else
14548 wenotbecray
14549 #endif
14551 _ACEOF
14552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14553 $EGREP "webecray" >/dev/null 2>&1; then
14554 ac_cv_os_cray=yes
14555 else
14556 ac_cv_os_cray=no
14558 rm -f conftest*
14561 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14562 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14563 if test $ac_cv_os_cray = yes; then
14564 for ac_func in _getb67 GETB67 getb67; do
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14586 #ifdef __STDC__
14587 # include <limits.h>
14588 #else
14589 # include <assert.h>
14590 #endif
14592 #undef $ac_func
14594 /* Override any GCC internal prototype to avoid an error.
14595 Use char because int might match the return type of a GCC
14596 builtin and then its argument prototype would still apply. */
14597 #ifdef __cplusplus
14598 extern "C"
14599 #endif
14600 char $ac_func ();
14601 /* The GNU C library defines this for functions which it implements
14602 to always fail with ENOSYS. Some functions are actually named
14603 something starting with __ and the normal name is an alias. */
14604 #if defined __stub_$ac_func || defined __stub___$ac_func
14605 choke me
14606 #endif
14609 main ()
14611 return $ac_func ();
14613 return 0;
14615 _ACEOF
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
14634 eval "$as_ac_var=yes"
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 eval "$as_ac_var=no"
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14645 ac_res=`eval echo '${'$as_ac_var'}'`
14646 { echo "$as_me:$LINENO: result: $ac_res" >&5
14647 echo "${ECHO_T}$ac_res" >&6; }
14648 if test `eval echo '${'$as_ac_var'}'` = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define CRAY_STACKSEG_END $ac_func
14652 _ACEOF
14654 break
14657 done
14660 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14661 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14662 if test "${ac_cv_c_stack_direction+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 if test "$cross_compiling" = yes; then
14666 ac_cv_c_stack_direction=0
14667 else
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14676 find_stack_direction ()
14678 static char *addr = 0;
14679 auto char dummy;
14680 if (addr == 0)
14682 addr = &dummy;
14683 return find_stack_direction ();
14685 else
14686 return (&dummy > addr) ? 1 : -1;
14690 main ()
14692 return find_stack_direction () < 0;
14694 _ACEOF
14695 rm -f conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_c_stack_direction=1
14716 else
14717 echo "$as_me: program exited with status $ac_status" >&5
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ( exit $ac_status )
14722 ac_cv_c_stack_direction=-1
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14730 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14732 cat >>confdefs.h <<_ACEOF
14733 #define STACK_DIRECTION $ac_cv_c_stack_direction
14734 _ACEOF
14740 # fmod, logb, and frexp are found in -lm on most systems.
14741 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14743 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14744 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14745 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lm $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char sqrt ();
14765 main ()
14767 return sqrt ();
14769 return 0;
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_link") 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest$ac_exeext &&
14789 $as_test_x conftest$ac_exeext; then
14790 ac_cv_lib_m_sqrt=yes
14791 else
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_lib_m_sqrt=no
14798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799 conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14802 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14803 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14804 if test $ac_cv_lib_m_sqrt = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806 #define HAVE_LIBM 1
14807 _ACEOF
14809 LIBS="-lm $LIBS"
14814 # Check for mail-locking functions in a "mail" library. Probably this should
14815 # have the same check as for liblockfile below.
14817 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14818 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14819 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lmail $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14834 #ifdef __cplusplus
14835 extern "C"
14836 #endif
14837 char maillock ();
14839 main ()
14841 return maillock ();
14843 return 0;
14845 _ACEOF
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_lib_mail_maillock=yes
14865 else
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_lib_mail_maillock=no
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14877 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14878 if test $ac_cv_lib_mail_maillock = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBMAIL 1
14881 _ACEOF
14883 LIBS="-lmail $LIBS"
14888 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14889 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14890 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893 ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-llockfile $LIBS"
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14902 /* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 char maillock ();
14910 main ()
14912 return maillock ();
14914 return 0;
14916 _ACEOF
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (ac_try="$ac_link"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_link") 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest$ac_exeext &&
14934 $as_test_x conftest$ac_exeext; then
14935 ac_cv_lib_lockfile_maillock=yes
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_lib_lockfile_maillock=no
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14947 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14948 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14949 if test $ac_cv_lib_lockfile_maillock = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define HAVE_LIBLOCKFILE 1
14952 _ACEOF
14954 LIBS="-llockfile $LIBS"
14958 # If we have the shared liblockfile, assume we must use it for mail
14959 # locking (e.g. Debian). If we couldn't link against liblockfile
14960 # (no liblockfile.a installed), ensure that we don't need to.
14961 if test "$ac_cv_lib_lockfile_maillock" = no; then
14962 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14963 set dummy liblockfile.so; ac_word=$2
14964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14966 if test "${ac_cv_prog_liblockfile+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 if test -n "$liblockfile"; then
14970 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14971 else
14972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14974 for as_dir in $as_dummy
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14980 ac_cv_prog_liblockfile="yes"
14981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 break 2
14984 done
14985 done
14986 IFS=$as_save_IFS
14988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14991 liblockfile=$ac_cv_prog_liblockfile
14992 if test -n "$liblockfile"; then
14993 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14994 echo "${ECHO_T}$liblockfile" >&6; }
14995 else
14996 { echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6; }
15001 if test $ac_cv_prog_liblockfile = yes; then
15002 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15003 This probably means that movemail could lose mail.
15004 There may be a \`development' package to install containing liblockfile." >&5
15005 echo "$as_me: error: Shared liblockfile found but can't link against it.
15006 This probably means that movemail could lose mail.
15007 There may be a \`development' package to install containing liblockfile." >&2;}
15008 { (exit 1); exit 1; }; }
15009 else :
15013 for ac_func in touchlock
15015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 else
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15029 #define $ac_func innocuous_$ac_func
15031 /* System header to define __stub macros and hopefully few prototypes,
15032 which can conflict with char $ac_func (); below.
15033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15034 <limits.h> exists even on freestanding compilers. */
15036 #ifdef __STDC__
15037 # include <limits.h>
15038 #else
15039 # include <assert.h>
15040 #endif
15042 #undef $ac_func
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char $ac_func ();
15051 /* The GNU C library defines this for functions which it implements
15052 to always fail with ENOSYS. Some functions are actually named
15053 something starting with __ and the normal name is an alias. */
15054 #if defined __stub_$ac_func || defined __stub___$ac_func
15055 choke me
15056 #endif
15059 main ()
15061 return $ac_func ();
15063 return 0;
15065 _ACEOF
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_link") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest$ac_exeext &&
15083 $as_test_x conftest$ac_exeext; then
15084 eval "$as_ac_var=yes"
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 eval "$as_ac_var=no"
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15095 ac_res=`eval echo '${'$as_ac_var'}'`
15096 { echo "$as_me:$LINENO: result: $ac_res" >&5
15097 echo "${ECHO_T}$ac_res" >&6; }
15098 if test `eval echo '${'$as_ac_var'}'` = yes; then
15099 cat >>confdefs.h <<_ACEOF
15100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15101 _ACEOF
15104 done
15107 for ac_header in maillock.h
15109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 ac_res=`eval echo '${'$as_ac_Header'}'`
15117 { echo "$as_me:$LINENO: result: $ac_res" >&5
15118 echo "${ECHO_T}$ac_res" >&6; }
15119 else
15120 # Is the header compilable?
15121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15130 #include <$ac_header>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 ac_header_compiler=yes
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_header_compiler=no
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15159 echo "${ECHO_T}$ac_header_compiler" >&6; }
15161 # Is the header present?
15162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <$ac_header>
15171 _ACEOF
15172 if { (ac_try="$ac_cpp conftest.$ac_ext"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } >/dev/null && {
15185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15186 test ! -s conftest.err
15187 }; then
15188 ac_header_preproc=yes
15189 else
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_header_preproc=no
15196 rm -f conftest.err conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15198 echo "${ECHO_T}$ac_header_preproc" >&6; }
15200 # So? What about this header?
15201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15202 yes:no: )
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15207 ac_header_preproc=yes
15209 no:yes:* )
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15224 esac
15225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230 eval "$as_ac_Header=\$ac_header_preproc"
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15238 cat >>confdefs.h <<_ACEOF
15239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15240 _ACEOF
15244 done
15316 for ac_func in gethostname getdomainname dup2 \
15317 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15318 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15319 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15320 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15321 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15322 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15323 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15324 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15340 #define $ac_func innocuous_$ac_func
15342 /* System header to define __stub macros and hopefully few prototypes,
15343 which can conflict with char $ac_func (); below.
15344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15345 <limits.h> exists even on freestanding compilers. */
15347 #ifdef __STDC__
15348 # include <limits.h>
15349 #else
15350 # include <assert.h>
15351 #endif
15353 #undef $ac_func
15355 /* Override any GCC internal prototype to avoid an error.
15356 Use char because int might match the return type of a GCC
15357 builtin and then its argument prototype would still apply. */
15358 #ifdef __cplusplus
15359 extern "C"
15360 #endif
15361 char $ac_func ();
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined __stub_$ac_func || defined __stub___$ac_func
15366 choke me
15367 #endif
15370 main ()
15372 return $ac_func ();
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (ac_try="$ac_link"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_link") 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest$ac_exeext &&
15394 $as_test_x conftest$ac_exeext; then
15395 eval "$as_ac_var=yes"
15396 else
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 eval "$as_ac_var=no"
15403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15404 conftest$ac_exeext conftest.$ac_ext
15406 ac_res=`eval echo '${'$as_ac_var'}'`
15407 { echo "$as_me:$LINENO: result: $ac_res" >&5
15408 echo "${ECHO_T}$ac_res" >&6; }
15409 if test `eval echo '${'$as_ac_var'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15412 _ACEOF
15415 done
15419 for ac_header in sys/un.h
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15431 else
15432 # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && {
15458 test -z "$ac_c_werror_flag" ||
15459 test ! -s conftest.err
15460 } && test -s conftest.$ac_objext; then
15461 ac_header_compiler=yes
15462 else
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 ac_header_compiler=no
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15471 echo "${ECHO_T}$ac_header_compiler" >&6; }
15473 # Is the header present?
15474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h. */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 #include <$ac_header>
15483 _ACEOF
15484 if { (ac_try="$ac_cpp conftest.$ac_ext"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } >/dev/null && {
15497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 }; then
15500 ac_header_preproc=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_preproc=no
15508 rm -f conftest.err conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15510 echo "${ECHO_T}$ac_header_preproc" >&6; }
15512 # So? What about this header?
15513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514 yes:no: )
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15519 ac_header_preproc=yes
15521 no:yes:* )
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15536 esac
15537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542 eval "$as_ac_Header=\$ac_header_preproc"
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15550 cat >>confdefs.h <<_ACEOF
15551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15552 _ACEOF
15556 done
15563 for ac_header in $ac_header_list
15565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 ac_res=`eval echo '${'$as_ac_Header'}'`
15573 { echo "$as_me:$LINENO: result: $ac_res" >&5
15574 echo "${ECHO_T}$ac_res" >&6; }
15575 else
15576 # Is the header compilable?
15577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 $ac_includes_default
15586 #include <$ac_header>
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (ac_try="$ac_compile"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15596 ac_status=$?
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest.$ac_objext; then
15605 ac_header_compiler=yes
15606 else
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_header_compiler=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15615 echo "${ECHO_T}$ac_header_compiler" >&6; }
15617 # Is the header present?
15618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <$ac_header>
15627 _ACEOF
15628 if { (ac_try="$ac_cpp conftest.$ac_ext"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } >/dev/null && {
15641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 }; then
15644 ac_header_preproc=yes
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_header_preproc=no
15652 rm -f conftest.err conftest.$ac_ext
15653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15654 echo "${ECHO_T}$ac_header_preproc" >&6; }
15656 # So? What about this header?
15657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15658 yes:no: )
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15663 ac_header_preproc=yes
15665 no:yes:* )
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15680 esac
15681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686 eval "$as_ac_Header=\$ac_header_preproc"
15688 ac_res=`eval echo '${'$as_ac_Header'}'`
15689 { echo "$as_me:$LINENO: result: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15696 _ACEOF
15700 done
15710 for ac_func in $ac_func_list
15712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15726 #define $ac_func innocuous_$ac_func
15728 /* System header to define __stub macros and hopefully few prototypes,
15729 which can conflict with char $ac_func (); below.
15730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15731 <limits.h> exists even on freestanding compilers. */
15733 #ifdef __STDC__
15734 # include <limits.h>
15735 #else
15736 # include <assert.h>
15737 #endif
15739 #undef $ac_func
15741 /* Override any GCC internal prototype to avoid an error.
15742 Use char because int might match the return type of a GCC
15743 builtin and then its argument prototype would still apply. */
15744 #ifdef __cplusplus
15745 extern "C"
15746 #endif
15747 char $ac_func ();
15748 /* The GNU C library defines this for functions which it implements
15749 to always fail with ENOSYS. Some functions are actually named
15750 something starting with __ and the normal name is an alias. */
15751 #if defined __stub_$ac_func || defined __stub___$ac_func
15752 choke me
15753 #endif
15756 main ()
15758 return $ac_func ();
15760 return 0;
15762 _ACEOF
15763 rm -f conftest.$ac_objext conftest$ac_exeext
15764 if { (ac_try="$ac_link"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_link") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest$ac_exeext &&
15780 $as_test_x conftest$ac_exeext; then
15781 eval "$as_ac_var=yes"
15782 else
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 eval "$as_ac_var=no"
15789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15790 conftest$ac_exeext conftest.$ac_ext
15792 ac_res=`eval echo '${'$as_ac_var'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15795 if test `eval echo '${'$as_ac_var'}'` = yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15798 _ACEOF
15801 done
15819 { echo "$as_me:$LINENO: checking for working mktime" >&5
15820 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15821 if test "${ac_cv_func_working_mktime+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824 if test "$cross_compiling" = yes; then
15825 ac_cv_func_working_mktime=no
15826 else
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Test program from Paul Eggert and Tony Leneis. */
15834 #ifdef TIME_WITH_SYS_TIME
15835 # include <sys/time.h>
15836 # include <time.h>
15837 #else
15838 # ifdef HAVE_SYS_TIME_H
15839 # include <sys/time.h>
15840 # else
15841 # include <time.h>
15842 # endif
15843 #endif
15845 #include <stdlib.h>
15847 #ifdef HAVE_UNISTD_H
15848 # include <unistd.h>
15849 #endif
15851 #ifndef HAVE_ALARM
15852 # define alarm(X) /* empty */
15853 #endif
15855 /* Work around redefinition to rpl_putenv by other config tests. */
15856 #undef putenv
15858 static time_t time_t_max;
15859 static time_t time_t_min;
15861 /* Values we'll use to set the TZ environment variable. */
15862 static char *tz_strings[] = {
15863 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15864 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15866 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15868 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15869 Based on a problem report from Andreas Jaeger. */
15870 static int
15871 spring_forward_gap ()
15873 /* glibc (up to about 1998-10-07) failed this test. */
15874 struct tm tm;
15876 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15877 instead of "TZ=America/Vancouver" in order to detect the bug even
15878 on systems that don't support the Olson extension, or don't have the
15879 full zoneinfo tables installed. */
15880 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15882 tm.tm_year = 98;
15883 tm.tm_mon = 3;
15884 tm.tm_mday = 5;
15885 tm.tm_hour = 2;
15886 tm.tm_min = 0;
15887 tm.tm_sec = 0;
15888 tm.tm_isdst = -1;
15889 return mktime (&tm) != (time_t) -1;
15892 static int
15893 mktime_test1 (now)
15894 time_t now;
15896 struct tm *lt;
15897 return ! (lt = localtime (&now)) || mktime (lt) == now;
15900 static int
15901 mktime_test (now)
15902 time_t now;
15904 return (mktime_test1 (now)
15905 && mktime_test1 ((time_t) (time_t_max - now))
15906 && mktime_test1 ((time_t) (time_t_min + now)));
15909 static int
15910 irix_6_4_bug ()
15912 /* Based on code from Ariel Faigon. */
15913 struct tm tm;
15914 tm.tm_year = 96;
15915 tm.tm_mon = 3;
15916 tm.tm_mday = 0;
15917 tm.tm_hour = 0;
15918 tm.tm_min = 0;
15919 tm.tm_sec = 0;
15920 tm.tm_isdst = -1;
15921 mktime (&tm);
15922 return tm.tm_mon == 2 && tm.tm_mday == 31;
15925 static int
15926 bigtime_test (j)
15927 int j;
15929 struct tm tm;
15930 time_t now;
15931 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15932 now = mktime (&tm);
15933 if (now != (time_t) -1)
15935 struct tm *lt = localtime (&now);
15936 if (! (lt
15937 && lt->tm_year == tm.tm_year
15938 && lt->tm_mon == tm.tm_mon
15939 && lt->tm_mday == tm.tm_mday
15940 && lt->tm_hour == tm.tm_hour
15941 && lt->tm_min == tm.tm_min
15942 && lt->tm_sec == tm.tm_sec
15943 && lt->tm_yday == tm.tm_yday
15944 && lt->tm_wday == tm.tm_wday
15945 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15946 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15947 return 0;
15949 return 1;
15952 static int
15953 year_2050_test ()
15955 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15956 ignoring leap seconds. */
15957 unsigned long int answer = 2527315200UL;
15959 struct tm tm;
15960 time_t t;
15961 tm.tm_year = 2050 - 1900;
15962 tm.tm_mon = 2 - 1;
15963 tm.tm_mday = 1;
15964 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15965 tm.tm_isdst = -1;
15967 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15968 instead of "TZ=America/Vancouver" in order to detect the bug even
15969 on systems that don't support the Olson extension, or don't have the
15970 full zoneinfo tables installed. */
15971 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15973 t = mktime (&tm);
15975 /* Check that the result is either a failure, or close enough
15976 to the correct answer that we can assume the discrepancy is
15977 due to leap seconds. */
15978 return (t == (time_t) -1
15979 || (0 < t && answer - 120 <= t && t <= answer + 120));
15983 main ()
15985 time_t t, delta;
15986 int i, j;
15988 /* This test makes some buggy mktime implementations loop.
15989 Give up after 60 seconds; a mktime slower than that
15990 isn't worth using anyway. */
15991 alarm (60);
15993 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15994 continue;
15995 time_t_max--;
15996 if ((time_t) -1 < 0)
15997 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15998 continue;
15999 delta = time_t_max / 997; /* a suitable prime number */
16000 for (i = 0; i < N_STRINGS; i++)
16002 if (tz_strings[i])
16003 putenv (tz_strings[i]);
16005 for (t = 0; t <= time_t_max - delta; t += delta)
16006 if (! mktime_test (t))
16007 return 1;
16008 if (! (mktime_test ((time_t) 1)
16009 && mktime_test ((time_t) (60 * 60))
16010 && mktime_test ((time_t) (60 * 60 * 24))))
16011 return 1;
16013 for (j = 1; 0 < j; j *= 2)
16014 if (! bigtime_test (j))
16015 return 1;
16016 if (! bigtime_test (j - 1))
16017 return 1;
16019 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16021 _ACEOF
16022 rm -f conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_link") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_cv_func_working_mktime=yes
16043 else
16044 echo "$as_me: program exited with status $ac_status" >&5
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ( exit $ac_status )
16049 ac_cv_func_working_mktime=no
16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16057 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16058 if test $ac_cv_func_working_mktime = no; then
16059 case " $LIBOBJS " in
16060 *" mktime.$ac_objext "* ) ;;
16061 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16063 esac
16067 if test "$ac_cv_func_working_mktime" = no; then
16069 cat >>confdefs.h <<\_ACEOF
16070 #define BROKEN_MKTIME 1
16071 _ACEOF
16075 ac_have_func=no # yes means we've found a way to get the load average.
16077 # Make sure getloadavg.c is where it belongs, at configure-time.
16078 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16079 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16080 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16081 { (exit 1); exit 1; }; }
16083 ac_save_LIBS=$LIBS
16085 # Check for getloadavg, but be sure not to touch the cache variable.
16086 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16087 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16088 if test "${ac_cv_func_getloadavg+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099 #define getloadavg innocuous_getloadavg
16101 /* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char getloadavg (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16106 #ifdef __STDC__
16107 # include <limits.h>
16108 #else
16109 # include <assert.h>
16110 #endif
16112 #undef getloadavg
16114 /* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
16117 #ifdef __cplusplus
16118 extern "C"
16119 #endif
16120 char getloadavg ();
16121 /* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124 #if defined __stub_getloadavg || defined __stub___getloadavg
16125 choke me
16126 #endif
16129 main ()
16131 return getloadavg ();
16133 return 0;
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>conftest.er1
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } && {
16150 test -z "$ac_c_werror_flag" ||
16151 test ! -s conftest.err
16152 } && test -s conftest$ac_exeext &&
16153 $as_test_x conftest$ac_exeext; then
16154 ac_cv_func_getloadavg=yes
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_func_getloadavg=no
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163 conftest$ac_exeext conftest.$ac_ext
16165 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16166 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16167 if test $ac_cv_func_getloadavg = yes; then
16168 exit 0
16169 else
16170 exit 1
16172 ) && ac_have_func=yes
16174 # On HPUX9, an unprivileged user can get load averages through this function.
16176 for ac_func in pstat_getdynamic
16178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16199 #ifdef __STDC__
16200 # include <limits.h>
16201 #else
16202 # include <assert.h>
16203 #endif
16205 #undef $ac_func
16207 /* Override any GCC internal prototype to avoid an error.
16208 Use char because int might match the return type of a GCC
16209 builtin and then its argument prototype would still apply. */
16210 #ifdef __cplusplus
16211 extern "C"
16212 #endif
16213 char $ac_func ();
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined __stub_$ac_func || defined __stub___$ac_func
16218 choke me
16219 #endif
16222 main ()
16224 return $ac_func ();
16226 return 0;
16228 _ACEOF
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_link") 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest$ac_exeext &&
16246 $as_test_x conftest$ac_exeext; then
16247 eval "$as_ac_var=yes"
16248 else
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 eval "$as_ac_var=no"
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256 conftest$ac_exeext conftest.$ac_ext
16258 ac_res=`eval echo '${'$as_ac_var'}'`
16259 { echo "$as_me:$LINENO: result: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 _ACEOF
16267 done
16270 # Solaris has libkstat which does not require root.
16272 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16273 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16274 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277 ac_check_lib_save_LIBS=$LIBS
16278 LIBS="-lkstat $LIBS"
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16286 /* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 char kstat_open ();
16294 main ()
16296 return kstat_open ();
16298 return 0;
16300 _ACEOF
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (ac_try="$ac_link"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_link") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest$ac_exeext &&
16318 $as_test_x conftest$ac_exeext; then
16319 ac_cv_lib_kstat_kstat_open=yes
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_cv_lib_kstat_kstat_open=no
16327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16328 conftest$ac_exeext conftest.$ac_ext
16329 LIBS=$ac_check_lib_save_LIBS
16331 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16332 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16333 if test $ac_cv_lib_kstat_kstat_open = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_LIBKSTAT 1
16336 _ACEOF
16338 LIBS="-lkstat $LIBS"
16342 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16344 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16345 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16346 # to get the right answer into the cache.
16347 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16348 if test $ac_have_func = no; then
16349 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16350 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16351 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 ac_check_lib_save_LIBS=$LIBS
16355 LIBS="-lelf $LIBS"
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 /* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16366 #ifdef __cplusplus
16367 extern "C"
16368 #endif
16369 char elf_begin ();
16371 main ()
16373 return elf_begin ();
16375 return 0;
16377 _ACEOF
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (ac_try="$ac_link"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_link") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest$ac_exeext &&
16395 $as_test_x conftest$ac_exeext; then
16396 ac_cv_lib_elf_elf_begin=yes
16397 else
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_cv_lib_elf_elf_begin=no
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16409 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16410 if test $ac_cv_lib_elf_elf_begin = yes; then
16411 LIBS="-lelf $LIBS"
16415 if test $ac_have_func = no; then
16416 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16417 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16418 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421 ac_check_lib_save_LIBS=$LIBS
16422 LIBS="-lkvm $LIBS"
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16433 #ifdef __cplusplus
16434 extern "C"
16435 #endif
16436 char kvm_open ();
16438 main ()
16440 return kvm_open ();
16442 return 0;
16444 _ACEOF
16445 rm -f conftest.$ac_objext conftest$ac_exeext
16446 if { (ac_try="$ac_link"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_link") 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest$ac_exeext &&
16462 $as_test_x conftest$ac_exeext; then
16463 ac_cv_lib_kvm_kvm_open=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_cv_lib_kvm_kvm_open=no
16471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16472 conftest$ac_exeext conftest.$ac_ext
16473 LIBS=$ac_check_lib_save_LIBS
16475 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16476 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16477 if test $ac_cv_lib_kvm_kvm_open = yes; then
16478 LIBS="-lkvm $LIBS"
16481 # Check for the 4.4BSD definition of getloadavg.
16482 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16483 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487 ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-lutil $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char getloadavg ();
16504 main ()
16506 return getloadavg ();
16508 return 0;
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_lib_util_getloadavg=yes
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_lib_util_getloadavg=no
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16539 LIBS=$ac_check_lib_save_LIBS
16541 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16542 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16543 if test $ac_cv_lib_util_getloadavg = yes; then
16544 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16549 if test $ac_have_func = no; then
16550 # There is a commonly available library for RS/6000 AIX.
16551 # Since it is not a standard part of AIX, it might be installed locally.
16552 ac_getloadavg_LIBS=$LIBS
16553 LIBS="-L/usr/local/lib $LIBS"
16554 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16555 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16556 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559 ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lgetloadavg $LIBS"
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 char getloadavg ();
16576 main ()
16578 return getloadavg ();
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_link") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest$ac_exeext &&
16600 $as_test_x conftest$ac_exeext; then
16601 ac_cv_lib_getloadavg_getloadavg=yes
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_cv_lib_getloadavg_getloadavg=no
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16611 LIBS=$ac_check_lib_save_LIBS
16613 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16614 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16615 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16616 LIBS="-lgetloadavg $LIBS"
16617 else
16618 LIBS=$ac_getloadavg_LIBS
16623 # Make sure it is really in the library, if we think we found it,
16624 # otherwise set up the replacement function.
16626 for ac_func in getloadavg
16628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642 #define $ac_func innocuous_$ac_func
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
16649 #ifdef __STDC__
16650 # include <limits.h>
16651 #else
16652 # include <assert.h>
16653 #endif
16655 #undef $ac_func
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char $ac_func ();
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16668 choke me
16669 #endif
16672 main ()
16674 return $ac_func ();
16676 return 0;
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext &&
16696 $as_test_x conftest$ac_exeext; then
16697 eval "$as_ac_var=yes"
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 eval "$as_ac_var=no"
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709 { echo "$as_me:$LINENO: result: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16716 else
16717 case " $LIBOBJS " in
16718 *" getloadavg.$ac_objext "* ) ;;
16719 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16721 esac
16724 cat >>confdefs.h <<\_ACEOF
16725 #define C_GETLOADAVG 1
16726 _ACEOF
16728 # Figure out what our getloadavg.c needs.
16729 ac_have_func=no
16730 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16731 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16732 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16733 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16737 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16738 else
16739 # Is the header compilable?
16740 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16741 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h. */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 $ac_includes_default
16749 #include <sys/dg_sys_info.h>
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_compile") 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } && {
16765 test -z "$ac_c_werror_flag" ||
16766 test ! -s conftest.err
16767 } && test -s conftest.$ac_objext; then
16768 ac_header_compiler=yes
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_header_compiler=no
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16778 echo "${ECHO_T}$ac_header_compiler" >&6; }
16780 # Is the header present?
16781 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16782 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 #include <sys/dg_sys_info.h>
16790 _ACEOF
16791 if { (ac_try="$ac_cpp conftest.$ac_ext"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } >/dev/null && {
16804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16805 test ! -s conftest.err
16806 }; then
16807 ac_header_preproc=yes
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_header_preproc=no
16815 rm -f conftest.err conftest.$ac_ext
16816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16817 echo "${ECHO_T}$ac_header_preproc" >&6; }
16819 # So? What about this header?
16820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16821 yes:no: )
16822 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16823 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16826 ac_header_preproc=yes
16828 no:yes:* )
16829 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16830 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16832 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16834 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16836 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16837 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16838 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16839 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16840 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16843 esac
16844 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16845 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16846 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16851 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16852 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16855 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16856 ac_have_func=yes
16858 cat >>confdefs.h <<\_ACEOF
16859 #define DGUX 1
16860 _ACEOF
16863 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16864 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868 ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-ldgc $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16880 #ifdef __cplusplus
16881 extern "C"
16882 #endif
16883 char dg_sys_info ();
16885 main ()
16887 return dg_sys_info ();
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest$ac_exeext &&
16909 $as_test_x conftest$ac_exeext; then
16910 ac_cv_lib_dgc_dg_sys_info=yes
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_cv_lib_dgc_dg_sys_info=no
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16923 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16924 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_LIBDGC 1
16927 _ACEOF
16929 LIBS="-ldgc $LIBS"
16937 if test "${ac_cv_header_locale_h+set}" = set; then
16938 { echo "$as_me:$LINENO: checking for locale.h" >&5
16939 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16940 if test "${ac_cv_header_locale_h+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16944 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16945 else
16946 # Is the header compilable?
16947 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16948 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16949 cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h. */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 $ac_includes_default
16956 #include <locale.h>
16957 _ACEOF
16958 rm -f conftest.$ac_objext
16959 if { (ac_try="$ac_compile"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_compile") 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest.$ac_objext; then
16975 ac_header_compiler=yes
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_header_compiler=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16985 echo "${ECHO_T}$ac_header_compiler" >&6; }
16987 # Is the header present?
16988 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16989 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <locale.h>
16997 _ACEOF
16998 if { (ac_try="$ac_cpp conftest.$ac_ext"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } >/dev/null && {
17011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17012 test ! -s conftest.err
17013 }; then
17014 ac_header_preproc=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_preproc=no
17022 rm -f conftest.err conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17024 echo "${ECHO_T}$ac_header_preproc" >&6; }
17026 # So? What about this header?
17027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17028 yes:no: )
17029 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17030 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17032 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17033 ac_header_preproc=yes
17035 no:yes:* )
17036 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17037 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17039 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17040 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17041 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17043 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17045 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17046 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17047 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17050 esac
17051 { echo "$as_me:$LINENO: checking for locale.h" >&5
17052 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17053 if test "${ac_cv_header_locale_h+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 ac_cv_header_locale_h=$ac_header_preproc
17058 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17059 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17065 for ac_func in setlocale
17067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17088 #ifdef __STDC__
17089 # include <limits.h>
17090 #else
17091 # include <assert.h>
17092 #endif
17094 #undef $ac_func
17096 /* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply. */
17099 #ifdef __cplusplus
17100 extern "C"
17101 #endif
17102 char $ac_func ();
17103 /* The GNU C library defines this for functions which it implements
17104 to always fail with ENOSYS. Some functions are actually named
17105 something starting with __ and the normal name is an alias. */
17106 #if defined __stub_$ac_func || defined __stub___$ac_func
17107 choke me
17108 #endif
17111 main ()
17113 return $ac_func ();
17115 return 0;
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest$ac_exeext &&
17135 $as_test_x conftest$ac_exeext; then
17136 eval "$as_ac_var=yes"
17137 else
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 eval "$as_ac_var=no"
17144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17145 conftest$ac_exeext conftest.$ac_ext
17147 ac_res=`eval echo '${'$as_ac_var'}'`
17148 { echo "$as_me:$LINENO: result: $ac_res" >&5
17149 echo "${ECHO_T}$ac_res" >&6; }
17150 if test `eval echo '${'$as_ac_var'}'` = yes; then
17151 cat >>confdefs.h <<_ACEOF
17152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 _ACEOF
17156 done
17159 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17160 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17161 # Irix 4.0.5F has the header but not the library.
17162 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17163 ac_have_func=yes
17165 cat >>confdefs.h <<\_ACEOF
17166 #define SVR4 1
17167 _ACEOF
17171 if test $ac_have_func = no; then
17172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17173 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17174 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17175 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17180 else
17181 # Is the header compilable?
17182 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17183 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 #include <inq_stats/cpustats.h>
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (ac_try="$ac_compile"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_compile") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest.$ac_objext; then
17210 ac_header_compiler=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_header_compiler=no
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17220 echo "${ECHO_T}$ac_header_compiler" >&6; }
17222 # Is the header present?
17223 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17224 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <inq_stats/cpustats.h>
17232 _ACEOF
17233 if { (ac_try="$ac_cpp conftest.$ac_ext"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } >/dev/null && {
17246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 }; then
17249 ac_header_preproc=yes
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 ac_header_preproc=no
17257 rm -f conftest.err conftest.$ac_ext
17258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17259 echo "${ECHO_T}$ac_header_preproc" >&6; }
17261 # So? What about this header?
17262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17263 yes:no: )
17264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17265 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17267 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17268 ac_header_preproc=yes
17270 no:yes:* )
17271 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17272 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17273 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17274 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17276 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17278 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17279 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17280 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17281 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17282 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17285 esac
17286 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17287 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17288 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17293 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17294 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17297 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17298 ac_have_func=yes
17300 cat >>confdefs.h <<\_ACEOF
17301 #define UMAX 1
17302 _ACEOF
17305 cat >>confdefs.h <<\_ACEOF
17306 #define UMAX4_3 1
17307 _ACEOF
17314 if test $ac_have_func = no; then
17315 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17316 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17317 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17318 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17322 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17323 else
17324 # Is the header compilable?
17325 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17326 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17334 #include <sys/cpustats.h>
17335 _ACEOF
17336 rm -f conftest.$ac_objext
17337 if { (ac_try="$ac_compile"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17341 esac
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_compile") 2>conftest.er1
17344 ac_status=$?
17345 grep -v '^ *+' conftest.er1 >conftest.err
17346 rm -f conftest.er1
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest.$ac_objext; then
17353 ac_header_compiler=yes
17354 else
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_header_compiler=no
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17363 echo "${ECHO_T}$ac_header_compiler" >&6; }
17365 # Is the header present?
17366 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17367 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <sys/cpustats.h>
17375 _ACEOF
17376 if { (ac_try="$ac_cpp conftest.$ac_ext"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17383 ac_status=$?
17384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } >/dev/null && {
17389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17390 test ! -s conftest.err
17391 }; then
17392 ac_header_preproc=yes
17393 else
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_header_preproc=no
17400 rm -f conftest.err conftest.$ac_ext
17401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17402 echo "${ECHO_T}$ac_header_preproc" >&6; }
17404 # So? What about this header?
17405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17406 yes:no: )
17407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17408 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17410 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17411 ac_header_preproc=yes
17413 no:yes:* )
17414 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17415 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17416 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17417 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17419 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17420 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17421 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17422 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17425 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17428 esac
17429 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17430 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17431 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17436 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17437 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17440 if test $ac_cv_header_sys_cpustats_h = yes; then
17441 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17442 #define UMAX 1
17443 _ACEOF
17450 if test $ac_have_func = no; then
17452 for ac_header in mach/mach.h
17454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_res=`eval echo '${'$as_ac_Header'}'`
17462 { echo "$as_me:$LINENO: result: $ac_res" >&5
17463 echo "${ECHO_T}$ac_res" >&6; }
17464 else
17465 # Is the header compilable?
17466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h. */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 $ac_includes_default
17475 #include <$ac_header>
17476 _ACEOF
17477 rm -f conftest.$ac_objext
17478 if { (ac_try="$ac_compile"
17479 case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_compile") 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } && {
17491 test -z "$ac_c_werror_flag" ||
17492 test ! -s conftest.err
17493 } && test -s conftest.$ac_objext; then
17494 ac_header_compiler=yes
17495 else
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 ac_header_compiler=no
17502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17504 echo "${ECHO_T}$ac_header_compiler" >&6; }
17506 # Is the header present?
17507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17509 cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h. */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 #include <$ac_header>
17516 _ACEOF
17517 if { (ac_try="$ac_cpp conftest.$ac_ext"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } >/dev/null && {
17530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 }; then
17533 ac_header_preproc=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_header_preproc=no
17541 rm -f conftest.err conftest.$ac_ext
17542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17543 echo "${ECHO_T}$ac_header_preproc" >&6; }
17545 # So? What about this header?
17546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17547 yes:no: )
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17552 ac_header_preproc=yes
17554 no:yes:* )
17555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17569 esac
17570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575 eval "$as_ac_Header=\$ac_header_preproc"
17577 ac_res=`eval echo '${'$as_ac_Header'}'`
17578 { echo "$as_me:$LINENO: result: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17585 _ACEOF
17589 done
17594 for ac_header in nlist.h
17596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 ac_res=`eval echo '${'$as_ac_Header'}'`
17604 { echo "$as_me:$LINENO: result: $ac_res" >&5
17605 echo "${ECHO_T}$ac_res" >&6; }
17606 else
17607 # Is the header compilable?
17608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 #include <$ac_header>
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
17636 ac_header_compiler=yes
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_header_compiler=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17646 echo "${ECHO_T}$ac_header_compiler" >&6; }
17648 # Is the header present?
17649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 #include <$ac_header>
17658 _ACEOF
17659 if { (ac_try="$ac_cpp conftest.$ac_ext"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } >/dev/null && {
17672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 }; then
17675 ac_header_preproc=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_header_preproc=no
17683 rm -f conftest.err conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17685 echo "${ECHO_T}$ac_header_preproc" >&6; }
17687 # So? What about this header?
17688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17689 yes:no: )
17690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17694 ac_header_preproc=yes
17696 no:yes:* )
17697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17711 esac
17712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 eval "$as_ac_Header=\$ac_header_preproc"
17719 ac_res=`eval echo '${'$as_ac_Header'}'`
17720 { echo "$as_me:$LINENO: result: $ac_res" >&5
17721 echo "${ECHO_T}$ac_res" >&6; }
17724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17727 _ACEOF
17728 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17729 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17730 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h. */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 #include <nlist.h>
17742 main ()
17744 static struct nlist ac_aggr;
17745 if (ac_aggr.n_un.n_name)
17746 return 0;
17748 return 0;
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17768 ac_cv_member_struct_nlist_n_un_n_name=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include <nlist.h>
17782 main ()
17784 static struct nlist ac_aggr;
17785 if (sizeof ac_aggr.n_un.n_name)
17786 return 0;
17788 return 0;
17790 _ACEOF
17791 rm -f conftest.$ac_objext
17792 if { (ac_try="$ac_compile"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_compile") 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest.$ac_objext; then
17808 ac_cv_member_struct_nlist_n_un_n_name=yes
17809 else
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_cv_member_struct_nlist_n_un_n_name=no
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17822 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17823 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17827 _ACEOF
17830 cat >>confdefs.h <<\_ACEOF
17831 #define NLIST_NAME_UNION 1
17832 _ACEOF
17839 done
17842 done
17845 # Some definitions of getloadavg require that the program be installed setgid.
17846 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17847 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17848 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17858 #ifdef LDAV_PRIVILEGED
17859 Yowza Am I SETGID yet
17860 #endif
17861 _ACEOF
17862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17863 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17864 ac_cv_func_getloadavg_setgid=yes
17865 else
17866 ac_cv_func_getloadavg_setgid=no
17868 rm -f conftest*
17871 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17873 if test $ac_cv_func_getloadavg_setgid = yes; then
17874 NEED_SETGID=true
17876 cat >>confdefs.h <<\_ACEOF
17877 #define GETLOADAVG_PRIVILEGED 1
17878 _ACEOF
17880 else
17881 NEED_SETGID=false
17884 if test $ac_cv_func_getloadavg_setgid = yes; then
17885 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17886 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17887 if test "${ac_cv_group_kmem+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17891 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17892 # If we got an error (system does not support symlinks), try without -L.
17893 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17894 ac_cv_group_kmem=`echo $ac_ls_output \
17895 | sed -ne 's/[ ][ ]*/ /g;
17896 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17897 / /s/.* //;p;'`
17900 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17901 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17902 KMEM_GROUP=$ac_cv_group_kmem
17904 if test "x$ac_save_LIBS" = x; then
17905 GETLOADAVG_LIBS=$LIBS
17906 else
17907 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17909 LIBS=$ac_save_LIBS
17913 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17914 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17915 if test "${ac_cv_sys_largefile_source+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 while :; do
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 #include <stdio.h>
17927 main ()
17929 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17931 return 0;
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext &&
17951 $as_test_x conftest$ac_exeext; then
17952 ac_cv_sys_largefile_source=no; break
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17961 conftest$ac_exeext conftest.$ac_ext
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h. */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 #define _LARGEFILE_SOURCE 1
17969 #include <stdio.h>
17971 main ()
17973 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17975 return 0;
17977 _ACEOF
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest$ac_exeext &&
17995 $as_test_x conftest$ac_exeext; then
17996 ac_cv_sys_largefile_source=1; break
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18005 conftest$ac_exeext conftest.$ac_ext
18006 ac_cv_sys_largefile_source=unknown
18007 break
18008 done
18010 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18011 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18012 case $ac_cv_sys_largefile_source in #(
18013 no | unknown) ;;
18015 cat >>confdefs.h <<_ACEOF
18016 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18017 _ACEOF
18019 esac
18020 rm -f conftest*
18022 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18023 # in glibc 2.1.3, but that breaks too many other things.
18024 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18025 if test $ac_cv_sys_largefile_source != unknown; then
18027 cat >>confdefs.h <<\_ACEOF
18028 #define HAVE_FSEEKO 1
18029 _ACEOF
18034 # Configure getopt.
18035 # getopt.m4 serial 10
18037 # The getopt module assume you want GNU getopt, with getopt_long etc,
18038 # rather than vanilla POSIX getopt. This means your your code should
18039 # always include <getopt.h> for the getopt prototypes.
18051 # Prerequisites of lib/getopt*.
18056 GETOPT_H=
18058 for ac_header in getopt.h
18060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 ac_res=`eval echo '${'$as_ac_Header'}'`
18068 { echo "$as_me:$LINENO: result: $ac_res" >&5
18069 echo "${ECHO_T}$ac_res" >&6; }
18070 else
18071 # Is the header compilable?
18072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h. */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 $ac_includes_default
18081 #include <$ac_header>
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_header_compiler=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_header_compiler=no
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18110 echo "${ECHO_T}$ac_header_compiler" >&6; }
18112 # Is the header present?
18113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <$ac_header>
18122 _ACEOF
18123 if { (ac_try="$ac_cpp conftest.$ac_ext"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } >/dev/null && {
18136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 }; then
18139 ac_header_preproc=yes
18140 else
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_header_preproc=no
18147 rm -f conftest.err conftest.$ac_ext
18148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18149 echo "${ECHO_T}$ac_header_preproc" >&6; }
18151 # So? What about this header?
18152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18153 yes:no: )
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18158 ac_header_preproc=yes
18160 no:yes:* )
18161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18175 esac
18176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 eval "$as_ac_Header=\$ac_header_preproc"
18183 ac_res=`eval echo '${'$as_ac_Header'}'`
18184 { echo "$as_me:$LINENO: result: $ac_res" >&5
18185 echo "${ECHO_T}$ac_res" >&6; }
18188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18189 cat >>confdefs.h <<_ACEOF
18190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18191 _ACEOF
18193 else
18194 GETOPT_H=getopt.h
18197 done
18199 if test -z "$GETOPT_H"; then
18201 for ac_func in getopt_long_only
18203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18224 #ifdef __STDC__
18225 # include <limits.h>
18226 #else
18227 # include <assert.h>
18228 #endif
18230 #undef $ac_func
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char $ac_func ();
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18243 choke me
18244 #endif
18247 main ()
18249 return $ac_func ();
18251 return 0;
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_link") 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && {
18268 test -z "$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 } && test -s conftest$ac_exeext &&
18271 $as_test_x conftest$ac_exeext; then
18272 eval "$as_ac_var=yes"
18273 else
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 eval "$as_ac_var=no"
18280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18281 conftest$ac_exeext conftest.$ac_ext
18283 ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result: $ac_res" >&5
18285 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 _ACEOF
18291 else
18292 GETOPT_H=getopt.h
18294 done
18298 if test -z "$GETOPT_H"; then
18299 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18300 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18301 if test "${ac_cv_have_decl_optreset+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <getopt.h>
18313 main ()
18315 #ifndef optreset
18316 (void) optreset;
18317 #endif
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (ac_try="$ac_compile"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_compile") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest.$ac_objext; then
18340 ac_cv_have_decl_optreset=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_have_decl_optreset=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18351 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18352 if test $ac_cv_have_decl_optreset = yes; then
18353 GETOPT_H=getopt.h
18358 if test -z "$GETOPT_H"; then
18359 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18360 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18361 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364 if test "$cross_compiling" = yes; then
18365 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18366 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18367 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 #include <getopt.h>
18379 main ()
18381 #ifndef getopt_clip
18382 (void) getopt_clip;
18383 #endif
18386 return 0;
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (ac_try="$ac_compile"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394 esac
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_compile") 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest.$ac_objext; then
18406 ac_cv_have_decl_getopt_clip=yes
18407 else
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_cv_have_decl_getopt_clip=no
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18417 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18418 if test $ac_cv_have_decl_getopt_clip = yes; then
18419 gl_cv_func_gnu_getopt=no
18420 else
18421 gl_cv_func_gnu_getopt=yes
18424 else
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <getopt.h>
18433 main ()
18436 char *myargv[3];
18437 myargv[0] = "conftest";
18438 myargv[1] = "-+";
18439 myargv[2] = 0;
18440 return getopt (2, myargv, "+a") != '?';
18443 return 0;
18445 _ACEOF
18446 rm -f conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 gl_cv_func_gnu_getopt=yes
18467 else
18468 echo "$as_me: program exited with status $ac_status" >&5
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ( exit $ac_status )
18473 gl_cv_func_gnu_getopt=no
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18480 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18481 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18482 if test "$gl_cv_func_gnu_getopt" = "no"; then
18483 GETOPT_H=getopt.h
18489 if test -n "$GETOPT_H"; then
18492 GETOPT_H=getopt.h
18494 cat >>confdefs.h <<\_ACEOF
18495 #define __GETOPT_PREFIX rpl_
18496 _ACEOF
18501 GETOPTOBJS='getopt.o getopt1.o'
18508 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18509 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18510 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513 # Use it with a single arg.
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 $ac_includes_default
18522 main ()
18524 getpgrp (0);
18526 return 0;
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest.$ac_objext; then
18546 ac_cv_func_getpgrp_void=no
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_func_getpgrp_void=yes
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18558 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18559 if test $ac_cv_func_getpgrp_void = yes; then
18561 cat >>confdefs.h <<\_ACEOF
18562 #define GETPGRP_VOID 1
18563 _ACEOF
18569 for ac_func in strftime
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18592 #ifdef __STDC__
18593 # include <limits.h>
18594 #else
18595 # include <assert.h>
18596 #endif
18598 #undef $ac_func
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char $ac_func ();
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18611 choke me
18612 #endif
18615 main ()
18617 return $ac_func ();
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest$ac_exeext &&
18639 $as_test_x conftest$ac_exeext; then
18640 eval "$as_ac_var=yes"
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 eval "$as_ac_var=no"
18648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18649 conftest$ac_exeext conftest.$ac_ext
18651 ac_res=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18657 _ACEOF
18659 else
18660 # strftime is in -lintl on SCO UNIX.
18661 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18662 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18663 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lintl $LIBS"
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 /* Override any GCC internal prototype to avoid an error.
18676 Use char because int might match the return type of a GCC
18677 builtin and then its argument prototype would still apply. */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 char strftime ();
18683 main ()
18685 return strftime ();
18687 return 0;
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest$ac_exeext &&
18707 $as_test_x conftest$ac_exeext; then
18708 ac_cv_lib_intl_strftime=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_intl_strftime=no
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18721 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18722 if test $ac_cv_lib_intl_strftime = yes; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_STRFTIME 1
18725 _ACEOF
18727 LIBS="-lintl $LIBS"
18731 done
18734 # UNIX98 PTYs.
18736 for ac_func in grantpt
18738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h. */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func (); below.
18756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757 <limits.h> exists even on freestanding compilers. */
18759 #ifdef __STDC__
18760 # include <limits.h>
18761 #else
18762 # include <assert.h>
18763 #endif
18765 #undef $ac_func
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18770 #ifdef __cplusplus
18771 extern "C"
18772 #endif
18773 char $ac_func ();
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18778 choke me
18779 #endif
18782 main ()
18784 return $ac_func ();
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest$ac_exeext &&
18806 $as_test_x conftest$ac_exeext; then
18807 eval "$as_ac_var=yes"
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 eval "$as_ac_var=no"
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 ac_res=`eval echo '${'$as_ac_var'}'`
18819 { echo "$as_me:$LINENO: result: $ac_res" >&5
18820 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_var'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18824 _ACEOF
18827 done
18830 # PTY-related GNU extensions.
18832 for ac_func in getpt
18834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18848 #define $ac_func innocuous_$ac_func
18850 /* System header to define __stub macros and hopefully few prototypes,
18851 which can conflict with char $ac_func (); below.
18852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18853 <limits.h> exists even on freestanding compilers. */
18855 #ifdef __STDC__
18856 # include <limits.h>
18857 #else
18858 # include <assert.h>
18859 #endif
18861 #undef $ac_func
18863 /* Override any GCC internal prototype to avoid an error.
18864 Use char because int might match the return type of a GCC
18865 builtin and then its argument prototype would still apply. */
18866 #ifdef __cplusplus
18867 extern "C"
18868 #endif
18869 char $ac_func ();
18870 /* The GNU C library defines this for functions which it implements
18871 to always fail with ENOSYS. Some functions are actually named
18872 something starting with __ and the normal name is an alias. */
18873 #if defined __stub_$ac_func || defined __stub___$ac_func
18874 choke me
18875 #endif
18878 main ()
18880 return $ac_func ();
18882 return 0;
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18903 eval "$as_ac_var=yes"
18904 else
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 eval "$as_ac_var=no"
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912 conftest$ac_exeext conftest.$ac_ext
18914 ac_res=`eval echo '${'$as_ac_var'}'`
18915 { echo "$as_me:$LINENO: result: $ac_res" >&5
18916 echo "${ECHO_T}$ac_res" >&6; }
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18920 _ACEOF
18923 done
18926 # Check this now, so that we will NOT find the above functions in ncurses.
18927 # That is because we have not set up to link ncurses in lib-src.
18928 # It's better to believe a function is not available
18929 # than to expect to find it in ncurses.
18931 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18932 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936 ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lncurses $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h. */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char tparm ();
18953 main ()
18955 return tparm ();
18957 return 0;
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18968 ac_status=$?
18969 grep -v '^ *+' conftest.er1 >conftest.err
18970 rm -f conftest.er1
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_lib_ncurses_tparm=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_lib_ncurses_tparm=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18990 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18991 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18992 if test $ac_cv_lib_ncurses_tparm = yes; then
18993 cat >>confdefs.h <<_ACEOF
18994 #define HAVE_LIBNCURSES 1
18995 _ACEOF
18997 LIBS="-lncurses $LIBS"
19002 # Do we need the Hesiod library to provide the support routines?
19003 if test "$with_hesiod" = yes ; then
19004 # Don't set $LIBS here -- see comments above.
19005 resolv=no
19006 { echo "$as_me:$LINENO: checking for res_send" >&5
19007 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19008 if test "${ac_cv_func_res_send+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h. */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19019 #define res_send innocuous_res_send
19021 /* System header to define __stub macros and hopefully few prototypes,
19022 which can conflict with char res_send (); below.
19023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19024 <limits.h> exists even on freestanding compilers. */
19026 #ifdef __STDC__
19027 # include <limits.h>
19028 #else
19029 # include <assert.h>
19030 #endif
19032 #undef res_send
19034 /* Override any GCC internal prototype to avoid an error.
19035 Use char because int might match the return type of a GCC
19036 builtin and then its argument prototype would still apply. */
19037 #ifdef __cplusplus
19038 extern "C"
19039 #endif
19040 char res_send ();
19041 /* The GNU C library defines this for functions which it implements
19042 to always fail with ENOSYS. Some functions are actually named
19043 something starting with __ and the normal name is an alias. */
19044 #if defined __stub_res_send || defined __stub___res_send
19045 choke me
19046 #endif
19049 main ()
19051 return res_send ();
19053 return 0;
19055 _ACEOF
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (ac_try="$ac_link"
19058 case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_link") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext &&
19073 $as_test_x conftest$ac_exeext; then
19074 ac_cv_func_res_send=yes
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_func_res_send=no
19082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19083 conftest$ac_exeext conftest.$ac_ext
19085 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19086 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19087 if test $ac_cv_func_res_send = yes; then
19089 else
19090 { echo "$as_me:$LINENO: checking for __res_send" >&5
19091 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19092 if test "${ac_cv_func___res_send+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095 cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h. */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19103 #define __res_send innocuous___res_send
19105 /* System header to define __stub macros and hopefully few prototypes,
19106 which can conflict with char __res_send (); below.
19107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19108 <limits.h> exists even on freestanding compilers. */
19110 #ifdef __STDC__
19111 # include <limits.h>
19112 #else
19113 # include <assert.h>
19114 #endif
19116 #undef __res_send
19118 /* Override any GCC internal prototype to avoid an error.
19119 Use char because int might match the return type of a GCC
19120 builtin and then its argument prototype would still apply. */
19121 #ifdef __cplusplus
19122 extern "C"
19123 #endif
19124 char __res_send ();
19125 /* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128 #if defined __stub___res_send || defined __stub_____res_send
19129 choke me
19130 #endif
19133 main ()
19135 return __res_send ();
19137 return 0;
19139 _ACEOF
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (ac_try="$ac_link"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_link") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest$ac_exeext &&
19157 $as_test_x conftest$ac_exeext; then
19158 ac_cv_func___res_send=yes
19159 else
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19163 ac_cv_func___res_send=no
19166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19167 conftest$ac_exeext conftest.$ac_ext
19169 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19170 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19171 if test $ac_cv_func___res_send = yes; then
19173 else
19174 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19175 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19176 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179 ac_check_lib_save_LIBS=$LIBS
19180 LIBS="-lresolv $LIBS"
19181 cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h. */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19188 /* Override any GCC internal prototype to avoid an error.
19189 Use char because int might match the return type of a GCC
19190 builtin and then its argument prototype would still apply. */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 char res_send ();
19196 main ()
19198 return res_send ();
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest$ac_exeext &&
19220 $as_test_x conftest$ac_exeext; then
19221 ac_cv_lib_resolv_res_send=yes
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_cv_lib_resolv_res_send=no
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19231 LIBS=$ac_check_lib_save_LIBS
19233 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19234 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19235 if test $ac_cv_lib_resolv_res_send = yes; then
19236 resolv=yes
19237 else
19238 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19239 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19240 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243 ac_check_lib_save_LIBS=$LIBS
19244 LIBS="-lresolv $LIBS"
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 /* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 char __res_send ();
19260 main ()
19262 return __res_send ();
19264 return 0;
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19275 ac_status=$?
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19285 ac_cv_lib_resolv___res_send=yes
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_lib_resolv___res_send=no
19293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19294 conftest$ac_exeext conftest.$ac_ext
19295 LIBS=$ac_check_lib_save_LIBS
19297 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19298 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19299 if test $ac_cv_lib_resolv___res_send = yes; then
19300 resolv=yes
19309 if test "$resolv" = yes ; then
19310 RESOLVLIB=-lresolv
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_LIBRESOLV 1
19314 _ACEOF
19316 else
19317 RESOLVLIB=
19319 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19320 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19321 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h. */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19332 #define hes_getmailhost innocuous_hes_getmailhost
19334 /* System header to define __stub macros and hopefully few prototypes,
19335 which can conflict with char hes_getmailhost (); below.
19336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337 <limits.h> exists even on freestanding compilers. */
19339 #ifdef __STDC__
19340 # include <limits.h>
19341 #else
19342 # include <assert.h>
19343 #endif
19345 #undef hes_getmailhost
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char hes_getmailhost ();
19354 /* The GNU C library defines this for functions which it implements
19355 to always fail with ENOSYS. Some functions are actually named
19356 something starting with __ and the normal name is an alias. */
19357 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19358 choke me
19359 #endif
19362 main ()
19364 return hes_getmailhost ();
19366 return 0;
19368 _ACEOF
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (ac_try="$ac_link"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374 esac
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_link") 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest$ac_exeext &&
19386 $as_test_x conftest$ac_exeext; then
19387 ac_cv_func_hes_getmailhost=yes
19388 else
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_func_hes_getmailhost=no
19395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19396 conftest$ac_exeext conftest.$ac_ext
19398 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19399 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19400 if test $ac_cv_func_hes_getmailhost = yes; then
19402 else
19403 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19404 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19405 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lhesiod $RESOLVLIB $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char hes_getmailhost ();
19425 main ()
19427 return hes_getmailhost ();
19429 return 0;
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_lib_hesiod_hes_getmailhost=yes
19451 else
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_lib_hesiod_hes_getmailhost=no
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19463 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19464 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19466 cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_LIBHESIOD 1
19468 _ACEOF
19470 else
19478 # These tell us which Kerberos-related libraries to use.
19479 if test "${with_kerberos+set}" = set; then
19481 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19482 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19483 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lcom_err $LIBS"
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char com_err ();
19503 main ()
19505 return com_err ();
19507 return 0;
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest$ac_exeext &&
19527 $as_test_x conftest$ac_exeext; then
19528 ac_cv_lib_com_err_com_err=yes
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_com_err_com_err=no
19536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19541 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19542 if test $ac_cv_lib_com_err_com_err = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBCOM_ERR 1
19545 _ACEOF
19547 LIBS="-lcom_err $LIBS"
19552 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19553 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lk5crypto $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char mit_des_cbc_encrypt ();
19574 main ()
19576 return mit_des_cbc_encrypt ();
19578 return 0;
19580 _ACEOF
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19612 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19613 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_LIBK5CRYPTO 1
19616 _ACEOF
19618 LIBS="-lk5crypto $LIBS"
19623 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19624 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19625 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lcrypto $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char mit_des_cbc_encrypt ();
19645 main ()
19647 return mit_des_cbc_encrypt ();
19649 return 0;
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_link") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext &&
19669 $as_test_x conftest$ac_exeext; then
19670 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19671 else
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19682 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19683 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19684 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBCRYPTO 1
19687 _ACEOF
19689 LIBS="-lcrypto $LIBS"
19694 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19695 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19696 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 ac_check_lib_save_LIBS=$LIBS
19700 LIBS="-lkrb5 $LIBS"
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h. */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char krb5_init_context ();
19716 main ()
19718 return krb5_init_context ();
19720 return 0;
19722 _ACEOF
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (ac_try="$ac_link"
19725 case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_link") 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && {
19737 test -z "$ac_c_werror_flag" ||
19738 test ! -s conftest.err
19739 } && test -s conftest$ac_exeext &&
19740 $as_test_x conftest$ac_exeext; then
19741 ac_cv_lib_krb5_krb5_init_context=yes
19742 else
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_cv_lib_krb5_krb5_init_context=no
19749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19750 conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_check_lib_save_LIBS
19753 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19754 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19755 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define HAVE_LIBKRB5 1
19758 _ACEOF
19760 LIBS="-lkrb5 $LIBS"
19764 if test "${with_kerberos5+set}" != set; then
19766 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19767 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-ldes425 $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char des_cbc_encrypt ();
19788 main ()
19790 return des_cbc_encrypt ();
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_des425_des_cbc_encrypt=yes
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_des425_des_cbc_encrypt=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19826 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19827 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19828 cat >>confdefs.h <<_ACEOF
19829 #define HAVE_LIBDES425 1
19830 _ACEOF
19832 LIBS="-ldes425 $LIBS"
19834 else
19836 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19837 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19838 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-ldes $LIBS"
19843 cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h. */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 #endif
19856 char des_cbc_encrypt ();
19858 main ()
19860 return des_cbc_encrypt ();
19862 return 0;
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 ac_cv_lib_des_des_cbc_encrypt=yes
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_lib_des_des_cbc_encrypt=no
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19896 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19897 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19898 cat >>confdefs.h <<_ACEOF
19899 #define HAVE_LIBDES 1
19900 _ACEOF
19902 LIBS="-ldes $LIBS"
19909 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19910 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19911 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 ac_check_lib_save_LIBS=$LIBS
19915 LIBS="-lkrb4 $LIBS"
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h. */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19926 #ifdef __cplusplus
19927 extern "C"
19928 #endif
19929 char krb_get_cred ();
19931 main ()
19933 return krb_get_cred ();
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest$ac_exeext &&
19955 $as_test_x conftest$ac_exeext; then
19956 ac_cv_lib_krb4_krb_get_cred=yes
19957 else
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_cv_lib_krb4_krb_get_cred=no
19964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19965 conftest$ac_exeext conftest.$ac_ext
19966 LIBS=$ac_check_lib_save_LIBS
19968 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19969 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19970 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19971 cat >>confdefs.h <<_ACEOF
19972 #define HAVE_LIBKRB4 1
19973 _ACEOF
19975 LIBS="-lkrb4 $LIBS"
19977 else
19979 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19980 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19981 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984 ac_check_lib_save_LIBS=$LIBS
19985 LIBS="-lkrb $LIBS"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
19996 #ifdef __cplusplus
19997 extern "C"
19998 #endif
19999 char krb_get_cred ();
20001 main ()
20003 return krb_get_cred ();
20005 return 0;
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest$ac_exeext &&
20025 $as_test_x conftest$ac_exeext; then
20026 ac_cv_lib_krb_krb_get_cred=yes
20027 else
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_lib_krb_krb_get_cred=no
20034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20035 conftest$ac_exeext conftest.$ac_ext
20036 LIBS=$ac_check_lib_save_LIBS
20038 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20039 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20040 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20041 cat >>confdefs.h <<_ACEOF
20042 #define HAVE_LIBKRB 1
20043 _ACEOF
20045 LIBS="-lkrb $LIBS"
20053 if test "${with_kerberos5+set}" = set; then
20055 for ac_header in krb5.h
20057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_res=`eval echo '${'$as_ac_Header'}'`
20065 { echo "$as_me:$LINENO: result: $ac_res" >&5
20066 echo "${ECHO_T}$ac_res" >&6; }
20067 else
20068 # Is the header compilable?
20069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 #include <$ac_header>
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest.$ac_objext; then
20097 ac_header_compiler=yes
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_header_compiler=no
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20107 echo "${ECHO_T}$ac_header_compiler" >&6; }
20109 # Is the header present?
20110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <$ac_header>
20119 _ACEOF
20120 if { (ac_try="$ac_cpp conftest.$ac_ext"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20127 ac_status=$?
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } >/dev/null && {
20133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20135 }; then
20136 ac_header_preproc=yes
20137 else
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_header_preproc=no
20144 rm -f conftest.err conftest.$ac_ext
20145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20146 echo "${ECHO_T}$ac_header_preproc" >&6; }
20148 # So? What about this header?
20149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20150 yes:no: )
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20155 ac_header_preproc=yes
20157 no:yes:* )
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20172 esac
20173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178 eval "$as_ac_Header=\$ac_header_preproc"
20180 ac_res=`eval echo '${'$as_ac_Header'}'`
20181 { echo "$as_me:$LINENO: result: $ac_res" >&5
20182 echo "${ECHO_T}$ac_res" >&6; }
20185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20188 _ACEOF
20192 done
20194 else
20196 for ac_header in des.h
20198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 ac_res=`eval echo '${'$as_ac_Header'}'`
20206 { echo "$as_me:$LINENO: result: $ac_res" >&5
20207 echo "${ECHO_T}$ac_res" >&6; }
20208 else
20209 # Is the header compilable?
20210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 #include <$ac_header>
20220 _ACEOF
20221 rm -f conftest.$ac_objext
20222 if { (ac_try="$ac_compile"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_compile") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest.$ac_objext; then
20238 ac_header_compiler=yes
20239 else
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_compiler=no
20246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20248 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250 # Is the header present?
20251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 #include <$ac_header>
20260 _ACEOF
20261 if { (ac_try="$ac_cpp conftest.$ac_ext"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } >/dev/null && {
20274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 }; then
20277 ac_header_preproc=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289 # So? What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291 yes:no: )
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20296 ac_header_preproc=yes
20298 no:yes:* )
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20313 esac
20314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319 eval "$as_ac_Header=\$ac_header_preproc"
20321 ac_res=`eval echo '${'$as_ac_Header'}'`
20322 { echo "$as_me:$LINENO: result: $ac_res" >&5
20323 echo "${ECHO_T}$ac_res" >&6; }
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20329 _ACEOF
20331 else
20333 for ac_header in kerberosIV/des.h
20335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 ac_res=`eval echo '${'$as_ac_Header'}'`
20343 { echo "$as_me:$LINENO: result: $ac_res" >&5
20344 echo "${ECHO_T}$ac_res" >&6; }
20345 else
20346 # Is the header compilable?
20347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20356 #include <$ac_header>
20357 _ACEOF
20358 rm -f conftest.$ac_objext
20359 if { (ac_try="$ac_compile"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_compile") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest.$ac_objext; then
20375 ac_header_compiler=yes
20376 else
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_header_compiler=no
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20385 echo "${ECHO_T}$ac_header_compiler" >&6; }
20387 # Is the header present?
20388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 #include <$ac_header>
20397 _ACEOF
20398 if { (ac_try="$ac_cpp conftest.$ac_ext"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } >/dev/null && {
20411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 }; then
20414 ac_header_preproc=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_header_preproc=no
20422 rm -f conftest.err conftest.$ac_ext
20423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20424 echo "${ECHO_T}$ac_header_preproc" >&6; }
20426 # So? What about this header?
20427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20428 yes:no: )
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20433 ac_header_preproc=yes
20435 no:yes:* )
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20450 esac
20451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456 eval "$as_ac_Header=\$ac_header_preproc"
20458 ac_res=`eval echo '${'$as_ac_Header'}'`
20459 { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20464 cat >>confdefs.h <<_ACEOF
20465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20466 _ACEOF
20468 else
20470 for ac_header in kerberos/des.h
20472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 ac_res=`eval echo '${'$as_ac_Header'}'`
20480 { echo "$as_me:$LINENO: result: $ac_res" >&5
20481 echo "${ECHO_T}$ac_res" >&6; }
20482 else
20483 # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 $ac_includes_default
20493 #include <$ac_header>
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.$ac_objext; then
20512 ac_header_compiler=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_compiler=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <$ac_header>
20534 _ACEOF
20535 if { (ac_try="$ac_cpp conftest.$ac_ext"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null && {
20548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 }; then
20551 ac_header_preproc=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_header_preproc=no
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20563 # So? What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20565 yes:no: )
20566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20570 ac_header_preproc=yes
20572 no:yes:* )
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20587 esac
20588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593 eval "$as_ac_Header=\$ac_header_preproc"
20595 ac_res=`eval echo '${'$as_ac_Header'}'`
20596 { echo "$as_me:$LINENO: result: $ac_res" >&5
20597 echo "${ECHO_T}$ac_res" >&6; }
20600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20603 _ACEOF
20607 done
20611 done
20615 done
20618 for ac_header in krb.h
20620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 ac_res=`eval echo '${'$as_ac_Header'}'`
20628 { echo "$as_me:$LINENO: result: $ac_res" >&5
20629 echo "${ECHO_T}$ac_res" >&6; }
20630 else
20631 # Is the header compilable?
20632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 $ac_includes_default
20641 #include <$ac_header>
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest.$ac_objext; then
20660 ac_header_compiler=yes
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ac_header_compiler=no
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20670 echo "${ECHO_T}$ac_header_compiler" >&6; }
20672 # Is the header present?
20673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 #include <$ac_header>
20682 _ACEOF
20683 if { (ac_try="$ac_cpp conftest.$ac_ext"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } >/dev/null && {
20696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 }; then
20699 ac_header_preproc=yes
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_header_preproc=no
20707 rm -f conftest.err conftest.$ac_ext
20708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20709 echo "${ECHO_T}$ac_header_preproc" >&6; }
20711 # So? What about this header?
20712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713 yes:no: )
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20718 ac_header_preproc=yes
20720 no:yes:* )
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20735 esac
20736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741 eval "$as_ac_Header=\$ac_header_preproc"
20743 ac_res=`eval echo '${'$as_ac_Header'}'`
20744 { echo "$as_me:$LINENO: result: $ac_res" >&5
20745 echo "${ECHO_T}$ac_res" >&6; }
20748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20751 _ACEOF
20753 else
20755 for ac_header in kerberosIV/krb.h
20757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 ac_res=`eval echo '${'$as_ac_Header'}'`
20765 { echo "$as_me:$LINENO: result: $ac_res" >&5
20766 echo "${ECHO_T}$ac_res" >&6; }
20767 else
20768 # Is the header compilable?
20769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20771 cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h. */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 $ac_includes_default
20778 #include <$ac_header>
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20797 ac_header_compiler=yes
20798 else
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ac_header_compiler=no
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20807 echo "${ECHO_T}$ac_header_compiler" >&6; }
20809 # Is the header present?
20810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 #include <$ac_header>
20819 _ACEOF
20820 if { (ac_try="$ac_cpp conftest.$ac_ext"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20827 ac_status=$?
20828 grep -v '^ *+' conftest.er1 >conftest.err
20829 rm -f conftest.er1
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } >/dev/null && {
20833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 }; then
20836 ac_header_preproc=yes
20837 else
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_header_preproc=no
20844 rm -f conftest.err conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20846 echo "${ECHO_T}$ac_header_preproc" >&6; }
20848 # So? What about this header?
20849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20850 yes:no: )
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20855 ac_header_preproc=yes
20857 no:yes:* )
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20872 esac
20873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878 eval "$as_ac_Header=\$ac_header_preproc"
20880 ac_res=`eval echo '${'$as_ac_Header'}'`
20881 { echo "$as_me:$LINENO: result: $ac_res" >&5
20882 echo "${ECHO_T}$ac_res" >&6; }
20885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20888 _ACEOF
20890 else
20892 for ac_header in kerberos/krb.h
20894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_res=`eval echo '${'$as_ac_Header'}'`
20902 { echo "$as_me:$LINENO: result: $ac_res" >&5
20903 echo "${ECHO_T}$ac_res" >&6; }
20904 else
20905 # Is the header compilable?
20906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 $ac_includes_default
20915 #include <$ac_header>
20916 _ACEOF
20917 rm -f conftest.$ac_objext
20918 if { (ac_try="$ac_compile"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_compile") 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && {
20931 test -z "$ac_c_werror_flag" ||
20932 test ! -s conftest.err
20933 } && test -s conftest.$ac_objext; then
20934 ac_header_compiler=yes
20935 else
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_header_compiler=no
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20944 echo "${ECHO_T}$ac_header_compiler" >&6; }
20946 # Is the header present?
20947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h. */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 #include <$ac_header>
20956 _ACEOF
20957 if { (ac_try="$ac_cpp conftest.$ac_ext"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20964 ac_status=$?
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } >/dev/null && {
20970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 }; then
20973 ac_header_preproc=yes
20974 else
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_header_preproc=no
20981 rm -f conftest.err conftest.$ac_ext
20982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20983 echo "${ECHO_T}$ac_header_preproc" >&6; }
20985 # So? What about this header?
20986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20987 yes:no: )
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20992 ac_header_preproc=yes
20994 no:yes:* )
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21009 esac
21010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015 eval "$as_ac_Header=\$ac_header_preproc"
21017 ac_res=`eval echo '${'$as_ac_Header'}'`
21018 { echo "$as_me:$LINENO: result: $ac_res" >&5
21019 echo "${ECHO_T}$ac_res" >&6; }
21022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21025 _ACEOF
21029 done
21033 done
21037 done
21041 for ac_header in com_err.h
21043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 ac_res=`eval echo '${'$as_ac_Header'}'`
21051 { echo "$as_me:$LINENO: result: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21053 else
21054 # Is the header compilable?
21055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h. */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 #include <$ac_header>
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (ac_try="$ac_compile"
21068 case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_compile") 2>conftest.er1
21074 ac_status=$?
21075 grep -v '^ *+' conftest.er1 >conftest.err
21076 rm -f conftest.er1
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } && {
21080 test -z "$ac_c_werror_flag" ||
21081 test ! -s conftest.err
21082 } && test -s conftest.$ac_objext; then
21083 ac_header_compiler=yes
21084 else
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_header_compiler=no
21091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21093 echo "${ECHO_T}$ac_header_compiler" >&6; }
21095 # Is the header present?
21096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21098 cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h. */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 #include <$ac_header>
21105 _ACEOF
21106 if { (ac_try="$ac_cpp conftest.$ac_ext"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev/null && {
21119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 }; then
21122 ac_header_preproc=yes
21123 else
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_header_preproc=no
21130 rm -f conftest.err conftest.$ac_ext
21131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21132 echo "${ECHO_T}$ac_header_preproc" >&6; }
21134 # So? What about this header?
21135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21136 yes:no: )
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21141 ac_header_preproc=yes
21143 no:yes:* )
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21158 esac
21159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 eval "$as_ac_Header=\$ac_header_preproc"
21166 ac_res=`eval echo '${'$as_ac_Header'}'`
21167 { echo "$as_me:$LINENO: result: $ac_res" >&5
21168 echo "${ECHO_T}$ac_res" >&6; }
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 _ACEOF
21178 done
21182 # Solaris requires -lintl if you want strerror (which calls dgettext)
21183 # to return localized messages.
21185 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21186 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21187 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190 ac_check_lib_save_LIBS=$LIBS
21191 LIBS="-lintl $LIBS"
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h. */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 char dgettext ();
21207 main ()
21209 return dgettext ();
21211 return 0;
21213 _ACEOF
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_link") 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest$ac_exeext &&
21231 $as_test_x conftest$ac_exeext; then
21232 ac_cv_lib_intl_dgettext=yes
21233 else
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_cv_lib_intl_dgettext=no
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241 conftest$ac_exeext conftest.$ac_ext
21242 LIBS=$ac_check_lib_save_LIBS
21244 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21245 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21246 if test $ac_cv_lib_intl_dgettext = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_LIBINTL 1
21249 _ACEOF
21251 LIBS="-lintl $LIBS"
21256 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21257 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21258 if test "${emacs_cv_localtime_cache+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261 if test x$ac_cv_func_tzset = xyes; then
21262 if test "$cross_compiling" = yes; then
21263 # If we have tzset, assume the worst when cross-compiling.
21264 emacs_cv_localtime_cache=yes
21265 else
21266 cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h. */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <time.h>
21273 extern char **environ;
21274 unset_TZ ()
21276 char **from, **to;
21277 for (to = from = environ; (*to = *from); from++)
21278 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21279 to++;
21281 char TZ_GMT0[] = "TZ=GMT0";
21282 char TZ_PST8[] = "TZ=PST8";
21283 main()
21285 time_t now = time ((time_t *) 0);
21286 int hour_GMT0, hour_unset;
21287 if (putenv (TZ_GMT0) != 0)
21288 exit (1);
21289 hour_GMT0 = localtime (&now)->tm_hour;
21290 unset_TZ ();
21291 hour_unset = localtime (&now)->tm_hour;
21292 if (putenv (TZ_PST8) != 0)
21293 exit (1);
21294 if (localtime (&now)->tm_hour == hour_GMT0)
21295 exit (1);
21296 unset_TZ ();
21297 if (localtime (&now)->tm_hour != hour_unset)
21298 exit (1);
21299 exit (0);
21301 _ACEOF
21302 rm -f conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_link") 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21313 { (case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_try") 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 emacs_cv_localtime_cache=no
21323 else
21324 echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ( exit $ac_status )
21329 emacs_cv_localtime_cache=yes
21331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21335 else
21336 # If we lack tzset, report that localtime does not cache TZ,
21337 # since we can't invalidate the cache if we don't have tzset.
21338 emacs_cv_localtime_cache=no
21341 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21342 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21343 if test $emacs_cv_localtime_cache = yes; then
21345 cat >>confdefs.h <<\_ACEOF
21346 #define LOCALTIME_CACHE 1
21347 _ACEOF
21351 if test "x$HAVE_TIMEVAL" = xyes; then
21353 for ac_func in gettimeofday
21355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define $ac_func innocuous_$ac_func
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char $ac_func (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21376 #ifdef __STDC__
21377 # include <limits.h>
21378 #else
21379 # include <assert.h>
21380 #endif
21382 #undef $ac_func
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 char $ac_func ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub_$ac_func || defined __stub___$ac_func
21395 choke me
21396 #endif
21399 main ()
21401 return $ac_func ();
21403 return 0;
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_link") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest$ac_exeext &&
21423 $as_test_x conftest$ac_exeext; then
21424 eval "$as_ac_var=yes"
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 eval "$as_ac_var=no"
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21435 ac_res=`eval echo '${'$as_ac_var'}'`
21436 { echo "$as_me:$LINENO: result: $ac_res" >&5
21437 echo "${ECHO_T}$ac_res" >&6; }
21438 if test `eval echo '${'$as_ac_var'}'` = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21441 _ACEOF
21444 done
21446 if test $ac_cv_func_gettimeofday = yes; then
21447 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21448 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21449 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21459 #ifdef TIME_WITH_SYS_TIME
21460 #include <sys/time.h>
21461 #include <time.h>
21462 #else
21463 #ifdef HAVE_SYS_TIME_H
21464 #include <sys/time.h>
21465 #else
21466 #include <time.h>
21467 #endif
21468 #endif
21470 main ()
21472 struct timeval time;
21473 gettimeofday (&time, 0);
21475 return 0;
21477 _ACEOF
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_compile") 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest.$ac_objext; then
21495 emacs_cv_gettimeofday_two_arguments=yes
21496 else
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 emacs_cv_gettimeofday_two_arguments=no
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21506 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21507 if test $emacs_cv_gettimeofday_two_arguments = no; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21511 _ACEOF
21517 ok_so_far=yes
21518 { echo "$as_me:$LINENO: checking for socket" >&5
21519 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21520 if test "${ac_cv_func_socket+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523 cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h. */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21531 #define socket innocuous_socket
21533 /* System header to define __stub macros and hopefully few prototypes,
21534 which can conflict with char socket (); below.
21535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21536 <limits.h> exists even on freestanding compilers. */
21538 #ifdef __STDC__
21539 # include <limits.h>
21540 #else
21541 # include <assert.h>
21542 #endif
21544 #undef socket
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21549 #ifdef __cplusplus
21550 extern "C"
21551 #endif
21552 char socket ();
21553 /* The GNU C library defines this for functions which it implements
21554 to always fail with ENOSYS. Some functions are actually named
21555 something starting with __ and the normal name is an alias. */
21556 #if defined __stub_socket || defined __stub___socket
21557 choke me
21558 #endif
21561 main ()
21563 return socket ();
21565 return 0;
21567 _ACEOF
21568 rm -f conftest.$ac_objext conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_link") 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest$ac_exeext &&
21585 $as_test_x conftest$ac_exeext; then
21586 ac_cv_func_socket=yes
21587 else
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ac_cv_func_socket=no
21594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21595 conftest$ac_exeext conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21598 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21599 if test $ac_cv_func_socket = yes; then
21601 else
21602 ok_so_far=no
21605 if test $ok_so_far = yes; then
21606 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21607 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21608 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21609 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21613 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21614 else
21615 # Is the header compilable?
21616 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21617 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 #include <netinet/in.h>
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 ac_header_compiler=yes
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_compiler=no
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21654 echo "${ECHO_T}$ac_header_compiler" >&6; }
21656 # Is the header present?
21657 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21658 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h. */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <netinet/in.h>
21666 _ACEOF
21667 if { (ac_try="$ac_cpp conftest.$ac_ext"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } >/dev/null && {
21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 }; then
21683 ac_header_preproc=yes
21684 else
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_header_preproc=no
21691 rm -f conftest.err conftest.$ac_ext
21692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21693 echo "${ECHO_T}$ac_header_preproc" >&6; }
21695 # So? What about this header?
21696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21697 yes:no: )
21698 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21699 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21701 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21702 ac_header_preproc=yes
21704 no:yes:* )
21705 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21706 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21708 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21710 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21712 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21714 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21716 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21719 esac
21720 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21721 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21722 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725 ac_cv_header_netinet_in_h=$ac_header_preproc
21727 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21728 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21731 if test $ac_cv_header_netinet_in_h = yes; then
21733 else
21734 ok_so_far=no
21739 if test $ok_so_far = yes; then
21740 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21741 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21742 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21743 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21747 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21748 else
21749 # Is the header compilable?
21750 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21751 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 $ac_includes_default
21759 #include <arpa/inet.h>
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21769 ac_status=$?
21770 grep -v '^ *+' conftest.er1 >conftest.err
21771 rm -f conftest.er1
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } && {
21775 test -z "$ac_c_werror_flag" ||
21776 test ! -s conftest.err
21777 } && test -s conftest.$ac_objext; then
21778 ac_header_compiler=yes
21779 else
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_header_compiler=no
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21788 echo "${ECHO_T}$ac_header_compiler" >&6; }
21790 # Is the header present?
21791 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21792 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 #include <arpa/inet.h>
21800 _ACEOF
21801 if { (ac_try="$ac_cpp conftest.$ac_ext"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21808 ac_status=$?
21809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } >/dev/null && {
21814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 }; then
21817 ac_header_preproc=yes
21818 else
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 ac_header_preproc=no
21825 rm -f conftest.err conftest.$ac_ext
21826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21827 echo "${ECHO_T}$ac_header_preproc" >&6; }
21829 # So? What about this header?
21830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21831 yes:no: )
21832 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21833 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21835 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21836 ac_header_preproc=yes
21838 no:yes:* )
21839 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21840 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21842 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21844 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21846 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21848 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21850 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21853 esac
21854 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21855 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21856 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 ac_cv_header_arpa_inet_h=$ac_header_preproc
21861 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21862 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21865 if test $ac_cv_header_arpa_inet_h = yes; then
21867 else
21868 ok_so_far=no
21873 if test $ok_so_far = yes; then
21875 cat >>confdefs.h <<\_ACEOF
21876 #define HAVE_INET_SOCKETS 1
21877 _ACEOF
21882 for ac_header in sys/ioctl.h
21884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 ac_res=`eval echo '${'$as_ac_Header'}'`
21892 { echo "$as_me:$LINENO: result: $ac_res" >&5
21893 echo "${ECHO_T}$ac_res" >&6; }
21894 else
21895 # Is the header compilable?
21896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 #include <$ac_header>
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_compile") 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest.$ac_objext; then
21924 ac_header_compiler=yes
21925 else
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 ac_header_compiler=no
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21934 echo "${ECHO_T}$ac_header_compiler" >&6; }
21936 # Is the header present?
21937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 #include <$ac_header>
21946 _ACEOF
21947 if { (ac_try="$ac_cpp conftest.$ac_ext"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951 esac
21952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } >/dev/null && {
21960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 }; then
21963 ac_header_preproc=yes
21964 else
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 ac_header_preproc=no
21971 rm -f conftest.err conftest.$ac_ext
21972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21973 echo "${ECHO_T}$ac_header_preproc" >&6; }
21975 # So? What about this header?
21976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21977 yes:no: )
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21982 ac_header_preproc=yes
21984 no:yes:* )
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21999 esac
22000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005 eval "$as_ac_Header=\$ac_header_preproc"
22007 ac_res=`eval echo '${'$as_ac_Header'}'`
22008 { echo "$as_me:$LINENO: result: $ac_res" >&5
22009 echo "${ECHO_T}$ac_res" >&6; }
22012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22015 _ACEOF
22019 done
22022 if test -f /usr/lpp/X11/bin/smt.exp; then
22024 cat >>confdefs.h <<\_ACEOF
22025 #define HAVE_AIX_SMT_EXP 1
22026 _ACEOF
22030 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22031 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22032 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22033 { echo "$as_me:$LINENO: result: yes" >&5
22034 echo "${ECHO_T}yes" >&6; }
22036 cat >>confdefs.h <<\_ACEOF
22037 #define HAVE_DEV_PTMX 1
22038 _ACEOF
22040 else
22041 { echo "$as_me:$LINENO: result: no" >&5
22042 echo "${ECHO_T}no" >&6; }
22045 { echo "$as_me:$LINENO: checking for pid_t" >&5
22046 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22047 if test "${ac_cv_type_pid_t+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h. */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 $ac_includes_default
22057 typedef pid_t ac__type_new_;
22059 main ()
22061 if ((ac__type_new_ *) 0)
22062 return 0;
22063 if (sizeof (ac__type_new_))
22064 return 0;
22066 return 0;
22068 _ACEOF
22069 rm -f conftest.$ac_objext
22070 if { (ac_try="$ac_compile"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_compile") 2>conftest.er1
22077 ac_status=$?
22078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } && {
22083 test -z "$ac_c_werror_flag" ||
22084 test ! -s conftest.err
22085 } && test -s conftest.$ac_objext; then
22086 ac_cv_type_pid_t=yes
22087 else
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_cv_type_pid_t=no
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22097 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22098 if test $ac_cv_type_pid_t = yes; then
22100 else
22102 cat >>confdefs.h <<_ACEOF
22103 #define pid_t int
22104 _ACEOF
22109 for ac_header in vfork.h
22111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119 { echo "$as_me:$LINENO: result: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22121 else
22122 # Is the header compilable?
22123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h. */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 $ac_includes_default
22132 #include <$ac_header>
22133 _ACEOF
22134 rm -f conftest.$ac_objext
22135 if { (ac_try="$ac_compile"
22136 case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_compile") 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } && {
22148 test -z "$ac_c_werror_flag" ||
22149 test ! -s conftest.err
22150 } && test -s conftest.$ac_objext; then
22151 ac_header_compiler=yes
22152 else
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_header_compiler=no
22159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22161 echo "${ECHO_T}$ac_header_compiler" >&6; }
22163 # Is the header present?
22164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 #include <$ac_header>
22173 _ACEOF
22174 if { (ac_try="$ac_cpp conftest.$ac_ext"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } >/dev/null && {
22187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 }; then
22190 ac_header_preproc=yes
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_header_preproc=no
22198 rm -f conftest.err conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22200 echo "${ECHO_T}$ac_header_preproc" >&6; }
22202 # So? What about this header?
22203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22204 yes:no: )
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22209 ac_header_preproc=yes
22211 no:yes:* )
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22226 esac
22227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232 eval "$as_ac_Header=\$ac_header_preproc"
22234 ac_res=`eval echo '${'$as_ac_Header'}'`
22235 { echo "$as_me:$LINENO: result: $ac_res" >&5
22236 echo "${ECHO_T}$ac_res" >&6; }
22239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22242 _ACEOF
22246 done
22250 for ac_func in fork vfork
22252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22258 cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h. */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22266 #define $ac_func innocuous_$ac_func
22268 /* System header to define __stub macros and hopefully few prototypes,
22269 which can conflict with char $ac_func (); below.
22270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22271 <limits.h> exists even on freestanding compilers. */
22273 #ifdef __STDC__
22274 # include <limits.h>
22275 #else
22276 # include <assert.h>
22277 #endif
22279 #undef $ac_func
22281 /* Override any GCC internal prototype to avoid an error.
22282 Use char because int might match the return type of a GCC
22283 builtin and then its argument prototype would still apply. */
22284 #ifdef __cplusplus
22285 extern "C"
22286 #endif
22287 char $ac_func ();
22288 /* The GNU C library defines this for functions which it implements
22289 to always fail with ENOSYS. Some functions are actually named
22290 something starting with __ and the normal name is an alias. */
22291 #if defined __stub_$ac_func || defined __stub___$ac_func
22292 choke me
22293 #endif
22296 main ()
22298 return $ac_func ();
22300 return 0;
22302 _ACEOF
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>conftest.er1
22311 ac_status=$?
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest$ac_exeext &&
22320 $as_test_x conftest$ac_exeext; then
22321 eval "$as_ac_var=yes"
22322 else
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 eval "$as_ac_var=no"
22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22330 conftest$ac_exeext conftest.$ac_ext
22332 ac_res=`eval echo '${'$as_ac_var'}'`
22333 { echo "$as_me:$LINENO: result: $ac_res" >&5
22334 echo "${ECHO_T}$ac_res" >&6; }
22335 if test `eval echo '${'$as_ac_var'}'` = yes; then
22336 cat >>confdefs.h <<_ACEOF
22337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22338 _ACEOF
22341 done
22343 if test "x$ac_cv_func_fork" = xyes; then
22344 { echo "$as_me:$LINENO: checking for working fork" >&5
22345 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22346 if test "${ac_cv_func_fork_works+set}" = set; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 else
22349 if test "$cross_compiling" = yes; then
22350 ac_cv_func_fork_works=cross
22351 else
22352 cat >conftest.$ac_ext <<_ACEOF
22353 /* confdefs.h. */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 $ac_includes_default
22360 main ()
22363 /* By Ruediger Kuhlmann. */
22364 return fork () < 0;
22367 return 0;
22369 _ACEOF
22370 rm -f conftest$ac_exeext
22371 if { (ac_try="$ac_link"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_link") 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22381 { (case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22384 esac
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_try") 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_func_fork_works=yes
22391 else
22392 echo "$as_me: program exited with status $ac_status" >&5
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ( exit $ac_status )
22397 ac_cv_func_fork_works=no
22399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22405 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22407 else
22408 ac_cv_func_fork_works=$ac_cv_func_fork
22410 if test "x$ac_cv_func_fork_works" = xcross; then
22411 case $host in
22412 *-*-amigaos* | *-*-msdosdjgpp*)
22413 # Override, as these systems have only a dummy fork() stub
22414 ac_cv_func_fork_works=no
22417 ac_cv_func_fork_works=yes
22419 esac
22420 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22421 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22423 ac_cv_func_vfork_works=$ac_cv_func_vfork
22424 if test "x$ac_cv_func_vfork" = xyes; then
22425 { echo "$as_me:$LINENO: checking for working vfork" >&5
22426 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22427 if test "${ac_cv_func_vfork_works+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430 if test "$cross_compiling" = yes; then
22431 ac_cv_func_vfork_works=cross
22432 else
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 /* Thanks to Paul Eggert for this test. */
22440 $ac_includes_default
22441 #include <sys/wait.h>
22442 #ifdef HAVE_VFORK_H
22443 # include <vfork.h>
22444 #endif
22445 /* On some sparc systems, changes by the child to local and incoming
22446 argument registers are propagated back to the parent. The compiler
22447 is told about this with #include <vfork.h>, but some compilers
22448 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22449 static variable whose address is put into a register that is
22450 clobbered by the vfork. */
22451 static void
22452 #ifdef __cplusplus
22453 sparc_address_test (int arg)
22454 # else
22455 sparc_address_test (arg) int arg;
22456 #endif
22458 static pid_t child;
22459 if (!child) {
22460 child = vfork ();
22461 if (child < 0) {
22462 perror ("vfork");
22463 _exit(2);
22465 if (!child) {
22466 arg = getpid();
22467 write(-1, "", 0);
22468 _exit (arg);
22474 main ()
22476 pid_t parent = getpid ();
22477 pid_t child;
22479 sparc_address_test (0);
22481 child = vfork ();
22483 if (child == 0) {
22484 /* Here is another test for sparc vfork register problems. This
22485 test uses lots of local variables, at least as many local
22486 variables as main has allocated so far including compiler
22487 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22488 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22489 reuse the register of parent for one of the local variables,
22490 since it will think that parent can't possibly be used any more
22491 in this routine. Assigning to the local variable will thus
22492 munge parent in the parent process. */
22493 pid_t
22494 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22495 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22496 /* Convince the compiler that p..p7 are live; otherwise, it might
22497 use the same hardware register for all 8 local variables. */
22498 if (p != p1 || p != p2 || p != p3 || p != p4
22499 || p != p5 || p != p6 || p != p7)
22500 _exit(1);
22502 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22503 from child file descriptors. If the child closes a descriptor
22504 before it execs or exits, this munges the parent's descriptor
22505 as well. Test for this by closing stdout in the child. */
22506 _exit(close(fileno(stdout)) != 0);
22507 } else {
22508 int status;
22509 struct stat st;
22511 while (wait(&status) != child)
22513 return (
22514 /* Was there some problem with vforking? */
22515 child < 0
22517 /* Did the child fail? (This shouldn't happen.) */
22518 || status
22520 /* Did the vfork/compiler bug occur? */
22521 || parent != getpid()
22523 /* Did the file descriptor bug occur? */
22524 || fstat(fileno(stdout), &st) != 0
22528 _ACEOF
22529 rm -f conftest$ac_exeext
22530 if { (ac_try="$ac_link"
22531 case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_link") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22540 { (case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_try") 2>&5
22546 ac_status=$?
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_cv_func_vfork_works=yes
22550 else
22551 echo "$as_me: program exited with status $ac_status" >&5
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ( exit $ac_status )
22556 ac_cv_func_vfork_works=no
22558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22564 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22567 if test "x$ac_cv_func_fork_works" = xcross; then
22568 ac_cv_func_vfork_works=$ac_cv_func_vfork
22569 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22570 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22573 if test "x$ac_cv_func_vfork_works" = xyes; then
22575 cat >>confdefs.h <<\_ACEOF
22576 #define HAVE_WORKING_VFORK 1
22577 _ACEOF
22579 else
22581 cat >>confdefs.h <<\_ACEOF
22582 #define vfork fork
22583 _ACEOF
22586 if test "x$ac_cv_func_fork_works" = xyes; then
22588 cat >>confdefs.h <<\_ACEOF
22589 #define HAVE_WORKING_FORK 1
22590 _ACEOF
22595 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22596 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22597 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600 cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h. */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22606 #include <langinfo.h>
22608 main ()
22610 char* cs = nl_langinfo(CODESET);
22612 return 0;
22614 _ACEOF
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (ac_try="$ac_link"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_link") 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest$ac_exeext &&
22632 $as_test_x conftest$ac_exeext; then
22633 emacs_cv_langinfo_codeset=yes
22634 else
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 emacs_cv_langinfo_codeset=no
22641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22642 conftest$ac_exeext conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22646 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22647 if test $emacs_cv_langinfo_codeset = yes; then
22649 cat >>confdefs.h <<\_ACEOF
22650 #define HAVE_LANGINFO_CODESET 1
22651 _ACEOF
22655 { echo "$as_me:$LINENO: checking for size_t" >&5
22656 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22657 if test "${ac_cv_type_size_t+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 else
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 typedef size_t ac__type_new_;
22669 main ()
22671 if ((ac__type_new_ *) 0)
22672 return 0;
22673 if (sizeof (ac__type_new_))
22674 return 0;
22676 return 0;
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22686 (eval "$ac_compile") 2>conftest.er1
22687 ac_status=$?
22688 grep -v '^ *+' conftest.er1 >conftest.err
22689 rm -f conftest.er1
22690 cat conftest.err >&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } && {
22693 test -z "$ac_c_werror_flag" ||
22694 test ! -s conftest.err
22695 } && test -s conftest.$ac_objext; then
22696 ac_cv_type_size_t=yes
22697 else
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22701 ac_cv_type_size_t=no
22704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22708 if test $ac_cv_type_size_t = yes; then
22710 cat >>confdefs.h <<_ACEOF
22711 #define HAVE_SIZE_T 1
22712 _ACEOF
22718 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22719 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22720 if test "${ac_cv_type_mbstate_t+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 else
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 # include <wchar.h>
22732 main ()
22734 mbstate_t x; return sizeof x;
22736 return 0;
22738 _ACEOF
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_type_mbstate_t=yes
22757 else
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_type_mbstate_t=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22768 if test $ac_cv_type_mbstate_t = yes; then
22770 cat >>confdefs.h <<\_ACEOF
22771 #define HAVE_MBSTATE_T 1
22772 _ACEOF
22774 else
22776 cat >>confdefs.h <<\_ACEOF
22777 #define mbstate_t int
22778 _ACEOF
22782 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22783 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22784 if test "${emacs_cv_c_restrict+set}" = set; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787 cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h. */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 void fred (int *restrict x);
22795 main ()
22799 return 0;
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 emacs_cv_c_restrict=yes
22820 else
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 void fred (int *__restrict x);
22832 main ()
22836 return 0;
22838 _ACEOF
22839 rm -f conftest.$ac_objext
22840 if { (ac_try="$ac_compile"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22844 esac
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_compile") 2>conftest.er1
22847 ac_status=$?
22848 grep -v '^ *+' conftest.er1 >conftest.err
22849 rm -f conftest.er1
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } && {
22853 test -z "$ac_c_werror_flag" ||
22854 test ! -s conftest.err
22855 } && test -s conftest.$ac_objext; then
22856 emacs_cv_c_restrict=__restrict
22857 else
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 emacs_cv_c_restrict=no
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22870 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22871 case "$emacs_cv_c_restrict" in
22872 yes) emacs_restrict=restrict;;
22873 no) emacs_restrict="";;
22874 *) emacs_restrict="$emacs_cv_c_restrict";;
22875 esac
22876 if test "$emacs_restrict" != __restrict; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define __restrict $emacs_restrict
22880 _ACEOF
22884 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22885 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22886 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 void fred (int x[__restrict]);
22897 main ()
22901 return 0;
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 emacs_cv_c_restrict_arr=yes
22922 else
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 emacs_cv_c_restrict_arr=no
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22932 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22933 if test "$emacs_cv_c_restrict_arr" = yes; then
22935 cat >>confdefs.h <<\_ACEOF
22936 #define __restrict_arr __restrict
22937 _ACEOF
22943 # Set up the CFLAGS for real compilation, so we can substitute it.
22944 CFLAGS="$REAL_CFLAGS"
22945 CPPFLAGS="$REAL_CPPFLAGS"
22947 #### Find out which version of Emacs this is.
22948 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22949 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22950 if test x"${version}" = x; then
22951 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22952 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22953 { (exit 1); exit 1; }; }
22956 ### Specify what sort of things we'll be editing into Makefile and config.h.
22957 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22993 cat >>confdefs.h <<_ACEOF
22994 #define EMACS_CONFIGURATION "${canonical}"
22995 _ACEOF
22998 cat >>confdefs.h <<_ACEOF
22999 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23000 _ACEOF
23003 cat >>confdefs.h <<_ACEOF
23004 #define config_machfile "${machfile}"
23005 _ACEOF
23008 cat >>confdefs.h <<_ACEOF
23009 #define config_opsysfile "${opsysfile}"
23010 _ACEOF
23013 cat >>confdefs.h <<_ACEOF
23014 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23015 _ACEOF
23018 cat >>confdefs.h <<_ACEOF
23019 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23020 _ACEOF
23023 cat >>confdefs.h <<_ACEOF
23024 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23025 _ACEOF
23028 cat >>confdefs.h <<_ACEOF
23029 #define UNEXEC_SRC ${UNEXEC_SRC}
23030 _ACEOF
23033 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_X_WINDOWS 1
23037 _ACEOF
23040 if test "${USE_X_TOOLKIT}" != "none" ; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define USE_X_TOOLKIT 1
23044 _ACEOF
23047 if test "${HAVE_X11}" = "yes" ; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_X11 1
23051 _ACEOF
23054 if test "${HAVE_XFREE386}" = "yes" ; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_XFREE386 1
23058 _ACEOF
23061 if test "${HAVE_MENUS}" = "yes" ; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_MENUS 1
23065 _ACEOF
23068 if test "${GNU_MALLOC}" = "yes" ; then
23070 cat >>confdefs.h <<\_ACEOF
23071 #define GNU_MALLOC 1
23072 _ACEOF
23075 if test "${REL_ALLOC}" = "yes" ; then
23077 cat >>confdefs.h <<\_ACEOF
23078 #define REL_ALLOC 1
23079 _ACEOF
23087 #### Report on what we decided to do.
23088 #### Report GTK as a toolkit, even if it doesn't use Xt.
23089 #### It makes printing result more understandable as using GTK sets
23090 #### toolkit_scroll_bars to yes by default.
23091 if test "${HAVE_GTK}" = "yes"; then
23092 USE_X_TOOLKIT=GTK
23095 echo "
23096 Configured for \`${canonical}'.
23098 Where should the build process find the source code? ${srcdir}
23099 What operating system and machine description files should Emacs use?
23100 \`${opsysfile}' and \`${machfile}'
23101 What compiler should emacs be built with? ${CC} ${CFLAGS}
23102 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23103 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23104 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23105 What window system should Emacs use? ${window_system}
23106 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23108 if test -n "${x_includes}"; then
23109 echo " Where do we find X Windows header files? ${x_includes}"
23110 else
23111 echo " Where do we find X Windows header files? Standard dirs"
23113 if test -n "${x_libraries}"; then
23114 echo " Where do we find X Windows libraries? ${x_libraries}"
23115 else
23116 echo " Where do we find X Windows libraries? Standard dirs"
23119 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23120 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23121 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23122 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23123 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23124 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23125 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23126 echo
23128 if test $USE_XASSERTS = yes; then
23129 echo " Compiling with asserts turned on."
23130 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23131 echo
23134 if test "$USE_X_TOOLKIT" = GTK; then
23135 case "$canonical" in
23136 *cygwin*)
23137 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23138 will probably get a crash on startup. If this happens, please use another
23139 toolkit for Emacs. See etc/PROBLEMS for more information."
23141 esac
23146 # Remove any trailing slashes in these variables.
23147 test "${prefix}" != NONE &&
23148 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23149 test "${exec_prefix}" != NONE &&
23150 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23152 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23153 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23154 ## from Makefile.c can correctly provide the arg `-traditional' to the
23155 ## C preprocessor.
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 yes..yes
23164 _ACEOF
23165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23166 $EGREP "yes..yes" >/dev/null 2>&1; then
23167 CPP_NEED_TRADITIONAL=no
23168 else
23169 CPP_NEED_TRADITIONAL=yes
23171 rm -f conftest*
23174 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"
23176 ac_config_commands="$ac_config_commands default"
23178 cat >confcache <<\_ACEOF
23179 # This file is a shell script that caches the results of configure
23180 # tests run on this system so they can be shared between configure
23181 # scripts and configure runs, see configure's option --config-cache.
23182 # It is not useful on other systems. If it contains results you don't
23183 # want to keep, you may remove or edit it.
23185 # config.status only pays attention to the cache file if you give it
23186 # the --recheck option to rerun configure.
23188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23190 # following values.
23192 _ACEOF
23194 # The following way of writing the cache mishandles newlines in values,
23195 # but we know of no workaround that is simple, portable, and efficient.
23196 # So, we kill variables containing newlines.
23197 # Ultrix sh set writes to stderr and can't be redirected directly,
23198 # and sets the high bit in the cache file unless we assign to the vars.
23200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23201 eval ac_val=\$$ac_var
23202 case $ac_val in #(
23203 *${as_nl}*)
23204 case $ac_var in #(
23205 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23206 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23207 esac
23208 case $ac_var in #(
23209 _ | IFS | as_nl) ;; #(
23210 *) $as_unset $ac_var ;;
23211 esac ;;
23212 esac
23213 done
23215 (set) 2>&1 |
23216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23217 *${as_nl}ac_space=\ *)
23218 # `set' does not quote correctly, so add quotes (double-quote
23219 # substitution turns \\\\ into \\, and sed turns \\ into \).
23220 sed -n \
23221 "s/'/'\\\\''/g;
23222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23223 ;; #(
23225 # `set' quotes correctly as required by POSIX, so do not add quotes.
23226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23228 esac |
23229 sort
23231 sed '
23232 /^ac_cv_env_/b end
23233 t clear
23234 :clear
23235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23236 t end
23237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23238 :end' >>confcache
23239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23240 if test -w "$cache_file"; then
23241 test "x$cache_file" != "x/dev/null" &&
23242 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23243 echo "$as_me: updating cache $cache_file" >&6;}
23244 cat confcache >$cache_file
23245 else
23246 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23247 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23250 rm -f confcache
23252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23253 # Let make expand exec_prefix.
23254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23256 DEFS=-DHAVE_CONFIG_H
23258 ac_libobjs=
23259 ac_ltlibobjs=
23260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23261 # 1. Remove the extension, and $U if already installed.
23262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23263 ac_i=`echo "$ac_i" | sed "$ac_script"`
23264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23265 # will be set to the directory where LIBOBJS objects are built.
23266 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23267 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23268 done
23269 LIBOBJS=$ac_libobjs
23271 LTLIBOBJS=$ac_ltlibobjs
23275 : ${CONFIG_STATUS=./config.status}
23276 ac_clean_files_save=$ac_clean_files
23277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23278 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23279 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23280 cat >$CONFIG_STATUS <<_ACEOF
23281 #! $SHELL
23282 # Generated by $as_me.
23283 # Run this file to recreate the current configuration.
23284 # Compiler output produced by configure, useful for debugging
23285 # configure, is in config.log if it exists.
23287 debug=false
23288 ac_cs_recheck=false
23289 ac_cs_silent=false
23290 SHELL=\${CONFIG_SHELL-$SHELL}
23291 _ACEOF
23293 cat >>$CONFIG_STATUS <<\_ACEOF
23294 ## --------------------- ##
23295 ## M4sh Initialization. ##
23296 ## --------------------- ##
23298 # Be more Bourne compatible
23299 DUALCASE=1; export DUALCASE # for MKS sh
23300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23301 emulate sh
23302 NULLCMD=:
23303 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23304 # is contrary to our usage. Disable this feature.
23305 alias -g '${1+"$@"}'='"$@"'
23306 setopt NO_GLOB_SUBST
23307 else
23308 case `(set -o) 2>/dev/null` in
23309 *posix*) set -o posix ;;
23310 esac
23317 # PATH needs CR
23318 # Avoid depending upon Character Ranges.
23319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23322 as_cr_digits='0123456789'
23323 as_cr_alnum=$as_cr_Letters$as_cr_digits
23325 # The user is always right.
23326 if test "${PATH_SEPARATOR+set}" != set; then
23327 echo "#! /bin/sh" >conf$$.sh
23328 echo "exit 0" >>conf$$.sh
23329 chmod +x conf$$.sh
23330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23331 PATH_SEPARATOR=';'
23332 else
23333 PATH_SEPARATOR=:
23335 rm -f conf$$.sh
23338 # Support unset when possible.
23339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23340 as_unset=unset
23341 else
23342 as_unset=false
23346 # IFS
23347 # We need space, tab and new line, in precisely that order. Quoting is
23348 # there to prevent editors from complaining about space-tab.
23349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23350 # splitting by setting IFS to empty value.)
23351 as_nl='
23353 IFS=" "" $as_nl"
23355 # Find who we are. Look in the path if we contain no directory separator.
23356 case $0 in
23357 *[\\/]* ) as_myself=$0 ;;
23358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23359 for as_dir in $PATH
23361 IFS=$as_save_IFS
23362 test -z "$as_dir" && as_dir=.
23363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23364 done
23365 IFS=$as_save_IFS
23368 esac
23369 # We did not find ourselves, most probably we were run as `sh COMMAND'
23370 # in which case we are not to be found in the path.
23371 if test "x$as_myself" = x; then
23372 as_myself=$0
23374 if test ! -f "$as_myself"; then
23375 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23376 { (exit 1); exit 1; }
23379 # Work around bugs in pre-3.0 UWIN ksh.
23380 for as_var in ENV MAIL MAILPATH
23381 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23382 done
23383 PS1='$ '
23384 PS2='> '
23385 PS4='+ '
23387 # NLS nuisances.
23388 for as_var in \
23389 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23390 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23391 LC_TELEPHONE LC_TIME
23393 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23394 eval $as_var=C; export $as_var
23395 else
23396 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23398 done
23400 # Required to use basename.
23401 if expr a : '\(a\)' >/dev/null 2>&1 &&
23402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23403 as_expr=expr
23404 else
23405 as_expr=false
23408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23409 as_basename=basename
23410 else
23411 as_basename=false
23415 # Name of the executable.
23416 as_me=`$as_basename -- "$0" ||
23417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23418 X"$0" : 'X\(//\)$' \| \
23419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23420 echo X/"$0" |
23421 sed '/^.*\/\([^/][^/]*\)\/*$/{
23422 s//\1/
23425 /^X\/\(\/\/\)$/{
23426 s//\1/
23429 /^X\/\(\/\).*/{
23430 s//\1/
23433 s/.*/./; q'`
23435 # CDPATH.
23436 $as_unset CDPATH
23440 as_lineno_1=$LINENO
23441 as_lineno_2=$LINENO
23442 test "x$as_lineno_1" != "x$as_lineno_2" &&
23443 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23446 # uniformly replaced by the line number. The first 'sed' inserts a
23447 # line-number line after each line using $LINENO; the second 'sed'
23448 # does the real work. The second script uses 'N' to pair each
23449 # line-number line with the line containing $LINENO, and appends
23450 # trailing '-' during substitution so that $LINENO is not a special
23451 # case at line end.
23452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23453 # scripts with optimization help from Paolo Bonzini. Blame Lee
23454 # E. McMahon (1931-1989) for sed's syntax. :-)
23455 sed -n '
23457 /[$]LINENO/=
23458 ' <$as_myself |
23459 sed '
23460 s/[$]LINENO.*/&-/
23461 t lineno
23463 :lineno
23465 :loop
23466 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23467 t loop
23468 s/-\n.*//
23469 ' >$as_me.lineno &&
23470 chmod +x "$as_me.lineno" ||
23471 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23472 { (exit 1); exit 1; }; }
23474 # Don't try to exec as it changes $[0], causing all sort of problems
23475 # (the dirname of $[0] is not the place where we might find the
23476 # original and so on. Autoconf is especially sensitive to this).
23477 . "./$as_me.lineno"
23478 # Exit status is that of the last command.
23479 exit
23483 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23484 as_dirname=dirname
23485 else
23486 as_dirname=false
23489 ECHO_C= ECHO_N= ECHO_T=
23490 case `echo -n x` in
23491 -n*)
23492 case `echo 'x\c'` in
23493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23494 *) ECHO_C='\c';;
23495 esac;;
23497 ECHO_N='-n';;
23498 esac
23500 if expr a : '\(a\)' >/dev/null 2>&1 &&
23501 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23502 as_expr=expr
23503 else
23504 as_expr=false
23507 rm -f conf$$ conf$$.exe conf$$.file
23508 if test -d conf$$.dir; then
23509 rm -f conf$$.dir/conf$$.file
23510 else
23511 rm -f conf$$.dir
23512 mkdir conf$$.dir
23514 echo >conf$$.file
23515 if ln -s conf$$.file conf$$ 2>/dev/null; then
23516 as_ln_s='ln -s'
23517 # ... but there are two gotchas:
23518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23520 # In both cases, we have to default to `cp -p'.
23521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23522 as_ln_s='cp -p'
23523 elif ln conf$$.file conf$$ 2>/dev/null; then
23524 as_ln_s=ln
23525 else
23526 as_ln_s='cp -p'
23528 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23529 rmdir conf$$.dir 2>/dev/null
23531 if mkdir -p . 2>/dev/null; then
23532 as_mkdir_p=:
23533 else
23534 test -d ./-p && rmdir ./-p
23535 as_mkdir_p=false
23538 if test -x / >/dev/null 2>&1; then
23539 as_test_x='test -x'
23540 else
23541 if ls -dL / >/dev/null 2>&1; then
23542 as_ls_L_option=L
23543 else
23544 as_ls_L_option=
23546 as_test_x='
23547 eval sh -c '\''
23548 if test -d "$1"; then
23549 test -d "$1/.";
23550 else
23551 case $1 in
23552 -*)set "./$1";;
23553 esac;
23554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23555 ???[sx]*):;;*)false;;esac;fi
23556 '\'' sh
23559 as_executable_p=$as_test_x
23561 # Sed expression to map a string onto a valid CPP name.
23562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23564 # Sed expression to map a string onto a valid variable name.
23565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23568 exec 6>&1
23570 # Save the log message, to keep $[0] and so on meaningful, and to
23571 # report actual input values of CONFIG_FILES etc. instead of their
23572 # values after options handling.
23573 ac_log="
23574 This file was extended by $as_me, which was
23575 generated by GNU Autoconf 2.61. Invocation command line was
23577 CONFIG_FILES = $CONFIG_FILES
23578 CONFIG_HEADERS = $CONFIG_HEADERS
23579 CONFIG_LINKS = $CONFIG_LINKS
23580 CONFIG_COMMANDS = $CONFIG_COMMANDS
23581 $ $0 $@
23583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23586 _ACEOF
23588 cat >>$CONFIG_STATUS <<_ACEOF
23589 # Files that config.status was made for.
23590 config_files="$ac_config_files"
23591 config_headers="$ac_config_headers"
23592 config_commands="$ac_config_commands"
23594 _ACEOF
23596 cat >>$CONFIG_STATUS <<\_ACEOF
23597 ac_cs_usage="\
23598 \`$as_me' instantiates files from templates according to the
23599 current configuration.
23601 Usage: $0 [OPTIONS] [FILE]...
23603 -h, --help print this help, then exit
23604 -V, --version print version number and configuration settings, then exit
23605 -q, --quiet do not print progress messages
23606 -d, --debug don't remove temporary files
23607 --recheck update $as_me by reconfiguring in the same conditions
23608 --file=FILE[:TEMPLATE]
23609 instantiate the configuration file FILE
23610 --header=FILE[:TEMPLATE]
23611 instantiate the configuration header FILE
23613 Configuration files:
23614 $config_files
23616 Configuration headers:
23617 $config_headers
23619 Configuration commands:
23620 $config_commands
23622 Report bugs to <bug-autoconf@gnu.org>."
23624 _ACEOF
23625 cat >>$CONFIG_STATUS <<_ACEOF
23626 ac_cs_version="\\
23627 config.status
23628 configured by $0, generated by GNU Autoconf 2.61,
23629 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23631 Copyright (C) 2006 Free Software Foundation, Inc.
23632 This config.status script is free software; the Free Software Foundation
23633 gives unlimited permission to copy, distribute and modify it."
23635 ac_pwd='$ac_pwd'
23636 srcdir='$srcdir'
23637 INSTALL='$INSTALL'
23638 _ACEOF
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 # If no file are specified by the user, then we need to provide default
23642 # value. By we need to know if files were specified by the user.
23643 ac_need_defaults=:
23644 while test $# != 0
23646 case $1 in
23647 --*=*)
23648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23650 ac_shift=:
23653 ac_option=$1
23654 ac_optarg=$2
23655 ac_shift=shift
23657 esac
23659 case $ac_option in
23660 # Handling of the options.
23661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23662 ac_cs_recheck=: ;;
23663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23664 echo "$ac_cs_version"; exit ;;
23665 --debug | --debu | --deb | --de | --d | -d )
23666 debug=: ;;
23667 --file | --fil | --fi | --f )
23668 $ac_shift
23669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23670 ac_need_defaults=false;;
23671 --header | --heade | --head | --hea )
23672 $ac_shift
23673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23674 ac_need_defaults=false;;
23675 --he | --h)
23676 # Conflict between --help and --header
23677 { echo "$as_me: error: ambiguous option: $1
23678 Try \`$0 --help' for more information." >&2
23679 { (exit 1); exit 1; }; };;
23680 --help | --hel | -h )
23681 echo "$ac_cs_usage"; exit ;;
23682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23684 ac_cs_silent=: ;;
23686 # This is an error.
23687 -*) { echo "$as_me: error: unrecognized option: $1
23688 Try \`$0 --help' for more information." >&2
23689 { (exit 1); exit 1; }; } ;;
23691 *) ac_config_targets="$ac_config_targets $1"
23692 ac_need_defaults=false ;;
23694 esac
23695 shift
23696 done
23698 ac_configure_extra_args=
23700 if $ac_cs_silent; then
23701 exec 6>/dev/null
23702 ac_configure_extra_args="$ac_configure_extra_args --silent"
23705 _ACEOF
23706 cat >>$CONFIG_STATUS <<_ACEOF
23707 if \$ac_cs_recheck; then
23708 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23709 CONFIG_SHELL=$SHELL
23710 export CONFIG_SHELL
23711 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23714 _ACEOF
23715 cat >>$CONFIG_STATUS <<\_ACEOF
23716 exec 5>>config.log
23718 echo
23719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23720 ## Running $as_me. ##
23721 _ASBOX
23722 echo "$ac_log"
23723 } >&5
23725 _ACEOF
23726 cat >>$CONFIG_STATUS <<_ACEOF
23728 # INIT-COMMANDS
23730 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23732 _ACEOF
23734 cat >>$CONFIG_STATUS <<\_ACEOF
23736 # Handling of arguments.
23737 for ac_config_target in $ac_config_targets
23739 case $ac_config_target in
23740 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23742 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23743 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23744 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23745 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23746 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23747 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23748 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23749 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23750 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23751 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23753 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23754 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23755 { (exit 1); exit 1; }; };;
23756 esac
23757 done
23760 # If the user did not use the arguments to specify the items to instantiate,
23761 # then the envvar interface is used. Set only those that are not.
23762 # We use the long form for the default assignment because of an extremely
23763 # bizarre bug on SunOS 4.1.3.
23764 if $ac_need_defaults; then
23765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23770 # Have a temporary directory for convenience. Make it in the build tree
23771 # simply because there is no reason against having it here, and in addition,
23772 # creating and moving files from /tmp can sometimes cause problems.
23773 # Hook for its removal unless debugging.
23774 # Note that there is a small window in which the directory will not be cleaned:
23775 # after its creation but before its name has been assigned to `$tmp'.
23776 $debug ||
23778 tmp=
23779 trap 'exit_status=$?
23780 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23782 trap '{ (exit 1); exit 1; }' 1 2 13 15
23784 # Create a (secure) tmp directory for tmp files.
23787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23788 test -n "$tmp" && test -d "$tmp"
23789 } ||
23791 tmp=./conf$$-$RANDOM
23792 (umask 077 && mkdir "$tmp")
23793 } ||
23795 echo "$me: cannot create a temporary directory in ." >&2
23796 { (exit 1); exit 1; }
23800 # Set up the sed scripts for CONFIG_FILES section.
23803 # No need to generate the scripts if there are no CONFIG_FILES.
23804 # This happens for instance when ./config.status config.h
23805 if test -n "$CONFIG_FILES"; then
23807 _ACEOF
23811 ac_delim='%!_!# '
23812 for ac_last_try in false false false false false :; do
23813 cat >conf$$subs.sed <<_ACEOF
23814 SHELL!$SHELL$ac_delim
23815 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23816 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23817 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23818 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23819 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23820 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23821 exec_prefix!$exec_prefix$ac_delim
23822 prefix!$prefix$ac_delim
23823 program_transform_name!$program_transform_name$ac_delim
23824 bindir!$bindir$ac_delim
23825 sbindir!$sbindir$ac_delim
23826 libexecdir!$libexecdir$ac_delim
23827 datarootdir!$datarootdir$ac_delim
23828 datadir!$datadir$ac_delim
23829 sysconfdir!$sysconfdir$ac_delim
23830 sharedstatedir!$sharedstatedir$ac_delim
23831 localstatedir!$localstatedir$ac_delim
23832 includedir!$includedir$ac_delim
23833 oldincludedir!$oldincludedir$ac_delim
23834 docdir!$docdir$ac_delim
23835 infodir!$infodir$ac_delim
23836 htmldir!$htmldir$ac_delim
23837 dvidir!$dvidir$ac_delim
23838 pdfdir!$pdfdir$ac_delim
23839 psdir!$psdir$ac_delim
23840 libdir!$libdir$ac_delim
23841 localedir!$localedir$ac_delim
23842 mandir!$mandir$ac_delim
23843 DEFS!$DEFS$ac_delim
23844 ECHO_C!$ECHO_C$ac_delim
23845 ECHO_N!$ECHO_N$ac_delim
23846 ECHO_T!$ECHO_T$ac_delim
23847 LIBS!$LIBS$ac_delim
23848 build_alias!$build_alias$ac_delim
23849 host_alias!$host_alias$ac_delim
23850 target_alias!$target_alias$ac_delim
23851 MAINT!$MAINT$ac_delim
23852 build!$build$ac_delim
23853 build_cpu!$build_cpu$ac_delim
23854 build_vendor!$build_vendor$ac_delim
23855 build_os!$build_os$ac_delim
23856 host!$host$ac_delim
23857 host_cpu!$host_cpu$ac_delim
23858 host_vendor!$host_vendor$ac_delim
23859 host_os!$host_os$ac_delim
23860 CC!$CC$ac_delim
23861 CFLAGS!$CFLAGS$ac_delim
23862 LDFLAGS!$LDFLAGS$ac_delim
23863 CPPFLAGS!$CPPFLAGS$ac_delim
23864 ac_ct_CC!$ac_ct_CC$ac_delim
23865 EXEEXT!$EXEEXT$ac_delim
23866 OBJEXT!$OBJEXT$ac_delim
23867 CPP!$CPP$ac_delim
23868 GREP!$GREP$ac_delim
23869 EGREP!$EGREP$ac_delim
23870 LN_S!$LN_S$ac_delim
23871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23873 INSTALL_DATA!$INSTALL_DATA$ac_delim
23874 RANLIB!$RANLIB$ac_delim
23875 INSTALL_INFO!$INSTALL_INFO$ac_delim
23876 GZIP_PROG!$GZIP_PROG$ac_delim
23877 LIBSOUND!$LIBSOUND$ac_delim
23878 PKG_CONFIG!$PKG_CONFIG$ac_delim
23879 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23880 ALSA_LIBS!$ALSA_LIBS$ac_delim
23881 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23882 SET_MAKE!$SET_MAKE$ac_delim
23883 XMKMF!$XMKMF$ac_delim
23884 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23885 GTK_LIBS!$GTK_LIBS$ac_delim
23886 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23887 XFT_LIBS!$XFT_LIBS$ac_delim
23888 ALLOCA!$ALLOCA$ac_delim
23889 liblockfile!$liblockfile$ac_delim
23890 LIBOBJS!$LIBOBJS$ac_delim
23891 NEED_SETGID!$NEED_SETGID$ac_delim
23892 KMEM_GROUP!$KMEM_GROUP$ac_delim
23893 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23894 GETOPT_H!$GETOPT_H$ac_delim
23895 GETOPTOBJS!$GETOPTOBJS$ac_delim
23896 version!$version$ac_delim
23897 configuration!$configuration$ac_delim
23898 canonical!$canonical$ac_delim
23899 srcdir!$srcdir$ac_delim
23900 lispdir!$lispdir$ac_delim
23901 locallisppath!$locallisppath$ac_delim
23902 lisppath!$lisppath$ac_delim
23903 x_default_search_path!$x_default_search_path$ac_delim
23904 etcdir!$etcdir$ac_delim
23905 archlibdir!$archlibdir$ac_delim
23906 bitmapdir!$bitmapdir$ac_delim
23907 gamedir!$gamedir$ac_delim
23908 gameuser!$gameuser$ac_delim
23909 c_switch_system!$c_switch_system$ac_delim
23910 c_switch_machine!$c_switch_machine$ac_delim
23911 _ACEOF
23913 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23914 break
23915 elif $ac_last_try; then
23916 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23918 { (exit 1); exit 1; }; }
23919 else
23920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23922 done
23924 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23925 if test -n "$ac_eof"; then
23926 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23927 ac_eof=`expr $ac_eof + 1`
23930 cat >>$CONFIG_STATUS <<_ACEOF
23931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23933 _ACEOF
23934 sed '
23935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23936 s/^/s,@/; s/!/@,|#_!!_#|/
23939 s/'"$ac_delim"'$/,g/; t
23940 s/$/\\/; p
23941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23942 ' >>$CONFIG_STATUS <conf$$subs.sed
23943 rm -f conf$$subs.sed
23944 cat >>$CONFIG_STATUS <<_ACEOF
23945 CEOF$ac_eof
23946 _ACEOF
23949 ac_delim='%!_!# '
23950 for ac_last_try in false false false false false :; do
23951 cat >conf$$subs.sed <<_ACEOF
23952 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23953 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23954 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23955 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23956 machfile!$machfile$ac_delim
23957 opsysfile!$opsysfile$ac_delim
23958 carbon_appdir!$carbon_appdir$ac_delim
23959 LTLIBOBJS!$LTLIBOBJS$ac_delim
23960 _ACEOF
23962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23963 break
23964 elif $ac_last_try; then
23965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23967 { (exit 1); exit 1; }; }
23968 else
23969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23971 done
23973 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23974 if test -n "$ac_eof"; then
23975 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23976 ac_eof=`expr $ac_eof + 1`
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23982 _ACEOF
23983 sed '
23984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23985 s/^/s,@/; s/!/@,|#_!!_#|/
23988 s/'"$ac_delim"'$/,g/; t
23989 s/$/\\/; p
23990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23991 ' >>$CONFIG_STATUS <conf$$subs.sed
23992 rm -f conf$$subs.sed
23993 cat >>$CONFIG_STATUS <<_ACEOF
23994 :end
23995 s/|#_!!_#|//g
23996 CEOF$ac_eof
23997 _ACEOF
24000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24002 # trailing colons and then remove the whole line if VPATH becomes empty
24003 # (actually we leave an empty line to preserve line numbers).
24004 if test "x$srcdir" = x.; then
24005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24006 s/:*\$(srcdir):*/:/
24007 s/:*\${srcdir}:*/:/
24008 s/:*@srcdir@:*/:/
24009 s/^\([^=]*=[ ]*\):*/\1/
24010 s/:*$//
24011 s/^[^=]*=[ ]*$//
24015 cat >>$CONFIG_STATUS <<\_ACEOF
24016 fi # test -n "$CONFIG_FILES"
24019 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24021 case $ac_tag in
24022 :[FHLC]) ac_mode=$ac_tag; continue;;
24023 esac
24024 case $ac_mode$ac_tag in
24025 :[FHL]*:*);;
24026 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24027 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24028 { (exit 1); exit 1; }; };;
24029 :[FH]-) ac_tag=-:-;;
24030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24031 esac
24032 ac_save_IFS=$IFS
24033 IFS=:
24034 set x $ac_tag
24035 IFS=$ac_save_IFS
24036 shift
24037 ac_file=$1
24038 shift
24040 case $ac_mode in
24041 :L) ac_source=$1;;
24042 :[FH])
24043 ac_file_inputs=
24044 for ac_f
24046 case $ac_f in
24047 -) ac_f="$tmp/stdin";;
24048 *) # Look for the file first in the build tree, then in the source tree
24049 # (if the path is not absolute). The absolute path cannot be DOS-style,
24050 # because $ac_f cannot contain `:'.
24051 test -f "$ac_f" ||
24052 case $ac_f in
24053 [\\/$]*) false;;
24054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24055 esac ||
24056 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24057 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24058 { (exit 1); exit 1; }; };;
24059 esac
24060 ac_file_inputs="$ac_file_inputs $ac_f"
24061 done
24063 # Let's still pretend it is `configure' which instantiates (i.e., don't
24064 # use $as_me), people would be surprised to read:
24065 # /* config.h. Generated by config.status. */
24066 configure_input="Generated from "`IFS=:
24067 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24068 if test x"$ac_file" != x-; then
24069 configure_input="$ac_file. $configure_input"
24070 { echo "$as_me:$LINENO: creating $ac_file" >&5
24071 echo "$as_me: creating $ac_file" >&6;}
24074 case $ac_tag in
24075 *:-:* | *:-) cat >"$tmp/stdin";;
24076 esac
24078 esac
24080 ac_dir=`$as_dirname -- "$ac_file" ||
24081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082 X"$ac_file" : 'X\(//\)[^/]' \| \
24083 X"$ac_file" : 'X\(//\)$' \| \
24084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24085 echo X"$ac_file" |
24086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24087 s//\1/
24090 /^X\(\/\/\)[^/].*/{
24091 s//\1/
24094 /^X\(\/\/\)$/{
24095 s//\1/
24098 /^X\(\/\).*/{
24099 s//\1/
24102 s/.*/./; q'`
24103 { as_dir="$ac_dir"
24104 case $as_dir in #(
24105 -*) as_dir=./$as_dir;;
24106 esac
24107 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24108 as_dirs=
24109 while :; do
24110 case $as_dir in #(
24111 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24112 *) as_qdir=$as_dir;;
24113 esac
24114 as_dirs="'$as_qdir' $as_dirs"
24115 as_dir=`$as_dirname -- "$as_dir" ||
24116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24117 X"$as_dir" : 'X\(//\)[^/]' \| \
24118 X"$as_dir" : 'X\(//\)$' \| \
24119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 echo X"$as_dir" |
24121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24122 s//\1/
24125 /^X\(\/\/\)[^/].*/{
24126 s//\1/
24129 /^X\(\/\/\)$/{
24130 s//\1/
24133 /^X\(\/\).*/{
24134 s//\1/
24137 s/.*/./; q'`
24138 test -d "$as_dir" && break
24139 done
24140 test -z "$as_dirs" || eval "mkdir $as_dirs"
24141 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24142 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24143 { (exit 1); exit 1; }; }; }
24144 ac_builddir=.
24146 case "$ac_dir" in
24147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24150 # A ".." for each directory in $ac_dir_suffix.
24151 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24152 case $ac_top_builddir_sub in
24153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24155 esac ;;
24156 esac
24157 ac_abs_top_builddir=$ac_pwd
24158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24159 # for backward compatibility:
24160 ac_top_builddir=$ac_top_build_prefix
24162 case $srcdir in
24163 .) # We are building in place.
24164 ac_srcdir=.
24165 ac_top_srcdir=$ac_top_builddir_sub
24166 ac_abs_top_srcdir=$ac_pwd ;;
24167 [\\/]* | ?:[\\/]* ) # Absolute name.
24168 ac_srcdir=$srcdir$ac_dir_suffix;
24169 ac_top_srcdir=$srcdir
24170 ac_abs_top_srcdir=$srcdir ;;
24171 *) # Relative name.
24172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24173 ac_top_srcdir=$ac_top_build_prefix$srcdir
24174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24175 esac
24176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24179 case $ac_mode in
24182 # CONFIG_FILE
24185 case $INSTALL in
24186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24188 esac
24189 _ACEOF
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 # If the template does not know about datarootdir, expand it.
24193 # FIXME: This hack should be removed a few years after 2.60.
24194 ac_datarootdir_hack=; ac_datarootdir_seen=
24196 case `sed -n '/datarootdir/ {
24200 /@datadir@/p
24201 /@docdir@/p
24202 /@infodir@/p
24203 /@localedir@/p
24204 /@mandir@/p
24205 ' $ac_file_inputs` in
24206 *datarootdir*) ac_datarootdir_seen=yes;;
24207 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24208 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24209 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24210 _ACEOF
24211 cat >>$CONFIG_STATUS <<_ACEOF
24212 ac_datarootdir_hack='
24213 s&@datadir@&$datadir&g
24214 s&@docdir@&$docdir&g
24215 s&@infodir@&$infodir&g
24216 s&@localedir@&$localedir&g
24217 s&@mandir@&$mandir&g
24218 s&\\\${datarootdir}&$datarootdir&g' ;;
24219 esac
24220 _ACEOF
24222 # Neutralize VPATH when `$srcdir' = `.'.
24223 # Shell code in configure.ac might set extrasub.
24224 # FIXME: do we really want to maintain this feature?
24225 cat >>$CONFIG_STATUS <<_ACEOF
24226 sed "$ac_vpsub
24227 $extrasub
24228 _ACEOF
24229 cat >>$CONFIG_STATUS <<\_ACEOF
24231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24232 s&@configure_input@&$configure_input&;t t
24233 s&@top_builddir@&$ac_top_builddir_sub&;t t
24234 s&@srcdir@&$ac_srcdir&;t t
24235 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24236 s&@top_srcdir@&$ac_top_srcdir&;t t
24237 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24238 s&@builddir@&$ac_builddir&;t t
24239 s&@abs_builddir@&$ac_abs_builddir&;t t
24240 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24241 s&@INSTALL@&$ac_INSTALL&;t t
24242 $ac_datarootdir_hack
24243 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24246 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24248 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24249 which seems to be undefined. Please make sure it is defined." >&5
24250 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24251 which seems to be undefined. Please make sure it is defined." >&2;}
24253 rm -f "$tmp/stdin"
24254 case $ac_file in
24255 -) cat "$tmp/out"; rm -f "$tmp/out";;
24256 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24257 esac
24261 # CONFIG_HEADER
24263 _ACEOF
24265 # Transform confdefs.h into a sed script `conftest.defines', that
24266 # substitutes the proper values into config.h.in to produce config.h.
24267 rm -f conftest.defines conftest.tail
24268 # First, append a space to every undef/define line, to ease matching.
24269 echo 's/$/ /' >conftest.defines
24270 # Then, protect against being on the right side of a sed subst, or in
24271 # an unquoted here document, in config.status. If some macros were
24272 # called several times there might be several #defines for the same
24273 # symbol, which is useless. But do not sort them, since the last
24274 # AC_DEFINE must be honored.
24275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24276 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24277 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24278 # PARAMS is the parameter list in the macro definition--in most cases, it's
24279 # just an empty string.
24280 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24281 ac_dB='\\)[ (].*,\\1define\\2'
24282 ac_dC=' '
24283 ac_dD=' ,'
24285 uniq confdefs.h |
24286 sed -n '
24287 t rset
24288 :rset
24289 s/^[ ]*#[ ]*define[ ][ ]*//
24290 t ok
24293 s/[\\&,]/\\&/g
24294 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24295 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24296 ' >>conftest.defines
24298 # Remove the space that was appended to ease matching.
24299 # Then replace #undef with comments. This is necessary, for
24300 # example, in the case of _POSIX_SOURCE, which is predefined and required
24301 # on some systems where configure will not decide to define it.
24302 # (The regexp can be short, since the line contains either #define or #undef.)
24303 echo 's/ $//
24304 s,^[ #]*u.*,/* & */,' >>conftest.defines
24306 # Break up conftest.defines:
24307 ac_max_sed_lines=50
24309 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24310 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24311 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24312 # et cetera.
24313 ac_in='$ac_file_inputs'
24314 ac_out='"$tmp/out1"'
24315 ac_nxt='"$tmp/out2"'
24317 while :
24319 # Write a here document:
24320 cat >>$CONFIG_STATUS <<_ACEOF
24321 # First, check the format of the line:
24322 cat >"\$tmp/defines.sed" <<\\CEOF
24323 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24324 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24326 :def
24327 _ACEOF
24328 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24329 echo 'CEOF
24330 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24331 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24332 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24333 grep . conftest.tail >/dev/null || break
24334 rm -f conftest.defines
24335 mv conftest.tail conftest.defines
24336 done
24337 rm -f conftest.defines conftest.tail
24339 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24340 cat >>$CONFIG_STATUS <<\_ACEOF
24341 if test x"$ac_file" != x-; then
24342 echo "/* $configure_input */" >"$tmp/config.h"
24343 cat "$ac_result" >>"$tmp/config.h"
24344 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24345 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24346 echo "$as_me: $ac_file is unchanged" >&6;}
24347 else
24348 rm -f $ac_file
24349 mv "$tmp/config.h" $ac_file
24351 else
24352 echo "/* $configure_input */"
24353 cat "$ac_result"
24355 rm -f "$tmp/out12"
24358 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24359 echo "$as_me: executing $ac_file commands" >&6;}
24361 esac
24364 case $ac_file$ac_mode in
24365 "default":C)
24367 ### Make the necessary directories, if they don't exist.
24368 for dir in etc lisp ; do
24369 test -d ${dir} || mkdir ${dir}
24370 done
24372 # Build src/Makefile from ${srcdir}/src/Makefile.c
24373 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24374 # This must be done after src/config.h is built, since we rely on that file.
24376 # Now get this: Some word that is part of the ${srcdir} directory name
24377 # or the ${configuration} value might, just might, happen to be an
24378 # identifier like `sun4' or `i386' or something, and be predefined by
24379 # the C preprocessor to some helpful value like 1, or maybe the empty
24380 # string. Needless to say consequent macro substitutions are less
24381 # than conducive to the makefile finding the correct directory.
24382 undefs="`echo $top_srcdir $configuration $canonical |
24383 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24384 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24387 echo creating src/epaths.h
24388 ${MAKE-make} epaths-force
24390 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24391 # `..' to `. .' unless invoked with -traditional
24393 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24394 CPPFLAGS="$CPPFLAGS -traditional"
24397 echo creating lib-src/Makefile
24398 ( cd lib-src
24399 rm -f junk.c junk1.c junk2.c
24400 sed -e '/start of cpp stuff/q' \
24401 < Makefile.c > junk1.c
24402 sed -e '1,/start of cpp stuff/d'\
24403 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24404 < Makefile.c > junk.c
24405 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24406 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24407 cat junk1.c junk2.c > Makefile.new
24408 rm -f junk.c junk1.c junk2.c
24409 chmod 444 Makefile.new
24410 mv -f Makefile.new Makefile
24413 echo creating src/Makefile
24414 ( cd src
24415 rm -f junk.c junk1.c junk2.c
24416 sed -e '/start of cpp stuff/q' \
24417 < Makefile.c > junk1.c
24418 sed -e '1,/start of cpp stuff/d'\
24419 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24420 < Makefile.c > junk.c
24421 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24422 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24423 cat junk1.c junk2.c > Makefile.new
24424 rm -f junk.c junk1.c junk2.c
24425 chmod 444 Makefile.new
24426 mv -f Makefile.new Makefile
24429 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24430 echo creating src/.gdbinit
24431 echo source $srcdir/src/.gdbinit > src/.gdbinit
24434 # This is how we know whether to re-run configure in certain cases.
24435 touch src/config.stamp
24439 esac
24440 done # for ac_tag
24443 { (exit 0); exit 0; }
24444 _ACEOF
24445 chmod +x $CONFIG_STATUS
24446 ac_clean_files=$ac_clean_files_save
24449 # configure is writing to config.log, and then calls config.status.
24450 # config.status does its own redirection, appending to config.log.
24451 # Unfortunately, on DOS this fails, as config.log is still kept open
24452 # by configure, so config.status won't be able to write to it; its
24453 # output is simply discarded. So we exec the FD to /dev/null,
24454 # effectively closing config.log, so it can be properly (re)opened and
24455 # appended to by config.status. When coming back to configure, we
24456 # need to make the FD available again.
24457 if test "$no_create" != yes; then
24458 ac_cs_success=:
24459 ac_config_status_args=
24460 test "$silent" = yes &&
24461 ac_config_status_args="$ac_config_status_args --quiet"
24462 exec 5>/dev/null
24463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24464 exec 5>>config.log
24465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24466 # would make configure fail if this is the last instruction.
24467 $ac_cs_success || { (exit 1); exit 1; }