Bug fixes.
[emacs.git] / configure
blobc91f6431e040db71b7f2f2cde8ed695aabbf4d26
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 HAVE_XSERVER
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
735 XMKMF'
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 esac
1113 done
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1293 cat <<\_ACEOF
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lgif (or -lungif) for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1352 Some influential environment variables:
1353 CC C compiler command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1356 nonstandard directory <lib dir>
1357 LIBS libraries to pass to the linker, e.g. -l<library>
1358 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359 you have headers in a nonstandard directory <include dir>
1360 CPP C preprocessor
1361 XMKMF Path to xmkmf, Makefile generator for X Window System
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 _ACEOF
1367 ac_status=$?
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1374 ac_builddir=.
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.61
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434 exit
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1443 $ $0 $@
1445 _ACEOF
1446 exec 5>>config.log
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1470 _ASUNAME
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1481 } >&5
1483 cat >&5 <<_ACEOF
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1490 _ACEOF
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1504 for ac_arg
1506 case $ac_arg in
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1510 continue ;;
1511 *\'*)
1512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513 esac
1514 case $ac_pass in
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1520 else
1521 case $ac_arg in
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 esac
1530 -* ) ac_must_keep_next=true ;;
1531 esac
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1535 esac
1536 done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1549 echo
1551 cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1570 esac ;;
1571 esac
1572 done
1573 (set) 2>&1 |
1574 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1576 sed -n \
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 ;; #(
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1583 esac |
1584 sort
1586 echo
1588 cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593 echo
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1604 if test -n "$ac_subst_files"; then
1605 cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1622 if test -s confdefs.h; then
1623 cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628 echo
1629 cat confdefs.h
1630 echo
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1635 } >&5
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 exit $exit_status
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1685 shift
1686 for ac_site_file
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1694 done
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1707 else
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1717 # value.
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1725 set,)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,set)
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1731 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1733 ,);;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1738 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1739 echo "$as_me: former value: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1741 echo "$as_me: current value: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1743 fi;;
1744 esac
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1747 case $ac_new_val in
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1750 esac
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 esac
1756 done
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1800 _ACEOF
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 rm -f conftest.sed
1805 lispdir='${datadir}/emacs/${version}/lisp'
1806 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1807 '${datadir}/emacs/site-lisp'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1809 etcdir='${datadir}/emacs/${version}/etc'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs/${version}/etc'
1812 gamedir='${localstatedir}/games/emacs'
1814 gameuser=games
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1819 withval=$with_gcc;
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1828 _ACEOF
1830 else :
1832 else
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1835 _ACEOF
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1845 #define KERBEROS 1
1846 _ACEOF
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1857 with_kerberos=yes
1858 cat >>confdefs.h <<\_ACEOF
1859 #define KERBEROS 1
1860 _ACEOF
1864 cat >>confdefs.h <<\_ACEOF
1865 #define KERBEROS5 1
1866 _ACEOF
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1876 cat >>confdefs.h <<\_ACEOF
1877 #define HESIOD 1
1878 _ACEOF
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=gtk ;;
1896 n | no ) val=no ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1903 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1904 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1906 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1907 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1910 esac
1911 with_x_toolkit=$val
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1918 withval=$with_xpm;
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1924 withval=$with_jpeg;
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1930 withval=$with_tiff;
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1936 withval=$with_gif;
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1942 withval=$with_png;
1946 # Check whether --with-gpm was given.
1947 if test "${with_gpm+set}" = set; then
1948 withval=$with_gpm;
1952 # Check whether --with-gtk was given.
1953 if test "${with_gtk+set}" = set; then
1954 withval=$with_gtk;
1958 # Check whether --with-pkg-config-prog was given.
1959 if test "${with_pkg_config_prog+set}" = set; then
1960 withval=$with_pkg_config_prog;
1964 # Check whether --with-toolkit-scroll-bars was given.
1965 if test "${with_toolkit_scroll_bars+set}" = set; then
1966 withval=$with_toolkit_scroll_bars;
1970 # Check whether --with-xim was given.
1971 if test "${with_xim+set}" = set; then
1972 withval=$with_xim;
1976 # Check whether --with-carbon was given.
1977 if test "${with_carbon+set}" = set; then
1978 withval=$with_carbon;
1981 # Check whether --enable-carbon-app was given.
1982 if test "${enable_carbon_app+set}" = set; then
1983 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1987 # Check whether --enable-asserts was given.
1988 if test "${enable_asserts+set}" = set; then
1989 enableval=$enable_asserts; USE_XASSERTS=$enableval
1990 else
1991 USE_XASSERTS=no
1995 # Check whether --enable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1998 else
1999 USE_MAINTAINER_MODE=no
2002 if test $USE_MAINTAINER_MODE = yes; then
2003 MAINT=
2004 else
2005 MAINT=#
2009 # Check whether --enable-locallisppath was given.
2010 if test "${enable_locallisppath+set}" = set; then
2011 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2012 locallisppath=
2013 elif test "${enableval}" != "yes"; then
2014 locallisppath=${enableval}
2019 #### Make srcdir absolute, if it isn't already. It's important to
2020 #### avoid running the path through pwd unnecessarily, since pwd can
2021 #### give you automounter prefixes, which can go away. We do all this
2022 #### so Emacs can find its files when run uninstalled.
2023 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2024 unset CDPATH
2025 case "${srcdir}" in
2026 /* ) ;;
2028 ## We may be able to use the $PWD environment variable to make this
2029 ## absolute. But sometimes PWD is inaccurate.
2030 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2031 ## but that tested only for a well-formed and valid PWD,
2032 ## it did not object when PWD was well-formed and valid but just wrong.
2033 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2034 then
2035 srcdir="$PWD"
2036 else
2037 srcdir="`(cd ${srcdir}; pwd)`"
2040 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2041 esac
2043 #### Check if the source directory already has a configured system in it.
2044 if test `pwd` != `(cd ${srcdir} && pwd)` \
2045 && test -f "${srcdir}/src/config.h" ; then
2046 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&5
2052 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2053 as a build directory right now; it has been configured in its own
2054 right. To configure in another directory as well, you MUST
2055 use GNU make. If you do not have GNU make, then you must
2056 now do \`make distclean' in ${srcdir},
2057 and then run $0 again." >&2;}
2060 #### Given the configuration name, set machfile and opsysfile to the
2061 #### names of the m/*.h and s/*.h files we should use.
2063 ### Canonicalize the configuration name.
2065 ac_aux_dir=
2066 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2067 if test -f "$ac_dir/install-sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 break
2071 elif test -f "$ac_dir/install.sh"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 break
2075 elif test -f "$ac_dir/shtool"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 break
2080 done
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149 else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 canonical=$host
2180 configuration=${host_alias-${build_alias-$host}}
2184 ### If you add support for a new configuration, add code to this
2185 ### switch statement to recognize your configuration name and select
2186 ### the appropriate operating system and machine description files.
2188 ### You would hope that you could choose an m/*.h file pretty much
2189 ### based on the machine portion of the configuration name, and an s-
2190 ### file based on the operating system portion. However, it turns out
2191 ### that each m/*.h file is pretty manufacturer-specific - for
2192 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2193 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2194 ### machines. So we basically have to have a special case for each
2195 ### configuration name.
2197 ### As far as handling version numbers on operating systems is
2198 ### concerned, make sure things will fail in a fixable way. If
2199 ### /etc/MACHINES doesn't say anything about version numbers, be
2200 ### prepared to handle anything reasonably. If version numbers
2201 ### matter, be sure /etc/MACHINES says something about it.
2203 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2204 ### "System V Release 4"; he writes, "The old convention encouraged
2205 ### confusion between `system' and `release' levels'."
2207 machine='' opsys='' unported=no
2208 case "${canonical}" in
2210 ## FreeBSD ports
2211 *-*-freebsd* )
2212 opsys=freebsd
2213 case "${canonical}" in
2214 alpha*-*-freebsd*) machine=alpha ;;
2215 ia64-*-freebsd*) machine=ia64 ;;
2216 sparc64-*-freebsd*) machine=sparc ;;
2217 powerpc-*-freebsd*) machine=macppc ;;
2218 i[3456]86-*-freebsd*) machine=intel386 ;;
2219 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2220 esac
2223 ## NetBSD ports
2224 *-*-netbsd* )
2225 opsys=netbsd
2226 if test -f /usr/lib/crti.o; then
2228 cat >>confdefs.h <<\_ACEOF
2229 #define HAVE_CRTIN
2230 _ACEOF
2234 case "${canonical}" in
2235 alpha*-*-netbsd*) machine=alpha ;;
2236 i[3456]86-*-netbsd*) machine=intel386 ;;
2237 m68k-*-netbsd*)
2238 # This is somewhat bogus.
2239 machine=hp9000s300 ;;
2240 mips-*-netbsd*) machine=pmax ;;
2241 mipsel-*-netbsd*) machine=pmax ;;
2242 mipseb-*-netbsd*) machine=pmax ;;
2243 ns32k-*-netbsd*) machine=ns32000 ;;
2244 powerpc-*-netbsd*) machine=macppc ;;
2245 sparc*-*-netbsd*) machine=sparc ;;
2246 vax-*-netbsd*) machine=vax ;;
2247 arm-*-netbsd*) machine=arm ;;
2248 x86_64-*-netbsd*) machine=amdx86-64 ;;
2249 hppa-*-netbsd*) machine=hp800 ;;
2250 shle-*-netbsd*) machine=sh3el ;;
2251 esac
2254 ## OpenBSD ports
2255 *-*-openbsd* )
2256 opsys=openbsd
2257 case "${canonical}" in
2258 alpha*-*-openbsd*) machine=alpha ;;
2259 arm-*-openbsd*) machine=arm ;;
2260 hppa-*-openbsd*) machine=hp9000s300 ;;
2261 i386-*-openbsd*) machine=intel386 ;;
2262 m68k-*-openbsd*) machine=hp9000s300 ;;
2263 m88k-*-openbsd*) machine=aviion ;;
2264 mips64-*-openbsd*) machine=mips64 ;;
2265 powerpc-*-openbsd*) machine=macppc ;;
2266 sh-*-openbsd*) machine=sh3el ;;
2267 sparc*-*-openbsd*) machine=sparc ;;
2268 vax-*-openbsd*) machine=vax ;;
2269 x86_64-*-openbsd*) machine=amdx86-64 ;;
2270 esac
2273 ## LynxOS ports
2274 *-*-lynxos* )
2275 opsys=lynxos
2276 case "${canonical}" in
2277 i[3456]86-*-lynxos*) machine=intel386 ;;
2278 powerpc-*-lynxos*) machine=powerpc ;;
2279 esac
2282 ## Acorn RISCiX:
2283 arm-acorn-riscix1.1* )
2284 machine=acorn opsys=riscix1-1
2286 arm-acorn-riscix1.2* | arm-acorn-riscix )
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine=acorn opsys=riscix12
2292 ## BSDI ports
2293 *-*-bsdi* )
2294 opsys=bsdi
2295 case "${canonical}" in
2296 i[345]86-*-bsdi*) machine=intel386 ;;
2297 sparc-*-bsdi*) machine=sparc ;;
2298 powerpc-*-bsdi*) machine=macppc ;;
2299 esac
2300 case "${canonical}" in
2301 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2302 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2303 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2304 *-*-bsdi3* ) opsys=bsdos3 ;;
2305 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2306 esac
2309 ## Alliant machines
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2315 fx80-alliant-* )
2316 machine=alliant4 opsys=bsd4-2
2318 i860-alliant-* )
2319 machine=alliant-2800 opsys=bsd4-3
2322 ## Alpha (DEC) machines.
2323 alpha*-dec-osf* )
2324 machine=alpha opsys=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP=/usr/bin/cpp
2333 case "${canonical}" in
2334 alpha*-dec-osf[5-9]*)
2335 opsys=osf5-0 ;;
2336 esac
2339 alpha*-*-linux-gnu* )
2340 machine=alpha opsys=gnu-linux
2343 arm*-*-linux-gnu* )
2344 machine=arm opsys=gnu-linux
2347 ## Altos 3068
2348 m68*-altos-sysv* )
2349 machine=altos opsys=usg5-2
2352 ## Amdahl UTS
2353 580-amdahl-sysv* )
2354 machine=amdahl opsys=usg5-2-2
2357 ## Apollo, Domain/OS
2358 m68*-apollo-* )
2359 machine=apollo opsys=bsd4-3
2362 ## Apple Darwin / Mac OS X
2363 *-apple-darwin* )
2364 case "${canonical}" in
2365 i[3456]86-* ) machine=intel386 ;;
2366 powerpc-* ) machine=powermac ;;
2367 * ) unported=yes ;;
2368 esac
2369 opsys=darwin
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw/include && test -d /sw/lib; then
2374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 we32k-att-sysv* )
2382 machine=att3b opsys=usg5-2-2
2385 ## AT&T 3b1 - The Mighty Unix PC!
2386 m68*-att-sysv* )
2387 machine=7300 opsys=usg5-2-2
2390 ## Bull dpx20
2391 rs6000-bull-bosx* )
2392 machine=ibmrs6000 opsys=aix3-2
2395 ## Bull dpx2
2396 m68*-bull-sysv3* )
2397 machine=dpx2 opsys=usg5-3
2400 ## Bull sps7
2401 m68*-bull-sysv2* )
2402 machine=sps7 opsys=usg5-2
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2407 ## Celerity
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd* )
2412 machine=celerity opsys=bsd4-2
2415 ## Clipper
2416 ## What operating systems does this chip run that Emacs has been
2417 ## tested on?
2418 clipper-* )
2419 machine=clipper
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2424 ## Compaq Nonstop
2425 mips-compaq-nonstopux* )
2426 machine=nonstopux opsys=nonstopux
2429 ## Convex
2430 *-convex-bsd* | *-convex-convexos* )
2431 machine=convex opsys=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP="cc -E -P"
2436 ## Cubix QBx/386
2437 i[3456]86-cubix-sysv* )
2438 machine=intel386 opsys=usg5-3
2441 ## Cydra 5
2442 cydra*-cydrome-sysv* )
2443 machine=cydra5 opsys=usg5-3
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2453 machine=aviion opsys=dgux4
2455 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine=aviion opsys=dgux5-4-3
2460 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2461 machine=aviion opsys=dgux5-4r2
2463 m88k-dg-dgux* )
2464 machine=aviion opsys=dgux
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i[345]86-dg-dguxR4* )
2471 machine=aviion-intel opsys=dgux4
2474 ## DECstations
2475 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2476 machine=pmax opsys=bsd4-2
2478 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2479 machine=pmax opsys=bsd4-3
2481 mips-dec-ultrix* )
2482 machine=pmax opsys=ultrix4-3
2484 mips-dec-osf* )
2485 machine=pmax opsys=osf1
2487 mips-dec-mach_bsd4.3* )
2488 machine=pmax opsys=mach-bsd4-3
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv* | m68000-motorola-sysv* )
2493 machine=delta opsys=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2495 then
2496 if test -s /etc/167config
2497 then CC="gnucc -m68040"
2498 else CC="gnucc -m68881"
2500 else
2501 if test -z "`type gcc | grep 'not found'`"
2502 then CC=gcc
2503 else CC=cc
2507 m88k-motorola-sysv4* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine=delta88k opsys=usg5-4-2
2514 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2515 machine=delta88k opsys=usg5-3
2518 ## Dual machines
2519 m68*-dual-sysv* )
2520 machine=dual opsys=usg5-2
2522 m68*-dual-uniplus* )
2523 machine=dual opsys=unipl5-2
2526 ## Elxsi 6400
2527 elxsi-elxsi-sysv* )
2528 machine=elxsi opsys=usg5-2
2531 ## Encore machines
2532 ns16k-encore-bsd* )
2533 machine=ns16000 opsys=umax
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2539 ## Gould Power Node and NP1
2540 pn-gould-bsd4.2* )
2541 machine=gould opsys=bsd4-2
2543 pn-gould-bsd4.3* )
2544 machine=gould opsys=bsd4-3
2546 np1-gould-bsd* )
2547 machine=gould-np1 opsys=bsd4-3
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2552 m88k-harris-cxux* )
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2556 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2557 esac
2558 NON_GNU_CPP="/lib/cpp"
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 m68k-harris-cxux* )
2562 machine=nh3000 opsys=cxux
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix )
2566 machine=nh6000 opsys=powerunix
2567 NON_GNU_CPP="cc -Xo -E -P"
2569 ## SR2001/SR2201 running HI-UX/MPP
2570 hppa1.1-hitachi-hiuxmpp* )
2571 machine=sr2k opsys=hiuxmpp
2573 hppa1.1-hitachi-hiuxwe2* )
2574 machine=sr2k opsys=hiuxwe2
2576 ## Honeywell XPS100
2577 xps*-honeywell-sysv* )
2578 machine=xps100 opsys=usg5-2
2581 ## HP 9000 series 200 or 300
2582 m68*-hp-bsd* )
2583 machine=hp9000s300 opsys=bsd4-3
2585 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2586 m68*-hp-hpux* )
2587 case "`uname -r`" in
2588 ## Someone's system reports A.B8.05 for this.
2589 ## I wonder what other possibilities there are.
2590 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2591 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2592 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2593 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2594 *) machine=hp9000s300 opsys=hpux ;;
2595 esac
2598 ## HP 9000 series 700 and 800, running HP/UX
2599 hppa*-hp-hpux7* )
2600 machine=hp800 opsys=hpux
2602 hppa*-hp-hpux8* )
2603 machine=hp800 opsys=hpux8
2605 hppa*-hp-hpux9shr* )
2606 machine=hp800 opsys=hpux9shr
2608 hppa*-hp-hpux9* )
2609 machine=hp800 opsys=hpux9
2611 hppa*-hp-hpux10.2* )
2612 machine=hp800 opsys=hpux10-20
2614 hppa*-hp-hpux10* )
2615 machine=hp800 opsys=hpux10
2617 hppa*-hp-hpux1[1-9]* )
2618 machine=hp800 opsys=hpux11
2619 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2622 hppa*-*-linux-gnu* )
2623 machine=hp800 opsys=gnu-linux
2626 ## HP 9000 series 700 and 800, running HP/UX
2627 hppa*-hp-hpux* )
2628 ## Cross-compilation? Nah!
2629 case "`uname -r`" in
2630 ## Someone's system reports A.B8.05 for this.
2631 ## I wonder what other possibilities there are.
2632 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2633 *.08.* ) machine=hp800 opsys=hpux8 ;;
2634 *.09.* ) machine=hp800 opsys=hpux9 ;;
2635 *) machine=hp800 opsys=hpux10 ;;
2636 esac
2638 hppa*-*-nextstep* )
2639 machine=hp800 opsys=nextstep
2642 ## Orion machines
2643 orion-orion-bsd* )
2644 machine=orion opsys=bsd4-2
2646 clipper-orion-bsd* )
2647 machine=orion105 opsys=bsd4-2
2650 ## IBM machines
2651 i[3456]86-ibm-aix1.1* )
2652 machine=ibmps2-aix opsys=usg5-2-2
2654 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2655 machine=ibmps2-aix opsys=usg5-3
2657 i370-ibm-aix*)
2658 machine=ibm370aix opsys=usg5-3
2660 s390-*-linux-gnu* )
2661 machine=ibms390 opsys=gnu-linux
2663 s390x-*-linux-gnu* )
2664 machine=ibms390x opsys=gnu-linux
2666 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2667 machine=ibmrs6000 opsys=aix3-1
2669 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2670 machine=ibmrs6000 opsys=aix3-2-5
2672 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2673 machine=ibmrs6000 opsys=aix4-1
2675 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2676 machine=ibmrs6000 opsys=aix4-2
2678 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2679 machine=ibmrs6000 opsys=aix4-2
2681 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2682 machine=ibmrs6000 opsys=aix4-2
2684 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2685 machine=ibmrs6000 opsys=aix4
2687 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2688 machine=ibmrs6000 opsys=aix4-1
2690 rs6000-ibm-aix* | powerpc-ibm-aix* )
2691 machine=ibmrs6000 opsys=aix3-2
2693 romp-ibm-bsd4.3* )
2694 machine=ibmrt opsys=bsd4-3
2696 romp-ibm-bsd4.2* )
2697 machine=ibmrt opsys=bsd4-2
2699 romp-ibm-aos4.3* )
2700 machine=ibmrt opsys=bsd4-3
2702 romp-ibm-aos4.2* )
2703 machine=ibmrt opsys=bsd4-2
2705 romp-ibm-aos* )
2706 machine=ibmrt opsys=bsd4-3
2708 romp-ibm-bsd* )
2709 machine=ibmrt opsys=bsd4-3
2711 romp-ibm-aix* )
2712 machine=ibmrt-aix opsys=usg5-2-2
2715 ## Integrated Solutions `Optimum V'
2716 m68*-isi-bsd4.2* )
2717 machine=isi-ov opsys=bsd4-2
2719 m68*-isi-bsd4.3* )
2720 machine=isi-ov opsys=bsd4-3
2723 ## Intel 386 machines where we do care about the manufacturer
2724 i[3456]86-intsys-sysv* )
2725 machine=is386 opsys=usg5-2-2
2728 ## Prime EXL
2729 i[3456]86-prime-sysv* )
2730 machine=i386 opsys=usg5-3
2733 ## Sequent Symmetry running Dynix
2734 i[3456]86-sequent-bsd* )
2735 machine=symmetry opsys=bsd4-3
2738 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2739 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2740 machine=sequent-ptx opsys=ptx4
2741 NON_GNU_CPP=/lib/cpp
2744 ## Sequent Symmetry running DYNIX/ptx
2745 ## Use the old cpp rather than the newer ANSI one.
2746 i[3456]86-sequent-ptx* )
2747 machine=sequent-ptx opsys=ptx
2748 NON_GNU_CPP="/lib/cpp"
2751 ## ncr machine running svr4.3.
2752 i[3456]86-ncr-sysv4.3 )
2753 machine=ncr386 opsys=usg5-4-3
2756 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2757 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2758 i[3456]86-ncr-sysv* )
2759 machine=ncr386 opsys=usg5-4-2
2762 ## Intel Paragon OSF/1
2763 i860-intel-osf1* )
2764 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2767 ## Intel 860
2768 i860-*-sysv4* )
2769 machine=i860 opsys=usg5-4
2770 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2771 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2774 ## Macintosh PowerPC
2775 powerpc*-*-linux-gnu* )
2776 machine=macppc opsys=gnu-linux
2779 ## Masscomp machines
2780 m68*-masscomp-rtu* )
2781 machine=masscomp opsys=rtu
2784 ## Megatest machines
2785 m68*-megatest-bsd* )
2786 machine=mega68 opsys=bsd4-2
2789 ## Workstations sold by MIPS
2790 ## This is not necessarily all workstations using the MIPS processor -
2791 ## Irises are produced by SGI, and DECstations by DEC.
2793 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2794 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2795 ## it gives for choosing between the alternatives seems to be "Use
2796 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2797 ## the BSD world." I'll assume that these are instructions for
2798 ## handling two odd situations, and that every other situation
2799 ## should use mips.h and usg5-2-2, they being listed first.
2800 mips-mips-usg* )
2801 machine=mips4
2802 ## Fall through to the general code at the bottom to decide on the OS.
2804 mips-mips-riscos4* )
2805 machine=mips4 opsys=bsd4-3
2806 NON_GNU_CC="cc -systype bsd43"
2807 NON_GNU_CPP="cc -systype bsd43 -E"
2809 mips-mips-riscos5* )
2810 machine=mips4 opsys=riscos5
2811 NON_GNU_CC="cc -systype bsd43"
2812 NON_GNU_CPP="cc -systype bsd43 -E"
2814 mips-mips-bsd* )
2815 machine=mips opsys=bsd4-3
2817 mips-mips-* )
2818 machine=mips opsys=usg5-2-2
2821 ## NeXT
2822 m68*-next-* | m68k-*-nextstep* )
2823 machine=m68k opsys=nextstep
2826 ## The complete machine from National Semiconductor
2827 ns32k-ns-genix* )
2828 machine=ns32000 opsys=usg5-2
2831 ## NCR machines
2832 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2833 machine=tower32 opsys=usg5-2-2
2835 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2836 machine=tower32v3 opsys=usg5-3
2839 ## NEC EWS4800
2840 mips-nec-sysv4*)
2841 machine=ews4800 opsys=ux4800
2844 ## Nixdorf Targon 31
2845 m68*-nixdorf-sysv* )
2846 machine=targon31 opsys=usg5-2-2
2849 ## Nu (TI or LMI)
2850 m68*-nu-sysv* )
2851 machine=nu opsys=usg5-2
2854 ## Plexus
2855 m68*-plexus-sysv* )
2856 machine=plexus opsys=usg5-2
2859 ## Pyramid machines
2860 ## I don't really have any idea what sort of processor the Pyramid has,
2861 ## so I'm assuming it is its own architecture.
2862 pyramid-pyramid-bsd* )
2863 machine=pyramid opsys=bsd4-2
2866 ## Sequent Balance
2867 ns32k-sequent-bsd4.2* )
2868 machine=sequent opsys=bsd4-2
2870 ns32k-sequent-bsd4.3* )
2871 machine=sequent opsys=bsd4-3
2874 ## Siemens Nixdorf
2875 mips-siemens-sysv* | mips-sni-sysv*)
2876 machine=mips-siemens opsys=usg5-4
2877 NON_GNU_CC=/usr/ccs/bin/cc
2878 NON_GNU_CPP=/usr/ccs/lib/cpp
2881 ## Silicon Graphics machines
2882 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2883 m68*-sgi-iris3.5* )
2884 machine=irist opsys=iris3-5
2886 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2887 machine=irist opsys=iris3-6
2889 ## Iris 4D
2890 mips-sgi-irix3* )
2891 machine=iris4d opsys=irix3-3
2893 mips-sgi-irix4* )
2894 machine=iris4d opsys=irix4-0
2896 mips-sgi-irix6.5 )
2897 machine=iris4d opsys=irix6-5
2898 # Without defining _LANGUAGE_C, things get masked out in the headers
2899 # so that, for instance, grepping for `free' in stdlib.h fails and
2900 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2901 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2902 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2904 mips-sgi-irix6* )
2905 machine=iris4d opsys=irix6-0
2906 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2907 # but presumably it does no harm.
2908 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2909 # -32 probably isn't necessary in later v.6s -- anyone know which?
2910 NON_GCC_TEST_OPTIONS=-32
2912 mips-sgi-irix5.[01]* )
2913 machine=iris4d opsys=irix5-0
2915 mips-sgi-irix5* | mips-sgi-irix* )
2916 machine=iris4d opsys=irix5-2
2919 ## SONY machines
2920 m68*-sony-bsd4.2* )
2921 machine=news opsys=bsd4-2
2923 m68*-sony-bsd4.3* )
2924 machine=news opsys=bsd4-3
2926 m68*-sony-newsos3* | m68*-sony-news3*)
2927 machine=news opsys=bsd4-3
2929 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2930 machine=news-risc opsys=bsd4-3
2932 mips-sony-newsos6* )
2933 machine=news-r6 opsys=newsos6
2935 mips-sony-news* )
2936 machine=news-risc opsys=newsos5
2939 ## Stride
2940 m68*-stride-sysv* )
2941 machine=stride opsys=usg5-2
2944 ## Suns
2945 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2946 machine=sparc opsys=gnu-linux
2949 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2950 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2951 | rs6000-*-solaris2*)
2952 case "${canonical}" in
2953 m68*-sunos1* ) machine=sun1 ;;
2954 m68*-sunos2* ) machine=sun2 ;;
2955 m68* ) machine=sun3 ;;
2956 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2957 i[3456]86-*-* ) machine=intel386 ;;
2958 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2959 powerpcle* ) machine=powerpcle ;;
2960 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2961 sparc* ) machine=sparc ;;
2962 * ) unported=yes ;;
2963 esac
2964 case "${canonical}" in
2965 ## The Sun386 didn't get past 4.0.
2966 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2967 *-sunos4.0* ) opsys=sunos4-0 ;;
2968 *-sunos4.1.[3-9]*noshare )
2969 ## This name is sunos413 instead of sunos4-1-3
2970 ## to avoid a file name conflict on MSDOS.
2971 opsys=sunos413
2972 NON_GNU_CPP=/usr/lib/cpp
2973 NON_GCC_TEST_OPTIONS=-Bstatic
2974 GCC_TEST_OPTIONS=-static
2976 *-sunos4.1.[3-9]* | *-sunos4shr*)
2977 opsys=sunos4shr
2978 NON_GNU_CPP=/usr/lib/cpp
2980 *-sunos4* | *-sunos )
2981 opsys=sunos4-1
2982 NON_GCC_TEST_OPTIONS=-Bstatic
2983 GCC_TEST_OPTIONS=-static
2985 *-sunos5.3* | *-solaris2.3* )
2986 opsys=sol2-3
2987 NON_GNU_CPP=/usr/ccs/lib/cpp
2989 *-sunos5.4* | *-solaris2.4* )
2990 opsys=sol2-4
2991 NON_GNU_CPP=/usr/ccs/lib/cpp
2992 RANLIB="ar -ts"
2994 *-sunos5.5* | *-solaris2.5* )
2995 opsys=sol2-5
2996 NON_GNU_CPP=/usr/ccs/lib/cpp
2997 RANLIB="ar -ts"
2999 *-sunos5.6* | *-solaris2.6* )
3000 opsys=sol2-6
3001 NON_GNU_CPP=/usr/ccs/lib/cpp
3002 RANLIB="ar -ts"
3004 *-sunos5* | *-solaris* )
3005 opsys=sol2-6
3006 emacs_check_sunpro_c=yes
3007 NON_GNU_CPP=/usr/ccs/lib/cpp
3009 * ) opsys=bsd4-2 ;;
3010 esac
3011 ## Watch out for a compiler that we know will not work.
3012 case "${canonical}" in
3013 *-solaris* | *-sunos5* )
3014 if [ "x$CC" = x/usr/ucb/cc ]; then
3015 ## /usr/ucb/cc doesn't work;
3016 ## we should find some other compiler that does work.
3017 unset CC
3020 *) ;;
3021 esac
3023 sparc-*-nextstep* )
3024 machine=sparc opsys=nextstep
3027 ## Tadpole 68k
3028 m68*-tadpole-sysv* )
3029 machine=tad68k opsys=usg5-3
3032 ## Tahoe machines
3033 tahoe-tahoe-bsd4.2* )
3034 machine=tahoe opsys=bsd4-2
3036 tahoe-tahoe-bsd4.3* )
3037 machine=tahoe opsys=bsd4-3
3040 ## Tandem Integrity S2
3041 mips-tandem-sysv* )
3042 machine=tandem-s2 opsys=usg5-3
3045 ## Tektronix XD88
3046 m88k-tektronix-sysv3* )
3047 machine=tekxd88 opsys=usg5-3
3050 ## Tektronix 16000 box (6130?)
3051 ns16k-tektronix-bsd* )
3052 machine=ns16000 opsys=bsd4-2
3054 ## Tektronix 4300
3055 ## src/m/tek4300.h hints that this is a m68k machine.
3056 m68*-tektronix-bsd* )
3057 machine=tek4300 opsys=bsd4-3
3060 ## Titan P2 or P3
3061 ## We seem to have lost the machine-description file titan.h!
3062 titan-titan-sysv* )
3063 machine=titan opsys=usg5-3
3066 ## Ustation E30 (SS5E)
3067 m68*-unisys-uniplus* )
3068 machine=ustation opsystem=unipl5-2
3071 ## Vaxen.
3072 vax-dec-* )
3073 machine=vax
3074 case "${canonical}" in
3075 *-bsd4.1* ) opsys=bsd4-1 ;;
3076 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3077 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3078 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3079 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3080 *-vms* ) opsys=vms ;;
3081 * ) unported=yes
3082 esac
3085 ## Whitechapel MG1
3086 ns16k-whitechapel-* )
3087 machine=mg1
3088 ## We don't know what sort of OS runs on these; we'll let the
3089 ## operating system guessing code below try.
3092 ## Wicat
3093 m68*-wicat-sysv* )
3094 machine=wicat opsys=usg5-2
3097 ## IA-64
3098 ia64*-*-linux* )
3099 machine=ia64 opsys=gnu-linux
3102 ## Intel 386 machines where we don't care about the manufacturer
3103 i[3456]86-*-* )
3104 machine=intel386
3105 case "${canonical}" in
3106 *-cygwin ) opsys=cygwin ;;
3107 *-darwin* ) opsys=darwin
3108 CPP="${CC-cc} -E -no-cpp-precomp"
3110 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3111 *-isc2.2* ) opsys=isc2-2 ;;
3112 *-isc4.0* ) opsys=isc4-0 ;;
3113 *-isc4.* ) opsys=isc4-1
3114 GCC_TEST_OPTIONS=-posix
3115 NON_GCC_TEST_OPTIONS=-Xp
3117 *-isc* ) opsys=isc3-0 ;;
3118 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3119 *-esix* ) opsys=esix ;;
3120 *-xenix* ) opsys=xenix ;;
3121 *-linux-gnu* ) opsys=gnu-linux ;;
3122 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3123 *-sco3.2v5* ) opsys=sco5
3124 NON_GNU_CPP=/lib/cpp
3125 # Prevent -belf from being passed to $CPP.
3126 # /lib/cpp does not accept it.
3127 OVERRIDE_CPPFLAGS=" "
3129 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3131 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3132 *-386bsd* ) opsys=386bsd ;;
3133 *-nextstep* ) opsys=nextstep ;;
3134 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3135 esac
3138 ## m68k Linux-based GNU system
3139 m68k-*-linux-gnu* )
3140 machine=m68k opsys=gnu-linux
3143 ## Mips Linux-based GNU system
3144 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3145 machine=mips opsys=gnu-linux
3148 ## UXP/DS
3149 sparc-fujitsu-sysv4* )
3150 machine=sparc opsys=uxpds
3151 NON_GNU_CPP=/usr/ccs/lib/cpp
3152 RANLIB="ar -ts"
3155 ## UXP/V
3156 f301-fujitsu-uxpv4.1)
3157 machine=f301 opsys=uxpv
3160 ## AMD x86-64 Linux-based GNU system
3161 x86_64-*-linux-gnu* )
3162 machine=amdx86-64 opsys=gnu-linux
3165 ## Tensilica Xtensa Linux-based GNU system
3166 xtensa-*-linux-gnu* )
3167 machine=xtensa opsys=gnu-linux
3171 unported=yes
3173 esac
3175 ### If the code above didn't choose an operating system, just choose
3176 ### an operating system based on the configuration name. You really
3177 ### only want to use this when you have no idea what the right
3178 ### operating system is; if you know what operating systems a machine
3179 ### runs, it's cleaner to make it explicit in the case statement
3180 ### above.
3181 if test x"${opsys}" = x; then
3182 case "${canonical}" in
3183 *-gnu* ) opsys=gnu ;;
3184 *-bsd4.[01] ) opsys=bsd4-1 ;;
3185 *-bsd4.2 ) opsys=bsd4-2 ;;
3186 *-bsd4.3 ) opsys=bsd4-3 ;;
3187 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3188 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3189 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3190 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3191 *-sysv4.2uw* ) opsys=unixware ;;
3192 *-sysv5uw* ) opsys=unixware ;;
3193 *-sysv5OpenUNIX* ) opsys=unixware ;;
3194 *-sysv4.1* | *-sysvr4.1* )
3195 NON_GNU_CPP=/usr/lib/cpp
3196 opsys=usg5-4 ;;
3197 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3198 if [ x$NON_GNU_CPP = x ]; then
3199 if [ -f /usr/ccs/lib/cpp ]; then
3200 NON_GNU_CPP=/usr/ccs/lib/cpp
3201 else
3202 NON_GNU_CPP=/lib/cpp
3205 opsys=usg5-4-2 ;;
3206 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3208 unported=yes
3210 esac
3215 if test $unported = yes; then
3216 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&5
3218 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3219 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3220 { (exit 1); exit 1; }; }
3223 machfile="m/${machine}.h"
3224 opsysfile="s/${opsys}.h"
3227 #### Choose a compiler.
3228 test -n "$CC" && cc_specified=yes
3230 # Save the value of CFLAGS that the user specified.
3231 SPECIFIED_CFLAGS="$CFLAGS"
3233 case ${with_gcc} in
3234 "yes" ) CC="gcc" GCC=yes ;;
3235 "no" ) : ${CC=cc} ;;
3237 esac
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3267 IFS=$as_save_IFS
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { echo "$as_me:$LINENO: result: $CC" >&5
3274 echo "${ECHO_T}$CC" >&6; }
3275 else
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3282 if test -z "$ac_cv_prog_CC"; then
3283 ac_ct_CC=$CC
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285 set dummy gcc; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_ac_ct_CC="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3307 IFS=$as_save_IFS
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314 echo "${ECHO_T}$ac_ct_CC" >&6; }
3315 else
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3335 else
3336 CC="$ac_cv_prog_CC"
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}cc; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="${ac_tool_prefix}cc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3364 IFS=$as_save_IFS
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { echo "$as_me:$LINENO: result: $CC" >&5
3371 echo "${ECHO_T}$CC" >&6; }
3372 else
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc; ac_word=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 ac_prog_rejected=no
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected=yes
3401 continue
3403 ac_cv_prog_CC="cc"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3414 shift
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3419 shift
3420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3429 else
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog in cl.exe
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3463 IFS=$as_save_IFS
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { echo "$as_me:$LINENO: result: $CC" >&5
3470 echo "${ECHO_T}$CC" >&6; }
3471 else
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3477 test -n "$CC" && break
3478 done
3480 if test -z "$CC"; then
3481 ac_ct_CC=$CC
3482 for ac_prog in cl.exe
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3505 done
3506 done
3507 IFS=$as_save_IFS
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3514 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 else
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3521 test -n "$ac_ct_CC" && break
3522 done
3524 if test "x$ac_ct_CC" = x; then
3525 CC=""
3526 else
3527 case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3544 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3550 # Provide some information about the compiler.
3551 echo "$as_me:$LINENO: checking for C compiler version" >&5
3552 ac_compiler=`set X $ac_compile; echo $2`
3553 { (ac_try="$ac_compiler --version >&5"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compiler --version >&5") 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { (ac_try="$ac_compiler -v >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compiler -v >&5") 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573 { (ac_try="$ac_compiler -V >&5"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compiler -V >&5") 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3592 main ()
3596 return 0;
3598 _ACEOF
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3603 # of exeext.
3604 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3605 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3608 # List of possible output files, starting from the most likely.
3609 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3610 # only as a last resort. b.out is created by i960 compilers.
3611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3613 # The IRIX 6 linker writes into existing files which may not be
3614 # executable, retaining their permissions. Remove them first so a
3615 # subsequent execution test works.
3616 ac_rmfiles=
3617 for ac_file in $ac_files
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622 esac
3623 done
3624 rm -f $ac_rmfiles
3626 if { (ac_try="$ac_link_default"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668 else
3669 ac_file=''
3672 { echo "$as_me:$LINENO: result: $ac_file" >&5
3673 echo "${ECHO_T}$ac_file" >&6; }
3674 if test -z "$ac_file"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C compiler cannot create executables
3681 See \`config.log' for more details." >&2;}
3682 { (exit 77); exit 77; }; }
3685 ac_exeext=$ac_cv_exeext
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3692 # If not cross compiling, check that we can run a simple program.
3693 if test "$cross_compiling" != yes; then
3694 if { ac_try='./$ac_file'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 cross_compiling=no
3705 else
3706 if test "$cross_compiling" = maybe; then
3707 cross_compiling=yes
3708 else
3709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details." >&5
3712 echo "$as_me: error: cannot run C compiled programs.
3713 If you meant to cross compile, use \`--host'.
3714 See \`config.log' for more details." >&2;}
3715 { (exit 1); exit 1; }; }
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3729 echo "${ECHO_T}$cross_compiling" >&6; }
3731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3733 if { (ac_try="$ac_link"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_link") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 break;;
3753 * ) break;;
3754 esac
3755 done
3756 else
3757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3764 rm -f conftest$ac_cv_exeext
3765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3773 if test "${ac_cv_objext+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 rm -f conftest.o conftest.obj
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3807 break;;
3808 esac
3809 done
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3824 echo "${ECHO_T}$ac_cv_objext" >&6; }
3825 OBJEXT=$ac_cv_objext
3826 ac_objext=$OBJEXT
3827 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3828 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3829 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3840 main ()
3842 #ifndef __GNUC__
3843 choke me
3844 #endif
3847 return 0;
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 ac_compiler_gnu=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_compiler_gnu=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3881 GCC=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3885 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3891 ac_cv_prog_cc_g=no
3892 CFLAGS="-g"
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3901 main ()
3905 return 0;
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_g=yes
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 CFLAGS=""
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3939 main ()
3943 return 0;
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3969 CFLAGS="-g"
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3978 main ()
3982 return 0;
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 ac_cv_prog_cc_g=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4025 CFLAGS="-g -O2"
4026 else
4027 CFLAGS="-g"
4029 else
4030 if test "$GCC" = yes; then
4031 CFLAGS="-O2"
4032 else
4033 CFLAGS=
4036 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4037 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 ac_cv_prog_cc_c89=no
4042 ac_save_CC=$CC
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <stdarg.h>
4050 #include <stdio.h>
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4060 return p[i];
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4093 main ()
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 return 0;
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_prog_cc_c89=$ac_arg
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x$ac_cv_prog_cc_c89" != "xno" && break
4131 done
4132 rm -f conftest.$ac_ext
4133 CC=$ac_save_CC
4136 # AC_CACHE_VAL
4137 case "x$ac_cv_prog_cc_c89" in
4139 { echo "$as_me:$LINENO: result: none needed" >&5
4140 echo "${ECHO_T}none needed" >&6; } ;;
4141 xno)
4142 { echo "$as_me:$LINENO: result: unsupported" >&5
4143 echo "${ECHO_T}unsupported" >&6; } ;;
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4147 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4148 esac
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4160 CPP=
4163 ## If not using gcc, and on Solaris, and no CPP specified, see if
4164 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4165 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4166 test x"$CPP" = x; then
4167 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4168 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4170 if test "${emacs_cv_sunpro_c+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4181 main ()
4183 #ifndef __SUNPRO_C
4184 fail;
4185 #endif
4188 return 0;
4190 _ACEOF
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext &&
4208 $as_test_x conftest$ac_exeext; then
4209 emacs_cv_sunpro_c=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 emacs_cv_sunpro_c=no
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext conftest.$ac_ext
4221 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4222 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4224 if test x"$emacs_cv_sunpro_c" = xyes; then
4225 NON_GNU_CPP="$CC -E -Xs"
4229 #### Some systems specify a CPP to use unless we are using GCC.
4230 #### Now that we know whether we are using GCC, we can decide whether
4231 #### to use that one.
4232 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4233 then
4234 CPP="$NON_GNU_CPP"
4237 #### Some systems specify a CC to use unless we are using GCC.
4238 #### Now that we know whether we are using GCC, we can decide whether
4239 #### to use that one.
4240 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4241 test x$cc_specified != xyes
4242 then
4243 CC="$NON_GNU_CC"
4246 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4247 then
4248 CC="$CC $GCC_TEST_OPTIONS"
4251 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4252 then
4253 CC="$CC $NON_GCC_TEST_OPTIONS"
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4262 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4267 if test -z "$CPP"; then
4268 if test "${ac_cv_prog_CPP+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4274 ac_preproc_ok=false
4275 for ac_c_preproc_warn_flag in '' yes
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #ifdef __STDC__
4290 # include <limits.h>
4291 #else
4292 # include <assert.h>
4293 #endif
4294 Syntax error
4295 _ACEOF
4296 if { (ac_try="$ac_cpp conftest.$ac_ext"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null && {
4309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 }; then
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # Broken: fails on valid input.
4318 continue
4321 rm -f conftest.err conftest.$ac_ext
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <ac_nonexistent.h>
4332 _ACEOF
4333 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4349 # Broken: success on invalid input.
4350 continue
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Passes both tests.
4356 ac_preproc_ok=:
4357 break
4360 rm -f conftest.err conftest.$ac_ext
4362 done
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then
4366 break
4369 done
4370 ac_cv_prog_CPP=$CPP
4373 CPP=$ac_cv_prog_CPP
4374 else
4375 ac_cv_prog_CPP=$CPP
4377 { echo "$as_me:$LINENO: result: $CPP" >&5
4378 echo "${ECHO_T}$CPP" >&6; }
4379 ac_preproc_ok=false
4380 for ac_c_preproc_warn_flag in '' yes
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 #ifdef __STDC__
4395 # include <limits.h>
4396 #else
4397 # include <assert.h>
4398 #endif
4399 Syntax error
4400 _ACEOF
4401 if { (ac_try="$ac_cpp conftest.$ac_ext"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } >/dev/null && {
4414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 }; then
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 # Broken: fails on valid input.
4423 continue
4426 rm -f conftest.err conftest.$ac_ext
4428 # OK, works on sane cases. Now check whether nonexistent headers
4429 # can be detected and how.
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <ac_nonexistent.h>
4437 _ACEOF
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 }; then
4454 # Broken: success on invalid input.
4455 continue
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 # Passes both tests.
4461 ac_preproc_ok=:
4462 break
4465 rm -f conftest.err conftest.$ac_ext
4467 done
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then
4472 else
4473 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." >&5
4475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log' for more details." >&2;}
4477 { (exit 1); exit 1; }; }
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4488 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_GREP+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 # Extract the first word of "grep ggrep" to use in msg output
4493 if test -z "$GREP"; then
4494 set dummy grep ggrep; ac_prog_name=$2
4495 if test "${ac_cv_path_GREP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 ac_path_GREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in grep ggrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4509 # Check for GNU ac_path_GREP and select it if it is found.
4510 # Check for GNU $ac_path_GREP
4511 case `"$ac_path_GREP" --version 2>&1` in
4512 *GNU*)
4513 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4515 ac_count=0
4516 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4517 while :
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 echo 'GREP' >> "conftest.nl"
4523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 ac_count=`expr $ac_count + 1`
4526 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_GREP="$ac_path_GREP"
4529 ac_path_GREP_max=$ac_count
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535 esac
4538 $ac_path_GREP_found && break 3
4539 done
4540 done
4542 done
4543 IFS=$as_save_IFS
4548 GREP="$ac_cv_path_GREP"
4549 if test -z "$GREP"; then
4550 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4551 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4552 { (exit 1); exit 1; }; }
4555 else
4556 ac_cv_path_GREP=$GREP
4561 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4562 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
4566 { echo "$as_me:$LINENO: checking for egrep" >&5
4567 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_EGREP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
4574 # Extract the first word of "egrep" to use in msg output
4575 if test -z "$EGREP"; then
4576 set dummy egrep; ac_prog_name=$2
4577 if test "${ac_cv_path_EGREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 ac_path_EGREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in egrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4591 # Check for GNU ac_path_EGREP and select it if it is found.
4592 # Check for GNU $ac_path_EGREP
4593 case `"$ac_path_EGREP" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4597 ac_count=0
4598 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4599 while :
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 echo 'EGREP' >> "conftest.nl"
4605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 ac_count=`expr $ac_count + 1`
4608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_EGREP="$ac_path_EGREP"
4611 ac_path_EGREP_max=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4624 done
4625 IFS=$as_save_IFS
4630 EGREP="$ac_cv_path_EGREP"
4631 if test -z "$EGREP"; then
4632 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4633 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4634 { (exit 1); exit 1; }; }
4637 else
4638 ac_cv_path_EGREP=$EGREP
4644 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4645 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4646 EGREP="$ac_cv_path_EGREP"
4650 { echo "$as_me:$LINENO: checking for AIX" >&5
4651 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #ifdef _AIX
4660 #endif
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "yes" >/dev/null 2>&1; then
4665 { echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6; }
4667 cat >>confdefs.h <<\_ACEOF
4668 #define _ALL_SOURCE 1
4669 _ACEOF
4671 else
4672 { echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6; }
4675 rm -f conftest*
4679 cat >>confdefs.h <<\_ACEOF
4680 #define _GNU_SOURCE 1
4681 _ACEOF
4685 ### Use -Wno-pointer-sign if the compiler supports it
4686 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4687 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4688 SAVE_CFLAGS="$CFLAGS"
4689 CFLAGS="$CFLAGS -Wno-pointer-sign"
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4698 main ()
4702 return 0;
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 has_option=yes
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 has_option=no
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 if test $has_option = yes; then
4732 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4734 { echo "$as_me:$LINENO: result: $has_option" >&5
4735 echo "${ECHO_T}$has_option" >&6; }
4736 CFLAGS="$SAVE_CFLAGS"
4737 unset has_option
4738 unset SAVE_CFLAGS
4740 #### Some other nice autoconf tests.
4742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4744 LN_S=$as_ln_s
4745 if test "$LN_S" = "ln -s"; then
4746 { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4750 echo "${ECHO_T}no, using $LN_S" >&6; }
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760 # On Suns, sometimes $CPP names a directory.
4761 if test -n "$CPP" && test -d "$CPP"; then
4762 CPP=
4764 if test -z "$CPP"; then
4765 if test "${ac_cv_prog_CPP+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 # Double quotes because CPP needs to be expanded
4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4771 ac_preproc_ok=false
4772 for ac_c_preproc_warn_flag in '' yes
4774 # Use a header file that comes with gcc, so configuring glibc
4775 # with a fresh cross-compiler works.
4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 # <limits.h> exists even on freestanding compilers.
4778 # On the NeXT, cc -E runs the code through the compiler's parser,
4779 # not just through cpp. "Syntax error" is here to catch this case.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #ifdef __STDC__
4787 # include <limits.h>
4788 #else
4789 # include <assert.h>
4790 #endif
4791 Syntax error
4792 _ACEOF
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 # Broken: fails on valid input.
4815 continue
4818 rm -f conftest.err conftest.$ac_ext
4820 # OK, works on sane cases. Now check whether nonexistent headers
4821 # can be detected and how.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4829 _ACEOF
4830 if { (ac_try="$ac_cpp conftest.$ac_ext"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 }; then
4846 # Broken: success on invalid input.
4847 continue
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Passes both tests.
4853 ac_preproc_ok=:
4854 break
4857 rm -f conftest.err conftest.$ac_ext
4859 done
4860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861 rm -f conftest.err conftest.$ac_ext
4862 if $ac_preproc_ok; then
4863 break
4866 done
4867 ac_cv_prog_CPP=$CPP
4870 CPP=$ac_cv_prog_CPP
4871 else
4872 ac_cv_prog_CPP=$CPP
4874 { echo "$as_me:$LINENO: result: $CPP" >&5
4875 echo "${ECHO_T}$CPP" >&6; }
4876 ac_preproc_ok=false
4877 for ac_c_preproc_warn_flag in '' yes
4879 # Use a header file that comes with gcc, so configuring glibc
4880 # with a fresh cross-compiler works.
4881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882 # <limits.h> exists even on freestanding compilers.
4883 # On the NeXT, cc -E runs the code through the compiler's parser,
4884 # not just through cpp. "Syntax error" is here to catch this case.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #ifdef __STDC__
4892 # include <limits.h>
4893 #else
4894 # include <assert.h>
4895 #endif
4896 Syntax error
4897 _ACEOF
4898 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 }; then
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 # Broken: fails on valid input.
4920 continue
4923 rm -f conftest.err conftest.$ac_ext
4925 # OK, works on sane cases. Now check whether nonexistent headers
4926 # can be detected and how.
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <ac_nonexistent.h>
4934 _ACEOF
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4962 rm -f conftest.err conftest.$ac_ext
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then
4969 else
4970 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." >&5
4972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." >&2;}
4974 { (exit 1); exit 1; }; }
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 # Find a good install program. We prefer a C program (faster),
4984 # so one script is as good as another. But avoid the broken or
4985 # incompatible versions:
4986 # SysV /etc/install, /usr/sbin/install
4987 # SunOS /usr/etc/install
4988 # IRIX /sbin/install
4989 # AIX /bin/install
4990 # AmigaOS /C/install, which installs bootblocks on floppy discs
4991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4994 # OS/2's system install, which has a completely different semantic
4995 # ./install, which can be erroneously created by make from ./install.sh.
4996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4998 if test -z "$INSTALL"; then
4999 if test "${ac_cv_path_install+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 # Account for people who put trailing slashes in PATH elements.
5008 case $as_dir/ in
5009 ./ | .// | /cC/* | \
5010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5012 /usr/ucb/* ) ;;
5014 # OSF1 and SCO ODT 3.0 have their own names for install.
5015 # Don't use installbsd from OSF since it installs stuff as root
5016 # by default.
5017 for ac_prog in ginstall scoinst install; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5020 if test $ac_prog = install &&
5021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5022 # AIX install. It has an incompatible calling convention.
5024 elif test $ac_prog = install &&
5025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5026 # program-specific install script used by HP pwplus--don't use.
5028 else
5029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5030 break 3
5033 done
5034 done
5036 esac
5037 done
5038 IFS=$as_save_IFS
5042 if test "${ac_cv_path_install+set}" = set; then
5043 INSTALL=$ac_cv_path_install
5044 else
5045 # As a last resort, use the slow shell script. Don't cache a
5046 # value for INSTALL within a source directory, because that will
5047 # break other packages using the cache if that directory is
5048 # removed, or if the value is a relative name.
5049 INSTALL=$ac_install_sh
5052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5053 echo "${ECHO_T}$INSTALL" >&6; }
5055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5056 # It thinks the first close brace ends the variable substitution.
5057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5063 if test "x$RANLIB" = x; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_prog_RANLIB+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 if test -n "$RANLIB"; then
5073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 RANLIB=$ac_cv_prog_RANLIB
5093 if test -n "$RANLIB"; then
5094 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5095 echo "${ECHO_T}$RANLIB" >&6; }
5096 else
5097 { echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6; }
5103 if test -z "$ac_cv_prog_RANLIB"; then
5104 ac_ct_RANLIB=$RANLIB
5105 # Extract the first word of "ranlib", so it can be a program name with args.
5106 set dummy ranlib; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$ac_ct_RANLIB"; then
5113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_RANLIB="ranlib"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5133 if test -n "$ac_ct_RANLIB"; then
5134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5135 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5141 if test "x$ac_ct_RANLIB" = x; then
5142 RANLIB=":"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5147 whose name does not start with the host triplet. If you think this
5148 configuration is useful to you, please write to autoconf@gnu.org." >&5
5149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet. If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 RANLIB=$ac_ct_RANLIB
5156 else
5157 RANLIB="$ac_cv_prog_RANLIB"
5161 # Extract the first word of "install-info", so it can be a program name with args.
5162 set dummy install-info; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 case $INSTALL_INFO in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5189 esac
5191 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5192 if test -n "$INSTALL_INFO"; then
5193 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5194 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5195 else
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5201 # Extract the first word of "install-info", so it can be a program name with args.
5202 set dummy install-info; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 case $INSTALL_INFO in
5209 [\\/]* | ?:[\\/]*)
5210 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in /usr/sbin
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5229 esac
5231 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5232 if test -n "$INSTALL_INFO"; then
5233 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5234 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5235 else
5236 { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5241 # Extract the first word of "install-info", so it can be a program name with args.
5242 set dummy install-info; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 case $INSTALL_INFO in
5249 [\\/]* | ?:[\\/]*)
5250 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in /sbin
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5268 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5270 esac
5272 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5273 if test -n "$INSTALL_INFO"; then
5274 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5275 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5276 else
5277 { echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6; }
5282 # Extract the first word of "gzip", so it can be a program name with args.
5283 set dummy gzip; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 case $GZIP_PROG in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5310 esac
5312 GZIP_PROG=$ac_cv_path_GZIP_PROG
5313 if test -n "$GZIP_PROG"; then
5314 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5315 echo "${ECHO_T}$GZIP_PROG" >&6; }
5316 else
5317 { echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6; }
5324 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5325 then
5326 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5329 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5330 then
5331 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5335 late_LDFLAGS=$LDFLAGS
5336 if test "$GCC" = yes; then
5337 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5338 else
5339 LDFLAGS="$LDFLAGS -znocombreloc"
5342 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5343 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5344 cat >conftest.$ac_ext <<_ACEOF
5345 main(){return 0;}
5346 _ACEOF
5347 rm -f conftest.$ac_objext conftest$ac_exeext
5348 if { (ac_try="$ac_link"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_link") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest$ac_exeext &&
5364 $as_test_x conftest$ac_exeext; then
5365 { echo "$as_me:$LINENO: result: yes" >&5
5366 echo "${ECHO_T}yes" >&6; }
5367 else
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 LDFLAGS=$late_LDFLAGS
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5377 conftest$ac_exeext conftest.$ac_ext
5379 #### Extract some information from the operating system and machine files.
5381 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5382 - which libraries the lib-src programs will want, and
5383 - whether the GNU malloc routines are usable..." >&5
5384 echo "$as_me: checking the machine- and system-dependent files to find out
5385 - which libraries the lib-src programs will want, and
5386 - whether the GNU malloc routines are usable..." >&6;}
5388 ### First figure out CFLAGS (which we use for running the compiler here)
5389 ### and REAL_CFLAGS (which we use for real compilation).
5390 ### The two are the same except on a few systems, where they are made
5391 ### different to work around various lossages. For example,
5392 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5393 ### as implying static linking.
5395 ### If the CFLAGS env var is specified, we use that value
5396 ### instead of the default.
5398 ### It's not important that this name contain the PID; you can't run
5399 ### two configures in the same directory and have anything work
5400 ### anyway.
5401 tempcname="conftest.c"
5403 echo '
5404 #include "'${srcdir}'/src/'${opsysfile}'"
5405 #include "'${srcdir}'/src/'${machfile}'"
5406 #ifndef LIBS_MACHINE
5407 #define LIBS_MACHINE
5408 #endif
5409 #ifndef LIBS_SYSTEM
5410 #define LIBS_SYSTEM
5411 #endif
5412 #ifndef C_SWITCH_SYSTEM
5413 #define C_SWITCH_SYSTEM
5414 #endif
5415 #ifndef C_SWITCH_MACHINE
5416 #define C_SWITCH_MACHINE
5417 #endif
5418 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5419 configure___ c_switch_system=C_SWITCH_SYSTEM
5420 configure___ c_switch_machine=C_SWITCH_MACHINE
5422 #ifndef LIB_X11_LIB
5423 #define LIB_X11_LIB -lX11
5424 #endif
5426 #ifndef LIBX11_MACHINE
5427 #define LIBX11_MACHINE
5428 #endif
5430 #ifndef LIBX11_SYSTEM
5431 #define LIBX11_SYSTEM
5432 #endif
5433 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5435 #ifdef UNEXEC
5436 configure___ unexec=UNEXEC
5437 #else
5438 configure___ unexec=unexec.o
5439 #endif
5441 #ifdef SYSTEM_MALLOC
5442 configure___ system_malloc=yes
5443 #else
5444 configure___ system_malloc=no
5445 #endif
5447 #ifdef USE_MMAP_FOR_BUFFERS
5448 configure___ use_mmap_for_buffers=yes
5449 #else
5450 configure___ use_mmap_for_buffers=no
5451 #endif
5453 #ifndef C_DEBUG_SWITCH
5454 #define C_DEBUG_SWITCH -g
5455 #endif
5457 #ifndef C_OPTIMIZE_SWITCH
5458 #ifdef __GNUC__
5459 #define C_OPTIMIZE_SWITCH -O2
5460 #else
5461 #define C_OPTIMIZE_SWITCH -O
5462 #endif
5463 #endif
5465 #ifndef C_WARNINGS_SWITCH
5466 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5467 #endif
5469 #ifndef LD_SWITCH_MACHINE
5470 #define LD_SWITCH_MACHINE
5471 #endif
5473 #ifndef LD_SWITCH_SYSTEM
5474 #define LD_SWITCH_SYSTEM
5475 #endif
5477 #ifndef LD_SWITCH_X_SITE_AUX
5478 #define LD_SWITCH_X_SITE_AUX
5479 #endif
5481 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5482 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5484 #ifdef THIS_IS_CONFIGURE
5486 /* Get the CFLAGS for tests in configure. */
5487 #ifdef __GNUC__
5488 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5489 #else
5490 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5491 #endif
5493 #else /* not THIS_IS_CONFIGURE */
5495 /* Get the CFLAGS for real compilation. */
5496 #ifdef __GNUC__
5497 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5498 #else
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5500 #endif
5502 #endif /* not THIS_IS_CONFIGURE */
5503 ' > ${tempcname}
5505 # The value of CPP is a quoted variable reference, so we need to do this
5506 # to get its actual value...
5507 CPP=`eval "echo $CPP"`
5508 eval `${CPP} -Isrc ${tempcname} \
5509 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5510 if test "x$SPECIFIED_CFLAGS" = x; then
5511 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5512 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5513 else
5514 REAL_CFLAGS="$CFLAGS"
5516 rm ${tempcname}
5518 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5520 ### Make sure subsequent tests use flags consistent with the build flags.
5522 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5523 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5524 else
5525 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5530 # Check whether --enable-largefile was given.
5531 if test "${enable_largefile+set}" = set; then
5532 enableval=$enable_largefile;
5535 if test "$enable_largefile" != no; then
5537 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5538 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5539 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 ac_cv_sys_largefile_CC=no
5543 if test "$GCC" != yes; then
5544 ac_save_CC=$CC
5545 while :; do
5546 # IRIX 6.2 and later do not support large files by default,
5547 # so use the C compiler's -n32 option if that helps.
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <sys/types.h>
5555 /* Check that off_t can represent 2**63 - 1 correctly.
5556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5557 since some C++ compilers masquerading as C compilers
5558 incorrectly reject 9223372036854775807. */
5559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5561 && LARGE_OFF_T % 2147483647 == 1)
5562 ? 1 : -1];
5564 main ()
5568 return 0;
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5588 break
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5596 rm -f core conftest.err conftest.$ac_objext
5597 CC="$CC -n32"
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_sys_largefile_CC=' -n32'; break
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext
5624 break
5625 done
5626 CC=$ac_save_CC
5627 rm -f conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5631 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5632 if test "$ac_cv_sys_largefile_CC" != no; then
5633 CC=$CC$ac_cv_sys_largefile_CC
5636 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5637 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5638 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 while :; do
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 /* Check that off_t can represent 2**63 - 1 correctly.
5650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651 since some C++ compilers masquerading as C compilers
5652 incorrectly reject 9223372036854775807. */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655 && LARGE_OFF_T % 2147483647 == 1)
5656 ? 1 : -1];
5658 main ()
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_cv_sys_file_offset_bits=no; break
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5706 ? 1 : -1];
5708 main ()
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 ac_cv_sys_file_offset_bits=64; break
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_sys_file_offset_bits=unknown
5742 break
5743 done
5745 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5746 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5747 case $ac_cv_sys_file_offset_bits in #(
5748 no | unknown) ;;
5750 cat >>confdefs.h <<_ACEOF
5751 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5752 _ACEOF
5754 esac
5755 rm -f conftest*
5756 if test $ac_cv_sys_file_offset_bits = unknown; then
5757 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5758 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5759 if test "${ac_cv_sys_large_files+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 while :; do
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5779 main ()
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_sys_large_files=no; break
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #define _LARGE_FILES 1
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5829 main ()
5833 return 0;
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 ac_cv_sys_large_files=1; break
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ac_cv_sys_large_files=unknown
5863 break
5864 done
5866 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5867 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5868 case $ac_cv_sys_large_files in #(
5869 no | unknown) ;;
5871 cat >>confdefs.h <<_ACEOF
5872 #define _LARGE_FILES $ac_cv_sys_large_files
5873 _ACEOF
5875 esac
5876 rm -f conftest*
5882 ### The standard library on x86-64 GNU/Linux distributions can
5883 ### be located in either /usr/lib64 or /usr/lib.
5884 case "${canonical}" in
5885 x86_64-*-linux-gnu* )
5886 if test -d /usr/lib64; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_X86_64_LIB64_DIR 1
5890 _ACEOF
5893 esac
5898 if test "${with_sound}" != "no"; then
5899 # Sound support for GNU/Linux and the free BSDs.
5900 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5902 if test "${ac_cv_header_stdc+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <stdlib.h>
5912 #include <stdarg.h>
5913 #include <string.h>
5914 #include <float.h>
5917 main ()
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.$ac_objext; then
5941 ac_cv_header_stdc=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_header_stdc=no
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 if test $ac_cv_header_stdc = yes; then
5952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <string.h>
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "memchr" >/dev/null 2>&1; then
5965 else
5966 ac_cv_header_stdc=no
5968 rm -f conftest*
5972 if test $ac_cv_header_stdc = yes; then
5973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <stdlib.h>
5982 _ACEOF
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "free" >/dev/null 2>&1; then
5986 else
5987 ac_cv_header_stdc=no
5989 rm -f conftest*
5993 if test $ac_cv_header_stdc = yes; then
5994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5995 if test "$cross_compiling" = yes; then
5997 else
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <ctype.h>
6005 #include <stdlib.h>
6006 #if ((' ' & 0x0FF) == 0x020)
6007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6009 #else
6010 # define ISLOWER(c) \
6011 (('a' <= (c) && (c) <= 'i') \
6012 || ('j' <= (c) && (c) <= 'r') \
6013 || ('s' <= (c) && (c) <= 'z'))
6014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6015 #endif
6017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6019 main ()
6021 int i;
6022 for (i = 0; i < 256; i++)
6023 if (XOR (islower (i), ISLOWER (i))
6024 || toupper (i) != TOUPPER (i))
6025 return 2;
6026 return 0;
6028 _ACEOF
6029 rm -f conftest$ac_exeext
6030 if { (ac_try="$ac_link"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_link") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6050 else
6051 echo "$as_me: program exited with status $ac_status" >&5
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 ( exit $ac_status )
6056 ac_cv_header_stdc=no
6058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6065 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6066 if test $ac_cv_header_stdc = yes; then
6068 cat >>confdefs.h <<\_ACEOF
6069 #define STDC_HEADERS 1
6070 _ACEOF
6074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6085 inttypes.h stdint.h unistd.h
6087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6101 #include <$ac_header>
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 eval "$as_ac_Header=yes"
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 eval "$as_ac_Header=no"
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6134 cat >>confdefs.h <<_ACEOF
6135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 _ACEOF
6140 done
6146 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_res=`eval echo '${'$as_ac_Header'}'`
6156 { echo "$as_me:$LINENO: result: $ac_res" >&5
6157 echo "${ECHO_T}$ac_res" >&6; }
6158 else
6159 # Is the header compilable?
6160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
6188 ac_header_compiler=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_header_compiler=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6198 echo "${ECHO_T}$ac_header_compiler" >&6; }
6200 # Is the header present?
6201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <$ac_header>
6210 _ACEOF
6211 if { (ac_try="$ac_cpp conftest.$ac_ext"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null && {
6224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 }; then
6227 ac_header_preproc=yes
6228 else
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 ac_header_preproc=no
6235 rm -f conftest.err conftest.$ac_ext
6236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6237 echo "${ECHO_T}$ac_header_preproc" >&6; }
6239 # So? What about this header?
6240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6241 yes:no: )
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6246 ac_header_preproc=yes
6248 no:yes:* )
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263 esac
6264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 eval "$as_ac_Header=\$ac_header_preproc"
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272 { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6279 _ACEOF
6283 done
6285 # Emulation library used on NetBSD.
6286 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6287 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6288 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lossaudio $LIBS"
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6300 /* Override any GCC internal prototype to avoid an error.
6301 Use char because int might match the return type of a GCC
6302 builtin and then its argument prototype would still apply. */
6303 #ifdef __cplusplus
6304 extern "C"
6305 #endif
6306 char _oss_ioctl ();
6308 main ()
6310 return _oss_ioctl ();
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6317 case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest$ac_exeext &&
6332 $as_test_x conftest$ac_exeext; then
6333 ac_cv_lib_ossaudio__oss_ioctl=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_cv_lib_ossaudio__oss_ioctl=no
6341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6346 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6347 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6348 LIBSOUND=-lossaudio
6349 else
6350 LIBSOUND=
6355 ALSA_REQUIRED=1.0.0
6356 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6357 if test "X${with_pkg_config_prog}" != X; then
6358 PKG_CONFIG="${with_pkg_config_prog}"
6361 succeeded=no
6363 if test -z "$PKG_CONFIG"; then
6364 # Extract the first word of "pkg-config", so it can be a program name with args.
6365 set dummy pkg-config; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 case $PKG_CONFIG in
6372 [\\/]* | ?:[\\/]*)
6373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6393 esac
6395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6396 if test -n "$PKG_CONFIG"; then
6397 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6398 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6407 if test "$PKG_CONFIG" = "no" ; then
6408 HAVE_ALSA=no
6409 else
6410 PKG_CONFIG_MIN_VERSION=0.9.0
6411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6412 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6413 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6415 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6416 { echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6; }
6418 succeeded=yes
6420 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6421 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6422 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6423 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6424 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6426 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6427 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6428 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6429 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6430 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6431 else
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6434 ALSA_CFLAGS=""
6435 ALSA_LIBS=""
6436 ## If we have a custom action on failure, don't print errors, but
6437 ## do set a variable so people can do so.
6438 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6444 else
6445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6450 if test $succeeded = yes; then
6451 HAVE_ALSA=yes
6452 else
6453 HAVE_ALSA=no
6456 if test $HAVE_ALSA = yes; then
6457 SAVE_CFLAGS="$CFLAGS"
6458 SAVE_LDFLAGS="$LDFLAGS"
6459 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6460 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <asoundlib.h>
6469 main ()
6471 snd_lib_error_set_handler (0);
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_alsa_normal=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 emacs_alsa_normal=no
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 if test "$emacs_alsa_normal" != yes; then
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <alsa/asoundlib.h>
6511 main ()
6513 snd_lib_error_set_handler (0);
6515 return 0;
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 emacs_alsa_subdir=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 emacs_alsa_subdir=no
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 if test "$emacs_alsa_subdir" != yes; then
6545 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6546 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6547 { (exit 1); exit 1; }; }
6549 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6552 CFLAGS="$SAVE_CFLAGS"
6553 LDFLAGS="$SAVE_LDFLAGS"
6554 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6555 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_ALSA 1
6559 _ACEOF
6590 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6591 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6592 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6593 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6594 sys/utsname.h pwd.h
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_res=`eval echo '${'$as_ac_Header'}'`
6604 { echo "$as_me:$LINENO: result: $ac_res" >&5
6605 echo "${ECHO_T}$ac_res" >&6; }
6606 else
6607 # Is the header compilable?
6608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_header_compiler=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 echo "${ECHO_T}$ac_header_compiler" >&6; }
6648 # Is the header present?
6649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6658 _ACEOF
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev/null && {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 }; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_header_preproc=no
6683 rm -f conftest.err conftest.$ac_ext
6684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 echo "${ECHO_T}$ac_header_preproc" >&6; }
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 yes:no: )
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc=yes
6696 no:yes:* )
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6711 esac
6712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 eval "$as_ac_Header=\$ac_header_preproc"
6719 ac_res=`eval echo '${'$as_ac_Header'}'`
6720 { echo "$as_me:$LINENO: result: $ac_res" >&5
6721 echo "${ECHO_T}$ac_res" >&6; }
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6731 done
6734 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6735 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <sys/personality.h>
6744 main ()
6746 personality (PER_LINUX32)
6748 return 0;
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (ac_try="$ac_compile"
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_compile") 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); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 emacs_cv_personality_linux32=yes
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 emacs_cv_personality_linux32=no
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6778 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6780 if test $emacs_cv_personality_linux32 = yes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_PERSONALITY_LINUX32 1
6784 _ACEOF
6789 for ac_header in term.h
6791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #include <$ac_header>
6804 _ACEOF
6805 if { (ac_try="$ac_cpp conftest.$ac_ext"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } >/dev/null && {
6818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 }; then
6821 eval "$as_ac_Header=yes"
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 eval "$as_ac_Header=no"
6829 rm -f conftest.err conftest.$ac_ext
6831 ac_res=`eval echo '${'$as_ac_Header'}'`
6832 { echo "$as_me:$LINENO: result: $ac_res" >&5
6833 echo "${ECHO_T}$ac_res" >&6; }
6834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837 _ACEOF
6841 done
6843 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6845 if test "${ac_cv_header_stdc+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <stdlib.h>
6855 #include <stdarg.h>
6856 #include <string.h>
6857 #include <float.h>
6860 main ()
6864 return 0;
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_header_stdc=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_header_stdc=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 if test $ac_cv_header_stdc = yes; then
6895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <string.h>
6904 _ACEOF
6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 $EGREP "memchr" >/dev/null 2>&1; then
6908 else
6909 ac_cv_header_stdc=no
6911 rm -f conftest*
6915 if test $ac_cv_header_stdc = yes; then
6916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 #include <stdlib.h>
6925 _ACEOF
6926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927 $EGREP "free" >/dev/null 2>&1; then
6929 else
6930 ac_cv_header_stdc=no
6932 rm -f conftest*
6936 if test $ac_cv_header_stdc = yes; then
6937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6938 if test "$cross_compiling" = yes; then
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 #include <ctype.h>
6948 #include <stdlib.h>
6949 #if ((' ' & 0x0FF) == 0x020)
6950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6952 #else
6953 # define ISLOWER(c) \
6954 (('a' <= (c) && (c) <= 'i') \
6955 || ('j' <= (c) && (c) <= 'r') \
6956 || ('s' <= (c) && (c) <= 'z'))
6957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6958 #endif
6960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6962 main ()
6964 int i;
6965 for (i = 0; i < 256; i++)
6966 if (XOR (islower (i), ISLOWER (i))
6967 || toupper (i) != TOUPPER (i))
6968 return 2;
6969 return 0;
6971 _ACEOF
6972 rm -f conftest$ac_exeext
6973 if { (ac_try="$ac_link"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_link") 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6983 { (case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_try") 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6993 else
6994 echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ( exit $ac_status )
6999 ac_cv_header_stdc=no
7001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7009 if test $ac_cv_header_stdc = yes; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define STDC_HEADERS 1
7013 _ACEOF
7017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7019 if test "${ac_cv_header_time+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 #include <sys/time.h>
7030 #include <time.h>
7033 main ()
7035 if ((struct tm *) 0)
7036 return 0;
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_time=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_header_time=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7070 if test $ac_cv_header_time = yes; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define TIME_WITH_SYS_TIME 1
7074 _ACEOF
7078 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7079 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7080 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7091 main ()
7093 #ifndef sys_siglist
7094 (void) sys_siglist;
7095 #endif
7098 return 0;
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_have_decl_sys_siglist=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_have_decl_sys_siglist=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7129 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7130 if test $ac_cv_have_decl_sys_siglist = yes; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_DECL_SYS_SIGLIST 1
7134 _ACEOF
7137 else
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_DECL_SYS_SIGLIST 0
7140 _ACEOF
7146 if test $ac_cv_have_decl_sys_siglist != yes; then
7147 # For Tru64, at least:
7148 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7149 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7150 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7161 main ()
7163 #ifndef __sys_siglist
7164 (void) __sys_siglist;
7165 #endif
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 ac_cv_have_decl___sys_siglist=yes
7189 else
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 ac_cv_have_decl___sys_siglist=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7199 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7200 if test $ac_cv_have_decl___sys_siglist = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203 #define HAVE_DECL___SYS_SIGLIST 1
7204 _ACEOF
7207 else
7208 cat >>confdefs.h <<_ACEOF
7209 #define HAVE_DECL___SYS_SIGLIST 0
7210 _ACEOF
7216 if test $ac_cv_have_decl___sys_siglist = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219 #define sys_siglist __sys_siglist
7220 _ACEOF
7224 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7225 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7226 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 #include <sys/types.h>
7236 #include <sys/wait.h>
7237 #ifndef WEXITSTATUS
7238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7239 #endif
7240 #ifndef WIFEXITED
7241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7242 #endif
7245 main ()
7247 int s;
7248 wait (&s);
7249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7251 return 0;
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7256 case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 ac_cv_header_sys_wait_h=yes
7272 else
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ac_cv_header_sys_wait_h=no
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7282 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7283 if test $ac_cv_header_sys_wait_h = yes; then
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_SYS_WAIT_H 1
7287 _ACEOF
7292 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7293 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7294 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #ifdef TIME_WITH_SYS_TIME
7304 #include <sys/time.h>
7305 #include <time.h>
7306 #else
7307 #ifdef HAVE_SYS_TIME_H
7308 #include <sys/time.h>
7309 #else
7310 #include <time.h>
7311 #endif
7312 #endif
7313 #ifdef HAVE_UTIME_H
7314 #include <utime.h>
7315 #endif
7317 main ()
7319 static struct utimbuf x; x.actime = x.modtime;
7321 return 0;
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.$ac_objext; then
7341 emacs_cv_struct_utimbuf=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 emacs_cv_struct_utimbuf=no
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7352 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7353 if test $emacs_cv_struct_utimbuf = yes; then
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_STRUCT_UTIMBUF 1
7357 _ACEOF
7361 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7362 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7363 if test "${ac_cv_type_signal+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7373 #include <signal.h>
7376 main ()
7378 return *(signal (0, 0)) (0) == 1;
7380 return 0;
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_cv_type_signal=int
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_type_signal=void
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7411 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7413 cat >>confdefs.h <<_ACEOF
7414 #define RETSIGTYPE $ac_cv_type_signal
7415 _ACEOF
7419 { echo "$as_me:$LINENO: checking for speed_t" >&5
7420 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7421 if test "${emacs_cv_speed_t+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <termios.h>
7432 main ()
7434 speed_t x = 1;
7436 return 0;
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (ac_try="$ac_compile"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_compile") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest.$ac_objext; then
7456 emacs_cv_speed_t=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 emacs_cv_speed_t=no
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7467 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7468 if test $emacs_cv_speed_t = yes; then
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_SPEED_T 1
7472 _ACEOF
7476 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7477 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_timeval+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 #ifdef TIME_WITH_SYS_TIME
7488 #include <sys/time.h>
7489 #include <time.h>
7490 #else
7491 #ifdef HAVE_SYS_TIME_H
7492 #include <sys/time.h>
7493 #else
7494 #include <time.h>
7495 #endif
7496 #endif
7498 main ()
7500 static struct timeval x; x.tv_sec = x.tv_usec;
7502 return 0;
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 emacs_cv_struct_timeval=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 emacs_cv_struct_timeval=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7534 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7535 if test $emacs_cv_struct_timeval = yes; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_TIMEVAL 1
7539 _ACEOF
7543 { echo "$as_me:$LINENO: checking for struct exception" >&5
7544 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7545 if test "${emacs_cv_struct_exception+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <math.h>
7556 main ()
7558 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 emacs_cv_struct_exception=yes
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 emacs_cv_struct_exception=no
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7591 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7592 HAVE_EXCEPTION=$emacs_cv_struct_exception
7593 if test $emacs_cv_struct_exception != yes; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define NO_MATHERR 1
7597 _ACEOF
7602 for ac_header in sys/socket.h
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_res=`eval echo '${'$as_ac_Header'}'`
7612 { echo "$as_me:$LINENO: result: $ac_res" >&5
7613 echo "${ECHO_T}$ac_res" >&6; }
7614 else
7615 # Is the header compilable?
7616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 ac_header_compiler=yes
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_header_compiler=no
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654 echo "${ECHO_T}$ac_header_compiler" >&6; }
7656 # Is the header present?
7657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <$ac_header>
7666 _ACEOF
7667 if { (ac_try="$ac_cpp conftest.$ac_ext"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } >/dev/null && {
7680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 }; then
7683 ac_header_preproc=yes
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_header_preproc=no
7691 rm -f conftest.err conftest.$ac_ext
7692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7693 echo "${ECHO_T}$ac_header_preproc" >&6; }
7695 # So? What about this header?
7696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7697 yes:no: )
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7702 ac_header_preproc=yes
7704 no:yes:* )
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7719 esac
7720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 eval "$as_ac_Header=\$ac_header_preproc"
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7735 _ACEOF
7739 done
7742 for ac_header in net/if.h
7744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7759 #endif
7761 #include <$ac_header>
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 eval "$as_ac_Header=yes"
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 eval "$as_ac_Header=no"
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 ac_res=`eval echo '${'$as_ac_Header'}'`
7791 { echo "$as_me:$LINENO: result: $ac_res" >&5
7792 echo "${ECHO_T}$ac_res" >&6; }
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7800 done
7803 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7804 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7805 if test "${ac_cv_struct_tm+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <sys/types.h>
7815 #include <time.h>
7818 main ()
7820 struct tm tm;
7821 int *p = &tm.tm_sec;
7822 return !p;
7824 return 0;
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (ac_try="$ac_compile"
7829 case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.$ac_objext; then
7844 ac_cv_struct_tm=time.h
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_cv_struct_tm=sys/time.h
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7855 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7856 if test $ac_cv_struct_tm = sys/time.h; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define TM_IN_SYS_TIME 1
7860 _ACEOF
7864 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7865 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7866 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <sys/types.h>
7876 #include <$ac_cv_struct_tm>
7880 main ()
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_zone)
7884 return 0;
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_zone=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 #include <$ac_cv_struct_tm>
7922 main ()
7924 static struct tm ac_aggr;
7925 if (sizeof ac_aggr.tm_zone)
7926 return 0;
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_member_struct_tm_tm_zone=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_member_struct_tm_tm_zone=no
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7962 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7963 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_STRUCT_TM_TM_ZONE 1
7967 _ACEOF
7972 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_TM_ZONE 1
7976 _ACEOF
7978 else
7979 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7980 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7981 if test "${ac_cv_have_decl_tzname+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 #include <time.h>
7993 main ()
7995 #ifndef tzname
7996 (void) tzname;
7997 #endif
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_have_decl_tzname=yes
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_have_decl_tzname=no
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8031 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8032 if test $ac_cv_have_decl_tzname = yes; then
8034 cat >>confdefs.h <<_ACEOF
8035 #define HAVE_DECL_TZNAME 1
8036 _ACEOF
8039 else
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_DECL_TZNAME 0
8042 _ACEOF
8048 { echo "$as_me:$LINENO: checking for tzname" >&5
8049 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8050 if test "${ac_cv_var_tzname+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <time.h>
8060 #if !HAVE_DECL_TZNAME
8061 extern char *tzname[];
8062 #endif
8065 main ()
8067 return tzname[0][0];
8069 return 0;
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8074 case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_link") 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest$ac_exeext &&
8089 $as_test_x conftest$ac_exeext; then
8090 ac_cv_var_tzname=yes
8091 else
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 ac_cv_var_tzname=no
8098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8099 conftest$ac_exeext conftest.$ac_ext
8101 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8102 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8103 if test $ac_cv_var_tzname = yes; then
8105 cat >>confdefs.h <<\_ACEOF
8106 #define HAVE_TZNAME 1
8107 _ACEOF
8112 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8113 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8114 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <time.h>
8126 main ()
8128 static struct tm ac_aggr;
8129 if (ac_aggr.tm_gmtoff)
8130 return 0;
8132 return 0;
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_cv_member_struct_tm_tm_gmtoff=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 #include <time.h>
8166 main ()
8168 static struct tm ac_aggr;
8169 if (sizeof ac_aggr.tm_gmtoff)
8170 return 0;
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.$ac_objext; then
8192 ac_cv_member_struct_tm_tm_gmtoff=yes
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_cv_member_struct_tm_tm_gmtoff=no
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8206 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8207 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_TM_GMTOFF 1
8211 _ACEOF
8215 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8216 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 #if HAVE_SYS_SOCKET_H
8228 #include <sys/socket.h>
8229 #endif
8230 #if HAVE_NET_IF_H
8231 #include <net/if.h>
8232 #endif
8235 main ()
8237 static struct ifreq ac_aggr;
8238 if (ac_aggr.ifr_flags)
8239 return 0;
8241 return 0;
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_cv_member_struct_ifreq_ifr_flags=yes
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8275 #endif
8276 #if HAVE_NET_IF_H
8277 #include <net/if.h>
8278 #endif
8281 main ()
8283 static struct ifreq ac_aggr;
8284 if (sizeof ac_aggr.ifr_flags)
8285 return 0;
8287 return 0;
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_cv_member_struct_ifreq_ifr_flags=no
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8321 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8322 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8326 _ACEOF
8330 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8331 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8332 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #if HAVE_SYS_SOCKET_H
8343 #include <sys/socket.h>
8344 #endif
8345 #if HAVE_NET_IF_H
8346 #include <net/if.h>
8347 #endif
8350 main ()
8352 static struct ifreq ac_aggr;
8353 if (ac_aggr.ifr_hwaddr)
8354 return 0;
8356 return 0;
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #if HAVE_SYS_SOCKET_H
8389 #include <sys/socket.h>
8390 #endif
8391 #if HAVE_NET_IF_H
8392 #include <net/if.h>
8393 #endif
8396 main ()
8398 static struct ifreq ac_aggr;
8399 if (sizeof ac_aggr.ifr_hwaddr)
8400 return 0;
8402 return 0;
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8437 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8441 _ACEOF
8445 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8446 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8447 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8459 #endif
8460 #if HAVE_NET_IF_H
8461 #include <net/if.h>
8462 #endif
8465 main ()
8467 static struct ifreq ac_aggr;
8468 if (ac_aggr.ifr_netmask)
8469 return 0;
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_netmask=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8505 #endif
8506 #if HAVE_NET_IF_H
8507 #include <net/if.h>
8508 #endif
8511 main ()
8513 static struct ifreq ac_aggr;
8514 if (sizeof ac_aggr.ifr_netmask)
8515 return 0;
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_member_struct_ifreq_ifr_netmask=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_cv_member_struct_ifreq_ifr_netmask=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8552 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8556 _ACEOF
8560 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8561 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8562 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #if HAVE_SYS_SOCKET_H
8573 #include <sys/socket.h>
8574 #endif
8575 #if HAVE_NET_IF_H
8576 #include <net/if.h>
8577 #endif
8580 main ()
8582 static struct ifreq ac_aggr;
8583 if (ac_aggr.ifr_broadaddr)
8584 return 0;
8586 return 0;
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (ac_try="$ac_compile"
8591 case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8607 else
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #if HAVE_SYS_SOCKET_H
8619 #include <sys/socket.h>
8620 #endif
8621 #if HAVE_NET_IF_H
8622 #include <net/if.h>
8623 #endif
8626 main ()
8628 static struct ifreq ac_aggr;
8629 if (sizeof ac_aggr.ifr_broadaddr)
8630 return 0;
8632 return 0;
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8637 case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8666 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8667 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8669 cat >>confdefs.h <<_ACEOF
8670 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8671 _ACEOF
8675 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8676 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8677 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8689 #endif
8690 #if HAVE_NET_IF_H
8691 #include <net/if.h>
8692 #endif
8695 main ()
8697 static struct ifreq ac_aggr;
8698 if (ac_aggr.ifr_addr)
8699 return 0;
8701 return 0;
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_cv_member_struct_ifreq_ifr_addr=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #if HAVE_SYS_SOCKET_H
8734 #include <sys/socket.h>
8735 #endif
8736 #if HAVE_NET_IF_H
8737 #include <net/if.h>
8738 #endif
8741 main ()
8743 static struct ifreq ac_aggr;
8744 if (sizeof ac_aggr.ifr_addr)
8745 return 0;
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_member_struct_ifreq_ifr_addr=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_member_struct_ifreq_ifr_addr=no
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8781 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8782 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8786 _ACEOF
8793 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8794 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8795 if test "$ac_cv_prog_cc_c89" != no; then
8796 { echo "$as_me:$LINENO: result: yes" >&5
8797 echo "${ECHO_T}yes" >&6; }
8799 cat >>confdefs.h <<\_ACEOF
8800 #define PROTOTYPES 1
8801 _ACEOF
8804 cat >>confdefs.h <<\_ACEOF
8805 #define __PROTOTYPES 1
8806 _ACEOF
8808 else
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8813 { echo "$as_me:$LINENO: checking for working volatile" >&5
8814 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8815 if test "${ac_cv_c_volatile+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8826 main ()
8829 volatile int x;
8830 int * volatile y = (int *) 0;
8831 return !x && !y;
8833 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext
8837 if { (ac_try="$ac_compile"
8838 case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_compile") 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest.$ac_objext; then
8853 ac_cv_c_volatile=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 ac_cv_c_volatile=no
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8864 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8865 if test $ac_cv_c_volatile = no; then
8867 cat >>confdefs.h <<\_ACEOF
8868 #define volatile
8869 _ACEOF
8873 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8875 if test "${ac_cv_c_const+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8886 main ()
8888 /* FIXME: Include the comments suggested by Paul. */
8889 #ifndef __cplusplus
8890 /* Ultrix mips cc rejects this. */
8891 typedef int charset[2];
8892 const charset cs;
8893 /* SunOS 4.1.1 cc rejects this. */
8894 char const *const *pcpcc;
8895 char **ppc;
8896 /* NEC SVR4.0.2 mips cc rejects this. */
8897 struct point {int x, y;};
8898 static struct point const zero = {0,0};
8899 /* AIX XL C 1.02.0.0 rejects this.
8900 It does not let you subtract one const X* pointer from another in
8901 an arm of an if-expression whose if-part is not a constant
8902 expression */
8903 const char *g = "string";
8904 pcpcc = &g + (g ? g-g : 0);
8905 /* HPUX 7.0 cc rejects these. */
8906 ++pcpcc;
8907 ppc = (char**) pcpcc;
8908 pcpcc = (char const *const *) ppc;
8909 { /* SCO 3.2v4 cc rejects this. */
8910 char *t;
8911 char const *s = 0 ? (char *) 0 : (char const *) 0;
8913 *t++ = 0;
8914 if (s) return 0;
8916 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8917 int x[] = {25, 17};
8918 const int *foo = &x[0];
8919 ++foo;
8921 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8922 typedef const int *iptr;
8923 iptr p = 0;
8924 ++p;
8926 { /* AIX XL C 1.02.0.0 rejects this saying
8927 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8928 struct s { int j; const int *ap[3]; };
8929 struct s *b; b->j = 5;
8931 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8932 const int foo = 10;
8933 if (!foo) return 0;
8935 return !cs[0] && !zero.x;
8936 #endif
8939 return 0;
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8944 case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.$ac_objext; then
8959 ac_cv_c_const=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_cv_c_const=no
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8970 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8971 if test $ac_cv_c_const = no; then
8973 cat >>confdefs.h <<\_ACEOF
8974 #define const
8975 _ACEOF
8979 { echo "$as_me:$LINENO: checking for void * support" >&5
8980 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8981 if test "${emacs_cv_void_star+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8992 main ()
8994 void * foo;
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 emacs_cv_void_star=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 emacs_cv_void_star=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9027 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9028 if test $emacs_cv_void_star = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define POINTER_TYPE void
9031 _ACEOF
9033 else
9034 cat >>confdefs.h <<\_ACEOF
9035 #define POINTER_TYPE char
9036 _ACEOF
9044 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9045 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9046 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.make <<\_ACEOF
9051 SHELL = /bin/sh
9052 all:
9053 @echo '@@@%%%=$(MAKE)=@@@%%%'
9054 _ACEOF
9055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9057 *@@@%%%=?*=@@@%%%*)
9058 eval ac_cv_prog_make_${ac_make}_set=yes;;
9060 eval ac_cv_prog_make_${ac_make}_set=no;;
9061 esac
9062 rm -f conftest.make
9064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9065 { echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6; }
9067 SET_MAKE=
9068 else
9069 { echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6; }
9071 SET_MAKE="MAKE=${MAKE-make}"
9075 { echo "$as_me:$LINENO: checking for long file names" >&5
9076 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9077 if test "${ac_cv_sys_long_file_names+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_cv_sys_long_file_names=yes
9081 # Test for long file names in all the places we know might matter:
9082 # . the current directory, where building will happen
9083 # $prefix/lib where we will be installing things
9084 # $exec_prefix/lib likewise
9085 # $TMPDIR if set, where it might want to write temporary files
9086 # /tmp where it might want to write temporary files
9087 # /var/tmp likewise
9088 # /usr/tmp likewise
9089 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9090 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9091 # in the usual case where exec_prefix is '${prefix}'.
9092 case $ac_dir in #(
9093 . | /* | ?:[\\/]*) ;; #(
9094 *) continue;;
9095 esac
9096 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9097 ac_xdir=$ac_dir/cf$$
9098 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9099 ac_tf1=$ac_xdir/conftest9012345
9100 ac_tf2=$ac_xdir/conftest9012346
9101 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9102 ac_cv_sys_long_file_names=no
9103 rm -f -r "$ac_xdir" 2>/dev/null
9104 test $ac_cv_sys_long_file_names = no && break
9105 done
9107 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9108 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9109 if test $ac_cv_sys_long_file_names = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define HAVE_LONG_FILE_NAMES 1
9113 _ACEOF
9118 #### Choose a window system.
9120 { echo "$as_me:$LINENO: checking for X" >&5
9121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9124 # Check whether --with-x was given.
9125 if test "${with_x+set}" = set; then
9126 withval=$with_x;
9129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9130 if test "x$with_x" = xno; then
9131 # The user explicitly disabled X.
9132 have_x=disabled
9133 else
9134 case $x_includes,$x_libraries in #(
9135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9137 { (exit 1); exit 1; }; };; #(
9138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141 # One or both of the vars are not set, and there is no cached value.
9142 ac_x_includes=no ac_x_libraries=no
9143 rm -f -r conftest.dir
9144 if mkdir conftest.dir; then
9145 cd conftest.dir
9146 cat >Imakefile <<'_ACEOF'
9147 incroot:
9148 @echo incroot='${INCROOT}'
9149 usrlibdir:
9150 @echo usrlibdir='${USRLIBDIR}'
9151 libdir:
9152 @echo libdir='${LIBDIR}'
9153 _ACEOF
9154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9156 for ac_var in incroot usrlibdir libdir; do
9157 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9158 done
9159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9160 for ac_extension in a so sl; do
9161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9163 ac_im_usrlibdir=$ac_im_libdir; break
9165 done
9166 # Screen out bogus values from the imake configuration. They are
9167 # bogus both because they are the default anyway, and because
9168 # using them would break gcc on systems where it needs fixed includes.
9169 case $ac_im_incroot in
9170 /usr/include) ac_x_includes= ;;
9171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9172 esac
9173 case $ac_im_usrlibdir in
9174 /usr/lib | /lib) ;;
9175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9176 esac
9178 cd ..
9179 rm -f -r conftest.dir
9182 # Standard set of common directories for X headers.
9183 # Check X11 before X11Rn because it is often a symlink to the current release.
9184 ac_x_header_dirs='
9185 /usr/X11/include
9186 /usr/X11R6/include
9187 /usr/X11R5/include
9188 /usr/X11R4/include
9190 /usr/include/X11
9191 /usr/include/X11R6
9192 /usr/include/X11R5
9193 /usr/include/X11R4
9195 /usr/local/X11/include
9196 /usr/local/X11R6/include
9197 /usr/local/X11R5/include
9198 /usr/local/X11R4/include
9200 /usr/local/include/X11
9201 /usr/local/include/X11R6
9202 /usr/local/include/X11R5
9203 /usr/local/include/X11R4
9205 /usr/X386/include
9206 /usr/x386/include
9207 /usr/XFree86/include/X11
9209 /usr/include
9210 /usr/local/include
9211 /usr/unsupported/include
9212 /usr/athena/include
9213 /usr/local/x11r5/include
9214 /usr/lpp/Xamples/include
9216 /usr/openwin/include
9217 /usr/openwin/share/include'
9219 if test "$ac_x_includes" = no; then
9220 # Guess where to find include files, by looking for Xlib.h.
9221 # First, try using that file with no special directory specified.
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <X11/Xlib.h>
9229 _ACEOF
9230 if { (ac_try="$ac_cpp conftest.$ac_ext"
9231 case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null && {
9243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 }; then
9246 # We can compile using X headers with no special include directory.
9247 ac_x_includes=
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 for ac_dir in $ac_x_header_dirs; do
9253 if test -r "$ac_dir/X11/Xlib.h"; then
9254 ac_x_includes=$ac_dir
9255 break
9257 done
9260 rm -f conftest.err conftest.$ac_ext
9261 fi # $ac_x_includes = no
9263 if test "$ac_x_libraries" = no; then
9264 # Check for the libraries.
9265 # See if we find them without any special options.
9266 # Don't add to $LIBS permanently.
9267 ac_save_LIBS=$LIBS
9268 LIBS="-lX11 $LIBS"
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <X11/Xlib.h>
9277 main ()
9279 XrmInitialize ()
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9286 case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest$ac_exeext &&
9301 $as_test_x conftest$ac_exeext; then
9302 LIBS=$ac_save_LIBS
9303 # We can link X programs with no special library path.
9304 ac_x_libraries=
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9309 LIBS=$ac_save_LIBS
9310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9312 # Don't even attempt the hair of trying to link an X program!
9313 for ac_extension in a so sl; do
9314 if test -r "$ac_dir/libX11.$ac_extension"; then
9315 ac_x_libraries=$ac_dir
9316 break 2
9318 done
9319 done
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi # $ac_x_libraries = no
9326 case $ac_x_includes,$ac_x_libraries in #(
9327 no,* | *,no | *\'*)
9328 # Didn't find X, or a directory has "'" in its name.
9329 ac_cv_have_x="have_x=no";; #(
9331 # Record where we found X for the cache.
9332 ac_cv_have_x="have_x=yes\
9333 ac_x_includes='$ac_x_includes'\
9334 ac_x_libraries='$ac_x_libraries'"
9335 esac
9337 ;; #(
9338 *) have_x=yes;;
9339 esac
9340 eval "$ac_cv_have_x"
9341 fi # $with_x != no
9343 if test "$have_x" != yes; then
9344 { echo "$as_me:$LINENO: result: $have_x" >&5
9345 echo "${ECHO_T}$have_x" >&6; }
9346 no_x=yes
9347 else
9348 # If each of the values was on the command line, it overrides each guess.
9349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9351 # Update the cache value to reflect the command line values.
9352 ac_cv_have_x="have_x=yes\
9353 ac_x_includes='$x_includes'\
9354 ac_x_libraries='$x_libraries'"
9355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9359 if test "$no_x" = yes; then
9360 window_system=none
9361 else
9362 window_system=x11
9365 if test "${x_libraries}" != NONE; then
9366 if test -n "${x_libraries}"; then
9367 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9368 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9370 x_default_search_path=""
9371 x_search_path=${x_libraries}
9372 if test -z "${x_search_path}"; then
9373 x_search_path=/usr/lib
9375 for x_library in `echo ${x_search_path}: | \
9376 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9377 x_search_path="\
9378 ${x_library}/X11/%L/%T/%N%C%S:\
9379 ${x_library}/X11/%l/%T/%N%C%S:\
9380 ${x_library}/X11/%T/%N%C%S:\
9381 ${x_library}/X11/%L/%T/%N%S:\
9382 ${x_library}/X11/%l/%T/%N%S:\
9383 ${x_library}/X11/%T/%N%S"
9384 if test x"${x_default_search_path}" = x; then
9385 x_default_search_path=${x_search_path}
9386 else
9387 x_default_search_path="${x_search_path}:${x_default_search_path}"
9389 done
9391 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9392 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9395 if test x"${x_includes}" = x; then
9396 bitmapdir=/usr/include/X11/bitmaps
9397 else
9398 # accumulate include directories that have X11 bitmap subdirectories
9399 bmd_acc="dummyval"
9400 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9401 if test -d "${bmd}/X11/bitmaps"; then
9402 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9404 if test -d "${bmd}/bitmaps"; then
9405 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9407 done
9408 if test ${bmd_acc} != "dummyval"; then
9409 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9413 HAVE_CARBON=no
9414 if test "${with_carbon}" != no; then
9415 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9416 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9417 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9418 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9423 else
9424 # Is the header compilable?
9425 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9426 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <Carbon/Carbon.h>
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_header_compiler=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_header_compiler=no
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9463 echo "${ECHO_T}$ac_header_compiler" >&6; }
9465 # Is the header present?
9466 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9467 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <Carbon/Carbon.h>
9475 _ACEOF
9476 if { (ac_try="$ac_cpp conftest.$ac_ext"
9477 case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } >/dev/null && {
9489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9490 test ! -s conftest.err
9491 }; then
9492 ac_header_preproc=yes
9493 else
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_header_preproc=no
9500 rm -f conftest.err conftest.$ac_ext
9501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9502 echo "${ECHO_T}$ac_header_preproc" >&6; }
9504 # So? What about this header?
9505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9506 yes:no: )
9507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9508 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9510 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9511 ac_header_preproc=yes
9513 no:yes:* )
9514 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9515 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9517 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9519 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9521 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9523 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9525 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9528 esac
9529 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9530 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9531 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9536 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9540 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9541 HAVE_CARBON=yes
9546 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9547 if test "${with_carbon+set}" != set \
9548 && test "${carbon_appdir_x+set}" != set; then
9549 for var in with_x with_x_toolkit with_gtk with_xim \
9550 with_xpm with_jpeg with_tiff with_gif with_png; do
9551 if eval test \"\${$var+set}\" = set; then
9552 HAVE_CARBON=no
9553 break
9555 done
9558 if test "${HAVE_CARBON}" = yes; then
9559 window_system=mac
9562 case "${window_system}" in
9563 x11 )
9564 HAVE_X_WINDOWS=yes
9565 HAVE_X11=yes
9566 case "${with_x_toolkit}" in
9567 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9568 motif ) USE_X_TOOLKIT=MOTIF ;;
9569 gtk ) with_gtk=yes
9570 USE_X_TOOLKIT=none ;;
9571 no ) USE_X_TOOLKIT=none ;;
9573 if test x"$with_gtk" = xyes; then
9574 USE_X_TOOLKIT=none
9575 else
9576 USE_X_TOOLKIT=maybe
9579 esac
9581 mac | none )
9582 HAVE_X_WINDOWS=no
9583 HAVE_X11=no
9584 USE_X_TOOLKIT=none
9586 esac
9588 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9589 # Extract the first word of "X", so it can be a program name with args.
9590 set dummy X; ac_word=$2
9591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9593 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 if test -n "$HAVE_XSERVER"; then
9597 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9598 else
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_HAVE_XSERVER="true"
9607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9610 done
9611 done
9612 IFS=$as_save_IFS
9614 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9617 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9618 if test -n "$HAVE_XSERVER"; then
9619 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9620 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9621 else
9622 { echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6; }
9627 if test "$HAVE_XSERVER" = true ||
9628 test -n "$DISPLAY" ||
9629 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9630 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9631 where found. You should install the relevant development files for X
9632 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9633 sure you have development files for image handling, i.e.
9634 tiff, gif, jpeg, png and xpm.
9635 If you are sure you want Emacs compiled without X window support, pass
9636 --without-x
9637 to configure." >&5
9638 echo "$as_me: error: You seem to be running X, but no X development libraries
9639 where found. You should install the relevant development files for X
9640 and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9641 sure you have development files for image handling, i.e.
9642 tiff, gif, jpeg, png and xpm.
9643 If you are sure you want Emacs compiled without X window support, pass
9644 --without-x
9645 to configure." >&2;}
9646 { (exit 1); exit 1; }; }
9650 ### If we're using X11, we should use the X menu package.
9651 HAVE_MENUS=no
9652 case ${HAVE_X11} in
9653 yes ) HAVE_MENUS=yes ;;
9654 esac
9656 if test "${opsys}" = "hpux9"; then
9657 case "${x_libraries}" in
9658 *X11R4* )
9659 opsysfile="s/hpux9-x11r4.h"
9661 esac
9664 if test "${opsys}" = "hpux9shr"; then
9665 case "${x_libraries}" in
9666 *X11R4* )
9667 opsysfile="s/hpux9shxr4.h"
9669 esac
9672 ### Compute the unexec source name from the object name.
9673 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9675 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9676 # Assume not, until told otherwise.
9677 GNU_MALLOC=yes
9678 doug_lea_malloc=yes
9679 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9680 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692 #define malloc_get_state innocuous_malloc_get_state
9694 /* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char malloc_get_state (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9699 #ifdef __STDC__
9700 # include <limits.h>
9701 #else
9702 # include <assert.h>
9703 #endif
9705 #undef malloc_get_state
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char malloc_get_state ();
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9718 choke me
9719 #endif
9722 main ()
9724 return malloc_get_state ();
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext &&
9746 $as_test_x conftest$ac_exeext; then
9747 ac_cv_func_malloc_get_state=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_func_malloc_get_state=no
9755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 conftest$ac_exeext conftest.$ac_ext
9758 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9759 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9760 if test $ac_cv_func_malloc_get_state = yes; then
9762 else
9763 doug_lea_malloc=no
9766 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9767 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9768 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define malloc_set_state innocuous_malloc_set_state
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char malloc_set_state (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9786 #ifdef __STDC__
9787 # include <limits.h>
9788 #else
9789 # include <assert.h>
9790 #endif
9792 #undef malloc_set_state
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char malloc_set_state ();
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9805 choke me
9806 #endif
9809 main ()
9811 return malloc_set_state ();
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
9834 ac_cv_func_malloc_set_state=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_cv_func_malloc_set_state=no
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9845 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9846 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9847 if test $ac_cv_func_malloc_set_state = yes; then
9849 else
9850 doug_lea_malloc=no
9853 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9854 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9855 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 extern void (* __after_morecore_hook)();
9866 main ()
9868 __after_morecore_hook = 0
9870 return 0;
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest$ac_exeext &&
9890 $as_test_x conftest$ac_exeext; then
9891 emacs_cv_var___after_morecore_hook=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 emacs_cv_var___after_morecore_hook=no
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900 conftest$ac_exeext conftest.$ac_ext
9902 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9903 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9904 if test $emacs_cv_var___after_morecore_hook = no; then
9905 doug_lea_malloc=no
9907 if test "${system_malloc}" = "yes"; then
9908 GNU_MALLOC=no
9909 GNU_MALLOC_reason="
9910 (The GNU allocators don't work with this system configuration.)"
9912 if test "$doug_lea_malloc" = "yes" ; then
9913 if test "$GNU_MALLOC" = yes ; then
9914 GNU_MALLOC_reason="
9915 (Using Doug Lea's new malloc from the GNU C Library.)"
9918 cat >>confdefs.h <<\_ACEOF
9919 #define DOUG_LEA_MALLOC 1
9920 _ACEOF
9924 if test x"${REL_ALLOC}" = x; then
9925 REL_ALLOC=${GNU_MALLOC}
9931 for ac_header in stdlib.h unistd.h
9933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_res=`eval echo '${'$as_ac_Header'}'`
9941 { echo "$as_me:$LINENO: result: $ac_res" >&5
9942 echo "${ECHO_T}$ac_res" >&6; }
9943 else
9944 # Is the header compilable?
9945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h. */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 $ac_includes_default
9954 #include <$ac_header>
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (ac_try="$ac_compile"
9958 case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
9973 ac_header_compiler=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_header_compiler=no
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6; }
9985 # Is the header present?
9986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <$ac_header>
9995 _ACEOF
9996 if { (ac_try="$ac_cpp conftest.$ac_ext"
9997 case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } >/dev/null && {
10009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10010 test ! -s conftest.err
10011 }; then
10012 ac_header_preproc=yes
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 ac_header_preproc=no
10020 rm -f conftest.err conftest.$ac_ext
10021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6; }
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026 yes:no: )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031 ac_header_preproc=yes
10033 no:yes:* )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10048 esac
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 eval "$as_ac_Header=\$ac_header_preproc"
10056 ac_res=`eval echo '${'$as_ac_Header'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10064 _ACEOF
10068 done
10071 for ac_func in getpagesize
10073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10100 #undef $ac_func
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char $ac_func ();
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined __stub_$ac_func || defined __stub___$ac_func
10113 choke me
10114 #endif
10117 main ()
10119 return $ac_func ();
10121 return 0;
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest$ac_exeext &&
10141 $as_test_x conftest$ac_exeext; then
10142 eval "$as_ac_var=yes"
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_var=no"
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10153 ac_res=`eval echo '${'$as_ac_var'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10159 _ACEOF
10162 done
10164 { echo "$as_me:$LINENO: checking for working mmap" >&5
10165 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10166 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 if test "$cross_compiling" = yes; then
10170 ac_cv_func_mmap_fixed_mapped=no
10171 else
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 /* malloc might have been renamed as rpl_malloc. */
10180 #undef malloc
10182 /* Thanks to Mike Haertel and Jim Avera for this test.
10183 Here is a matrix of mmap possibilities:
10184 mmap private not fixed
10185 mmap private fixed at somewhere currently unmapped
10186 mmap private fixed at somewhere already mapped
10187 mmap shared not fixed
10188 mmap shared fixed at somewhere currently unmapped
10189 mmap shared fixed at somewhere already mapped
10190 For private mappings, we should verify that changes cannot be read()
10191 back from the file, nor mmap's back from the file at a different
10192 address. (There have been systems where private was not correctly
10193 implemented like the infamous i386 svr4.0, and systems where the
10194 VM page cache was not coherent with the file system buffer cache
10195 like early versions of FreeBSD and possibly contemporary NetBSD.)
10196 For shared mappings, we should conversely verify that changes get
10197 propagated back to all the places they're supposed to be.
10199 Grep wants private fixed already mapped.
10200 The main things grep needs to know about mmap are:
10201 * does it exist and is it safe to write into the mmap'd area
10202 * how to use it (BSD variants) */
10204 #include <fcntl.h>
10205 #include <sys/mman.h>
10207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10208 char *malloc ();
10209 #endif
10211 /* This mess was copied from the GNU getpagesize.h. */
10212 #ifndef HAVE_GETPAGESIZE
10213 /* Assume that all systems that can run configure have sys/param.h. */
10214 # ifndef HAVE_SYS_PARAM_H
10215 # define HAVE_SYS_PARAM_H 1
10216 # endif
10218 # ifdef _SC_PAGESIZE
10219 # define getpagesize() sysconf(_SC_PAGESIZE)
10220 # else /* no _SC_PAGESIZE */
10221 # ifdef HAVE_SYS_PARAM_H
10222 # include <sys/param.h>
10223 # ifdef EXEC_PAGESIZE
10224 # define getpagesize() EXEC_PAGESIZE
10225 # else /* no EXEC_PAGESIZE */
10226 # ifdef NBPG
10227 # define getpagesize() NBPG * CLSIZE
10228 # ifndef CLSIZE
10229 # define CLSIZE 1
10230 # endif /* no CLSIZE */
10231 # else /* no NBPG */
10232 # ifdef NBPC
10233 # define getpagesize() NBPC
10234 # else /* no NBPC */
10235 # ifdef PAGESIZE
10236 # define getpagesize() PAGESIZE
10237 # endif /* PAGESIZE */
10238 # endif /* no NBPC */
10239 # endif /* no NBPG */
10240 # endif /* no EXEC_PAGESIZE */
10241 # else /* no HAVE_SYS_PARAM_H */
10242 # define getpagesize() 8192 /* punt totally */
10243 # endif /* no HAVE_SYS_PARAM_H */
10244 # endif /* no _SC_PAGESIZE */
10246 #endif /* no HAVE_GETPAGESIZE */
10249 main ()
10251 char *data, *data2, *data3;
10252 int i, pagesize;
10253 int fd;
10255 pagesize = getpagesize ();
10257 /* First, make a file with some known garbage in it. */
10258 data = (char *) malloc (pagesize);
10259 if (!data)
10260 return 1;
10261 for (i = 0; i < pagesize; ++i)
10262 *(data + i) = rand ();
10263 umask (0);
10264 fd = creat ("conftest.mmap", 0600);
10265 if (fd < 0)
10266 return 1;
10267 if (write (fd, data, pagesize) != pagesize)
10268 return 1;
10269 close (fd);
10271 /* Next, try to mmap the file at a fixed address which already has
10272 something else allocated at it. If we can, also make sure that
10273 we see the same garbage. */
10274 fd = open ("conftest.mmap", O_RDWR);
10275 if (fd < 0)
10276 return 1;
10277 data2 = (char *) malloc (2 * pagesize);
10278 if (!data2)
10279 return 1;
10280 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10281 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10282 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10283 return 1;
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data + i) != *(data2 + i))
10286 return 1;
10288 /* Finally, make sure that changes to the mapped area do not
10289 percolate back to the file as seen by read(). (This is a bug on
10290 some variants of i386 svr4.0.) */
10291 for (i = 0; i < pagesize; ++i)
10292 *(data2 + i) = *(data2 + i) + 1;
10293 data3 = (char *) malloc (pagesize);
10294 if (!data3)
10295 return 1;
10296 if (read (fd, data3, pagesize) != pagesize)
10297 return 1;
10298 for (i = 0; i < pagesize; ++i)
10299 if (*(data + i) != *(data3 + i))
10300 return 1;
10301 close (fd);
10302 return 0;
10304 _ACEOF
10305 rm -f conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_mmap_fixed_mapped=yes
10326 else
10327 echo "$as_me: program exited with status $ac_status" >&5
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ( exit $ac_status )
10332 ac_cv_func_mmap_fixed_mapped=no
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10340 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_MMAP 1
10345 _ACEOF
10348 rm -f conftest.mmap
10350 if test $use_mmap_for_buffers = yes; then
10351 REL_ALLOC=no
10354 LIBS="$libsrc_libs $LIBS"
10357 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10358 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10359 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-ldnet $LIBS"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char dnet_ntoa ();
10379 main ()
10381 return dnet_ntoa ();
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest$ac_exeext &&
10403 $as_test_x conftest$ac_exeext; then
10404 ac_cv_lib_dnet_dnet_ntoa=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_lib_dnet_dnet_ntoa=no
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10418 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_LIBDNET 1
10421 _ACEOF
10423 LIBS="-ldnet $LIBS"
10428 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10429 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10430 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lXbsd $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10444 main ()
10446 return main ();
10448 return 0;
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10469 ac_cv_lib_Xbsd_main=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_lib_Xbsd_main=no
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10482 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10483 if test $ac_cv_lib_Xbsd_main = yes; then
10484 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10489 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10490 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10491 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lpthreads $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 char cma_open ();
10511 main ()
10513 return cma_open ();
10515 return 0;
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10536 ac_cv_lib_pthreads_cma_open=yes
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_cv_lib_pthreads_cma_open=no
10544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10548 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10549 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10550 if test $ac_cv_lib_pthreads_cma_open = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define HAVE_LIBPTHREADS 1
10553 _ACEOF
10555 LIBS="-lpthreads $LIBS"
10560 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10561 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10562 if test -d /usr/X386/include; then
10563 HAVE_XFREE386=yes
10564 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10565 else
10566 HAVE_XFREE386=no
10568 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10569 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10572 case ${host_os} in
10573 aix*)
10574 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10575 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10576 if test "${gdb_cv_bigtoc+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10580 case $GCC in
10581 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10582 *) gdb_cv_bigtoc=-bbigtoc ;;
10583 esac
10585 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10594 main ()
10596 int i;
10598 return 0;
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 gdb_cv_bigtoc=
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10631 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10632 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10634 esac
10636 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10637 # used for the tests that follow. We set them back to REAL_CFLAGS and
10638 # REAL_CPPFLAGS later on.
10640 REAL_CPPFLAGS="$CPPFLAGS"
10642 if test "${HAVE_X11}" = "yes"; then
10643 DEFS="$C_SWITCH_X_SITE $DEFS"
10644 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10645 LIBS="$LIBX $LIBS"
10646 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10647 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10649 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10650 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10651 # but it's more convenient here to set LD_RUN_PATH
10652 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10653 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10654 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10655 export LD_RUN_PATH
10658 if test "${opsys}" = "gnu-linux"; then
10659 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10660 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10669 main ()
10671 XOpenDisplay ("foo");
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext &&
10693 $as_test_x conftest$ac_exeext; then
10694 xlinux_first_failure=no
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 xlinux_first_failure=yes
10702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704 if test "${xlinux_first_failure}" = "yes"; then
10705 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10706 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10707 OLD_CPPFLAGS="$CPPFLAGS"
10708 OLD_LIBS="$LIBS"
10709 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10710 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10711 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10712 LIBS="$LIBS -b i486-linuxaout"
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10721 main ()
10723 XOpenDisplay ("foo");
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 xlinux_second_failure=no
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 xlinux_second_failure=yes
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test "${xlinux_second_failure}" = "yes"; then
10757 # If we get the same failure with -b, there is no use adding -b.
10758 # So take it out. This plays safe.
10759 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10760 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10761 CPPFLAGS="$OLD_CPPFLAGS"
10762 LIBS="$OLD_LIBS"
10763 { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10765 else
10766 { echo "$as_me:$LINENO: result: yes" >&5
10767 echo "${ECHO_T}yes" >&6; }
10769 else
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10775 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10776 # header files included from there.
10777 { echo "$as_me:$LINENO: checking for Xkb" >&5
10778 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 #include <X11/Xlib.h>
10786 #include <X11/XKBlib.h>
10788 main ()
10790 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (ac_try="$ac_link"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_link") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext &&
10812 $as_test_x conftest$ac_exeext; then
10813 emacs_xkb=yes
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 emacs_xkb=no
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext conftest.$ac_ext
10823 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10824 echo "${ECHO_T}$emacs_xkb" >&6; }
10825 if test $emacs_xkb = yes; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_XKBGETKEYBOARD 1
10829 _ACEOF
10837 for ac_func in XrmSetDatabase XScreenResourceString \
10838 XScreenNumberOfScreen XSetWMProtocols
10840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854 #define $ac_func innocuous_$ac_func
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char $ac_func (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10867 #undef $ac_func
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char $ac_func ();
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined __stub_$ac_func || defined __stub___$ac_func
10880 choke me
10881 #endif
10884 main ()
10886 return $ac_func ();
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext &&
10908 $as_test_x conftest$ac_exeext; then
10909 eval "$as_ac_var=yes"
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 eval "$as_ac_var=no"
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10929 done
10933 if test "${window_system}" = "x11"; then
10934 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10935 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10936 if test "${emacs_cv_x11_version_6+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <X11/Xlib.h>
10947 main ()
10949 #if XlibSpecificationRelease < 6
10950 fail;
10951 #endif
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest$ac_exeext &&
10974 $as_test_x conftest$ac_exeext; then
10975 emacs_cv_x11_version_6=yes
10976 else
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 emacs_cv_x11_version_6=no
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10987 if test $emacs_cv_x11_version_6 = yes; then
10988 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10989 echo "${ECHO_T}6 or newer" >&6; }
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_X11R6 1
10993 _ACEOF
10995 else
10996 { echo "$as_me:$LINENO: result: before 6" >&5
10997 echo "${ECHO_T}before 6" >&6; }
11001 if test "${window_system}" = "x11"; then
11002 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11003 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11004 if test "${emacs_cv_x11_version_5+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <X11/Xlib.h>
11015 main ()
11017 #if XlibSpecificationRelease < 5
11018 fail;
11019 #endif
11022 return 0;
11024 _ACEOF
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 emacs_cv_x11_version_5=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 emacs_cv_x11_version_5=no
11051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11055 if test $emacs_cv_x11_version_5 = yes; then
11056 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11057 echo "${ECHO_T}5 or newer" >&6; }
11058 HAVE_X11R5=yes
11060 cat >>confdefs.h <<\_ACEOF
11061 #define HAVE_X11R5 1
11062 _ACEOF
11064 else
11065 HAVE_X11R5=no
11066 { echo "$as_me:$LINENO: result: before 5" >&5
11067 echo "${ECHO_T}before 5" >&6; }
11071 HAVE_GTK=no
11072 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11073 USE_X_TOOLKIT=none
11075 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11076 test "$USE_X_TOOLKIT" = "maybe"; then
11077 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11078 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11079 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11080 { (exit 1); exit 1; }; };
11082 GLIB_REQUIRED=2.4
11083 GTK_REQUIRED=2.4
11084 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11086 if test "X${with_pkg_config_prog}" != X; then
11087 PKG_CONFIG="${with_pkg_config_prog}"
11090 succeeded=no
11092 if test -z "$PKG_CONFIG"; then
11093 # Extract the first word of "pkg-config", so it can be a program name with args.
11094 set dummy pkg-config; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 case $PKG_CONFIG in
11101 [\\/]* | ?:[\\/]*)
11102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11116 done
11117 done
11118 IFS=$as_save_IFS
11120 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11122 esac
11124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11125 if test -n "$PKG_CONFIG"; then
11126 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11127 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11128 else
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11136 if test "$PKG_CONFIG" = "no" ; then
11137 pkg_check_gtk=no
11138 else
11139 PKG_CONFIG_MIN_VERSION=0.9.0
11140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11141 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11142 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11144 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11145 { echo "$as_me:$LINENO: result: yes" >&5
11146 echo "${ECHO_T}yes" >&6; }
11147 succeeded=yes
11149 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11150 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11151 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11152 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11153 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11155 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11156 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11157 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11158 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11159 echo "${ECHO_T}$GTK_LIBS" >&6; }
11160 else
11161 { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11163 GTK_CFLAGS=""
11164 GTK_LIBS=""
11165 ## If we have a custom action on failure, don't print errors, but
11166 ## do set a variable so people can do so.
11167 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11173 else
11174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11179 if test $succeeded = yes; then
11180 pkg_check_gtk=yes
11181 else
11182 pkg_check_gtk=no
11185 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11186 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11187 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11188 { (exit 1); exit 1; }; }
11193 if test x"$pkg_check_gtk" = xyes; then
11197 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11198 CFLAGS="$CFLAGS $GTK_CFLAGS"
11199 LIBS="$GTK_LIBS $LIBS"
11200 GTK_COMPILES=no
11202 for ac_func in gtk_main
11204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218 #define $ac_func innocuous_$ac_func
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11225 #ifdef __STDC__
11226 # include <limits.h>
11227 #else
11228 # include <assert.h>
11229 #endif
11231 #undef $ac_func
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char $ac_func ();
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined __stub_$ac_func || defined __stub___$ac_func
11244 choke me
11245 #endif
11248 main ()
11250 return $ac_func ();
11252 return 0;
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273 eval "$as_ac_var=yes"
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 eval "$as_ac_var=no"
11281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11284 ac_res=`eval echo '${'$as_ac_var'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 _ACEOF
11291 GTK_COMPILES=yes
11293 done
11295 if test "${GTK_COMPILES}" != "yes"; then
11296 if test "$USE_X_TOOLKIT" != "maybe"; then
11297 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11298 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11299 { (exit 1); exit 1; }; };
11301 else
11302 HAVE_GTK=yes
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_GTK 1
11306 _ACEOF
11308 USE_X_TOOLKIT=none
11314 if test "${HAVE_GTK}" = "yes"; then
11316 if test "$with_toolkit_scroll_bars" != no; then
11317 with_toolkit_scroll_bars=yes
11320 HAVE_GTK_MULTIDISPLAY=no
11322 for ac_func in gdk_display_open
11324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11338 #define $ac_func innocuous_$ac_func
11340 /* System header to define __stub macros and hopefully few prototypes,
11341 which can conflict with char $ac_func (); below.
11342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 <limits.h> exists even on freestanding compilers. */
11345 #ifdef __STDC__
11346 # include <limits.h>
11347 #else
11348 # include <assert.h>
11349 #endif
11351 #undef $ac_func
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char $ac_func ();
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined __stub_$ac_func || defined __stub___$ac_func
11364 choke me
11365 #endif
11368 main ()
11370 return $ac_func ();
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext &&
11392 $as_test_x conftest$ac_exeext; then
11393 eval "$as_ac_var=yes"
11394 else
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 eval "$as_ac_var=no"
11401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11402 conftest$ac_exeext conftest.$ac_ext
11404 ac_res=`eval echo '${'$as_ac_var'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11407 if test `eval echo '${'$as_ac_var'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 _ACEOF
11411 HAVE_GTK_MULTIDISPLAY=yes
11413 done
11415 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11417 cat >>confdefs.h <<\_ACEOF
11418 #define HAVE_GTK_MULTIDISPLAY 1
11419 _ACEOF
11422 HAVE_GTK_FILE_SELECTION=no
11424 for ac_func in gtk_file_selection_new
11426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11440 #define $ac_func innocuous_$ac_func
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below.
11444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 <limits.h> exists even on freestanding compilers. */
11447 #ifdef __STDC__
11448 # include <limits.h>
11449 #else
11450 # include <assert.h>
11451 #endif
11453 #undef $ac_func
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char $ac_func ();
11462 /* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465 #if defined __stub_$ac_func || defined __stub___$ac_func
11466 choke me
11467 #endif
11470 main ()
11472 return $ac_func ();
11474 return 0;
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest$ac_exeext &&
11494 $as_test_x conftest$ac_exeext; then
11495 eval "$as_ac_var=yes"
11496 else
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 eval "$as_ac_var=no"
11503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11504 conftest$ac_exeext conftest.$ac_ext
11506 ac_res=`eval echo '${'$as_ac_var'}'`
11507 { echo "$as_me:$LINENO: result: $ac_res" >&5
11508 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_var'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11512 _ACEOF
11513 HAVE_GTK_FILE_SELECTION=yes
11515 done
11518 HAVE_GTK_FILE_CHOOSER=no
11520 for ac_func in gtk_file_chooser_dialog_new
11522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define $ac_func innocuous_$ac_func
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char $ac_func (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11549 #undef $ac_func
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char $ac_func ();
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined __stub_$ac_func || defined __stub___$ac_func
11562 choke me
11563 #endif
11566 main ()
11568 return $ac_func ();
11570 return 0;
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (ac_try="$ac_link"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext &&
11590 $as_test_x conftest$ac_exeext; then
11591 eval "$as_ac_var=yes"
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 eval "$as_ac_var=no"
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11602 ac_res=`eval echo '${'$as_ac_var'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 if test `eval echo '${'$as_ac_var'}'` = yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 _ACEOF
11609 HAVE_GTK_FILE_CHOOSER=yes
11611 done
11614 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11615 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_GTK_FILE_BOTH 1
11619 _ACEOF
11623 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11624 HAVE_GTK_AND_PTHREAD=no
11626 for ac_header in pthread.h
11628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11638 else
11639 # Is the header compilable?
11640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11649 #include <$ac_header>
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest.$ac_objext; then
11668 ac_header_compiler=yes
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_header_compiler=no
11676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11678 echo "${ECHO_T}$ac_header_compiler" >&6; }
11680 # Is the header present?
11681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <$ac_header>
11690 _ACEOF
11691 if { (ac_try="$ac_cpp conftest.$ac_ext"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } >/dev/null && {
11704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 }; then
11707 ac_header_preproc=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_preproc=no
11715 rm -f conftest.err conftest.$ac_ext
11716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6; }
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 yes:no: )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11728 no:yes:* )
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11743 esac
11744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 eval "$as_ac_Header=\$ac_header_preproc"
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11757 cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11759 _ACEOF
11763 done
11765 if test "$ac_cv_header_pthread_h"; then
11766 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11767 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11768 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lpthread $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 char pthread_self ();
11788 main ()
11790 return pthread_self ();
11792 return 0;
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (ac_try="$ac_link"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_link") 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest$ac_exeext &&
11812 $as_test_x conftest$ac_exeext; then
11813 ac_cv_lib_pthread_pthread_self=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_cv_lib_pthread_pthread_self=no
11821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11827 if test $ac_cv_lib_pthread_pthread_self = yes; then
11828 HAVE_GTK_AND_PTHREAD=yes
11832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11833 GTK_LIBS="$GTK_LIBS -lpthread"
11835 cat >>confdefs.h <<\_ACEOF
11836 #define HAVE_GTK_AND_PTHREAD 1
11837 _ACEOF
11843 ### Link with -lXft if available to work around a bug.
11844 HAVE_XFT=maybe
11845 if test "${HAVE_GTK}" = "yes"; then
11846 if test "X${with_pkg_config_prog}" != X; then
11847 PKG_CONFIG="${with_pkg_config_prog}"
11851 succeeded=no
11853 if test -z "$PKG_CONFIG"; then
11854 # Extract the first word of "pkg-config", so it can be a program name with args.
11855 set dummy pkg-config; ac_word=$2
11856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 case $PKG_CONFIG in
11862 [\\/]* | ?:[\\/]*)
11863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11877 done
11878 done
11879 IFS=$as_save_IFS
11881 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11883 esac
11885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11886 if test -n "$PKG_CONFIG"; then
11887 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11888 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11889 else
11890 { echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6; }
11897 if test "$PKG_CONFIG" = "no" ; then
11898 HAVE_XFT=no
11899 else
11900 PKG_CONFIG_MIN_VERSION=0.9.0
11901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11902 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11903 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11905 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11906 { echo "$as_me:$LINENO: result: yes" >&5
11907 echo "${ECHO_T}yes" >&6; }
11908 succeeded=yes
11910 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11911 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11912 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11913 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11914 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11916 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11917 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11918 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11919 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11920 echo "${ECHO_T}$XFT_LIBS" >&6; }
11921 else
11922 { echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6; }
11924 XFT_CFLAGS=""
11925 XFT_LIBS=""
11926 ## If we have a custom action on failure, don't print errors, but
11927 ## do set a variable so people can do so.
11928 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11934 else
11935 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11936 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11940 if test $succeeded = yes; then
11942 else
11943 HAVE_XFT=no
11946 if test "$HAVE_XFT" != no; then
11947 OLD_CFLAGS="$CPPFLAGS"
11948 OLD_CPPFLAGS="$CFLAGS"
11949 OLD_LIBS="$LIBS"
11950 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11951 CFLAGS="$CFLAGS $XFT_CFLAGS"
11952 LIBS="$XFT_LIBS $LIBS"
11953 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11954 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11955 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11956 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11960 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11961 else
11962 # Is the header compilable?
11963 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11964 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 $ac_includes_default
11972 #include <X11/Xft/Xft.h>
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (ac_try="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_header_compiler=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_compiler=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12001 echo "${ECHO_T}$ac_header_compiler" >&6; }
12003 # Is the header present?
12004 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12005 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <X11/Xft/Xft.h>
12013 _ACEOF
12014 if { (ac_try="$ac_cpp conftest.$ac_ext"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev/null && {
12027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 }; then
12030 ac_header_preproc=yes
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_header_preproc=no
12038 rm -f conftest.err conftest.$ac_ext
12039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040 echo "${ECHO_T}$ac_header_preproc" >&6; }
12042 # So? What about this header?
12043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 yes:no: )
12045 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12046 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12048 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12049 ac_header_preproc=yes
12051 no:yes:* )
12052 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12053 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12055 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12057 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12059 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12061 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12063 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12066 esac
12067 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12068 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12069 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12074 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12075 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12078 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12079 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12080 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lXft $XFT_LIBS $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char XftFontOpen ();
12101 main ()
12103 return XftFontOpen ();
12105 return 0;
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest$ac_exeext &&
12125 $as_test_x conftest$ac_exeext; then
12126 ac_cv_lib_Xft_XftFontOpen=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_cv_lib_Xft_XftFontOpen=no
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12138 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12139 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12140 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12141 HAVE_XFT=yes
12148 if test "${HAVE_XFT}" = "yes"; then
12150 cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_XFT 1
12152 _ACEOF
12155 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12156 else
12157 CFLAGS="$OLD_CPPFLAGS"
12158 CFLAGS="$OLD_CFLAGS"
12159 LIBS="$OLD_LIBS"
12164 HAVE_XAW3D=no
12165 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12166 if test x"${HAVE_X11R5}" != xyes; then
12167 USE_X_TOOLKIT=none
12168 else
12169 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12170 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12171 if test "${emacs_cv_xaw3d+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12181 #include <X11/Intrinsic.h>
12182 #include <X11/Xaw3d/Simple.h>
12184 main ()
12188 return 0;
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest$ac_exeext &&
12208 $as_test_x conftest$ac_exeext; then
12209 emacs_cv_xaw3d=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 emacs_cv_xaw3d=no
12217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218 conftest$ac_exeext conftest.$ac_ext
12221 if test $emacs_cv_xaw3d = yes; then
12222 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12223 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12224 USE_X_TOOLKIT=LUCID
12225 HAVE_XAW3D=yes
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_XAW3D 1
12229 _ACEOF
12231 else
12232 { echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6; }
12234 { echo "$as_me:$LINENO: checking for libXaw" >&5
12235 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12236 if test "${emacs_cv_xaw+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 #include <X11/Intrinsic.h>
12247 #include <X11/Xaw/Simple.h>
12249 main ()
12253 return 0;
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12274 emacs_cv_xaw=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 emacs_cv_xaw=no
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12286 if test $emacs_cv_xaw = yes; then
12287 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12288 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12289 USE_X_TOOLKIT=LUCID
12290 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12291 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12292 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12293 { (exit 1); exit 1; }; }
12294 else
12295 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12296 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12297 USE_X_TOOLKIT=none
12303 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12305 if test "${USE_X_TOOLKIT}" != "none"; then
12306 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12307 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12308 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <X11/Intrinsic.h>
12319 main ()
12321 #if XtSpecificationRelease < 6
12322 fail;
12323 #endif
12326 return 0;
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest$ac_exeext &&
12346 $as_test_x conftest$ac_exeext; then
12347 emacs_cv_x11_toolkit_version_6=yes
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 emacs_cv_x11_toolkit_version_6=no
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356 conftest$ac_exeext conftest.$ac_ext
12359 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12360 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12361 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12362 echo "${ECHO_T}6 or newer" >&6; }
12364 cat >>confdefs.h <<\_ACEOF
12365 #define HAVE_X11XTR6 1
12366 _ACEOF
12368 else
12369 { echo "$as_me:$LINENO: result: before 6" >&5
12370 echo "${ECHO_T}before 6" >&6; }
12373 OLDLIBS="$LIBS"
12374 if test x$HAVE_X11XTR6 = xyes; then
12375 LIBS="-lXt -lSM -lICE $LIBS"
12376 else
12377 LIBS="-lXt $LIBS"
12380 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12381 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12382 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-lXmu $LIBS"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char XmuConvertStandardSelection ();
12402 main ()
12404 return XmuConvertStandardSelection ();
12406 return 0;
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12440 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12441 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_LIBXMU 1
12444 _ACEOF
12446 LIBS="-lXmu $LIBS"
12450 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12454 if test "${HAVE_X11}" = "yes"; then
12455 if test "${USE_X_TOOLKIT}" != "none"; then
12457 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12458 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12459 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-lXext $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply. */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char XShapeQueryExtension ();
12479 main ()
12481 return XShapeQueryExtension ();
12483 return 0;
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest$ac_exeext &&
12503 $as_test_x conftest$ac_exeext; then
12504 ac_cv_lib_Xext_XShapeQueryExtension=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_cv_lib_Xext_XShapeQueryExtension=no
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12516 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12517 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12518 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520 #define HAVE_LIBXEXT 1
12521 _ACEOF
12523 LIBS="-lXext $LIBS"
12530 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12531 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12532 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12533 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <Xm/Xm.h>
12544 main ()
12546 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12547 int x = 5;
12548 #else
12549 Motif version prior to 2.1.
12550 #endif
12552 return 0;
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (ac_try="$ac_compile"
12557 case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_compile") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } && {
12569 test -z "$ac_c_werror_flag" ||
12570 test ! -s conftest.err
12571 } && test -s conftest.$ac_objext; then
12572 emacs_cv_motif_version_2_1=yes
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 emacs_cv_motif_version_2_1=no
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12583 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12584 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12585 if test $emacs_cv_motif_version_2_1 = yes; then
12586 HAVE_LIBXP=no
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_MOTIF_2_1 1
12590 _ACEOF
12592 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12593 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12594 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lXp $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char XpCreateContext ();
12614 main ()
12616 return XpCreateContext ();
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest$ac_exeext &&
12638 $as_test_x conftest$ac_exeext; then
12639 ac_cv_lib_Xp_XpCreateContext=yes
12640 else
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_cv_lib_Xp_XpCreateContext=no
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12652 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12653 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12654 HAVE_LIBXP=yes
12657 if test ${HAVE_LIBXP} = yes; then
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_LIBXP 1
12661 _ACEOF
12664 else
12665 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12666 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12667 if test "${emacs_cv_lesstif+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 # We put this in CFLAGS temporarily to precede other -I options
12671 # that might be in CFLAGS temporarily.
12672 # We put this in CPPFLAGS where it precedes the other -I options.
12673 OLD_CPPFLAGS=$CPPFLAGS
12674 OLD_CFLAGS=$CFLAGS
12675 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12676 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12685 main ()
12687 int x = 5;
12689 return 0;
12691 _ACEOF
12692 rm -f conftest.$ac_objext
12693 if { (ac_try="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_compile") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest.$ac_objext; then
12709 emacs_cv_lesstif=yes
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 emacs_cv_lesstif=no
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12720 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12721 if test $emacs_cv_lesstif = yes; then
12722 # Make sure this -I option remains in CPPFLAGS after it is set
12723 # back to REAL_CPPFLAGS.
12724 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12725 # have those other -I options anyway. Ultimately, having this
12726 # directory ultimately in CPPFLAGS will be enough.
12727 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12728 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12729 else
12730 CFLAGS=$OLD_CFLAGS
12731 CPPFLAGS=$OLD_CPPFLAGS
12738 USE_TOOLKIT_SCROLL_BARS=no
12739 if test "${with_toolkit_scroll_bars}" != "no"; then
12740 if test "${USE_X_TOOLKIT}" != "none"; then
12741 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12742 cat >>confdefs.h <<\_ACEOF
12743 #define USE_TOOLKIT_SCROLL_BARS 1
12744 _ACEOF
12746 HAVE_XAW3D=no
12747 USE_TOOLKIT_SCROLL_BARS=yes
12748 elif test "${HAVE_XAW3D}" = "yes"; then
12749 cat >>confdefs.h <<\_ACEOF
12750 #define USE_TOOLKIT_SCROLL_BARS 1
12751 _ACEOF
12753 USE_TOOLKIT_SCROLL_BARS=yes
12755 elif test "${HAVE_GTK}" = "yes"; then
12756 cat >>confdefs.h <<\_ACEOF
12757 #define USE_TOOLKIT_SCROLL_BARS 1
12758 _ACEOF
12760 USE_TOOLKIT_SCROLL_BARS=yes
12761 elif test "${HAVE_CARBON}" = "yes"; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define USE_TOOLKIT_SCROLL_BARS 1
12764 _ACEOF
12766 USE_TOOLKIT_SCROLL_BARS=yes
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12777 #include <X11/Xlib.h>
12778 #include <X11/Xresource.h>
12780 main ()
12782 XIMProc callback;
12784 return 0;
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 HAVE_XIM=yes
12806 cat >>confdefs.h <<\_ACEOF
12807 #define HAVE_XIM 1
12808 _ACEOF
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 HAVE_XIM=no
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 if test "${with_xim}" != "no"; then
12822 cat >>confdefs.h <<\_ACEOF
12823 #define USE_XIM 1
12824 _ACEOF
12829 if test "${HAVE_XIM}" != "no"; then
12830 late_CFLAGS=$CFLAGS
12831 if test "$GCC" = yes; then
12832 CFLAGS="$CFLAGS --pedantic-errors"
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12841 #include <X11/Xlib.h>
12842 #include <X11/Xresource.h>
12844 main ()
12846 Display *display;
12847 XrmDatabase db;
12848 char *res_name;
12849 char *res_class;
12850 XIMProc callback;
12851 XPointer *client_data;
12852 #ifndef __GNUC__
12853 /* If we're not using GCC, it's probably not XFree86, and this is
12854 probably right, but we can't use something like --pedantic-errors. */
12855 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12856 char*, XIMProc, XPointer*);
12857 #endif
12858 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12859 client_data);
12861 return 0;
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } && {
12878 test -z "$ac_c_werror_flag" ||
12879 test ! -s conftest.err
12880 } && test -s conftest.$ac_objext; then
12881 emacs_cv_arg6_star=yes
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 if test "$emacs_cv_arg6_star" = yes; then
12892 cat >>confdefs.h <<\_ACEOF
12893 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12894 _ACEOF
12896 else
12897 cat >>confdefs.h <<\_ACEOF
12898 #define XRegisterIMInstantiateCallback_arg6 XPointer
12899 _ACEOF
12902 CFLAGS=$late_CFLAGS
12905 ### Use -lXpm if available, unless `--with-xpm=no'.
12906 HAVE_XPM=no
12907 if test "${HAVE_X11}" = "yes"; then
12908 if test "${with_xpm}" != "no"; then
12909 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12910 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12911 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12912 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12917 else
12918 # Is the header compilable?
12919 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12920 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12928 #include <X11/xpm.h>
12929 _ACEOF
12930 rm -f conftest.$ac_objext
12931 if { (ac_try="$ac_compile"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_compile") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest.$ac_objext; then
12947 ac_header_compiler=yes
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_header_compiler=no
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6; }
12959 # Is the header present?
12960 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12961 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <X11/xpm.h>
12969 _ACEOF
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null && {
12983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12984 test ! -s conftest.err
12985 }; then
12986 ac_header_preproc=yes
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ac_header_preproc=no
12994 rm -f conftest.err conftest.$ac_ext
12995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12996 echo "${ECHO_T}$ac_header_preproc" >&6; }
12998 # So? What about this header?
12999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13000 yes:no: )
13001 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13002 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13004 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13005 ac_header_preproc=yes
13007 no:yes:* )
13008 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13009 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13011 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13013 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13015 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13017 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13019 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13022 esac
13023 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13024 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13025 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_cv_header_X11_xpm_h=$ac_header_preproc
13030 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13031 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13034 if test $ac_cv_header_X11_xpm_h = yes; then
13035 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13036 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13037 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lXpm -lX11 $LIBS"
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 char XpmReadFileToPixmap ();
13057 main ()
13059 return XpmReadFileToPixmap ();
13061 return 0;
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (ac_try="$ac_link"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest$ac_exeext &&
13081 $as_test_x conftest$ac_exeext; then
13082 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13095 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13096 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13097 HAVE_XPM=yes
13103 if test "${HAVE_XPM}" = "yes"; then
13104 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13105 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 #include "X11/xpm.h"
13113 #ifndef XpmReturnAllocPixels
13114 no_return_alloc_pixels
13115 #endif
13117 _ACEOF
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13120 HAVE_XPM=no
13121 else
13122 HAVE_XPM=yes
13124 rm -f conftest*
13127 if test "${HAVE_XPM}" = "yes"; then
13128 { echo "$as_me:$LINENO: result: yes" >&5
13129 echo "${ECHO_T}yes" >&6; }
13130 else
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13137 if test "${HAVE_XPM}" = "yes"; then
13139 cat >>confdefs.h <<\_ACEOF
13140 #define HAVE_XPM 1
13141 _ACEOF
13146 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13147 HAVE_JPEG=no
13148 if test "${HAVE_X11}" = "yes"; then
13149 if test "${with_jpeg}" != "no"; then
13150 if test "${ac_cv_header_jerror_h+set}" = set; then
13151 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13152 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13153 if test "${ac_cv_header_jerror_h+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13158 else
13159 # Is the header compilable?
13160 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13161 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 #include <jerror.h>
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 ac_header_compiler=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_header_compiler=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198 echo "${ECHO_T}$ac_header_compiler" >&6; }
13200 # Is the header present?
13201 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13202 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <jerror.h>
13210 _ACEOF
13211 if { (ac_try="$ac_cpp conftest.$ac_ext"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null && {
13224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 }; then
13227 ac_header_preproc=yes
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_header_preproc=no
13235 rm -f conftest.err conftest.$ac_ext
13236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13237 echo "${ECHO_T}$ac_header_preproc" >&6; }
13239 # So? What about this header?
13240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13241 yes:no: )
13242 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13243 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13245 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13246 ac_header_preproc=yes
13248 no:yes:* )
13249 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13250 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13252 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13254 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13256 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13258 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13260 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13263 esac
13264 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13265 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13266 if test "${ac_cv_header_jerror_h+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 ac_cv_header_jerror_h=$ac_header_preproc
13271 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13272 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13275 if test $ac_cv_header_jerror_h = yes; then
13276 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13277 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13278 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-ljpeg $LIBS"
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char jpeg_destroy_compress ();
13298 main ()
13300 return jpeg_destroy_compress ();
13302 return 0;
13304 _ACEOF
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest$ac_exeext &&
13322 $as_test_x conftest$ac_exeext; then
13323 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13324 else
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13336 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13337 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13338 HAVE_JPEG=yes
13347 if test "${HAVE_JPEG}" = "yes"; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_JPEG 1
13350 _ACEOF
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <jpeglib.h>
13359 version=JPEG_LIB_VERSION
13361 _ACEOF
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_JPEG 1
13366 _ACEOF
13368 else
13369 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13370 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13371 HAVE_JPEG=no
13373 rm -f conftest*
13378 ### Use -lpng if available, unless `--with-png=no'.
13379 HAVE_PNG=no
13380 if test "${HAVE_X11}" = "yes"; then
13381 if test "${with_png}" != "no"; then
13382 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13383 # in /usr/include/libpng.
13386 for ac_header in png.h libpng/png.h
13388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 ac_res=`eval echo '${'$as_ac_Header'}'`
13396 { echo "$as_me:$LINENO: result: $ac_res" >&5
13397 echo "${ECHO_T}$ac_res" >&6; }
13398 else
13399 # Is the header compilable?
13400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 #include <$ac_header>
13410 _ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.$ac_objext; then
13428 ac_header_compiler=yes
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ac_header_compiler=no
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13438 echo "${ECHO_T}$ac_header_compiler" >&6; }
13440 # Is the header present?
13441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 #include <$ac_header>
13450 _ACEOF
13451 if { (ac_try="$ac_cpp conftest.$ac_ext"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null && {
13464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 }; then
13467 ac_header_preproc=yes
13468 else
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_header_preproc=no
13475 rm -f conftest.err conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477 echo "${ECHO_T}$ac_header_preproc" >&6; }
13479 # So? What about this header?
13480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 yes:no: )
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc=yes
13488 no:yes:* )
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13503 esac
13504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 eval "$as_ac_Header=\$ac_header_preproc"
13511 ac_res=`eval echo '${'$as_ac_Header'}'`
13512 { echo "$as_me:$LINENO: result: $ac_res" >&5
13513 echo "${ECHO_T}$ac_res" >&6; }
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 _ACEOF
13523 done
13525 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13526 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13527 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13528 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpng -lz -lm $LIBS"
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char png_get_channels ();
13548 main ()
13550 return png_get_channels ();
13552 return 0;
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && {
13569 test -z "$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 } && test -s conftest$ac_exeext &&
13572 $as_test_x conftest$ac_exeext; then
13573 ac_cv_lib_png_png_get_channels=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_lib_png_png_get_channels=no
13581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13585 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13586 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13587 if test $ac_cv_lib_png_png_get_channels = yes; then
13588 HAVE_PNG=yes
13594 if test "${HAVE_PNG}" = "yes"; then
13596 cat >>confdefs.h <<\_ACEOF
13597 #define HAVE_PNG 1
13598 _ACEOF
13603 ### Use -ltiff if available, unless `--with-tiff=no'.
13604 HAVE_TIFF=no
13605 if test "${HAVE_X11}" = "yes"; then
13606 if test "${with_tiff}" != "no"; then
13607 if test "${ac_cv_header_tiffio_h+set}" = set; then
13608 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13609 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13610 if test "${ac_cv_header_tiffio_h+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13614 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13615 else
13616 # Is the header compilable?
13617 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13618 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 #include <tiffio.h>
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compile") 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } && {
13642 test -z "$ac_c_werror_flag" ||
13643 test ! -s conftest.err
13644 } && test -s conftest.$ac_objext; then
13645 ac_header_compiler=yes
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_header_compiler=no
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655 echo "${ECHO_T}$ac_header_compiler" >&6; }
13657 # Is the header present?
13658 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13659 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <tiffio.h>
13667 _ACEOF
13668 if { (ac_try="$ac_cpp conftest.$ac_ext"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } >/dev/null && {
13681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 }; then
13684 ac_header_preproc=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_header_preproc=no
13692 rm -f conftest.err conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13694 echo "${ECHO_T}$ac_header_preproc" >&6; }
13696 # So? What about this header?
13697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13698 yes:no: )
13699 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13700 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13702 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13703 ac_header_preproc=yes
13705 no:yes:* )
13706 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13707 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13709 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13711 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13713 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13715 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13717 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13720 esac
13721 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_tiffio_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 ac_cv_header_tiffio_h=$ac_header_preproc
13728 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13732 if test $ac_cv_header_tiffio_h = yes; then
13733 tifflibs="-lz -lm"
13734 # At least one tiff package requires the jpeg library.
13735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13736 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-ltiff $tifflibs $LIBS"
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char TIFFGetVersion ();
13758 main ()
13760 return TIFFGetVersion ();
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext &&
13782 $as_test_x conftest$ac_exeext; then
13783 ac_cv_lib_tiff_TIFFGetVersion=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_tiff_TIFFGetVersion=no
13791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13796 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13797 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13798 HAVE_TIFF=yes
13806 if test "${HAVE_TIFF}" = "yes"; then
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_TIFF 1
13810 _ACEOF
13815 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13816 HAVE_GIF=no
13817 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13818 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13819 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13820 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13821 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13825 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13826 else
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13829 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <gif_lib.h>
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_header_compiler=no
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13870 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <gif_lib.h>
13878 _ACEOF
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 }; then
13895 ac_header_preproc=yes
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_header_preproc=no
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 yes:no: )
13910 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13916 no:yes:* )
13917 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13931 esac
13932 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13933 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13934 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_cv_header_gif_lib_h=$ac_header_preproc
13939 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13940 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13943 if test $ac_cv_header_gif_lib_h = yes; then
13944 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13945 # Earlier versions can crash Emacs.
13946 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13947 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lgif $LIBS"
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h. */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char EGifPutExtensionLast ();
13968 main ()
13970 return EGifPutExtensionLast ();
13972 return 0;
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest$ac_exeext &&
13992 $as_test_x conftest$ac_exeext; then
13993 ac_cv_lib_gif_EGifPutExtensionLast=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_cv_lib_gif_EGifPutExtensionLast=no
14001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14006 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14007 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14008 HAVE_GIF=yes
14009 else
14010 try_libungif=yes
14017 if test "$HAVE_GIF" = yes; then
14018 ac_gif_lib_name="-lgif"
14021 # If gif_lib.h but no libgif, try libungif.
14022 if test x"$try_libungif" = xyes; then
14023 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lungif $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char EGifPutExtensionLast ();
14045 main ()
14047 return EGifPutExtensionLast ();
14049 return 0;
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest$ac_exeext &&
14069 $as_test_x conftest$ac_exeext; then
14070 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_cv_lib_ungif_EGifPutExtensionLast=no
14078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LIBS=$ac_check_lib_save_LIBS
14082 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14083 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14084 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14085 HAVE_GIF=yes
14089 if test "$HAVE_GIF" = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define LIBGIF -lungif
14093 _ACEOF
14095 ac_gif_lib_name="-lungif"
14099 if test "${HAVE_GIF}" = "yes"; then
14101 cat >>confdefs.h <<\_ACEOF
14102 #define HAVE_GIF 1
14103 _ACEOF
14108 if test "${HAVE_X11}" = "yes"; then
14109 MISSING=""
14110 WITH_NO=""
14111 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14112 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14113 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14114 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14115 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14116 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14117 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14118 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14119 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14120 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14122 if test "X${MISSING}" != X; then
14123 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14124 $MISSING
14125 Maybe some development libraries/packages are missing?
14126 If you don't want to link with them give
14127 $WITH_NO
14128 as options to configure" >&5
14129 echo "$as_me: error: The following required libraries was not found:
14130 $MISSING
14131 Maybe some development libraries/packages are missing?
14132 If you don't want to link with them give
14133 $WITH_NO
14134 as options to configure" >&2;}
14135 { (exit 1); exit 1; }; }
14139 ### Use -lgpm if available, unless `--with-gpm=no'.
14140 HAVE_GPM=no
14141 if test "${with_gpm}" != "no"; then
14142 if test "${ac_cv_header_gpm_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14144 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_gpm_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14150 else
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14153 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <gpm.h>
14162 _ACEOF
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_header_compiler=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14194 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <gpm.h>
14202 _ACEOF
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 }; then
14219 ac_header_preproc=yes
14220 else
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 ac_header_preproc=no
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14255 esac
14256 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14257 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_gpm_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 ac_cv_header_gpm_h=$ac_header_preproc
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14267 if test $ac_cv_header_gpm_h = yes; then
14268 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14269 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14270 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-lgpm $LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 char Gpm_Open ();
14290 main ()
14292 return Gpm_Open ();
14294 return 0;
14296 _ACEOF
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_link") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest$ac_exeext &&
14314 $as_test_x conftest$ac_exeext; then
14315 ac_cv_lib_gpm_Gpm_Open=yes
14316 else
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_lib_gpm_Gpm_Open=no
14323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14328 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14329 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14330 HAVE_GPM=yes
14338 if test "${HAVE_GPM}" = "yes"; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_GPM 1
14342 _ACEOF
14346 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14347 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14348 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14353 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14354 else
14355 # Is the header compilable?
14356 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14357 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14358 cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h. */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14365 #include <malloc/malloc.h>
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (ac_try="$ac_compile"
14369 case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_compile") 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest.$ac_objext; then
14384 ac_header_compiler=yes
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 ac_header_compiler=no
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14394 echo "${ECHO_T}$ac_header_compiler" >&6; }
14396 # Is the header present?
14397 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14398 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <malloc/malloc.h>
14406 _ACEOF
14407 if { (ac_try="$ac_cpp conftest.$ac_ext"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } >/dev/null && {
14420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 }; then
14423 ac_header_preproc=yes
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_preproc=no
14431 rm -f conftest.err conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6; }
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 yes:no: )
14438 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14444 no:yes:* )
14445 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14459 esac
14460 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14461 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14462 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14471 if test $ac_cv_header_malloc_malloc_h = yes; then
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_MALLOC_MALLOC_H 1
14475 _ACEOF
14481 ### Use Mac OS X Carbon API to implement GUI.
14482 if test "${HAVE_CARBON}" = "yes"; then
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_CARBON 1
14486 _ACEOF
14488 ## Specify the install directory
14489 carbon_appdir=
14490 if test "${carbon_appdir_x}" != ""; then
14491 case ${carbon_appdir_x} in
14492 y | ye | yes) carbon_appdir=/Applications ;;
14493 * ) carbon_appdir=${carbon_appdir_x} ;;
14494 esac
14496 # We also have mouse menus.
14497 HAVE_MENUS=yes
14500 ### Use session management (-lSM -lICE) if available
14501 HAVE_X_SM=no
14502 if test "${HAVE_X11}" = "yes"; then
14503 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14504 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14505 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14506 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14510 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14511 else
14512 # Is the header compilable?
14513 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14514 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14522 #include <X11/SM/SMlib.h>
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (ac_try="$ac_compile"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.$ac_objext; then
14541 ac_header_compiler=yes
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_header_compiler=no
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551 echo "${ECHO_T}$ac_header_compiler" >&6; }
14553 # Is the header present?
14554 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14555 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <X11/SM/SMlib.h>
14563 _ACEOF
14564 if { (ac_try="$ac_cpp conftest.$ac_ext"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } >/dev/null && {
14577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 }; then
14580 ac_header_preproc=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_header_preproc=no
14588 rm -f conftest.err conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14590 echo "${ECHO_T}$ac_header_preproc" >&6; }
14592 # So? What about this header?
14593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14594 yes:no: )
14595 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14596 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14598 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14599 ac_header_preproc=yes
14601 no:yes:* )
14602 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14603 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14605 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14607 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14609 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14611 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14613 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14616 esac
14617 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14618 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14619 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14624 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14625 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14628 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14629 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14630 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14631 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-lSM -lICE $LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char SmcOpenConnection ();
14651 main ()
14653 return SmcOpenConnection ();
14655 return 0;
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (ac_try="$ac_link"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_link") 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest$ac_exeext &&
14675 $as_test_x conftest$ac_exeext; then
14676 ac_cv_lib_SM_SmcOpenConnection=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_cv_lib_SM_SmcOpenConnection=no
14684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14688 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14689 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14690 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14691 HAVE_X_SM=yes
14698 if test "${HAVE_X_SM}" = "yes"; then
14700 cat >>confdefs.h <<\_ACEOF
14701 #define HAVE_X_SM 1
14702 _ACEOF
14704 case "$LIBS" in
14705 *-lSM*) ;;
14706 *) LIBS="-lSM -lICE $LIBS" ;;
14707 esac
14711 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14712 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14713 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14714 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <netdb.h>
14725 main ()
14727 return h_errno;
14729 return 0;
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14750 emacs_cv_netdb_declares_h_errno=yes
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 emacs_cv_netdb_declares_h_errno=no
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14761 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14762 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14763 if test $emacs_cv_netdb_declares_h_errno = yes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_H_ERRNO 1
14767 _ACEOF
14771 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14772 # for constant arguments. Useless!
14773 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14774 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_working_alloca_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <alloca.h>
14786 main ()
14788 char *p = (char *) alloca (2 * sizeof (int));
14789 if (p) return 0;
14791 return 0;
14793 _ACEOF
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_link") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest$ac_exeext &&
14811 $as_test_x conftest$ac_exeext; then
14812 ac_cv_working_alloca_h=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ac_cv_working_alloca_h=no
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14824 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14825 if test $ac_cv_working_alloca_h = yes; then
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_ALLOCA_H 1
14829 _ACEOF
14833 { echo "$as_me:$LINENO: checking for alloca" >&5
14834 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14835 if test "${ac_cv_func_alloca_works+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #ifdef __GNUC__
14845 # define alloca __builtin_alloca
14846 #else
14847 # ifdef _MSC_VER
14848 # include <malloc.h>
14849 # define alloca _alloca
14850 # else
14851 # ifdef HAVE_ALLOCA_H
14852 # include <alloca.h>
14853 # else
14854 # ifdef _AIX
14855 #pragma alloca
14856 # else
14857 # ifndef alloca /* predefined by HP cc +Olibcalls */
14858 char *alloca ();
14859 # endif
14860 # endif
14861 # endif
14862 # endif
14863 #endif
14866 main ()
14868 char *p = (char *) alloca (1);
14869 if (p) return 0;
14871 return 0;
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (ac_try="$ac_link"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_link") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } && {
14888 test -z "$ac_c_werror_flag" ||
14889 test ! -s conftest.err
14890 } && test -s conftest$ac_exeext &&
14891 $as_test_x conftest$ac_exeext; then
14892 ac_cv_func_alloca_works=yes
14893 else
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_func_alloca_works=no
14900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901 conftest$ac_exeext conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14904 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14906 if test $ac_cv_func_alloca_works = yes; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_ALLOCA 1
14910 _ACEOF
14912 else
14913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14914 # that cause trouble. Some versions do not even contain alloca or
14915 # contain a buggy version. If you still want to use their alloca,
14916 # use ar to extract alloca.o from them instead of compiling alloca.c.
14918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14920 cat >>confdefs.h <<\_ACEOF
14921 #define C_ALLOCA 1
14922 _ACEOF
14925 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14926 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14927 if test "${ac_cv_os_cray+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 #if defined CRAY && ! defined CRAY2
14937 webecray
14938 #else
14939 wenotbecray
14940 #endif
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "webecray" >/dev/null 2>&1; then
14945 ac_cv_os_cray=yes
14946 else
14947 ac_cv_os_cray=no
14949 rm -f conftest*
14952 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14953 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14954 if test $ac_cv_os_cray = yes; then
14955 for ac_func in _getb67 GETB67 getb67; do
14956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14970 #define $ac_func innocuous_$ac_func
14972 /* System header to define __stub macros and hopefully few prototypes,
14973 which can conflict with char $ac_func (); below.
14974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14975 <limits.h> exists even on freestanding compilers. */
14977 #ifdef __STDC__
14978 # include <limits.h>
14979 #else
14980 # include <assert.h>
14981 #endif
14983 #undef $ac_func
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14988 #ifdef __cplusplus
14989 extern "C"
14990 #endif
14991 char $ac_func ();
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined __stub_$ac_func || defined __stub___$ac_func
14996 choke me
14997 #endif
15000 main ()
15002 return $ac_func ();
15004 return 0;
15006 _ACEOF
15007 rm -f conftest.$ac_objext conftest$ac_exeext
15008 if { (ac_try="$ac_link"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest$ac_exeext &&
15024 $as_test_x conftest$ac_exeext; then
15025 eval "$as_ac_var=yes"
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 eval "$as_ac_var=no"
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15036 ac_res=`eval echo '${'$as_ac_var'}'`
15037 { echo "$as_me:$LINENO: result: $ac_res" >&5
15038 echo "${ECHO_T}$ac_res" >&6; }
15039 if test `eval echo '${'$as_ac_var'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define CRAY_STACKSEG_END $ac_func
15043 _ACEOF
15045 break
15048 done
15051 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15052 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15053 if test "${ac_cv_c_stack_direction+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 if test "$cross_compiling" = yes; then
15057 ac_cv_c_stack_direction=0
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15067 find_stack_direction ()
15069 static char *addr = 0;
15070 auto char dummy;
15071 if (addr == 0)
15073 addr = &dummy;
15074 return find_stack_direction ();
15076 else
15077 return (&dummy > addr) ? 1 : -1;
15081 main ()
15083 return find_stack_direction () < 0;
15085 _ACEOF
15086 rm -f conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_c_stack_direction=1
15107 else
15108 echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ( exit $ac_status )
15113 ac_cv_c_stack_direction=-1
15115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15121 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15123 cat >>confdefs.h <<_ACEOF
15124 #define STACK_DIRECTION $ac_cv_c_stack_direction
15125 _ACEOF
15131 # fmod, logb, and frexp are found in -lm on most systems.
15132 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15134 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15135 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15136 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 ac_check_lib_save_LIBS=$LIBS
15140 LIBS="-lm $LIBS"
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char sqrt ();
15156 main ()
15158 return sqrt ();
15160 return 0;
15162 _ACEOF
15163 rm -f conftest.$ac_objext conftest$ac_exeext
15164 if { (ac_try="$ac_link"
15165 case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_link") 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } && {
15177 test -z "$ac_c_werror_flag" ||
15178 test ! -s conftest.err
15179 } && test -s conftest$ac_exeext &&
15180 $as_test_x conftest$ac_exeext; then
15181 ac_cv_lib_m_sqrt=yes
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_cv_lib_m_sqrt=no
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15194 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15195 if test $ac_cv_lib_m_sqrt = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBM 1
15198 _ACEOF
15200 LIBS="-lm $LIBS"
15205 # Check for mail-locking functions in a "mail" library. Probably this should
15206 # have the same check as for liblockfile below.
15208 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15209 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15210 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lmail $LIBS"
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15225 #ifdef __cplusplus
15226 extern "C"
15227 #endif
15228 char maillock ();
15230 main ()
15232 return maillock ();
15234 return 0;
15236 _ACEOF
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 ac_cv_lib_mail_maillock=yes
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_mail_maillock=no
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15268 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15269 if test $ac_cv_lib_mail_maillock = yes; then
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_LIBMAIL 1
15272 _ACEOF
15274 LIBS="-lmail $LIBS"
15279 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15280 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15281 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-llockfile $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char maillock ();
15301 main ()
15303 return maillock ();
15305 return 0;
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest$ac_exeext &&
15325 $as_test_x conftest$ac_exeext; then
15326 ac_cv_lib_lockfile_maillock=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_lib_lockfile_maillock=no
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15339 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15340 if test $ac_cv_lib_lockfile_maillock = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_LIBLOCKFILE 1
15343 _ACEOF
15345 LIBS="-llockfile $LIBS"
15349 # If we have the shared liblockfile, assume we must use it for mail
15350 # locking (e.g. Debian). If we couldn't link against liblockfile
15351 # (no liblockfile.a installed), ensure that we don't need to.
15352 if test "$ac_cv_lib_lockfile_maillock" = no; then
15353 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15354 set dummy liblockfile.so; ac_word=$2
15355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15357 if test "${ac_cv_prog_liblockfile+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360 if test -n "$liblockfile"; then
15361 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15362 else
15363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15365 for as_dir in $as_dummy
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15371 ac_cv_prog_liblockfile="yes"
15372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15375 done
15376 done
15377 IFS=$as_save_IFS
15379 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15382 liblockfile=$ac_cv_prog_liblockfile
15383 if test -n "$liblockfile"; then
15384 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15385 echo "${ECHO_T}$liblockfile" >&6; }
15386 else
15387 { echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6; }
15392 if test $ac_cv_prog_liblockfile = yes; then
15393 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15394 This probably means that movemail could lose mail.
15395 There may be a \`development' package to install containing liblockfile." >&5
15396 echo "$as_me: error: Shared liblockfile found but can't link against it.
15397 This probably means that movemail could lose mail.
15398 There may be a \`development' package to install containing liblockfile." >&2;}
15399 { (exit 1); exit 1; }; }
15400 else :
15404 for ac_func in touchlock
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15433 #undef $ac_func
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char $ac_func ();
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15446 choke me
15447 #endif
15450 main ()
15452 return $ac_func ();
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 eval "$as_ac_var=yes"
15476 else
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 eval "$as_ac_var=no"
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 _ACEOF
15495 done
15498 for ac_header in maillock.h
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15510 else
15511 # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 $ac_includes_default
15521 #include <$ac_header>
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_header_compiler=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_header_compiler=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <$ac_header>
15562 _ACEOF
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } >/dev/null && {
15576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 }; then
15579 ac_header_preproc=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591 # So? What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 yes:no: )
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15600 no:yes:* )
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15615 esac
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621 eval "$as_ac_Header=\$ac_header_preproc"
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 _ACEOF
15635 done
15707 for ac_func in gethostname getdomainname dup2 \
15708 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15709 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15710 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15711 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15712 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15713 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15714 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15715 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15731 #define $ac_func innocuous_$ac_func
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func (); below.
15735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15736 <limits.h> exists even on freestanding compilers. */
15738 #ifdef __STDC__
15739 # include <limits.h>
15740 #else
15741 # include <assert.h>
15742 #endif
15744 #undef $ac_func
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char $ac_func ();
15753 /* The GNU C library defines this for functions which it implements
15754 to always fail with ENOSYS. Some functions are actually named
15755 something starting with __ and the normal name is an alias. */
15756 #if defined __stub_$ac_func || defined __stub___$ac_func
15757 choke me
15758 #endif
15761 main ()
15763 return $ac_func ();
15765 return 0;
15767 _ACEOF
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (ac_try="$ac_link"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_link") 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest$ac_exeext &&
15785 $as_test_x conftest$ac_exeext; then
15786 eval "$as_ac_var=yes"
15787 else
15788 echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 eval "$as_ac_var=no"
15794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15795 conftest$ac_exeext conftest.$ac_ext
15797 ac_res=`eval echo '${'$as_ac_var'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15806 done
15810 for ac_header in sys/un.h
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822 else
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest.$ac_objext; then
15852 ac_header_compiler=yes
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_header_compiler=no
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6; }
15864 # Is the header present?
15865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15874 _ACEOF
15875 if { (ac_try="$ac_cpp conftest.$ac_ext"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null && {
15888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 }; then
15891 ac_header_preproc=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_header_preproc=no
15899 rm -f conftest.err conftest.$ac_ext
15900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15901 echo "${ECHO_T}$ac_header_preproc" >&6; }
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15905 yes:no: )
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15910 ac_header_preproc=yes
15912 no:yes:* )
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15927 esac
15928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933 eval "$as_ac_Header=\$ac_header_preproc"
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15941 cat >>confdefs.h <<_ACEOF
15942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 _ACEOF
15947 done
15954 for ac_header in $ac_header_list
15956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result: $ac_res" >&5
15965 echo "${ECHO_T}$ac_res" >&6; }
15966 else
15967 # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include <$ac_header>
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 ac_header_compiler=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_header_compiler=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6; }
16008 # Is the header present?
16009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16018 _ACEOF
16019 if { (ac_try="$ac_cpp conftest.$ac_ext"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } >/dev/null && {
16032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 }; then
16035 ac_header_preproc=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_preproc=no
16043 rm -f conftest.err conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16045 echo "${ECHO_T}$ac_header_preproc" >&6; }
16047 # So? What about this header?
16048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16049 yes:no: )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16054 ac_header_preproc=yes
16056 no:yes:* )
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16071 esac
16072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 eval "$as_ac_Header=\$ac_header_preproc"
16079 ac_res=`eval echo '${'$as_ac_Header'}'`
16080 { echo "$as_me:$LINENO: result: $ac_res" >&5
16081 echo "${ECHO_T}$ac_res" >&6; }
16084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16087 _ACEOF
16091 done
16101 for ac_func in $ac_func_list
16103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define $ac_func innocuous_$ac_func
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16124 #ifdef __STDC__
16125 # include <limits.h>
16126 #else
16127 # include <assert.h>
16128 #endif
16130 #undef $ac_func
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char $ac_func ();
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_$ac_func || defined __stub___$ac_func
16143 choke me
16144 #endif
16147 main ()
16149 return $ac_func ();
16151 return 0;
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 eval "$as_ac_var=yes"
16173 else
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 eval "$as_ac_var=no"
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16183 ac_res=`eval echo '${'$as_ac_var'}'`
16184 { echo "$as_me:$LINENO: result: $ac_res" >&5
16185 echo "${ECHO_T}$ac_res" >&6; }
16186 if test `eval echo '${'$as_ac_var'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16189 _ACEOF
16192 done
16210 { echo "$as_me:$LINENO: checking for working mktime" >&5
16211 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16212 if test "${ac_cv_func_working_mktime+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215 if test "$cross_compiling" = yes; then
16216 ac_cv_func_working_mktime=no
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* Test program from Paul Eggert and Tony Leneis. */
16225 #ifdef TIME_WITH_SYS_TIME
16226 # include <sys/time.h>
16227 # include <time.h>
16228 #else
16229 # ifdef HAVE_SYS_TIME_H
16230 # include <sys/time.h>
16231 # else
16232 # include <time.h>
16233 # endif
16234 #endif
16236 #include <stdlib.h>
16238 #ifdef HAVE_UNISTD_H
16239 # include <unistd.h>
16240 #endif
16242 #ifndef HAVE_ALARM
16243 # define alarm(X) /* empty */
16244 #endif
16246 /* Work around redefinition to rpl_putenv by other config tests. */
16247 #undef putenv
16249 static time_t time_t_max;
16250 static time_t time_t_min;
16252 /* Values we'll use to set the TZ environment variable. */
16253 static char *tz_strings[] = {
16254 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16255 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16260 Based on a problem report from Andreas Jaeger. */
16261 static int
16262 spring_forward_gap ()
16264 /* glibc (up to about 1998-10-07) failed this test. */
16265 struct tm tm;
16267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16268 instead of "TZ=America/Vancouver" in order to detect the bug even
16269 on systems that don't support the Olson extension, or don't have the
16270 full zoneinfo tables installed. */
16271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16273 tm.tm_year = 98;
16274 tm.tm_mon = 3;
16275 tm.tm_mday = 5;
16276 tm.tm_hour = 2;
16277 tm.tm_min = 0;
16278 tm.tm_sec = 0;
16279 tm.tm_isdst = -1;
16280 return mktime (&tm) != (time_t) -1;
16283 static int
16284 mktime_test1 (now)
16285 time_t now;
16287 struct tm *lt;
16288 return ! (lt = localtime (&now)) || mktime (lt) == now;
16291 static int
16292 mktime_test (now)
16293 time_t now;
16295 return (mktime_test1 (now)
16296 && mktime_test1 ((time_t) (time_t_max - now))
16297 && mktime_test1 ((time_t) (time_t_min + now)));
16300 static int
16301 irix_6_4_bug ()
16303 /* Based on code from Ariel Faigon. */
16304 struct tm tm;
16305 tm.tm_year = 96;
16306 tm.tm_mon = 3;
16307 tm.tm_mday = 0;
16308 tm.tm_hour = 0;
16309 tm.tm_min = 0;
16310 tm.tm_sec = 0;
16311 tm.tm_isdst = -1;
16312 mktime (&tm);
16313 return tm.tm_mon == 2 && tm.tm_mday == 31;
16316 static int
16317 bigtime_test (j)
16318 int j;
16320 struct tm tm;
16321 time_t now;
16322 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16323 now = mktime (&tm);
16324 if (now != (time_t) -1)
16326 struct tm *lt = localtime (&now);
16327 if (! (lt
16328 && lt->tm_year == tm.tm_year
16329 && lt->tm_mon == tm.tm_mon
16330 && lt->tm_mday == tm.tm_mday
16331 && lt->tm_hour == tm.tm_hour
16332 && lt->tm_min == tm.tm_min
16333 && lt->tm_sec == tm.tm_sec
16334 && lt->tm_yday == tm.tm_yday
16335 && lt->tm_wday == tm.tm_wday
16336 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16337 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16338 return 0;
16340 return 1;
16343 static int
16344 year_2050_test ()
16346 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16347 ignoring leap seconds. */
16348 unsigned long int answer = 2527315200UL;
16350 struct tm tm;
16351 time_t t;
16352 tm.tm_year = 2050 - 1900;
16353 tm.tm_mon = 2 - 1;
16354 tm.tm_mday = 1;
16355 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16356 tm.tm_isdst = -1;
16358 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16359 instead of "TZ=America/Vancouver" in order to detect the bug even
16360 on systems that don't support the Olson extension, or don't have the
16361 full zoneinfo tables installed. */
16362 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16364 t = mktime (&tm);
16366 /* Check that the result is either a failure, or close enough
16367 to the correct answer that we can assume the discrepancy is
16368 due to leap seconds. */
16369 return (t == (time_t) -1
16370 || (0 < t && answer - 120 <= t && t <= answer + 120));
16374 main ()
16376 time_t t, delta;
16377 int i, j;
16379 /* This test makes some buggy mktime implementations loop.
16380 Give up after 60 seconds; a mktime slower than that
16381 isn't worth using anyway. */
16382 alarm (60);
16384 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16385 continue;
16386 time_t_max--;
16387 if ((time_t) -1 < 0)
16388 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16389 continue;
16390 delta = time_t_max / 997; /* a suitable prime number */
16391 for (i = 0; i < N_STRINGS; i++)
16393 if (tz_strings[i])
16394 putenv (tz_strings[i]);
16396 for (t = 0; t <= time_t_max - delta; t += delta)
16397 if (! mktime_test (t))
16398 return 1;
16399 if (! (mktime_test ((time_t) 1)
16400 && mktime_test ((time_t) (60 * 60))
16401 && mktime_test ((time_t) (60 * 60 * 24))))
16402 return 1;
16404 for (j = 1; 0 < j; j *= 2)
16405 if (! bigtime_test (j))
16406 return 1;
16407 if (! bigtime_test (j - 1))
16408 return 1;
16410 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16412 _ACEOF
16413 rm -f conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16424 { (case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_try") 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_func_working_mktime=yes
16434 else
16435 echo "$as_me: program exited with status $ac_status" >&5
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ( exit $ac_status )
16440 ac_cv_func_working_mktime=no
16442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16447 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16448 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16449 if test $ac_cv_func_working_mktime = no; then
16450 case " $LIBOBJS " in
16451 *" mktime.$ac_objext "* ) ;;
16452 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16454 esac
16458 if test "$ac_cv_func_working_mktime" = no; then
16460 cat >>confdefs.h <<\_ACEOF
16461 #define BROKEN_MKTIME 1
16462 _ACEOF
16466 ac_have_func=no # yes means we've found a way to get the load average.
16468 # Make sure getloadavg.c is where it belongs, at configure-time.
16469 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16470 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16471 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16472 { (exit 1); exit 1; }; }
16474 ac_save_LIBS=$LIBS
16476 # Check for getloadavg, but be sure not to touch the cache variable.
16477 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16478 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16479 if test "${ac_cv_func_getloadavg+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define getloadavg innocuous_getloadavg
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char getloadavg (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16497 #ifdef __STDC__
16498 # include <limits.h>
16499 #else
16500 # include <assert.h>
16501 #endif
16503 #undef getloadavg
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508 #ifdef __cplusplus
16509 extern "C"
16510 #endif
16511 char getloadavg ();
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_getloadavg || defined __stub___getloadavg
16516 choke me
16517 #endif
16520 main ()
16522 return getloadavg ();
16524 return 0;
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest$ac_exeext &&
16544 $as_test_x conftest$ac_exeext; then
16545 ac_cv_func_getloadavg=yes
16546 else
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_func_getloadavg=no
16553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16554 conftest$ac_exeext conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16557 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16558 if test $ac_cv_func_getloadavg = yes; then
16559 exit 0
16560 else
16561 exit 1
16563 ) && ac_have_func=yes
16565 # On HPUX9, an unprivileged user can get load averages through this function.
16567 for ac_func in pstat_getdynamic
16569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16583 #define $ac_func innocuous_$ac_func
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char $ac_func (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16590 #ifdef __STDC__
16591 # include <limits.h>
16592 #else
16593 # include <assert.h>
16594 #endif
16596 #undef $ac_func
16598 /* Override any GCC internal prototype to avoid an error.
16599 Use char because int might match the return type of a GCC
16600 builtin and then its argument prototype would still apply. */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 char $ac_func ();
16605 /* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608 #if defined __stub_$ac_func || defined __stub___$ac_func
16609 choke me
16610 #endif
16613 main ()
16615 return $ac_func ();
16617 return 0;
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext &&
16637 $as_test_x conftest$ac_exeext; then
16638 eval "$as_ac_var=yes"
16639 else
16640 echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 eval "$as_ac_var=no"
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16649 ac_res=`eval echo '${'$as_ac_var'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16652 if test `eval echo '${'$as_ac_var'}'` = yes; then
16653 cat >>confdefs.h <<_ACEOF
16654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16655 _ACEOF
16658 done
16661 # Solaris has libkstat which does not require root.
16663 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16664 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16665 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-lkstat $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16677 /* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16680 #ifdef __cplusplus
16681 extern "C"
16682 #endif
16683 char kstat_open ();
16685 main ()
16687 return kstat_open ();
16689 return 0;
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest$ac_exeext &&
16709 $as_test_x conftest$ac_exeext; then
16710 ac_cv_lib_kstat_kstat_open=yes
16711 else
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 ac_cv_lib_kstat_kstat_open=no
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_check_lib_save_LIBS
16722 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16723 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16724 if test $ac_cv_lib_kstat_kstat_open = yes; then
16725 cat >>confdefs.h <<_ACEOF
16726 #define HAVE_LIBKSTAT 1
16727 _ACEOF
16729 LIBS="-lkstat $LIBS"
16733 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16735 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16736 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16737 # to get the right answer into the cache.
16738 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16739 if test $ac_have_func = no; then
16740 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16741 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16742 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745 ac_check_lib_save_LIBS=$LIBS
16746 LIBS="-lelf $LIBS"
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h. */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16754 /* Override any GCC internal prototype to avoid an error.
16755 Use char because int might match the return type of a GCC
16756 builtin and then its argument prototype would still apply. */
16757 #ifdef __cplusplus
16758 extern "C"
16759 #endif
16760 char elf_begin ();
16762 main ()
16764 return elf_begin ();
16766 return 0;
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_link") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest$ac_exeext &&
16786 $as_test_x conftest$ac_exeext; then
16787 ac_cv_lib_elf_elf_begin=yes
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_lib_elf_elf_begin=no
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16797 LIBS=$ac_check_lib_save_LIBS
16799 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16800 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16801 if test $ac_cv_lib_elf_elf_begin = yes; then
16802 LIBS="-lelf $LIBS"
16806 if test $ac_have_func = no; then
16807 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16808 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16809 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812 ac_check_lib_save_LIBS=$LIBS
16813 LIBS="-lkvm $LIBS"
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16821 /* Override any GCC internal prototype to avoid an error.
16822 Use char because int might match the return type of a GCC
16823 builtin and then its argument prototype would still apply. */
16824 #ifdef __cplusplus
16825 extern "C"
16826 #endif
16827 char kvm_open ();
16829 main ()
16831 return kvm_open ();
16833 return 0;
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (ac_try="$ac_link"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_link") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest$ac_exeext &&
16853 $as_test_x conftest$ac_exeext; then
16854 ac_cv_lib_kvm_kvm_open=yes
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 ac_cv_lib_kvm_kvm_open=no
16862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16863 conftest$ac_exeext conftest.$ac_ext
16864 LIBS=$ac_check_lib_save_LIBS
16866 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16867 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16868 if test $ac_cv_lib_kvm_kvm_open = yes; then
16869 LIBS="-lkvm $LIBS"
16872 # Check for the 4.4BSD definition of getloadavg.
16873 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16874 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16875 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lutil $LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 char getloadavg ();
16895 main ()
16897 return getloadavg ();
16899 return 0;
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 ac_cv_lib_util_getloadavg=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_util_getloadavg=no
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16932 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16933 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16934 if test $ac_cv_lib_util_getloadavg = yes; then
16935 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16940 if test $ac_have_func = no; then
16941 # There is a commonly available library for RS/6000 AIX.
16942 # Since it is not a standard part of AIX, it might be installed locally.
16943 ac_getloadavg_LIBS=$LIBS
16944 LIBS="-L/usr/local/lib $LIBS"
16945 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16946 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16947 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950 ac_check_lib_save_LIBS=$LIBS
16951 LIBS="-lgetloadavg $LIBS"
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 char getloadavg ();
16967 main ()
16969 return getloadavg ();
16971 return 0;
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
16982 ac_status=$?
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } && {
16988 test -z "$ac_c_werror_flag" ||
16989 test ! -s conftest.err
16990 } && test -s conftest$ac_exeext &&
16991 $as_test_x conftest$ac_exeext; then
16992 ac_cv_lib_getloadavg_getloadavg=yes
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ac_cv_lib_getloadavg_getloadavg=no
17000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001 conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17004 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17005 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17006 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17007 LIBS="-lgetloadavg $LIBS"
17008 else
17009 LIBS=$ac_getloadavg_LIBS
17014 # Make sure it is really in the library, if we think we found it,
17015 # otherwise set up the replacement function.
17017 for ac_func in getloadavg
17019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define $ac_func innocuous_$ac_func
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17040 #ifdef __STDC__
17041 # include <limits.h>
17042 #else
17043 # include <assert.h>
17044 #endif
17046 #undef $ac_func
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 char $ac_func ();
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined __stub_$ac_func || defined __stub___$ac_func
17059 choke me
17060 #endif
17063 main ()
17065 return $ac_func ();
17067 return 0;
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17088 eval "$as_ac_var=yes"
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 eval "$as_ac_var=no"
17096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17097 conftest$ac_exeext conftest.$ac_ext
17099 ac_res=`eval echo '${'$as_ac_var'}'`
17100 { echo "$as_me:$LINENO: result: $ac_res" >&5
17101 echo "${ECHO_T}$ac_res" >&6; }
17102 if test `eval echo '${'$as_ac_var'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105 _ACEOF
17107 else
17108 case " $LIBOBJS " in
17109 *" getloadavg.$ac_objext "* ) ;;
17110 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17112 esac
17115 cat >>confdefs.h <<\_ACEOF
17116 #define C_GETLOADAVG 1
17117 _ACEOF
17119 # Figure out what our getloadavg.c needs.
17120 ac_have_func=no
17121 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17122 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17123 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17124 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17128 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17129 else
17130 # Is the header compilable?
17131 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17132 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17140 #include <sys/dg_sys_info.h>
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_compile") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest.$ac_objext; then
17159 ac_header_compiler=yes
17160 else
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_header_compiler=no
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17169 echo "${ECHO_T}$ac_header_compiler" >&6; }
17171 # Is the header present?
17172 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17173 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180 #include <sys/dg_sys_info.h>
17181 _ACEOF
17182 if { (ac_try="$ac_cpp conftest.$ac_ext"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } >/dev/null && {
17195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 }; then
17198 ac_header_preproc=yes
17199 else
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17203 ac_header_preproc=no
17206 rm -f conftest.err conftest.$ac_ext
17207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17208 echo "${ECHO_T}$ac_header_preproc" >&6; }
17210 # So? What about this header?
17211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17212 yes:no: )
17213 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17214 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17216 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17217 ac_header_preproc=yes
17219 no:yes:* )
17220 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17221 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17222 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17223 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17224 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17225 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17226 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17227 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17229 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17230 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17231 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17234 esac
17235 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17236 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17237 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17242 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17243 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17246 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17247 ac_have_func=yes
17249 cat >>confdefs.h <<\_ACEOF
17250 #define DGUX 1
17251 _ACEOF
17254 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17255 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17256 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259 ac_check_lib_save_LIBS=$LIBS
17260 LIBS="-ldgc $LIBS"
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17268 /* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply. */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 char dg_sys_info ();
17276 main ()
17278 return dg_sys_info ();
17280 return 0;
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_link") 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } && {
17297 test -z "$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17299 } && test -s conftest$ac_exeext &&
17300 $as_test_x conftest$ac_exeext; then
17301 ac_cv_lib_dgc_dg_sys_info=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_lib_dgc_dg_sys_info=no
17309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17314 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17315 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_LIBDGC 1
17318 _ACEOF
17320 LIBS="-ldgc $LIBS"
17328 if test "${ac_cv_header_locale_h+set}" = set; then
17329 { echo "$as_me:$LINENO: checking for locale.h" >&5
17330 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17331 if test "${ac_cv_header_locale_h+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17335 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17336 else
17337 # Is the header compilable?
17338 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17339 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17347 #include <locale.h>
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (ac_try="$ac_compile"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354 esac
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17366 ac_header_compiler=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_compiler=no
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6; }
17378 # Is the header present?
17379 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17380 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <locale.h>
17388 _ACEOF
17389 if { (ac_try="$ac_cpp conftest.$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } >/dev/null && {
17402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 }; then
17405 ac_header_preproc=yes
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_header_preproc=no
17413 rm -f conftest.err conftest.$ac_ext
17414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17415 echo "${ECHO_T}$ac_header_preproc" >&6; }
17417 # So? What about this header?
17418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17419 yes:no: )
17420 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17421 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17422 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17423 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17424 ac_header_preproc=yes
17426 no:yes:* )
17427 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17428 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17430 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17432 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17434 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17436 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17438 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17441 esac
17442 { echo "$as_me:$LINENO: checking for locale.h" >&5
17443 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17444 if test "${ac_cv_header_locale_h+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447 ac_cv_header_locale_h=$ac_header_preproc
17449 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17456 for ac_func in setlocale
17458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17472 #define $ac_func innocuous_$ac_func
17474 /* System header to define __stub macros and hopefully few prototypes,
17475 which can conflict with char $ac_func (); below.
17476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477 <limits.h> exists even on freestanding compilers. */
17479 #ifdef __STDC__
17480 # include <limits.h>
17481 #else
17482 # include <assert.h>
17483 #endif
17485 #undef $ac_func
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17490 #ifdef __cplusplus
17491 extern "C"
17492 #endif
17493 char $ac_func ();
17494 /* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497 #if defined __stub_$ac_func || defined __stub___$ac_func
17498 choke me
17499 #endif
17502 main ()
17504 return $ac_func ();
17506 return 0;
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>conftest.er1
17517 ac_status=$?
17518 grep -v '^ *+' conftest.er1 >conftest.err
17519 rm -f conftest.er1
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest$ac_exeext &&
17526 $as_test_x conftest$ac_exeext; then
17527 eval "$as_ac_var=yes"
17528 else
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 eval "$as_ac_var=no"
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536 conftest$ac_exeext conftest.$ac_ext
17538 ac_res=`eval echo '${'$as_ac_var'}'`
17539 { echo "$as_me:$LINENO: result: $ac_res" >&5
17540 echo "${ECHO_T}$ac_res" >&6; }
17541 if test `eval echo '${'$as_ac_var'}'` = yes; then
17542 cat >>confdefs.h <<_ACEOF
17543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17544 _ACEOF
17547 done
17550 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17551 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17552 # Irix 4.0.5F has the header but not the library.
17553 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17554 ac_have_func=yes
17556 cat >>confdefs.h <<\_ACEOF
17557 #define SVR4 1
17558 _ACEOF
17562 if test $ac_have_func = no; then
17563 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17564 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17565 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17566 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17571 else
17572 # Is the header compilable?
17573 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17574 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 $ac_includes_default
17582 #include <inq_stats/cpustats.h>
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611 echo "${ECHO_T}$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17615 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <inq_stats/cpustats.h>
17623 _ACEOF
17624 if { (ac_try="$ac_cpp conftest.$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } >/dev/null && {
17637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 }; then
17640 ac_header_preproc=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_preproc=no
17648 rm -f conftest.err conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6; }
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17654 yes:no: )
17655 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17656 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17658 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17659 ac_header_preproc=yes
17661 no:yes:* )
17662 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17663 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17665 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17667 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17669 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17671 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17673 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17676 esac
17677 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17678 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17679 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17684 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17688 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17689 ac_have_func=yes
17691 cat >>confdefs.h <<\_ACEOF
17692 #define UMAX 1
17693 _ACEOF
17696 cat >>confdefs.h <<\_ACEOF
17697 #define UMAX4_3 1
17698 _ACEOF
17705 if test $ac_have_func = no; then
17706 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17707 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17708 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17709 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17713 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17714 else
17715 # Is the header compilable?
17716 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17717 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17718 cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h. */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 $ac_includes_default
17725 #include <sys/cpustats.h>
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (ac_try="$ac_compile"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_compile") 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } && {
17741 test -z "$ac_c_werror_flag" ||
17742 test ! -s conftest.err
17743 } && test -s conftest.$ac_objext; then
17744 ac_header_compiler=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_header_compiler=no
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17754 echo "${ECHO_T}$ac_header_compiler" >&6; }
17756 # Is the header present?
17757 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17758 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <sys/cpustats.h>
17766 _ACEOF
17767 if { (ac_try="$ac_cpp conftest.$ac_ext"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } >/dev/null && {
17780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17782 }; then
17783 ac_header_preproc=yes
17784 else
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_header_preproc=no
17791 rm -f conftest.err conftest.$ac_ext
17792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17793 echo "${ECHO_T}$ac_header_preproc" >&6; }
17795 # So? What about this header?
17796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17797 yes:no: )
17798 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17799 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17801 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17802 ac_header_preproc=yes
17804 no:yes:* )
17805 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17806 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17808 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17810 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17812 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17813 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17814 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17816 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17819 esac
17820 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17821 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17822 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 else
17825 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17828 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17831 if test $ac_cv_header_sys_cpustats_h = yes; then
17832 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17833 #define UMAX 1
17834 _ACEOF
17841 if test $ac_have_func = no; then
17843 for ac_header in mach/mach.h
17845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_res=`eval echo '${'$as_ac_Header'}'`
17853 { echo "$as_me:$LINENO: result: $ac_res" >&5
17854 echo "${ECHO_T}$ac_res" >&6; }
17855 else
17856 # Is the header compilable?
17857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17866 #include <$ac_header>
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest.$ac_objext; then
17885 ac_header_compiler=yes
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 ac_header_compiler=no
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17895 echo "${ECHO_T}$ac_header_compiler" >&6; }
17897 # Is the header present?
17898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 #include <$ac_header>
17907 _ACEOF
17908 if { (ac_try="$ac_cpp conftest.$ac_ext"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } >/dev/null && {
17921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 }; then
17924 ac_header_preproc=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_preproc=no
17932 rm -f conftest.err conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17934 echo "${ECHO_T}$ac_header_preproc" >&6; }
17936 # So? What about this header?
17937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 yes:no: )
17939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17943 ac_header_preproc=yes
17945 no:yes:* )
17946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17960 esac
17961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 eval "$as_ac_Header=\$ac_header_preproc"
17968 ac_res=`eval echo '${'$as_ac_Header'}'`
17969 { echo "$as_me:$LINENO: result: $ac_res" >&5
17970 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17976 _ACEOF
17980 done
17985 for ac_header in nlist.h
17987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 ac_res=`eval echo '${'$as_ac_Header'}'`
17995 { echo "$as_me:$LINENO: result: $ac_res" >&5
17996 echo "${ECHO_T}$ac_res" >&6; }
17997 else
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <$ac_header>
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <$ac_header>
18049 _ACEOF
18050 if { (ac_try="$ac_cpp conftest.$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 }; then
18066 ac_header_preproc=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 yes:no: )
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18085 ac_header_preproc=yes
18087 no:yes:* )
18088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18102 esac
18103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 eval "$as_ac_Header=\$ac_header_preproc"
18110 ac_res=`eval echo '${'$as_ac_Header'}'`
18111 { echo "$as_me:$LINENO: result: $ac_res" >&5
18112 echo "${ECHO_T}$ac_res" >&6; }
18115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18118 _ACEOF
18119 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18120 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18121 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 else
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 #include <nlist.h>
18133 main ()
18135 static struct nlist ac_aggr;
18136 if (ac_aggr.n_un.n_name)
18137 return 0;
18139 return 0;
18141 _ACEOF
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_cv_member_struct_nlist_n_un_n_name=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 #include <nlist.h>
18173 main ()
18175 static struct nlist ac_aggr;
18176 if (sizeof ac_aggr.n_un.n_name)
18177 return 0;
18179 return 0;
18181 _ACEOF
18182 rm -f conftest.$ac_objext
18183 if { (ac_try="$ac_compile"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_compile") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } && {
18196 test -z "$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 } && test -s conftest.$ac_objext; then
18199 ac_cv_member_struct_nlist_n_un_n_name=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_cv_member_struct_nlist_n_un_n_name=no
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18213 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18214 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18218 _ACEOF
18221 cat >>confdefs.h <<\_ACEOF
18222 #define NLIST_NAME_UNION 1
18223 _ACEOF
18230 done
18233 done
18236 # Some definitions of getloadavg require that the program be installed setgid.
18237 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18238 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18239 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18249 #ifdef LDAV_PRIVILEGED
18250 Yowza Am I SETGID yet
18251 #endif
18252 _ACEOF
18253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18254 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18255 ac_cv_func_getloadavg_setgid=yes
18256 else
18257 ac_cv_func_getloadavg_setgid=no
18259 rm -f conftest*
18262 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18263 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18264 if test $ac_cv_func_getloadavg_setgid = yes; then
18265 NEED_SETGID=true
18267 cat >>confdefs.h <<\_ACEOF
18268 #define GETLOADAVG_PRIVILEGED 1
18269 _ACEOF
18271 else
18272 NEED_SETGID=false
18275 if test $ac_cv_func_getloadavg_setgid = yes; then
18276 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18277 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18278 if test "${ac_cv_group_kmem+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18282 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18283 # If we got an error (system does not support symlinks), try without -L.
18284 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18285 ac_cv_group_kmem=`echo $ac_ls_output \
18286 | sed -ne 's/[ ][ ]*/ /g;
18287 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18288 / /s/.* //;p;'`
18291 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18292 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18293 KMEM_GROUP=$ac_cv_group_kmem
18295 if test "x$ac_save_LIBS" = x; then
18296 GETLOADAVG_LIBS=$LIBS
18297 else
18298 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18300 LIBS=$ac_save_LIBS
18304 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18305 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18306 if test "${ac_cv_sys_largefile_source+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 while :; do
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <stdio.h>
18318 main ()
18320 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && {
18339 test -z "$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 } && test -s conftest$ac_exeext &&
18342 $as_test_x conftest$ac_exeext; then
18343 ac_cv_sys_largefile_source=no; break
18344 else
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18352 conftest$ac_exeext conftest.$ac_ext
18353 cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h. */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 #define _LARGEFILE_SOURCE 1
18360 #include <stdio.h>
18362 main ()
18364 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18366 return 0;
18368 _ACEOF
18369 rm -f conftest.$ac_objext conftest$ac_exeext
18370 if { (ac_try="$ac_link"
18371 case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_link") 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && {
18383 test -z "$ac_c_werror_flag" ||
18384 test ! -s conftest.err
18385 } && test -s conftest$ac_exeext &&
18386 $as_test_x conftest$ac_exeext; then
18387 ac_cv_sys_largefile_source=1; break
18388 else
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18396 conftest$ac_exeext conftest.$ac_ext
18397 ac_cv_sys_largefile_source=unknown
18398 break
18399 done
18401 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18402 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18403 case $ac_cv_sys_largefile_source in #(
18404 no | unknown) ;;
18406 cat >>confdefs.h <<_ACEOF
18407 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18408 _ACEOF
18410 esac
18411 rm -f conftest*
18413 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18414 # in glibc 2.1.3, but that breaks too many other things.
18415 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18416 if test $ac_cv_sys_largefile_source != unknown; then
18418 cat >>confdefs.h <<\_ACEOF
18419 #define HAVE_FSEEKO 1
18420 _ACEOF
18425 # Configure getopt.
18426 # getopt.m4 serial 10
18428 # The getopt module assume you want GNU getopt, with getopt_long etc,
18429 # rather than vanilla POSIX getopt. This means your your code should
18430 # always include <getopt.h> for the getopt prototypes.
18442 # Prerequisites of lib/getopt*.
18447 GETOPT_H=
18449 for ac_header in getopt.h
18451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 ac_res=`eval echo '${'$as_ac_Header'}'`
18459 { echo "$as_me:$LINENO: result: $ac_res" >&5
18460 echo "${ECHO_T}$ac_res" >&6; }
18461 else
18462 # Is the header compilable?
18463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18465 cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h. */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 $ac_includes_default
18472 #include <$ac_header>
18473 _ACEOF
18474 rm -f conftest.$ac_objext
18475 if { (ac_try="$ac_compile"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_compile") 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && {
18488 test -z "$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 } && test -s conftest.$ac_objext; then
18491 ac_header_compiler=yes
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ac_header_compiler=no
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18501 echo "${ECHO_T}$ac_header_compiler" >&6; }
18503 # Is the header present?
18504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <$ac_header>
18513 _ACEOF
18514 if { (ac_try="$ac_cpp conftest.$ac_ext"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } >/dev/null && {
18527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 }; then
18530 ac_header_preproc=yes
18531 else
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 ac_header_preproc=no
18538 rm -f conftest.err conftest.$ac_ext
18539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18540 echo "${ECHO_T}$ac_header_preproc" >&6; }
18542 # So? What about this header?
18543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18544 yes:no: )
18545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18549 ac_header_preproc=yes
18551 no:yes:* )
18552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18566 esac
18567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572 eval "$as_ac_Header=\$ac_header_preproc"
18574 ac_res=`eval echo '${'$as_ac_Header'}'`
18575 { echo "$as_me:$LINENO: result: $ac_res" >&5
18576 echo "${ECHO_T}$ac_res" >&6; }
18579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18580 cat >>confdefs.h <<_ACEOF
18581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18582 _ACEOF
18584 else
18585 GETOPT_H=getopt.h
18588 done
18590 if test -z "$GETOPT_H"; then
18592 for ac_func in getopt_long_only
18594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18608 #define $ac_func innocuous_$ac_func
18610 /* System header to define __stub macros and hopefully few prototypes,
18611 which can conflict with char $ac_func (); below.
18612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18613 <limits.h> exists even on freestanding compilers. */
18615 #ifdef __STDC__
18616 # include <limits.h>
18617 #else
18618 # include <assert.h>
18619 #endif
18621 #undef $ac_func
18623 /* Override any GCC internal prototype to avoid an error.
18624 Use char because int might match the return type of a GCC
18625 builtin and then its argument prototype would still apply. */
18626 #ifdef __cplusplus
18627 extern "C"
18628 #endif
18629 char $ac_func ();
18630 /* The GNU C library defines this for functions which it implements
18631 to always fail with ENOSYS. Some functions are actually named
18632 something starting with __ and the normal name is an alias. */
18633 #if defined __stub_$ac_func || defined __stub___$ac_func
18634 choke me
18635 #endif
18638 main ()
18640 return $ac_func ();
18642 return 0;
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && {
18659 test -z "$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18661 } && test -s conftest$ac_exeext &&
18662 $as_test_x conftest$ac_exeext; then
18663 eval "$as_ac_var=yes"
18664 else
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18668 eval "$as_ac_var=no"
18671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18672 conftest$ac_exeext conftest.$ac_ext
18674 ac_res=`eval echo '${'$as_ac_var'}'`
18675 { echo "$as_me:$LINENO: result: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18677 if test `eval echo '${'$as_ac_var'}'` = yes; then
18678 cat >>confdefs.h <<_ACEOF
18679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18680 _ACEOF
18682 else
18683 GETOPT_H=getopt.h
18685 done
18689 if test -z "$GETOPT_H"; then
18690 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18691 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18692 if test "${ac_cv_have_decl_optreset+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h. */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18701 #include <getopt.h>
18704 main ()
18706 #ifndef optreset
18707 (void) optreset;
18708 #endif
18711 return 0;
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (ac_try="$ac_compile"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_compile") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && {
18728 test -z "$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18730 } && test -s conftest.$ac_objext; then
18731 ac_cv_have_decl_optreset=yes
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_cv_have_decl_optreset=no
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18742 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18743 if test $ac_cv_have_decl_optreset = yes; then
18744 GETOPT_H=getopt.h
18749 if test -z "$GETOPT_H"; then
18750 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18751 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18752 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755 if test "$cross_compiling" = yes; then
18756 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18757 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18758 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761 cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h. */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18767 #include <getopt.h>
18770 main ()
18772 #ifndef getopt_clip
18773 (void) getopt_clip;
18774 #endif
18777 return 0;
18779 _ACEOF
18780 rm -f conftest.$ac_objext
18781 if { (ac_try="$ac_compile"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_compile") 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } && {
18794 test -z "$ac_c_werror_flag" ||
18795 test ! -s conftest.err
18796 } && test -s conftest.$ac_objext; then
18797 ac_cv_have_decl_getopt_clip=yes
18798 else
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18802 ac_cv_have_decl_getopt_clip=no
18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18808 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18809 if test $ac_cv_have_decl_getopt_clip = yes; then
18810 gl_cv_func_gnu_getopt=no
18811 else
18812 gl_cv_func_gnu_getopt=yes
18815 else
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <getopt.h>
18824 main ()
18827 char *myargv[3];
18828 myargv[0] = "conftest";
18829 myargv[1] = "-+";
18830 myargv[2] = 0;
18831 return getopt (2, myargv, "+a") != '?';
18834 return 0;
18836 _ACEOF
18837 rm -f conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_link") 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 gl_cv_func_gnu_getopt=yes
18858 else
18859 echo "$as_me: program exited with status $ac_status" >&5
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ( exit $ac_status )
18864 gl_cv_func_gnu_getopt=no
18866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18871 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18872 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18873 if test "$gl_cv_func_gnu_getopt" = "no"; then
18874 GETOPT_H=getopt.h
18880 if test -n "$GETOPT_H"; then
18883 GETOPT_H=getopt.h
18885 cat >>confdefs.h <<\_ACEOF
18886 #define __GETOPT_PREFIX rpl_
18887 _ACEOF
18892 GETOPTOBJS='getopt.o getopt1.o'
18899 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18900 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18901 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904 # Use it with a single arg.
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 $ac_includes_default
18913 main ()
18915 getpgrp (0);
18917 return 0;
18919 _ACEOF
18920 rm -f conftest.$ac_objext
18921 if { (ac_try="$ac_compile"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_compile") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest.$ac_objext; then
18937 ac_cv_func_getpgrp_void=no
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_cv_func_getpgrp_void=yes
18945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18949 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18950 if test $ac_cv_func_getpgrp_void = yes; then
18952 cat >>confdefs.h <<\_ACEOF
18953 #define GETPGRP_VOID 1
18954 _ACEOF
18960 for ac_func in strftime
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18989 #undef $ac_func
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 char $ac_func ();
18998 /* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001 #if defined __stub_$ac_func || defined __stub___$ac_func
19002 choke me
19003 #endif
19006 main ()
19008 return $ac_func ();
19010 return 0;
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest$ac_exeext &&
19030 $as_test_x conftest$ac_exeext; then
19031 eval "$as_ac_var=yes"
19032 else
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 eval "$as_ac_var=no"
19039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19040 conftest$ac_exeext conftest.$ac_ext
19042 ac_res=`eval echo '${'$as_ac_var'}'`
19043 { echo "$as_me:$LINENO: result: $ac_res" >&5
19044 echo "${ECHO_T}$ac_res" >&6; }
19045 if test `eval echo '${'$as_ac_var'}'` = yes; then
19046 cat >>confdefs.h <<_ACEOF
19047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19048 _ACEOF
19050 else
19051 # strftime is in -lintl on SCO UNIX.
19052 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19053 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19054 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057 ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-lintl $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h. */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19069 #ifdef __cplusplus
19070 extern "C"
19071 #endif
19072 char strftime ();
19074 main ()
19076 return strftime ();
19078 return 0;
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 ac_cv_lib_intl_strftime=yes
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_intl_strftime=no
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19112 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19113 if test $ac_cv_lib_intl_strftime = yes; then
19114 cat >>confdefs.h <<\_ACEOF
19115 #define HAVE_STRFTIME 1
19116 _ACEOF
19118 LIBS="-lintl $LIBS"
19122 done
19125 # UNIX98 PTYs.
19127 for ac_func in grantpt
19129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19143 #define $ac_func innocuous_$ac_func
19145 /* System header to define __stub macros and hopefully few prototypes,
19146 which can conflict with char $ac_func (); below.
19147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19148 <limits.h> exists even on freestanding compilers. */
19150 #ifdef __STDC__
19151 # include <limits.h>
19152 #else
19153 # include <assert.h>
19154 #endif
19156 #undef $ac_func
19158 /* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19161 #ifdef __cplusplus
19162 extern "C"
19163 #endif
19164 char $ac_func ();
19165 /* The GNU C library defines this for functions which it implements
19166 to always fail with ENOSYS. Some functions are actually named
19167 something starting with __ and the normal name is an alias. */
19168 #if defined __stub_$ac_func || defined __stub___$ac_func
19169 choke me
19170 #endif
19173 main ()
19175 return $ac_func ();
19177 return 0;
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest$ac_exeext &&
19197 $as_test_x conftest$ac_exeext; then
19198 eval "$as_ac_var=yes"
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 eval "$as_ac_var=no"
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19209 ac_res=`eval echo '${'$as_ac_var'}'`
19210 { echo "$as_me:$LINENO: result: $ac_res" >&5
19211 echo "${ECHO_T}$ac_res" >&6; }
19212 if test `eval echo '${'$as_ac_var'}'` = yes; then
19213 cat >>confdefs.h <<_ACEOF
19214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19215 _ACEOF
19218 done
19221 # PTY-related GNU extensions.
19223 for ac_func in getpt
19225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19239 #define $ac_func innocuous_$ac_func
19241 /* System header to define __stub macros and hopefully few prototypes,
19242 which can conflict with char $ac_func (); below.
19243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19244 <limits.h> exists even on freestanding compilers. */
19246 #ifdef __STDC__
19247 # include <limits.h>
19248 #else
19249 # include <assert.h>
19250 #endif
19252 #undef $ac_func
19254 /* Override any GCC internal prototype to avoid an error.
19255 Use char because int might match the return type of a GCC
19256 builtin and then its argument prototype would still apply. */
19257 #ifdef __cplusplus
19258 extern "C"
19259 #endif
19260 char $ac_func ();
19261 /* The GNU C library defines this for functions which it implements
19262 to always fail with ENOSYS. Some functions are actually named
19263 something starting with __ and the normal name is an alias. */
19264 #if defined __stub_$ac_func || defined __stub___$ac_func
19265 choke me
19266 #endif
19269 main ()
19271 return $ac_func ();
19273 return 0;
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_link") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest$ac_exeext &&
19293 $as_test_x conftest$ac_exeext; then
19294 eval "$as_ac_var=yes"
19295 else
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 eval "$as_ac_var=no"
19302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19303 conftest$ac_exeext conftest.$ac_ext
19305 ac_res=`eval echo '${'$as_ac_var'}'`
19306 { echo "$as_me:$LINENO: result: $ac_res" >&5
19307 echo "${ECHO_T}$ac_res" >&6; }
19308 if test `eval echo '${'$as_ac_var'}'` = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19311 _ACEOF
19314 done
19317 # Check this now, so that we will NOT find the above functions in ncurses.
19318 # That is because we have not set up to link ncurses in lib-src.
19319 # It's better to believe a function is not available
19320 # than to expect to find it in ncurses.
19322 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19323 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19324 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lncurses $LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 /* Override any GCC internal prototype to avoid an error.
19337 Use char because int might match the return type of a GCC
19338 builtin and then its argument prototype would still apply. */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 char tparm ();
19344 main ()
19346 return tparm ();
19348 return 0;
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 ac_cv_lib_ncurses_tparm=yes
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_ncurses_tparm=no
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_check_lib_save_LIBS
19381 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19382 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19383 if test $ac_cv_lib_ncurses_tparm = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define HAVE_LIBNCURSES 1
19386 _ACEOF
19388 LIBS="-lncurses $LIBS"
19393 # Do we need the Hesiod library to provide the support routines?
19394 if test "$with_hesiod" = yes ; then
19395 # Don't set $LIBS here -- see comments above.
19396 resolv=no
19397 { echo "$as_me:$LINENO: checking for res_send" >&5
19398 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19399 if test "${ac_cv_func_res_send+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19410 #define res_send innocuous_res_send
19412 /* System header to define __stub macros and hopefully few prototypes,
19413 which can conflict with char res_send (); below.
19414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19415 <limits.h> exists even on freestanding compilers. */
19417 #ifdef __STDC__
19418 # include <limits.h>
19419 #else
19420 # include <assert.h>
19421 #endif
19423 #undef res_send
19425 /* Override any GCC internal prototype to avoid an error.
19426 Use char because int might match the return type of a GCC
19427 builtin and then its argument prototype would still apply. */
19428 #ifdef __cplusplus
19429 extern "C"
19430 #endif
19431 char res_send ();
19432 /* The GNU C library defines this for functions which it implements
19433 to always fail with ENOSYS. Some functions are actually named
19434 something starting with __ and the normal name is an alias. */
19435 #if defined __stub_res_send || defined __stub___res_send
19436 choke me
19437 #endif
19440 main ()
19442 return res_send ();
19444 return 0;
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest$ac_exeext &&
19464 $as_test_x conftest$ac_exeext; then
19465 ac_cv_func_res_send=yes
19466 else
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_func_res_send=no
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19476 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19477 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19478 if test $ac_cv_func_res_send = yes; then
19480 else
19481 { echo "$as_me:$LINENO: checking for __res_send" >&5
19482 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19483 if test "${ac_cv_func___res_send+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19494 #define __res_send innocuous___res_send
19496 /* System header to define __stub macros and hopefully few prototypes,
19497 which can conflict with char __res_send (); below.
19498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19499 <limits.h> exists even on freestanding compilers. */
19501 #ifdef __STDC__
19502 # include <limits.h>
19503 #else
19504 # include <assert.h>
19505 #endif
19507 #undef __res_send
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19512 #ifdef __cplusplus
19513 extern "C"
19514 #endif
19515 char __res_send ();
19516 /* The GNU C library defines this for functions which it implements
19517 to always fail with ENOSYS. Some functions are actually named
19518 something starting with __ and the normal name is an alias. */
19519 #if defined __stub___res_send || defined __stub_____res_send
19520 choke me
19521 #endif
19524 main ()
19526 return __res_send ();
19528 return 0;
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (ac_try="$ac_link"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_link") 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && {
19545 test -z "$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19547 } && test -s conftest$ac_exeext &&
19548 $as_test_x conftest$ac_exeext; then
19549 ac_cv_func___res_send=yes
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_cv_func___res_send=no
19557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19558 conftest$ac_exeext conftest.$ac_ext
19560 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19561 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19562 if test $ac_cv_func___res_send = yes; then
19564 else
19565 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19566 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19567 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570 ac_check_lib_save_LIBS=$LIBS
19571 LIBS="-lresolv $LIBS"
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h. */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19582 #ifdef __cplusplus
19583 extern "C"
19584 #endif
19585 char res_send ();
19587 main ()
19589 return res_send ();
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_link") 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } && {
19608 test -z "$ac_c_werror_flag" ||
19609 test ! -s conftest.err
19610 } && test -s conftest$ac_exeext &&
19611 $as_test_x conftest$ac_exeext; then
19612 ac_cv_lib_resolv_res_send=yes
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_lib_resolv_res_send=no
19620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19624 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19625 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19626 if test $ac_cv_lib_resolv_res_send = yes; then
19627 resolv=yes
19628 else
19629 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19630 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19631 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 ac_check_lib_save_LIBS=$LIBS
19635 LIBS="-lresolv $LIBS"
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19643 /* Override any GCC internal prototype to avoid an error.
19644 Use char because int might match the return type of a GCC
19645 builtin and then its argument prototype would still apply. */
19646 #ifdef __cplusplus
19647 extern "C"
19648 #endif
19649 char __res_send ();
19651 main ()
19653 return __res_send ();
19655 return 0;
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest$ac_exeext &&
19675 $as_test_x conftest$ac_exeext; then
19676 ac_cv_lib_resolv___res_send=yes
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_cv_lib_resolv___res_send=no
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685 conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19689 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19690 if test $ac_cv_lib_resolv___res_send = yes; then
19691 resolv=yes
19700 if test "$resolv" = yes ; then
19701 RESOLVLIB=-lresolv
19703 cat >>confdefs.h <<\_ACEOF
19704 #define HAVE_LIBRESOLV 1
19705 _ACEOF
19707 else
19708 RESOLVLIB=
19710 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19711 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19712 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 else
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19723 #define hes_getmailhost innocuous_hes_getmailhost
19725 /* System header to define __stub macros and hopefully few prototypes,
19726 which can conflict with char hes_getmailhost (); below.
19727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728 <limits.h> exists even on freestanding compilers. */
19730 #ifdef __STDC__
19731 # include <limits.h>
19732 #else
19733 # include <assert.h>
19734 #endif
19736 #undef hes_getmailhost
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char hes_getmailhost ();
19745 /* The GNU C library defines this for functions which it implements
19746 to always fail with ENOSYS. Some functions are actually named
19747 something starting with __ and the normal name is an alias. */
19748 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19749 choke me
19750 #endif
19753 main ()
19755 return hes_getmailhost ();
19757 return 0;
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (ac_try="$ac_link"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_link") 2>conftest.er1
19768 ac_status=$?
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } && {
19774 test -z "$ac_c_werror_flag" ||
19775 test ! -s conftest.err
19776 } && test -s conftest$ac_exeext &&
19777 $as_test_x conftest$ac_exeext; then
19778 ac_cv_func_hes_getmailhost=yes
19779 else
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_cv_func_hes_getmailhost=no
19786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19787 conftest$ac_exeext conftest.$ac_ext
19789 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19790 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19791 if test $ac_cv_func_hes_getmailhost = yes; then
19793 else
19794 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19795 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19796 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19799 ac_check_lib_save_LIBS=$LIBS
19800 LIBS="-lhesiod $RESOLVLIB $LIBS"
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19808 /* Override any GCC internal prototype to avoid an error.
19809 Use char because int might match the return type of a GCC
19810 builtin and then its argument prototype would still apply. */
19811 #ifdef __cplusplus
19812 extern "C"
19813 #endif
19814 char hes_getmailhost ();
19816 main ()
19818 return hes_getmailhost ();
19820 return 0;
19822 _ACEOF
19823 rm -f conftest.$ac_objext conftest$ac_exeext
19824 if { (ac_try="$ac_link"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_link") 2>conftest.er1
19831 ac_status=$?
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest$ac_exeext &&
19840 $as_test_x conftest$ac_exeext; then
19841 ac_cv_lib_hesiod_hes_getmailhost=yes
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_cv_lib_hesiod_hes_getmailhost=no
19849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19850 conftest$ac_exeext conftest.$ac_ext
19851 LIBS=$ac_check_lib_save_LIBS
19853 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19854 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19855 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19857 cat >>confdefs.h <<\_ACEOF
19858 #define HAVE_LIBHESIOD 1
19859 _ACEOF
19861 else
19869 # These tell us which Kerberos-related libraries to use.
19870 if test "${with_kerberos+set}" = set; then
19872 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19873 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19874 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877 ac_check_lib_save_LIBS=$LIBS
19878 LIBS="-lcom_err $LIBS"
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h. */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19886 /* Override any GCC internal prototype to avoid an error.
19887 Use char because int might match the return type of a GCC
19888 builtin and then its argument prototype would still apply. */
19889 #ifdef __cplusplus
19890 extern "C"
19891 #endif
19892 char com_err ();
19894 main ()
19896 return com_err ();
19898 return 0;
19900 _ACEOF
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (ac_try="$ac_link"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_link") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest$ac_exeext &&
19918 $as_test_x conftest$ac_exeext; then
19919 ac_cv_lib_com_err_com_err=yes
19920 else
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ac_cv_lib_com_err_com_err=no
19927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_lib_save_LIBS
19931 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19932 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19933 if test $ac_cv_lib_com_err_com_err = yes; then
19934 cat >>confdefs.h <<_ACEOF
19935 #define HAVE_LIBCOM_ERR 1
19936 _ACEOF
19938 LIBS="-lcom_err $LIBS"
19943 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19944 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19945 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948 ac_check_lib_save_LIBS=$LIBS
19949 LIBS="-lk5crypto $LIBS"
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19957 /* Override any GCC internal prototype to avoid an error.
19958 Use char because int might match the return type of a GCC
19959 builtin and then its argument prototype would still apply. */
19960 #ifdef __cplusplus
19961 extern "C"
19962 #endif
19963 char mit_des_cbc_encrypt ();
19965 main ()
19967 return mit_des_cbc_encrypt ();
19969 return 0;
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (ac_try="$ac_link"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_link") 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest$ac_exeext &&
19989 $as_test_x conftest$ac_exeext; then
19990 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19999 conftest$ac_exeext conftest.$ac_ext
20000 LIBS=$ac_check_lib_save_LIBS
20002 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20003 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20004 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20005 cat >>confdefs.h <<_ACEOF
20006 #define HAVE_LIBK5CRYPTO 1
20007 _ACEOF
20009 LIBS="-lk5crypto $LIBS"
20014 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20015 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20016 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019 ac_check_lib_save_LIBS=$LIBS
20020 LIBS="-lcrypto $LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any GCC internal prototype to avoid an error.
20029 Use char because int might match the return type of a GCC
20030 builtin and then its argument prototype would still apply. */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char mit_des_cbc_encrypt ();
20036 main ()
20038 return mit_des_cbc_encrypt ();
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (ac_try="$ac_link"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20062 else
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20074 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20075 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define HAVE_LIBCRYPTO 1
20078 _ACEOF
20080 LIBS="-lcrypto $LIBS"
20085 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20086 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20087 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 ac_check_lib_save_LIBS=$LIBS
20091 LIBS="-lkrb5 $LIBS"
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20099 /* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
20102 #ifdef __cplusplus
20103 extern "C"
20104 #endif
20105 char krb5_init_context ();
20107 main ()
20109 return krb5_init_context ();
20111 return 0;
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest$ac_exeext &&
20131 $as_test_x conftest$ac_exeext; then
20132 ac_cv_lib_krb5_krb5_init_context=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_cv_lib_krb5_krb5_init_context=no
20140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20141 conftest$ac_exeext conftest.$ac_ext
20142 LIBS=$ac_check_lib_save_LIBS
20144 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20145 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20146 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20147 cat >>confdefs.h <<_ACEOF
20148 #define HAVE_LIBKRB5 1
20149 _ACEOF
20151 LIBS="-lkrb5 $LIBS"
20155 if test "${with_kerberos5+set}" != set; then
20157 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20158 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20159 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162 ac_check_lib_save_LIBS=$LIBS
20163 LIBS="-ldes425 $LIBS"
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h. */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char des_cbc_encrypt ();
20179 main ()
20181 return des_cbc_encrypt ();
20183 return 0;
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_link") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest$ac_exeext &&
20203 $as_test_x conftest$ac_exeext; then
20204 ac_cv_lib_des425_des_cbc_encrypt=yes
20205 else
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_cv_lib_des425_des_cbc_encrypt=no
20212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20213 conftest$ac_exeext conftest.$ac_ext
20214 LIBS=$ac_check_lib_save_LIBS
20216 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20217 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20218 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20219 cat >>confdefs.h <<_ACEOF
20220 #define HAVE_LIBDES425 1
20221 _ACEOF
20223 LIBS="-ldes425 $LIBS"
20225 else
20227 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20228 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20229 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-ldes $LIBS"
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20241 /* Override any GCC internal prototype to avoid an error.
20242 Use char because int might match the return type of a GCC
20243 builtin and then its argument prototype would still apply. */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 char des_cbc_encrypt ();
20249 main ()
20251 return des_cbc_encrypt ();
20253 return 0;
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_link") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest$ac_exeext &&
20273 $as_test_x conftest$ac_exeext; then
20274 ac_cv_lib_des_des_cbc_encrypt=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_cv_lib_des_des_cbc_encrypt=no
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283 conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS
20286 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20287 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20288 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_LIBDES 1
20291 _ACEOF
20293 LIBS="-ldes $LIBS"
20300 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20301 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lkrb4 $LIBS"
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char krb_get_cred ();
20322 main ()
20324 return krb_get_cred ();
20326 return 0;
20328 _ACEOF
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 ac_cv_lib_krb4_krb_get_cred=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_lib_krb4_krb_get_cred=no
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20360 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20361 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define HAVE_LIBKRB4 1
20364 _ACEOF
20366 LIBS="-lkrb4 $LIBS"
20368 else
20370 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20371 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20372 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375 ac_check_lib_save_LIBS=$LIBS
20376 LIBS="-lkrb $LIBS"
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h. */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 /* Override any GCC internal prototype to avoid an error.
20385 Use char because int might match the return type of a GCC
20386 builtin and then its argument prototype would still apply. */
20387 #ifdef __cplusplus
20388 extern "C"
20389 #endif
20390 char krb_get_cred ();
20392 main ()
20394 return krb_get_cred ();
20396 return 0;
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_link") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest$ac_exeext &&
20416 $as_test_x conftest$ac_exeext; then
20417 ac_cv_lib_krb_krb_get_cred=yes
20418 else
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_krb_krb_get_cred=no
20425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20426 conftest$ac_exeext conftest.$ac_ext
20427 LIBS=$ac_check_lib_save_LIBS
20429 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20430 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20431 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_LIBKRB 1
20434 _ACEOF
20436 LIBS="-lkrb $LIBS"
20444 if test "${with_kerberos5+set}" = set; then
20446 for ac_header in krb5.h
20448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 ac_res=`eval echo '${'$as_ac_Header'}'`
20456 { echo "$as_me:$LINENO: result: $ac_res" >&5
20457 echo "${ECHO_T}$ac_res" >&6; }
20458 else
20459 # Is the header compilable?
20460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 $ac_includes_default
20469 #include <$ac_header>
20470 _ACEOF
20471 rm -f conftest.$ac_objext
20472 if { (ac_try="$ac_compile"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_compile") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest.$ac_objext; then
20488 ac_header_compiler=yes
20489 else
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ac_header_compiler=no
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20498 echo "${ECHO_T}$ac_header_compiler" >&6; }
20500 # Is the header present?
20501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 #include <$ac_header>
20510 _ACEOF
20511 if { (ac_try="$ac_cpp conftest.$ac_ext"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } >/dev/null && {
20524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 }; then
20527 ac_header_preproc=yes
20528 else
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ac_header_preproc=no
20535 rm -f conftest.err conftest.$ac_ext
20536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20537 echo "${ECHO_T}$ac_header_preproc" >&6; }
20539 # So? What about this header?
20540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20541 yes:no: )
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20546 ac_header_preproc=yes
20548 no:yes:* )
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20563 esac
20564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569 eval "$as_ac_Header=\$ac_header_preproc"
20571 ac_res=`eval echo '${'$as_ac_Header'}'`
20572 { echo "$as_me:$LINENO: result: $ac_res" >&5
20573 echo "${ECHO_T}$ac_res" >&6; }
20576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20577 cat >>confdefs.h <<_ACEOF
20578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20579 _ACEOF
20583 done
20585 else
20587 for ac_header in des.h
20589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_res=`eval echo '${'$as_ac_Header'}'`
20597 { echo "$as_me:$LINENO: result: $ac_res" >&5
20598 echo "${ECHO_T}$ac_res" >&6; }
20599 else
20600 # Is the header compilable?
20601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609 $ac_includes_default
20610 #include <$ac_header>
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (ac_try="$ac_compile"
20614 case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_compile") 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest.$ac_objext; then
20629 ac_header_compiler=yes
20630 else
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_header_compiler=no
20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20639 echo "${ECHO_T}$ac_header_compiler" >&6; }
20641 # Is the header present?
20642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h. */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 #include <$ac_header>
20651 _ACEOF
20652 if { (ac_try="$ac_cpp conftest.$ac_ext"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20659 ac_status=$?
20660 grep -v '^ *+' conftest.er1 >conftest.err
20661 rm -f conftest.er1
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } >/dev/null && {
20665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20666 test ! -s conftest.err
20667 }; then
20668 ac_header_preproc=yes
20669 else
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20673 ac_header_preproc=no
20676 rm -f conftest.err conftest.$ac_ext
20677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20678 echo "${ECHO_T}$ac_header_preproc" >&6; }
20680 # So? What about this header?
20681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20682 yes:no: )
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20687 ac_header_preproc=yes
20689 no:yes:* )
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20704 esac
20705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710 eval "$as_ac_Header=\$ac_header_preproc"
20712 ac_res=`eval echo '${'$as_ac_Header'}'`
20713 { echo "$as_me:$LINENO: result: $ac_res" >&5
20714 echo "${ECHO_T}$ac_res" >&6; }
20717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20718 cat >>confdefs.h <<_ACEOF
20719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20720 _ACEOF
20722 else
20724 for ac_header in kerberosIV/des.h
20726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 ac_res=`eval echo '${'$as_ac_Header'}'`
20734 { echo "$as_me:$LINENO: result: $ac_res" >&5
20735 echo "${ECHO_T}$ac_res" >&6; }
20736 else
20737 # Is the header compilable?
20738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 $ac_includes_default
20747 #include <$ac_header>
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (ac_try="$ac_compile"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_compile") 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } && {
20763 test -z "$ac_c_werror_flag" ||
20764 test ! -s conftest.err
20765 } && test -s conftest.$ac_objext; then
20766 ac_header_compiler=yes
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ac_header_compiler=no
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20776 echo "${ECHO_T}$ac_header_compiler" >&6; }
20778 # Is the header present?
20779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 #include <$ac_header>
20788 _ACEOF
20789 if { (ac_try="$ac_cpp conftest.$ac_ext"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20796 ac_status=$?
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } >/dev/null && {
20802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20803 test ! -s conftest.err
20804 }; then
20805 ac_header_preproc=yes
20806 else
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_header_preproc=no
20813 rm -f conftest.err conftest.$ac_ext
20814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20815 echo "${ECHO_T}$ac_header_preproc" >&6; }
20817 # So? What about this header?
20818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20819 yes:no: )
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20824 ac_header_preproc=yes
20826 no:yes:* )
20827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20841 esac
20842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 eval "$as_ac_Header=\$ac_header_preproc"
20849 ac_res=`eval echo '${'$as_ac_Header'}'`
20850 { echo "$as_me:$LINENO: result: $ac_res" >&5
20851 echo "${ECHO_T}$ac_res" >&6; }
20854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20855 cat >>confdefs.h <<_ACEOF
20856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20857 _ACEOF
20859 else
20861 for ac_header in kerberos/des.h
20863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 ac_res=`eval echo '${'$as_ac_Header'}'`
20871 { echo "$as_me:$LINENO: result: $ac_res" >&5
20872 echo "${ECHO_T}$ac_res" >&6; }
20873 else
20874 # Is the header compilable?
20875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 #include <$ac_header>
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_header_compiler=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_compiler=no
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20913 echo "${ECHO_T}$ac_header_compiler" >&6; }
20915 # Is the header present?
20916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20918 cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h. */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 #include <$ac_header>
20925 _ACEOF
20926 if { (ac_try="$ac_cpp conftest.$ac_ext"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } >/dev/null && {
20939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 }; then
20942 ac_header_preproc=yes
20943 else
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_header_preproc=no
20950 rm -f conftest.err conftest.$ac_ext
20951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20952 echo "${ECHO_T}$ac_header_preproc" >&6; }
20954 # So? What about this header?
20955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20956 yes:no: )
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20961 ac_header_preproc=yes
20963 no:yes:* )
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20978 esac
20979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984 eval "$as_ac_Header=\$ac_header_preproc"
20986 ac_res=`eval echo '${'$as_ac_Header'}'`
20987 { echo "$as_me:$LINENO: result: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20992 cat >>confdefs.h <<_ACEOF
20993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20994 _ACEOF
20998 done
21002 done
21006 done
21009 for ac_header in krb.h
21011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 ac_res=`eval echo '${'$as_ac_Header'}'`
21019 { echo "$as_me:$LINENO: result: $ac_res" >&5
21020 echo "${ECHO_T}$ac_res" >&6; }
21021 else
21022 # Is the header compilable?
21023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21025 cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h. */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21031 $ac_includes_default
21032 #include <$ac_header>
21033 _ACEOF
21034 rm -f conftest.$ac_objext
21035 if { (ac_try="$ac_compile"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_compile") 2>conftest.er1
21042 ac_status=$?
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && {
21048 test -z "$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 } && test -s conftest.$ac_objext; then
21051 ac_header_compiler=yes
21052 else
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_header_compiler=no
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21061 echo "${ECHO_T}$ac_header_compiler" >&6; }
21063 # Is the header present?
21064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21066 cat >conftest.$ac_ext <<_ACEOF
21067 /* confdefs.h. */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 #include <$ac_header>
21073 _ACEOF
21074 if { (ac_try="$ac_cpp conftest.$ac_ext"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } >/dev/null && {
21087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 }; then
21090 ac_header_preproc=yes
21091 else
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_header_preproc=no
21098 rm -f conftest.err conftest.$ac_ext
21099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21100 echo "${ECHO_T}$ac_header_preproc" >&6; }
21102 # So? What about this header?
21103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21104 yes:no: )
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21109 ac_header_preproc=yes
21111 no:yes:* )
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21126 esac
21127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132 eval "$as_ac_Header=\$ac_header_preproc"
21134 ac_res=`eval echo '${'$as_ac_Header'}'`
21135 { echo "$as_me:$LINENO: result: $ac_res" >&5
21136 echo "${ECHO_T}$ac_res" >&6; }
21139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142 _ACEOF
21144 else
21146 for ac_header in kerberosIV/krb.h
21148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 ac_res=`eval echo '${'$as_ac_Header'}'`
21156 { echo "$as_me:$LINENO: result: $ac_res" >&5
21157 echo "${ECHO_T}$ac_res" >&6; }
21158 else
21159 # Is the header compilable?
21160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21169 #include <$ac_header>
21170 _ACEOF
21171 rm -f conftest.$ac_objext
21172 if { (ac_try="$ac_compile"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_compile") 2>conftest.er1
21179 ac_status=$?
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && {
21185 test -z "$ac_c_werror_flag" ||
21186 test ! -s conftest.err
21187 } && test -s conftest.$ac_objext; then
21188 ac_header_compiler=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ac_header_compiler=no
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21198 echo "${ECHO_T}$ac_header_compiler" >&6; }
21200 # Is the header present?
21201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <$ac_header>
21210 _ACEOF
21211 if { (ac_try="$ac_cpp conftest.$ac_ext"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } >/dev/null && {
21224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 }; then
21227 ac_header_preproc=yes
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_header_preproc=no
21235 rm -f conftest.err conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21237 echo "${ECHO_T}$ac_header_preproc" >&6; }
21239 # So? What about this header?
21240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21241 yes:no: )
21242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21246 ac_header_preproc=yes
21248 no:yes:* )
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21263 esac
21264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269 eval "$as_ac_Header=\$ac_header_preproc"
21271 ac_res=`eval echo '${'$as_ac_Header'}'`
21272 { echo "$as_me:$LINENO: result: $ac_res" >&5
21273 echo "${ECHO_T}$ac_res" >&6; }
21276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21277 cat >>confdefs.h <<_ACEOF
21278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21279 _ACEOF
21281 else
21283 for ac_header in kerberos/krb.h
21285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 ac_res=`eval echo '${'$as_ac_Header'}'`
21293 { echo "$as_me:$LINENO: result: $ac_res" >&5
21294 echo "${ECHO_T}$ac_res" >&6; }
21295 else
21296 # Is the header compilable?
21297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 #include <$ac_header>
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_header_compiler=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_compiler=no
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21335 echo "${ECHO_T}$ac_header_compiler" >&6; }
21337 # Is the header present?
21338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 #include <$ac_header>
21347 _ACEOF
21348 if { (ac_try="$ac_cpp conftest.$ac_ext"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } >/dev/null && {
21361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 }; then
21364 ac_header_preproc=yes
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_header_preproc=no
21372 rm -f conftest.err conftest.$ac_ext
21373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21374 echo "${ECHO_T}$ac_header_preproc" >&6; }
21376 # So? What about this header?
21377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21378 yes:no: )
21379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21383 ac_header_preproc=yes
21385 no:yes:* )
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21400 esac
21401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406 eval "$as_ac_Header=\$ac_header_preproc"
21408 ac_res=`eval echo '${'$as_ac_Header'}'`
21409 { echo "$as_me:$LINENO: result: $ac_res" >&5
21410 echo "${ECHO_T}$ac_res" >&6; }
21413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21414 cat >>confdefs.h <<_ACEOF
21415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21416 _ACEOF
21420 done
21424 done
21428 done
21432 for ac_header in com_err.h
21434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 ac_res=`eval echo '${'$as_ac_Header'}'`
21442 { echo "$as_me:$LINENO: result: $ac_res" >&5
21443 echo "${ECHO_T}$ac_res" >&6; }
21444 else
21445 # Is the header compilable?
21446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 $ac_includes_default
21455 #include <$ac_header>
21456 _ACEOF
21457 rm -f conftest.$ac_objext
21458 if { (ac_try="$ac_compile"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_compile") 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest.$ac_objext; then
21474 ac_header_compiler=yes
21475 else
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_header_compiler=no
21482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21484 echo "${ECHO_T}$ac_header_compiler" >&6; }
21486 # Is the header present?
21487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <$ac_header>
21496 _ACEOF
21497 if { (ac_try="$ac_cpp conftest.$ac_ext"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21504 ac_status=$?
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } >/dev/null && {
21510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 }; then
21513 ac_header_preproc=yes
21514 else
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_header_preproc=no
21521 rm -f conftest.err conftest.$ac_ext
21522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21523 echo "${ECHO_T}$ac_header_preproc" >&6; }
21525 # So? What about this header?
21526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21527 yes:no: )
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21532 ac_header_preproc=yes
21534 no:yes:* )
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21549 esac
21550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555 eval "$as_ac_Header=\$ac_header_preproc"
21557 ac_res=`eval echo '${'$as_ac_Header'}'`
21558 { echo "$as_me:$LINENO: result: $ac_res" >&5
21559 echo "${ECHO_T}$ac_res" >&6; }
21562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21565 _ACEOF
21569 done
21573 # Solaris requires -lintl if you want strerror (which calls dgettext)
21574 # to return localized messages.
21576 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21577 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21578 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581 ac_check_lib_save_LIBS=$LIBS
21582 LIBS="-lintl $LIBS"
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h. */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char dgettext ();
21598 main ()
21600 return dgettext ();
21602 return 0;
21604 _ACEOF
21605 rm -f conftest.$ac_objext conftest$ac_exeext
21606 if { (ac_try="$ac_link"
21607 case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_link") 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest$ac_exeext &&
21622 $as_test_x conftest$ac_exeext; then
21623 ac_cv_lib_intl_dgettext=yes
21624 else
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 ac_cv_lib_intl_dgettext=no
21631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21632 conftest$ac_exeext conftest.$ac_ext
21633 LIBS=$ac_check_lib_save_LIBS
21635 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21636 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21637 if test $ac_cv_lib_intl_dgettext = yes; then
21638 cat >>confdefs.h <<_ACEOF
21639 #define HAVE_LIBINTL 1
21640 _ACEOF
21642 LIBS="-lintl $LIBS"
21647 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21648 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21649 if test "${emacs_cv_localtime_cache+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652 if test x$ac_cv_func_tzset = xyes; then
21653 if test "$cross_compiling" = yes; then
21654 # If we have tzset, assume the worst when cross-compiling.
21655 emacs_cv_localtime_cache=yes
21656 else
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <time.h>
21664 extern char **environ;
21665 unset_TZ ()
21667 char **from, **to;
21668 for (to = from = environ; (*to = *from); from++)
21669 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21670 to++;
21672 char TZ_GMT0[] = "TZ=GMT0";
21673 char TZ_PST8[] = "TZ=PST8";
21674 main()
21676 time_t now = time ((time_t *) 0);
21677 int hour_GMT0, hour_unset;
21678 if (putenv (TZ_GMT0) != 0)
21679 exit (1);
21680 hour_GMT0 = localtime (&now)->tm_hour;
21681 unset_TZ ();
21682 hour_unset = localtime (&now)->tm_hour;
21683 if (putenv (TZ_PST8) != 0)
21684 exit (1);
21685 if (localtime (&now)->tm_hour == hour_GMT0)
21686 exit (1);
21687 unset_TZ ();
21688 if (localtime (&now)->tm_hour != hour_unset)
21689 exit (1);
21690 exit (0);
21692 _ACEOF
21693 rm -f conftest$ac_exeext
21694 if { (ac_try="$ac_link"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_link") 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21704 { (case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_try") 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 emacs_cv_localtime_cache=no
21714 else
21715 echo "$as_me: program exited with status $ac_status" >&5
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ( exit $ac_status )
21720 emacs_cv_localtime_cache=yes
21722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21726 else
21727 # If we lack tzset, report that localtime does not cache TZ,
21728 # since we can't invalidate the cache if we don't have tzset.
21729 emacs_cv_localtime_cache=no
21732 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21733 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21734 if test $emacs_cv_localtime_cache = yes; then
21736 cat >>confdefs.h <<\_ACEOF
21737 #define LOCALTIME_CACHE 1
21738 _ACEOF
21742 if test "x$HAVE_TIMEVAL" = xyes; then
21744 for ac_func in gettimeofday
21746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760 #define $ac_func innocuous_$ac_func
21762 /* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char $ac_func (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21767 #ifdef __STDC__
21768 # include <limits.h>
21769 #else
21770 # include <assert.h>
21771 #endif
21773 #undef $ac_func
21775 /* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21778 #ifdef __cplusplus
21779 extern "C"
21780 #endif
21781 char $ac_func ();
21782 /* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785 #if defined __stub_$ac_func || defined __stub___$ac_func
21786 choke me
21787 #endif
21790 main ()
21792 return $ac_func ();
21794 return 0;
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest$ac_exeext &&
21814 $as_test_x conftest$ac_exeext; then
21815 eval "$as_ac_var=yes"
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 eval "$as_ac_var=no"
21823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21824 conftest$ac_exeext conftest.$ac_ext
21826 ac_res=`eval echo '${'$as_ac_var'}'`
21827 { echo "$as_me:$LINENO: result: $ac_res" >&5
21828 echo "${ECHO_T}$ac_res" >&6; }
21829 if test `eval echo '${'$as_ac_var'}'` = yes; then
21830 cat >>confdefs.h <<_ACEOF
21831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21832 _ACEOF
21835 done
21837 if test $ac_cv_func_gettimeofday = yes; then
21838 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21839 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21840 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21850 #ifdef TIME_WITH_SYS_TIME
21851 #include <sys/time.h>
21852 #include <time.h>
21853 #else
21854 #ifdef HAVE_SYS_TIME_H
21855 #include <sys/time.h>
21856 #else
21857 #include <time.h>
21858 #endif
21859 #endif
21861 main ()
21863 struct timeval time;
21864 gettimeofday (&time, 0);
21866 return 0;
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_compile") 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && {
21883 test -z "$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 } && test -s conftest.$ac_objext; then
21886 emacs_cv_gettimeofday_two_arguments=yes
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 emacs_cv_gettimeofday_two_arguments=no
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21897 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21898 if test $emacs_cv_gettimeofday_two_arguments = no; then
21900 cat >>confdefs.h <<\_ACEOF
21901 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21902 _ACEOF
21908 ok_so_far=yes
21909 { echo "$as_me:$LINENO: checking for socket" >&5
21910 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21911 if test "${ac_cv_func_socket+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21922 #define socket innocuous_socket
21924 /* System header to define __stub macros and hopefully few prototypes,
21925 which can conflict with char socket (); below.
21926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21927 <limits.h> exists even on freestanding compilers. */
21929 #ifdef __STDC__
21930 # include <limits.h>
21931 #else
21932 # include <assert.h>
21933 #endif
21935 #undef socket
21937 /* Override any GCC internal prototype to avoid an error.
21938 Use char because int might match the return type of a GCC
21939 builtin and then its argument prototype would still apply. */
21940 #ifdef __cplusplus
21941 extern "C"
21942 #endif
21943 char socket ();
21944 /* The GNU C library defines this for functions which it implements
21945 to always fail with ENOSYS. Some functions are actually named
21946 something starting with __ and the normal name is an alias. */
21947 #if defined __stub_socket || defined __stub___socket
21948 choke me
21949 #endif
21952 main ()
21954 return socket ();
21956 return 0;
21958 _ACEOF
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_link") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest$ac_exeext &&
21976 $as_test_x conftest$ac_exeext; then
21977 ac_cv_func_socket=yes
21978 else
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ac_cv_func_socket=no
21985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21986 conftest$ac_exeext conftest.$ac_ext
21988 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21989 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21990 if test $ac_cv_func_socket = yes; then
21992 else
21993 ok_so_far=no
21996 if test $ok_so_far = yes; then
21997 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21998 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21999 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22000 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22004 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22005 else
22006 # Is the header compilable?
22007 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22008 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 $ac_includes_default
22016 #include <netinet/in.h>
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
22026 ac_status=$?
22027 grep -v '^ *+' conftest.er1 >conftest.err
22028 rm -f conftest.er1
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && {
22032 test -z "$ac_c_werror_flag" ||
22033 test ! -s conftest.err
22034 } && test -s conftest.$ac_objext; then
22035 ac_header_compiler=yes
22036 else
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_header_compiler=no
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22045 echo "${ECHO_T}$ac_header_compiler" >&6; }
22047 # Is the header present?
22048 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22049 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
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 #include <netinet/in.h>
22057 _ACEOF
22058 if { (ac_try="$ac_cpp conftest.$ac_ext"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } >/dev/null && {
22071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 }; then
22074 ac_header_preproc=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6; }
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22088 yes:no: )
22089 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22095 no:yes:* )
22096 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22110 esac
22111 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22112 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22113 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116 ac_cv_header_netinet_in_h=$ac_header_preproc
22118 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22119 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22122 if test $ac_cv_header_netinet_in_h = yes; then
22124 else
22125 ok_so_far=no
22130 if test $ok_so_far = yes; then
22131 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22132 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22133 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22134 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22138 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22139 else
22140 # Is the header compilable?
22141 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22142 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h. */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 $ac_includes_default
22150 #include <arpa/inet.h>
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_compile") 2>conftest.er1
22160 ac_status=$?
22161 grep -v '^ *+' conftest.er1 >conftest.err
22162 rm -f conftest.er1
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest.$ac_objext; then
22169 ac_header_compiler=yes
22170 else
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22174 ac_header_compiler=no
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22179 echo "${ECHO_T}$ac_header_compiler" >&6; }
22181 # Is the header present?
22182 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22183 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22184 cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h. */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22190 #include <arpa/inet.h>
22191 _ACEOF
22192 if { (ac_try="$ac_cpp conftest.$ac_ext"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22196 esac
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22199 ac_status=$?
22200 grep -v '^ *+' conftest.er1 >conftest.err
22201 rm -f conftest.er1
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } >/dev/null && {
22205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 }; then
22208 ac_header_preproc=yes
22209 else
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ac_header_preproc=no
22216 rm -f conftest.err conftest.$ac_ext
22217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22218 echo "${ECHO_T}$ac_header_preproc" >&6; }
22220 # So? What about this header?
22221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22222 yes:no: )
22223 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22224 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22226 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22227 ac_header_preproc=yes
22229 no:yes:* )
22230 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22231 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22233 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22235 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22237 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22239 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22241 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22244 esac
22245 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22246 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22247 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250 ac_cv_header_arpa_inet_h=$ac_header_preproc
22252 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22253 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22256 if test $ac_cv_header_arpa_inet_h = yes; then
22258 else
22259 ok_so_far=no
22264 if test $ok_so_far = yes; then
22266 cat >>confdefs.h <<\_ACEOF
22267 #define HAVE_INET_SOCKETS 1
22268 _ACEOF
22273 for ac_header in sys/ioctl.h
22275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 ac_res=`eval echo '${'$as_ac_Header'}'`
22283 { echo "$as_me:$LINENO: result: $ac_res" >&5
22284 echo "${ECHO_T}$ac_res" >&6; }
22285 else
22286 # Is the header compilable?
22287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h. */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 $ac_includes_default
22296 #include <$ac_header>
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305 (eval "$ac_compile") 2>conftest.er1
22306 ac_status=$?
22307 grep -v '^ *+' conftest.er1 >conftest.err
22308 rm -f conftest.er1
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && {
22312 test -z "$ac_c_werror_flag" ||
22313 test ! -s conftest.err
22314 } && test -s conftest.$ac_objext; then
22315 ac_header_compiler=yes
22316 else
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_header_compiler=no
22323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22325 echo "${ECHO_T}$ac_header_compiler" >&6; }
22327 # Is the header present?
22328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 #include <$ac_header>
22337 _ACEOF
22338 if { (ac_try="$ac_cpp conftest.$ac_ext"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22345 ac_status=$?
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } >/dev/null && {
22351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 }; then
22354 ac_header_preproc=yes
22355 else
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_header_preproc=no
22362 rm -f conftest.err conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22364 echo "${ECHO_T}$ac_header_preproc" >&6; }
22366 # So? What about this header?
22367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22368 yes:no: )
22369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22373 ac_header_preproc=yes
22375 no:yes:* )
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22390 esac
22391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396 eval "$as_ac_Header=\$ac_header_preproc"
22398 ac_res=`eval echo '${'$as_ac_Header'}'`
22399 { echo "$as_me:$LINENO: result: $ac_res" >&5
22400 echo "${ECHO_T}$ac_res" >&6; }
22403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22406 _ACEOF
22410 done
22413 if test -f /usr/lpp/X11/bin/smt.exp; then
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_AIX_SMT_EXP 1
22417 _ACEOF
22421 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22422 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22423 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22424 { echo "$as_me:$LINENO: result: yes" >&5
22425 echo "${ECHO_T}yes" >&6; }
22427 cat >>confdefs.h <<\_ACEOF
22428 #define HAVE_DEV_PTMX 1
22429 _ACEOF
22431 else
22432 { echo "$as_me:$LINENO: result: no" >&5
22433 echo "${ECHO_T}no" >&6; }
22436 { echo "$as_me:$LINENO: checking for pid_t" >&5
22437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22438 if test "${ac_cv_type_pid_t+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 $ac_includes_default
22448 typedef pid_t ac__type_new_;
22450 main ()
22452 if ((ac__type_new_ *) 0)
22453 return 0;
22454 if (sizeof (ac__type_new_))
22455 return 0;
22457 return 0;
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_compile") 2>conftest.er1
22468 ac_status=$?
22469 grep -v '^ *+' conftest.er1 >conftest.err
22470 rm -f conftest.er1
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest.$ac_objext; then
22477 ac_cv_type_pid_t=yes
22478 else
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ac_cv_type_pid_t=no
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22489 if test $ac_cv_type_pid_t = yes; then
22491 else
22493 cat >>confdefs.h <<_ACEOF
22494 #define pid_t int
22495 _ACEOF
22500 for ac_header in vfork.h
22502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 ac_res=`eval echo '${'$as_ac_Header'}'`
22510 { echo "$as_me:$LINENO: result: $ac_res" >&5
22511 echo "${ECHO_T}$ac_res" >&6; }
22512 else
22513 # Is the header compilable?
22514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 #include <$ac_header>
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_header_compiler=yes
22543 else
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_compiler=no
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6; }
22554 # Is the header present?
22555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h. */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <$ac_header>
22564 _ACEOF
22565 if { (ac_try="$ac_cpp conftest.$ac_ext"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } >/dev/null && {
22578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 }; then
22581 ac_header_preproc=yes
22582 else
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_header_preproc=no
22589 rm -f conftest.err conftest.$ac_ext
22590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22591 echo "${ECHO_T}$ac_header_preproc" >&6; }
22593 # So? What about this header?
22594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22595 yes:no: )
22596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22600 ac_header_preproc=yes
22602 no:yes:* )
22603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22617 esac
22618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623 eval "$as_ac_Header=\$ac_header_preproc"
22625 ac_res=`eval echo '${'$as_ac_Header'}'`
22626 { echo "$as_me:$LINENO: result: $ac_res" >&5
22627 echo "${ECHO_T}$ac_res" >&6; }
22630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22631 cat >>confdefs.h <<_ACEOF
22632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22633 _ACEOF
22637 done
22641 for ac_func in fork vfork
22643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h. */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22657 #define $ac_func innocuous_$ac_func
22659 /* System header to define __stub macros and hopefully few prototypes,
22660 which can conflict with char $ac_func (); below.
22661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22662 <limits.h> exists even on freestanding compilers. */
22664 #ifdef __STDC__
22665 # include <limits.h>
22666 #else
22667 # include <assert.h>
22668 #endif
22670 #undef $ac_func
22672 /* Override any GCC internal prototype to avoid an error.
22673 Use char because int might match the return type of a GCC
22674 builtin and then its argument prototype would still apply. */
22675 #ifdef __cplusplus
22676 extern "C"
22677 #endif
22678 char $ac_func ();
22679 /* The GNU C library defines this for functions which it implements
22680 to always fail with ENOSYS. Some functions are actually named
22681 something starting with __ and the normal name is an alias. */
22682 #if defined __stub_$ac_func || defined __stub___$ac_func
22683 choke me
22684 #endif
22687 main ()
22689 return $ac_func ();
22691 return 0;
22693 _ACEOF
22694 rm -f conftest.$ac_objext conftest$ac_exeext
22695 if { (ac_try="$ac_link"
22696 case "(($ac_try" in
22697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698 *) ac_try_echo=$ac_try;;
22699 esac
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_link") 2>conftest.er1
22702 ac_status=$?
22703 grep -v '^ *+' conftest.er1 >conftest.err
22704 rm -f conftest.er1
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } && {
22708 test -z "$ac_c_werror_flag" ||
22709 test ! -s conftest.err
22710 } && test -s conftest$ac_exeext &&
22711 $as_test_x conftest$ac_exeext; then
22712 eval "$as_ac_var=yes"
22713 else
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 eval "$as_ac_var=no"
22720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22721 conftest$ac_exeext conftest.$ac_ext
22723 ac_res=`eval echo '${'$as_ac_var'}'`
22724 { echo "$as_me:$LINENO: result: $ac_res" >&5
22725 echo "${ECHO_T}$ac_res" >&6; }
22726 if test `eval echo '${'$as_ac_var'}'` = yes; then
22727 cat >>confdefs.h <<_ACEOF
22728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22729 _ACEOF
22732 done
22734 if test "x$ac_cv_func_fork" = xyes; then
22735 { echo "$as_me:$LINENO: checking for working fork" >&5
22736 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22737 if test "${ac_cv_func_fork_works+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740 if test "$cross_compiling" = yes; then
22741 ac_cv_func_fork_works=cross
22742 else
22743 cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h. */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 $ac_includes_default
22751 main ()
22754 /* By Ruediger Kuhlmann. */
22755 return fork () < 0;
22758 return 0;
22760 _ACEOF
22761 rm -f conftest$ac_exeext
22762 if { (ac_try="$ac_link"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22766 esac
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_link") 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22772 { (case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_try") 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 ac_cv_func_fork_works=yes
22782 else
22783 echo "$as_me: program exited with status $ac_status" >&5
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ( exit $ac_status )
22788 ac_cv_func_fork_works=no
22790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22795 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22796 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22798 else
22799 ac_cv_func_fork_works=$ac_cv_func_fork
22801 if test "x$ac_cv_func_fork_works" = xcross; then
22802 case $host in
22803 *-*-amigaos* | *-*-msdosdjgpp*)
22804 # Override, as these systems have only a dummy fork() stub
22805 ac_cv_func_fork_works=no
22808 ac_cv_func_fork_works=yes
22810 esac
22811 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22812 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22814 ac_cv_func_vfork_works=$ac_cv_func_vfork
22815 if test "x$ac_cv_func_vfork" = xyes; then
22816 { echo "$as_me:$LINENO: checking for working vfork" >&5
22817 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22818 if test "${ac_cv_func_vfork_works+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821 if test "$cross_compiling" = yes; then
22822 ac_cv_func_vfork_works=cross
22823 else
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 /* Thanks to Paul Eggert for this test. */
22831 $ac_includes_default
22832 #include <sys/wait.h>
22833 #ifdef HAVE_VFORK_H
22834 # include <vfork.h>
22835 #endif
22836 /* On some sparc systems, changes by the child to local and incoming
22837 argument registers are propagated back to the parent. The compiler
22838 is told about this with #include <vfork.h>, but some compilers
22839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22840 static variable whose address is put into a register that is
22841 clobbered by the vfork. */
22842 static void
22843 #ifdef __cplusplus
22844 sparc_address_test (int arg)
22845 # else
22846 sparc_address_test (arg) int arg;
22847 #endif
22849 static pid_t child;
22850 if (!child) {
22851 child = vfork ();
22852 if (child < 0) {
22853 perror ("vfork");
22854 _exit(2);
22856 if (!child) {
22857 arg = getpid();
22858 write(-1, "", 0);
22859 _exit (arg);
22865 main ()
22867 pid_t parent = getpid ();
22868 pid_t child;
22870 sparc_address_test (0);
22872 child = vfork ();
22874 if (child == 0) {
22875 /* Here is another test for sparc vfork register problems. This
22876 test uses lots of local variables, at least as many local
22877 variables as main has allocated so far including compiler
22878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22880 reuse the register of parent for one of the local variables,
22881 since it will think that parent can't possibly be used any more
22882 in this routine. Assigning to the local variable will thus
22883 munge parent in the parent process. */
22884 pid_t
22885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22887 /* Convince the compiler that p..p7 are live; otherwise, it might
22888 use the same hardware register for all 8 local variables. */
22889 if (p != p1 || p != p2 || p != p3 || p != p4
22890 || p != p5 || p != p6 || p != p7)
22891 _exit(1);
22893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22894 from child file descriptors. If the child closes a descriptor
22895 before it execs or exits, this munges the parent's descriptor
22896 as well. Test for this by closing stdout in the child. */
22897 _exit(close(fileno(stdout)) != 0);
22898 } else {
22899 int status;
22900 struct stat st;
22902 while (wait(&status) != child)
22904 return (
22905 /* Was there some problem with vforking? */
22906 child < 0
22908 /* Did the child fail? (This shouldn't happen.) */
22909 || status
22911 /* Did the vfork/compiler bug occur? */
22912 || parent != getpid()
22914 /* Did the file descriptor bug occur? */
22915 || fstat(fileno(stdout), &st) != 0
22919 _ACEOF
22920 rm -f conftest$ac_exeext
22921 if { (ac_try="$ac_link"
22922 case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22925 esac
22926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927 (eval "$ac_link") 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22931 { (case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_try") 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; }; then
22940 ac_cv_func_vfork_works=yes
22941 else
22942 echo "$as_me: program exited with status $ac_status" >&5
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ( exit $ac_status )
22947 ac_cv_func_vfork_works=no
22949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22954 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22955 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22958 if test "x$ac_cv_func_fork_works" = xcross; then
22959 ac_cv_func_vfork_works=$ac_cv_func_vfork
22960 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22961 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22964 if test "x$ac_cv_func_vfork_works" = xyes; then
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_WORKING_VFORK 1
22968 _ACEOF
22970 else
22972 cat >>confdefs.h <<\_ACEOF
22973 #define vfork fork
22974 _ACEOF
22977 if test "x$ac_cv_func_fork_works" = xyes; then
22979 cat >>confdefs.h <<\_ACEOF
22980 #define HAVE_WORKING_FORK 1
22981 _ACEOF
22986 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22987 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22988 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <langinfo.h>
22999 main ()
23001 char* cs = nl_langinfo(CODESET);
23003 return 0;
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (ac_try="$ac_link"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23011 esac
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_link") 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest$ac_exeext &&
23023 $as_test_x conftest$ac_exeext; then
23024 emacs_cv_langinfo_codeset=yes
23025 else
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23029 emacs_cv_langinfo_codeset=no
23032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23033 conftest$ac_exeext conftest.$ac_ext
23036 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23037 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23038 if test $emacs_cv_langinfo_codeset = yes; then
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_LANGINFO_CODESET 1
23042 _ACEOF
23046 { echo "$as_me:$LINENO: checking for size_t" >&5
23047 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23048 if test "${ac_cv_type_size_t+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 $ac_includes_default
23058 typedef size_t ac__type_new_;
23060 main ()
23062 if ((ac__type_new_ *) 0)
23063 return 0;
23064 if (sizeof (ac__type_new_))
23065 return 0;
23067 return 0;
23069 _ACEOF
23070 rm -f conftest.$ac_objext
23071 if { (ac_try="$ac_compile"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23075 esac
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_compile") 2>conftest.er1
23078 ac_status=$?
23079 grep -v '^ *+' conftest.er1 >conftest.err
23080 rm -f conftest.er1
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } && {
23084 test -z "$ac_c_werror_flag" ||
23085 test ! -s conftest.err
23086 } && test -s conftest.$ac_objext; then
23087 ac_cv_type_size_t=yes
23088 else
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23092 ac_cv_type_size_t=no
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23098 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23099 if test $ac_cv_type_size_t = yes; then
23101 cat >>confdefs.h <<_ACEOF
23102 #define HAVE_SIZE_T 1
23103 _ACEOF
23109 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23110 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23111 if test "${ac_cv_type_mbstate_t+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23121 # include <wchar.h>
23123 main ()
23125 mbstate_t x; return sizeof x;
23127 return 0;
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23147 ac_cv_type_mbstate_t=yes
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_cv_type_mbstate_t=no
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23158 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23159 if test $ac_cv_type_mbstate_t = yes; then
23161 cat >>confdefs.h <<\_ACEOF
23162 #define HAVE_MBSTATE_T 1
23163 _ACEOF
23165 else
23167 cat >>confdefs.h <<\_ACEOF
23168 #define mbstate_t int
23169 _ACEOF
23173 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23174 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23175 if test "${emacs_cv_c_restrict+set}" = set; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 else
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h. */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 void fred (int *restrict x);
23186 main ()
23190 return 0;
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23201 ac_status=$?
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23210 emacs_cv_c_restrict=yes
23211 else
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h. */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 void fred (int *__restrict x);
23223 main ()
23227 return 0;
23229 _ACEOF
23230 rm -f conftest.$ac_objext
23231 if { (ac_try="$ac_compile"
23232 case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235 esac
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237 (eval "$ac_compile") 2>conftest.er1
23238 ac_status=$?
23239 grep -v '^ *+' conftest.er1 >conftest.err
23240 rm -f conftest.er1
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } && {
23244 test -z "$ac_c_werror_flag" ||
23245 test ! -s conftest.err
23246 } && test -s conftest.$ac_objext; then
23247 emacs_cv_c_restrict=__restrict
23248 else
23249 echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 emacs_cv_c_restrict=no
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23261 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23262 case "$emacs_cv_c_restrict" in
23263 yes) emacs_restrict=restrict;;
23264 no) emacs_restrict="";;
23265 *) emacs_restrict="$emacs_cv_c_restrict";;
23266 esac
23267 if test "$emacs_restrict" != __restrict; then
23269 cat >>confdefs.h <<_ACEOF
23270 #define __restrict $emacs_restrict
23271 _ACEOF
23275 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23276 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23277 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280 cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h. */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 void fred (int x[__restrict]);
23288 main ()
23292 return 0;
23294 _ACEOF
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.$ac_objext; then
23312 emacs_cv_c_restrict_arr=yes
23313 else
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 emacs_cv_c_restrict_arr=no
23320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23323 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23324 if test "$emacs_cv_c_restrict_arr" = yes; then
23326 cat >>confdefs.h <<\_ACEOF
23327 #define __restrict_arr __restrict
23328 _ACEOF
23334 # Set up the CFLAGS for real compilation, so we can substitute it.
23335 CFLAGS="$REAL_CFLAGS"
23336 CPPFLAGS="$REAL_CPPFLAGS"
23338 #### Find out which version of Emacs this is.
23339 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23340 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23341 if test x"${version}" = x; then
23342 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23343 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23344 { (exit 1); exit 1; }; }
23347 ### Specify what sort of things we'll be editing into Makefile and config.h.
23348 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23384 cat >>confdefs.h <<_ACEOF
23385 #define EMACS_CONFIGURATION "${canonical}"
23386 _ACEOF
23389 cat >>confdefs.h <<_ACEOF
23390 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23391 _ACEOF
23394 cat >>confdefs.h <<_ACEOF
23395 #define config_machfile "${machfile}"
23396 _ACEOF
23399 cat >>confdefs.h <<_ACEOF
23400 #define config_opsysfile "${opsysfile}"
23401 _ACEOF
23404 cat >>confdefs.h <<_ACEOF
23405 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23406 _ACEOF
23409 cat >>confdefs.h <<_ACEOF
23410 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23411 _ACEOF
23414 cat >>confdefs.h <<_ACEOF
23415 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23416 _ACEOF
23419 cat >>confdefs.h <<_ACEOF
23420 #define UNEXEC_SRC ${UNEXEC_SRC}
23421 _ACEOF
23424 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23426 cat >>confdefs.h <<\_ACEOF
23427 #define HAVE_X_WINDOWS 1
23428 _ACEOF
23431 if test "${USE_X_TOOLKIT}" != "none" ; then
23433 cat >>confdefs.h <<\_ACEOF
23434 #define USE_X_TOOLKIT 1
23435 _ACEOF
23438 if test "${HAVE_X11}" = "yes" ; then
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_X11 1
23442 _ACEOF
23445 if test "${HAVE_XFREE386}" = "yes" ; then
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_XFREE386 1
23449 _ACEOF
23452 if test "${HAVE_MENUS}" = "yes" ; then
23454 cat >>confdefs.h <<\_ACEOF
23455 #define HAVE_MENUS 1
23456 _ACEOF
23459 if test "${GNU_MALLOC}" = "yes" ; then
23461 cat >>confdefs.h <<\_ACEOF
23462 #define GNU_MALLOC 1
23463 _ACEOF
23466 if test "${REL_ALLOC}" = "yes" ; then
23468 cat >>confdefs.h <<\_ACEOF
23469 #define REL_ALLOC 1
23470 _ACEOF
23479 #### Report on what we decided to do.
23480 #### Report GTK as a toolkit, even if it doesn't use Xt.
23481 #### It makes printing result more understandable as using GTK sets
23482 #### toolkit_scroll_bars to yes by default.
23483 if test "${HAVE_GTK}" = "yes"; then
23484 USE_X_TOOLKIT=GTK
23487 echo "
23488 Configured for \`${canonical}'.
23490 Where should the build process find the source code? ${srcdir}
23491 What operating system and machine description files should Emacs use?
23492 \`${opsysfile}' and \`${machfile}'
23493 What compiler should emacs be built with? ${CC} ${CFLAGS}
23494 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23495 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23496 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23497 What window system should Emacs use? ${window_system}
23498 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23500 if test -n "${x_includes}"; then
23501 echo " Where do we find X Windows header files? ${x_includes}"
23502 else
23503 echo " Where do we find X Windows header files? Standard dirs"
23505 if test -n "${x_libraries}"; then
23506 echo " Where do we find X Windows libraries? ${x_libraries}"
23507 else
23508 echo " Where do we find X Windows libraries? Standard dirs"
23511 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23512 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23513 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23514 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23515 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23516 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23517 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23518 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23519 echo
23521 if test $USE_XASSERTS = yes; then
23522 echo " Compiling with asserts turned on."
23523 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23524 echo
23527 if test "$USE_X_TOOLKIT" = GTK; then
23528 case "$canonical" in
23529 *cygwin*)
23530 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23531 will probably get a crash on startup. If this happens, please use another
23532 toolkit for Emacs. See etc/PROBLEMS for more information."
23534 esac
23539 # Remove any trailing slashes in these variables.
23540 test "${prefix}" != NONE &&
23541 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23542 test "${exec_prefix}" != NONE &&
23543 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23545 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23546 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23547 ## from Makefile.c can correctly provide the arg `-traditional' to the
23548 ## C preprocessor.
23550 cat >conftest.$ac_ext <<_ACEOF
23551 /* confdefs.h. */
23552 _ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 yes..yes
23557 _ACEOF
23558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23559 $EGREP "yes..yes" >/dev/null 2>&1; then
23560 CPP_NEED_TRADITIONAL=no
23561 else
23562 CPP_NEED_TRADITIONAL=yes
23564 rm -f conftest*
23567 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"
23569 ac_config_commands="$ac_config_commands default"
23571 cat >confcache <<\_ACEOF
23572 # This file is a shell script that caches the results of configure
23573 # tests run on this system so they can be shared between configure
23574 # scripts and configure runs, see configure's option --config-cache.
23575 # It is not useful on other systems. If it contains results you don't
23576 # want to keep, you may remove or edit it.
23578 # config.status only pays attention to the cache file if you give it
23579 # the --recheck option to rerun configure.
23581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23583 # following values.
23585 _ACEOF
23587 # The following way of writing the cache mishandles newlines in values,
23588 # but we know of no workaround that is simple, portable, and efficient.
23589 # So, we kill variables containing newlines.
23590 # Ultrix sh set writes to stderr and can't be redirected directly,
23591 # and sets the high bit in the cache file unless we assign to the vars.
23593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23594 eval ac_val=\$$ac_var
23595 case $ac_val in #(
23596 *${as_nl}*)
23597 case $ac_var in #(
23598 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23599 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23600 esac
23601 case $ac_var in #(
23602 _ | IFS | as_nl) ;; #(
23603 *) $as_unset $ac_var ;;
23604 esac ;;
23605 esac
23606 done
23608 (set) 2>&1 |
23609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23610 *${as_nl}ac_space=\ *)
23611 # `set' does not quote correctly, so add quotes (double-quote
23612 # substitution turns \\\\ into \\, and sed turns \\ into \).
23613 sed -n \
23614 "s/'/'\\\\''/g;
23615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23616 ;; #(
23618 # `set' quotes correctly as required by POSIX, so do not add quotes.
23619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23621 esac |
23622 sort
23624 sed '
23625 /^ac_cv_env_/b end
23626 t clear
23627 :clear
23628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23629 t end
23630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23631 :end' >>confcache
23632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23633 if test -w "$cache_file"; then
23634 test "x$cache_file" != "x/dev/null" &&
23635 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23636 echo "$as_me: updating cache $cache_file" >&6;}
23637 cat confcache >$cache_file
23638 else
23639 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23640 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23643 rm -f confcache
23645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23646 # Let make expand exec_prefix.
23647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23649 DEFS=-DHAVE_CONFIG_H
23651 ac_libobjs=
23652 ac_ltlibobjs=
23653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23654 # 1. Remove the extension, and $U if already installed.
23655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23656 ac_i=`echo "$ac_i" | sed "$ac_script"`
23657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23658 # will be set to the directory where LIBOBJS objects are built.
23659 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23660 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23661 done
23662 LIBOBJS=$ac_libobjs
23664 LTLIBOBJS=$ac_ltlibobjs
23668 : ${CONFIG_STATUS=./config.status}
23669 ac_clean_files_save=$ac_clean_files
23670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23673 cat >$CONFIG_STATUS <<_ACEOF
23674 #! $SHELL
23675 # Generated by $as_me.
23676 # Run this file to recreate the current configuration.
23677 # Compiler output produced by configure, useful for debugging
23678 # configure, is in config.log if it exists.
23680 debug=false
23681 ac_cs_recheck=false
23682 ac_cs_silent=false
23683 SHELL=\${CONFIG_SHELL-$SHELL}
23684 _ACEOF
23686 cat >>$CONFIG_STATUS <<\_ACEOF
23687 ## --------------------- ##
23688 ## M4sh Initialization. ##
23689 ## --------------------- ##
23691 # Be more Bourne compatible
23692 DUALCASE=1; export DUALCASE # for MKS sh
23693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23694 emulate sh
23695 NULLCMD=:
23696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23697 # is contrary to our usage. Disable this feature.
23698 alias -g '${1+"$@"}'='"$@"'
23699 setopt NO_GLOB_SUBST
23700 else
23701 case `(set -o) 2>/dev/null` in
23702 *posix*) set -o posix ;;
23703 esac
23710 # PATH needs CR
23711 # Avoid depending upon Character Ranges.
23712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23715 as_cr_digits='0123456789'
23716 as_cr_alnum=$as_cr_Letters$as_cr_digits
23718 # The user is always right.
23719 if test "${PATH_SEPARATOR+set}" != set; then
23720 echo "#! /bin/sh" >conf$$.sh
23721 echo "exit 0" >>conf$$.sh
23722 chmod +x conf$$.sh
23723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23724 PATH_SEPARATOR=';'
23725 else
23726 PATH_SEPARATOR=:
23728 rm -f conf$$.sh
23731 # Support unset when possible.
23732 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23733 as_unset=unset
23734 else
23735 as_unset=false
23739 # IFS
23740 # We need space, tab and new line, in precisely that order. Quoting is
23741 # there to prevent editors from complaining about space-tab.
23742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23743 # splitting by setting IFS to empty value.)
23744 as_nl='
23746 IFS=" "" $as_nl"
23748 # Find who we are. Look in the path if we contain no directory separator.
23749 case $0 in
23750 *[\\/]* ) as_myself=$0 ;;
23751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23752 for as_dir in $PATH
23754 IFS=$as_save_IFS
23755 test -z "$as_dir" && as_dir=.
23756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23757 done
23758 IFS=$as_save_IFS
23761 esac
23762 # We did not find ourselves, most probably we were run as `sh COMMAND'
23763 # in which case we are not to be found in the path.
23764 if test "x$as_myself" = x; then
23765 as_myself=$0
23767 if test ! -f "$as_myself"; then
23768 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23769 { (exit 1); exit 1; }
23772 # Work around bugs in pre-3.0 UWIN ksh.
23773 for as_var in ENV MAIL MAILPATH
23774 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23775 done
23776 PS1='$ '
23777 PS2='> '
23778 PS4='+ '
23780 # NLS nuisances.
23781 for as_var in \
23782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23784 LC_TELEPHONE LC_TIME
23786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23787 eval $as_var=C; export $as_var
23788 else
23789 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23791 done
23793 # Required to use basename.
23794 if expr a : '\(a\)' >/dev/null 2>&1 &&
23795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23796 as_expr=expr
23797 else
23798 as_expr=false
23801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23802 as_basename=basename
23803 else
23804 as_basename=false
23808 # Name of the executable.
23809 as_me=`$as_basename -- "$0" ||
23810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23811 X"$0" : 'X\(//\)$' \| \
23812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23813 echo X/"$0" |
23814 sed '/^.*\/\([^/][^/]*\)\/*$/{
23815 s//\1/
23818 /^X\/\(\/\/\)$/{
23819 s//\1/
23822 /^X\/\(\/\).*/{
23823 s//\1/
23826 s/.*/./; q'`
23828 # CDPATH.
23829 $as_unset CDPATH
23833 as_lineno_1=$LINENO
23834 as_lineno_2=$LINENO
23835 test "x$as_lineno_1" != "x$as_lineno_2" &&
23836 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23839 # uniformly replaced by the line number. The first 'sed' inserts a
23840 # line-number line after each line using $LINENO; the second 'sed'
23841 # does the real work. The second script uses 'N' to pair each
23842 # line-number line with the line containing $LINENO, and appends
23843 # trailing '-' during substitution so that $LINENO is not a special
23844 # case at line end.
23845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23846 # scripts with optimization help from Paolo Bonzini. Blame Lee
23847 # E. McMahon (1931-1989) for sed's syntax. :-)
23848 sed -n '
23850 /[$]LINENO/=
23851 ' <$as_myself |
23852 sed '
23853 s/[$]LINENO.*/&-/
23854 t lineno
23856 :lineno
23858 :loop
23859 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23860 t loop
23861 s/-\n.*//
23862 ' >$as_me.lineno &&
23863 chmod +x "$as_me.lineno" ||
23864 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23865 { (exit 1); exit 1; }; }
23867 # Don't try to exec as it changes $[0], causing all sort of problems
23868 # (the dirname of $[0] is not the place where we might find the
23869 # original and so on. Autoconf is especially sensitive to this).
23870 . "./$as_me.lineno"
23871 # Exit status is that of the last command.
23872 exit
23876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23877 as_dirname=dirname
23878 else
23879 as_dirname=false
23882 ECHO_C= ECHO_N= ECHO_T=
23883 case `echo -n x` in
23884 -n*)
23885 case `echo 'x\c'` in
23886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23887 *) ECHO_C='\c';;
23888 esac;;
23890 ECHO_N='-n';;
23891 esac
23893 if expr a : '\(a\)' >/dev/null 2>&1 &&
23894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23895 as_expr=expr
23896 else
23897 as_expr=false
23900 rm -f conf$$ conf$$.exe conf$$.file
23901 if test -d conf$$.dir; then
23902 rm -f conf$$.dir/conf$$.file
23903 else
23904 rm -f conf$$.dir
23905 mkdir conf$$.dir
23907 echo >conf$$.file
23908 if ln -s conf$$.file conf$$ 2>/dev/null; then
23909 as_ln_s='ln -s'
23910 # ... but there are two gotchas:
23911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23913 # In both cases, we have to default to `cp -p'.
23914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23915 as_ln_s='cp -p'
23916 elif ln conf$$.file conf$$ 2>/dev/null; then
23917 as_ln_s=ln
23918 else
23919 as_ln_s='cp -p'
23921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23922 rmdir conf$$.dir 2>/dev/null
23924 if mkdir -p . 2>/dev/null; then
23925 as_mkdir_p=:
23926 else
23927 test -d ./-p && rmdir ./-p
23928 as_mkdir_p=false
23931 if test -x / >/dev/null 2>&1; then
23932 as_test_x='test -x'
23933 else
23934 if ls -dL / >/dev/null 2>&1; then
23935 as_ls_L_option=L
23936 else
23937 as_ls_L_option=
23939 as_test_x='
23940 eval sh -c '\''
23941 if test -d "$1"; then
23942 test -d "$1/.";
23943 else
23944 case $1 in
23945 -*)set "./$1";;
23946 esac;
23947 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23948 ???[sx]*):;;*)false;;esac;fi
23949 '\'' sh
23952 as_executable_p=$as_test_x
23954 # Sed expression to map a string onto a valid CPP name.
23955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23957 # Sed expression to map a string onto a valid variable name.
23958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23961 exec 6>&1
23963 # Save the log message, to keep $[0] and so on meaningful, and to
23964 # report actual input values of CONFIG_FILES etc. instead of their
23965 # values after options handling.
23966 ac_log="
23967 This file was extended by $as_me, which was
23968 generated by GNU Autoconf 2.61. Invocation command line was
23970 CONFIG_FILES = $CONFIG_FILES
23971 CONFIG_HEADERS = $CONFIG_HEADERS
23972 CONFIG_LINKS = $CONFIG_LINKS
23973 CONFIG_COMMANDS = $CONFIG_COMMANDS
23974 $ $0 $@
23976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23979 _ACEOF
23981 cat >>$CONFIG_STATUS <<_ACEOF
23982 # Files that config.status was made for.
23983 config_files="$ac_config_files"
23984 config_headers="$ac_config_headers"
23985 config_commands="$ac_config_commands"
23987 _ACEOF
23989 cat >>$CONFIG_STATUS <<\_ACEOF
23990 ac_cs_usage="\
23991 \`$as_me' instantiates files from templates according to the
23992 current configuration.
23994 Usage: $0 [OPTIONS] [FILE]...
23996 -h, --help print this help, then exit
23997 -V, --version print version number and configuration settings, then exit
23998 -q, --quiet do not print progress messages
23999 -d, --debug don't remove temporary files
24000 --recheck update $as_me by reconfiguring in the same conditions
24001 --file=FILE[:TEMPLATE]
24002 instantiate the configuration file FILE
24003 --header=FILE[:TEMPLATE]
24004 instantiate the configuration header FILE
24006 Configuration files:
24007 $config_files
24009 Configuration headers:
24010 $config_headers
24012 Configuration commands:
24013 $config_commands
24015 Report bugs to <bug-autoconf@gnu.org>."
24017 _ACEOF
24018 cat >>$CONFIG_STATUS <<_ACEOF
24019 ac_cs_version="\\
24020 config.status
24021 configured by $0, generated by GNU Autoconf 2.61,
24022 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24024 Copyright (C) 2006 Free Software Foundation, Inc.
24025 This config.status script is free software; the Free Software Foundation
24026 gives unlimited permission to copy, distribute and modify it."
24028 ac_pwd='$ac_pwd'
24029 srcdir='$srcdir'
24030 INSTALL='$INSTALL'
24031 _ACEOF
24033 cat >>$CONFIG_STATUS <<\_ACEOF
24034 # If no file are specified by the user, then we need to provide default
24035 # value. By we need to know if files were specified by the user.
24036 ac_need_defaults=:
24037 while test $# != 0
24039 case $1 in
24040 --*=*)
24041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24043 ac_shift=:
24046 ac_option=$1
24047 ac_optarg=$2
24048 ac_shift=shift
24050 esac
24052 case $ac_option in
24053 # Handling of the options.
24054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24055 ac_cs_recheck=: ;;
24056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24057 echo "$ac_cs_version"; exit ;;
24058 --debug | --debu | --deb | --de | --d | -d )
24059 debug=: ;;
24060 --file | --fil | --fi | --f )
24061 $ac_shift
24062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24063 ac_need_defaults=false;;
24064 --header | --heade | --head | --hea )
24065 $ac_shift
24066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24067 ac_need_defaults=false;;
24068 --he | --h)
24069 # Conflict between --help and --header
24070 { echo "$as_me: error: ambiguous option: $1
24071 Try \`$0 --help' for more information." >&2
24072 { (exit 1); exit 1; }; };;
24073 --help | --hel | -h )
24074 echo "$ac_cs_usage"; exit ;;
24075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24077 ac_cs_silent=: ;;
24079 # This is an error.
24080 -*) { echo "$as_me: error: unrecognized option: $1
24081 Try \`$0 --help' for more information." >&2
24082 { (exit 1); exit 1; }; } ;;
24084 *) ac_config_targets="$ac_config_targets $1"
24085 ac_need_defaults=false ;;
24087 esac
24088 shift
24089 done
24091 ac_configure_extra_args=
24093 if $ac_cs_silent; then
24094 exec 6>/dev/null
24095 ac_configure_extra_args="$ac_configure_extra_args --silent"
24098 _ACEOF
24099 cat >>$CONFIG_STATUS <<_ACEOF
24100 if \$ac_cs_recheck; then
24101 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24102 CONFIG_SHELL=$SHELL
24103 export CONFIG_SHELL
24104 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24107 _ACEOF
24108 cat >>$CONFIG_STATUS <<\_ACEOF
24109 exec 5>>config.log
24111 echo
24112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24113 ## Running $as_me. ##
24114 _ASBOX
24115 echo "$ac_log"
24116 } >&5
24118 _ACEOF
24119 cat >>$CONFIG_STATUS <<_ACEOF
24121 # INIT-COMMANDS
24123 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24125 _ACEOF
24127 cat >>$CONFIG_STATUS <<\_ACEOF
24129 # Handling of arguments.
24130 for ac_config_target in $ac_config_targets
24132 case $ac_config_target in
24133 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24135 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24136 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24137 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24138 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24139 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24140 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24141 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24142 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24143 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24144 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24147 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24148 { (exit 1); exit 1; }; };;
24149 esac
24150 done
24153 # If the user did not use the arguments to specify the items to instantiate,
24154 # then the envvar interface is used. Set only those that are not.
24155 # We use the long form for the default assignment because of an extremely
24156 # bizarre bug on SunOS 4.1.3.
24157 if $ac_need_defaults; then
24158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24163 # Have a temporary directory for convenience. Make it in the build tree
24164 # simply because there is no reason against having it here, and in addition,
24165 # creating and moving files from /tmp can sometimes cause problems.
24166 # Hook for its removal unless debugging.
24167 # Note that there is a small window in which the directory will not be cleaned:
24168 # after its creation but before its name has been assigned to `$tmp'.
24169 $debug ||
24171 tmp=
24172 trap 'exit_status=$?
24173 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24175 trap '{ (exit 1); exit 1; }' 1 2 13 15
24177 # Create a (secure) tmp directory for tmp files.
24180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24181 test -n "$tmp" && test -d "$tmp"
24182 } ||
24184 tmp=./conf$$-$RANDOM
24185 (umask 077 && mkdir "$tmp")
24186 } ||
24188 echo "$me: cannot create a temporary directory in ." >&2
24189 { (exit 1); exit 1; }
24193 # Set up the sed scripts for CONFIG_FILES section.
24196 # No need to generate the scripts if there are no CONFIG_FILES.
24197 # This happens for instance when ./config.status config.h
24198 if test -n "$CONFIG_FILES"; then
24200 _ACEOF
24204 ac_delim='%!_!# '
24205 for ac_last_try in false false false false false :; do
24206 cat >conf$$subs.sed <<_ACEOF
24207 SHELL!$SHELL$ac_delim
24208 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24209 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24210 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24211 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24212 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24213 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24214 exec_prefix!$exec_prefix$ac_delim
24215 prefix!$prefix$ac_delim
24216 program_transform_name!$program_transform_name$ac_delim
24217 bindir!$bindir$ac_delim
24218 sbindir!$sbindir$ac_delim
24219 libexecdir!$libexecdir$ac_delim
24220 datarootdir!$datarootdir$ac_delim
24221 datadir!$datadir$ac_delim
24222 sysconfdir!$sysconfdir$ac_delim
24223 sharedstatedir!$sharedstatedir$ac_delim
24224 localstatedir!$localstatedir$ac_delim
24225 includedir!$includedir$ac_delim
24226 oldincludedir!$oldincludedir$ac_delim
24227 docdir!$docdir$ac_delim
24228 infodir!$infodir$ac_delim
24229 htmldir!$htmldir$ac_delim
24230 dvidir!$dvidir$ac_delim
24231 pdfdir!$pdfdir$ac_delim
24232 psdir!$psdir$ac_delim
24233 libdir!$libdir$ac_delim
24234 localedir!$localedir$ac_delim
24235 mandir!$mandir$ac_delim
24236 DEFS!$DEFS$ac_delim
24237 ECHO_C!$ECHO_C$ac_delim
24238 ECHO_N!$ECHO_N$ac_delim
24239 ECHO_T!$ECHO_T$ac_delim
24240 LIBS!$LIBS$ac_delim
24241 build_alias!$build_alias$ac_delim
24242 host_alias!$host_alias$ac_delim
24243 target_alias!$target_alias$ac_delim
24244 MAINT!$MAINT$ac_delim
24245 build!$build$ac_delim
24246 build_cpu!$build_cpu$ac_delim
24247 build_vendor!$build_vendor$ac_delim
24248 build_os!$build_os$ac_delim
24249 host!$host$ac_delim
24250 host_cpu!$host_cpu$ac_delim
24251 host_vendor!$host_vendor$ac_delim
24252 host_os!$host_os$ac_delim
24253 CC!$CC$ac_delim
24254 CFLAGS!$CFLAGS$ac_delim
24255 LDFLAGS!$LDFLAGS$ac_delim
24256 CPPFLAGS!$CPPFLAGS$ac_delim
24257 ac_ct_CC!$ac_ct_CC$ac_delim
24258 EXEEXT!$EXEEXT$ac_delim
24259 OBJEXT!$OBJEXT$ac_delim
24260 CPP!$CPP$ac_delim
24261 GREP!$GREP$ac_delim
24262 EGREP!$EGREP$ac_delim
24263 LN_S!$LN_S$ac_delim
24264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24266 INSTALL_DATA!$INSTALL_DATA$ac_delim
24267 RANLIB!$RANLIB$ac_delim
24268 INSTALL_INFO!$INSTALL_INFO$ac_delim
24269 GZIP_PROG!$GZIP_PROG$ac_delim
24270 LIBSOUND!$LIBSOUND$ac_delim
24271 PKG_CONFIG!$PKG_CONFIG$ac_delim
24272 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24273 ALSA_LIBS!$ALSA_LIBS$ac_delim
24274 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24275 SET_MAKE!$SET_MAKE$ac_delim
24276 XMKMF!$XMKMF$ac_delim
24277 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24278 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24279 GTK_LIBS!$GTK_LIBS$ac_delim
24280 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24281 XFT_LIBS!$XFT_LIBS$ac_delim
24282 ALLOCA!$ALLOCA$ac_delim
24283 liblockfile!$liblockfile$ac_delim
24284 LIBOBJS!$LIBOBJS$ac_delim
24285 NEED_SETGID!$NEED_SETGID$ac_delim
24286 KMEM_GROUP!$KMEM_GROUP$ac_delim
24287 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24288 GETOPT_H!$GETOPT_H$ac_delim
24289 GETOPTOBJS!$GETOPTOBJS$ac_delim
24290 version!$version$ac_delim
24291 configuration!$configuration$ac_delim
24292 canonical!$canonical$ac_delim
24293 srcdir!$srcdir$ac_delim
24294 lispdir!$lispdir$ac_delim
24295 locallisppath!$locallisppath$ac_delim
24296 lisppath!$lisppath$ac_delim
24297 x_default_search_path!$x_default_search_path$ac_delim
24298 etcdir!$etcdir$ac_delim
24299 archlibdir!$archlibdir$ac_delim
24300 bitmapdir!$bitmapdir$ac_delim
24301 gamedir!$gamedir$ac_delim
24302 gameuser!$gameuser$ac_delim
24303 c_switch_system!$c_switch_system$ac_delim
24304 _ACEOF
24306 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24307 break
24308 elif $ac_last_try; then
24309 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24310 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24311 { (exit 1); exit 1; }; }
24312 else
24313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24315 done
24317 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24318 if test -n "$ac_eof"; then
24319 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24320 ac_eof=`expr $ac_eof + 1`
24323 cat >>$CONFIG_STATUS <<_ACEOF
24324 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24326 _ACEOF
24327 sed '
24328 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24329 s/^/s,@/; s/!/@,|#_!!_#|/
24332 s/'"$ac_delim"'$/,g/; t
24333 s/$/\\/; p
24334 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24335 ' >>$CONFIG_STATUS <conf$$subs.sed
24336 rm -f conf$$subs.sed
24337 cat >>$CONFIG_STATUS <<_ACEOF
24338 CEOF$ac_eof
24339 _ACEOF
24342 ac_delim='%!_!# '
24343 for ac_last_try in false false false false false :; do
24344 cat >conf$$subs.sed <<_ACEOF
24345 c_switch_machine!$c_switch_machine$ac_delim
24346 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24347 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24348 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24349 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24350 machfile!$machfile$ac_delim
24351 opsysfile!$opsysfile$ac_delim
24352 carbon_appdir!$carbon_appdir$ac_delim
24353 LTLIBOBJS!$LTLIBOBJS$ac_delim
24354 _ACEOF
24356 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24357 break
24358 elif $ac_last_try; then
24359 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24361 { (exit 1); exit 1; }; }
24362 else
24363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24365 done
24367 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24368 if test -n "$ac_eof"; then
24369 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24370 ac_eof=`expr $ac_eof + 1`
24373 cat >>$CONFIG_STATUS <<_ACEOF
24374 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24376 _ACEOF
24377 sed '
24378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24379 s/^/s,@/; s/!/@,|#_!!_#|/
24382 s/'"$ac_delim"'$/,g/; t
24383 s/$/\\/; p
24384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24385 ' >>$CONFIG_STATUS <conf$$subs.sed
24386 rm -f conf$$subs.sed
24387 cat >>$CONFIG_STATUS <<_ACEOF
24388 :end
24389 s/|#_!!_#|//g
24390 CEOF$ac_eof
24391 _ACEOF
24394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24396 # trailing colons and then remove the whole line if VPATH becomes empty
24397 # (actually we leave an empty line to preserve line numbers).
24398 if test "x$srcdir" = x.; then
24399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24400 s/:*\$(srcdir):*/:/
24401 s/:*\${srcdir}:*/:/
24402 s/:*@srcdir@:*/:/
24403 s/^\([^=]*=[ ]*\):*/\1/
24404 s/:*$//
24405 s/^[^=]*=[ ]*$//
24409 cat >>$CONFIG_STATUS <<\_ACEOF
24410 fi # test -n "$CONFIG_FILES"
24413 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24415 case $ac_tag in
24416 :[FHLC]) ac_mode=$ac_tag; continue;;
24417 esac
24418 case $ac_mode$ac_tag in
24419 :[FHL]*:*);;
24420 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24421 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24422 { (exit 1); exit 1; }; };;
24423 :[FH]-) ac_tag=-:-;;
24424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24425 esac
24426 ac_save_IFS=$IFS
24427 IFS=:
24428 set x $ac_tag
24429 IFS=$ac_save_IFS
24430 shift
24431 ac_file=$1
24432 shift
24434 case $ac_mode in
24435 :L) ac_source=$1;;
24436 :[FH])
24437 ac_file_inputs=
24438 for ac_f
24440 case $ac_f in
24441 -) ac_f="$tmp/stdin";;
24442 *) # Look for the file first in the build tree, then in the source tree
24443 # (if the path is not absolute). The absolute path cannot be DOS-style,
24444 # because $ac_f cannot contain `:'.
24445 test -f "$ac_f" ||
24446 case $ac_f in
24447 [\\/$]*) false;;
24448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24449 esac ||
24450 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24451 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24452 { (exit 1); exit 1; }; };;
24453 esac
24454 ac_file_inputs="$ac_file_inputs $ac_f"
24455 done
24457 # Let's still pretend it is `configure' which instantiates (i.e., don't
24458 # use $as_me), people would be surprised to read:
24459 # /* config.h. Generated by config.status. */
24460 configure_input="Generated from "`IFS=:
24461 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24462 if test x"$ac_file" != x-; then
24463 configure_input="$ac_file. $configure_input"
24464 { echo "$as_me:$LINENO: creating $ac_file" >&5
24465 echo "$as_me: creating $ac_file" >&6;}
24468 case $ac_tag in
24469 *:-:* | *:-) cat >"$tmp/stdin";;
24470 esac
24472 esac
24474 ac_dir=`$as_dirname -- "$ac_file" ||
24475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24476 X"$ac_file" : 'X\(//\)[^/]' \| \
24477 X"$ac_file" : 'X\(//\)$' \| \
24478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24479 echo X"$ac_file" |
24480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24481 s//\1/
24484 /^X\(\/\/\)[^/].*/{
24485 s//\1/
24488 /^X\(\/\/\)$/{
24489 s//\1/
24492 /^X\(\/\).*/{
24493 s//\1/
24496 s/.*/./; q'`
24497 { as_dir="$ac_dir"
24498 case $as_dir in #(
24499 -*) as_dir=./$as_dir;;
24500 esac
24501 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24502 as_dirs=
24503 while :; do
24504 case $as_dir in #(
24505 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24506 *) as_qdir=$as_dir;;
24507 esac
24508 as_dirs="'$as_qdir' $as_dirs"
24509 as_dir=`$as_dirname -- "$as_dir" ||
24510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24511 X"$as_dir" : 'X\(//\)[^/]' \| \
24512 X"$as_dir" : 'X\(//\)$' \| \
24513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24514 echo X"$as_dir" |
24515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24516 s//\1/
24519 /^X\(\/\/\)[^/].*/{
24520 s//\1/
24523 /^X\(\/\/\)$/{
24524 s//\1/
24527 /^X\(\/\).*/{
24528 s//\1/
24531 s/.*/./; q'`
24532 test -d "$as_dir" && break
24533 done
24534 test -z "$as_dirs" || eval "mkdir $as_dirs"
24535 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24536 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24537 { (exit 1); exit 1; }; }; }
24538 ac_builddir=.
24540 case "$ac_dir" in
24541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24544 # A ".." for each directory in $ac_dir_suffix.
24545 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24546 case $ac_top_builddir_sub in
24547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24549 esac ;;
24550 esac
24551 ac_abs_top_builddir=$ac_pwd
24552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24553 # for backward compatibility:
24554 ac_top_builddir=$ac_top_build_prefix
24556 case $srcdir in
24557 .) # We are building in place.
24558 ac_srcdir=.
24559 ac_top_srcdir=$ac_top_builddir_sub
24560 ac_abs_top_srcdir=$ac_pwd ;;
24561 [\\/]* | ?:[\\/]* ) # Absolute name.
24562 ac_srcdir=$srcdir$ac_dir_suffix;
24563 ac_top_srcdir=$srcdir
24564 ac_abs_top_srcdir=$srcdir ;;
24565 *) # Relative name.
24566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24567 ac_top_srcdir=$ac_top_build_prefix$srcdir
24568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24569 esac
24570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24573 case $ac_mode in
24576 # CONFIG_FILE
24579 case $INSTALL in
24580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24582 esac
24583 _ACEOF
24585 cat >>$CONFIG_STATUS <<\_ACEOF
24586 # If the template does not know about datarootdir, expand it.
24587 # FIXME: This hack should be removed a few years after 2.60.
24588 ac_datarootdir_hack=; ac_datarootdir_seen=
24590 case `sed -n '/datarootdir/ {
24594 /@datadir@/p
24595 /@docdir@/p
24596 /@infodir@/p
24597 /@localedir@/p
24598 /@mandir@/p
24599 ' $ac_file_inputs` in
24600 *datarootdir*) ac_datarootdir_seen=yes;;
24601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24602 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24603 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24604 _ACEOF
24605 cat >>$CONFIG_STATUS <<_ACEOF
24606 ac_datarootdir_hack='
24607 s&@datadir@&$datadir&g
24608 s&@docdir@&$docdir&g
24609 s&@infodir@&$infodir&g
24610 s&@localedir@&$localedir&g
24611 s&@mandir@&$mandir&g
24612 s&\\\${datarootdir}&$datarootdir&g' ;;
24613 esac
24614 _ACEOF
24616 # Neutralize VPATH when `$srcdir' = `.'.
24617 # Shell code in configure.ac might set extrasub.
24618 # FIXME: do we really want to maintain this feature?
24619 cat >>$CONFIG_STATUS <<_ACEOF
24620 sed "$ac_vpsub
24621 $extrasub
24622 _ACEOF
24623 cat >>$CONFIG_STATUS <<\_ACEOF
24625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24626 s&@configure_input@&$configure_input&;t t
24627 s&@top_builddir@&$ac_top_builddir_sub&;t t
24628 s&@srcdir@&$ac_srcdir&;t t
24629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24630 s&@top_srcdir@&$ac_top_srcdir&;t t
24631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24632 s&@builddir@&$ac_builddir&;t t
24633 s&@abs_builddir@&$ac_abs_builddir&;t t
24634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24635 s&@INSTALL@&$ac_INSTALL&;t t
24636 $ac_datarootdir_hack
24637 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24639 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24640 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24641 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24642 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24643 which seems to be undefined. Please make sure it is defined." >&5
24644 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24645 which seems to be undefined. Please make sure it is defined." >&2;}
24647 rm -f "$tmp/stdin"
24648 case $ac_file in
24649 -) cat "$tmp/out"; rm -f "$tmp/out";;
24650 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24651 esac
24655 # CONFIG_HEADER
24657 _ACEOF
24659 # Transform confdefs.h into a sed script `conftest.defines', that
24660 # substitutes the proper values into config.h.in to produce config.h.
24661 rm -f conftest.defines conftest.tail
24662 # First, append a space to every undef/define line, to ease matching.
24663 echo 's/$/ /' >conftest.defines
24664 # Then, protect against being on the right side of a sed subst, or in
24665 # an unquoted here document, in config.status. If some macros were
24666 # called several times there might be several #defines for the same
24667 # symbol, which is useless. But do not sort them, since the last
24668 # AC_DEFINE must be honored.
24669 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24670 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24671 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24672 # PARAMS is the parameter list in the macro definition--in most cases, it's
24673 # just an empty string.
24674 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24675 ac_dB='\\)[ (].*,\\1define\\2'
24676 ac_dC=' '
24677 ac_dD=' ,'
24679 uniq confdefs.h |
24680 sed -n '
24681 t rset
24682 :rset
24683 s/^[ ]*#[ ]*define[ ][ ]*//
24684 t ok
24687 s/[\\&,]/\\&/g
24688 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24689 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24690 ' >>conftest.defines
24692 # Remove the space that was appended to ease matching.
24693 # Then replace #undef with comments. This is necessary, for
24694 # example, in the case of _POSIX_SOURCE, which is predefined and required
24695 # on some systems where configure will not decide to define it.
24696 # (The regexp can be short, since the line contains either #define or #undef.)
24697 echo 's/ $//
24698 s,^[ #]*u.*,/* & */,' >>conftest.defines
24700 # Break up conftest.defines:
24701 ac_max_sed_lines=50
24703 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24704 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24705 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24706 # et cetera.
24707 ac_in='$ac_file_inputs'
24708 ac_out='"$tmp/out1"'
24709 ac_nxt='"$tmp/out2"'
24711 while :
24713 # Write a here document:
24714 cat >>$CONFIG_STATUS <<_ACEOF
24715 # First, check the format of the line:
24716 cat >"\$tmp/defines.sed" <<\\CEOF
24717 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24718 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24720 :def
24721 _ACEOF
24722 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24723 echo 'CEOF
24724 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24725 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24726 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24727 grep . conftest.tail >/dev/null || break
24728 rm -f conftest.defines
24729 mv conftest.tail conftest.defines
24730 done
24731 rm -f conftest.defines conftest.tail
24733 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24734 cat >>$CONFIG_STATUS <<\_ACEOF
24735 if test x"$ac_file" != x-; then
24736 echo "/* $configure_input */" >"$tmp/config.h"
24737 cat "$ac_result" >>"$tmp/config.h"
24738 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24739 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24740 echo "$as_me: $ac_file is unchanged" >&6;}
24741 else
24742 rm -f $ac_file
24743 mv "$tmp/config.h" $ac_file
24745 else
24746 echo "/* $configure_input */"
24747 cat "$ac_result"
24749 rm -f "$tmp/out12"
24752 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24753 echo "$as_me: executing $ac_file commands" >&6;}
24755 esac
24758 case $ac_file$ac_mode in
24759 "default":C)
24761 ### Make the necessary directories, if they don't exist.
24762 for dir in etc lisp ; do
24763 test -d ${dir} || mkdir ${dir}
24764 done
24766 # Build src/Makefile from ${srcdir}/src/Makefile.c
24767 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24768 # This must be done after src/config.h is built, since we rely on that file.
24770 # Now get this: Some word that is part of the ${srcdir} directory name
24771 # or the ${configuration} value might, just might, happen to be an
24772 # identifier like `sun4' or `i386' or something, and be predefined by
24773 # the C preprocessor to some helpful value like 1, or maybe the empty
24774 # string. Needless to say consequent macro substitutions are less
24775 # than conducive to the makefile finding the correct directory.
24776 undefs="`echo $top_srcdir $configuration $canonical |
24777 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24778 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24781 echo creating src/epaths.h
24782 ${MAKE-make} epaths-force
24784 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24785 # `..' to `. .' unless invoked with -traditional
24787 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24788 CPPFLAGS="$CPPFLAGS -traditional"
24791 echo creating lib-src/Makefile
24792 ( cd lib-src
24793 rm -f junk.c junk1.c junk2.c
24794 sed -e '/start of cpp stuff/q' \
24795 < Makefile.c > junk1.c
24796 sed -e '1,/start of cpp stuff/d'\
24797 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24798 < Makefile.c > junk.c
24799 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24800 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24801 cat junk1.c junk2.c > Makefile.new
24802 rm -f junk.c junk1.c junk2.c
24803 chmod 444 Makefile.new
24804 mv -f Makefile.new Makefile
24807 echo creating src/Makefile
24808 ( cd src
24809 rm -f junk.c junk1.c junk2.c
24810 sed -e '/start of cpp stuff/q' \
24811 < Makefile.c > junk1.c
24812 sed -e '1,/start of cpp stuff/d'\
24813 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24814 < Makefile.c > junk.c
24815 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24816 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24817 cat junk1.c junk2.c > Makefile.new
24818 rm -f junk.c junk1.c junk2.c
24819 chmod 444 Makefile.new
24820 mv -f Makefile.new Makefile
24823 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24824 echo creating src/.gdbinit
24825 echo source $srcdir/src/.gdbinit > src/.gdbinit
24828 # This is how we know whether to re-run configure in certain cases.
24829 touch src/config.stamp
24833 esac
24834 done # for ac_tag
24837 { (exit 0); exit 0; }
24838 _ACEOF
24839 chmod +x $CONFIG_STATUS
24840 ac_clean_files=$ac_clean_files_save
24843 # configure is writing to config.log, and then calls config.status.
24844 # config.status does its own redirection, appending to config.log.
24845 # Unfortunately, on DOS this fails, as config.log is still kept open
24846 # by configure, so config.status won't be able to write to it; its
24847 # output is simply discarded. So we exec the FD to /dev/null,
24848 # effectively closing config.log, so it can be properly (re)opened and
24849 # appended to by config.status. When coming back to configure, we
24850 # need to make the FD available again.
24851 if test "$no_create" != yes; then
24852 ac_cs_success=:
24853 ac_config_status_args=
24854 test "$silent" = yes &&
24855 ac_config_status_args="$ac_config_status_args --quiet"
24856 exec 5>/dev/null
24857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24858 exec 5>>config.log
24859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24860 # would make configure fail if this is the last instruction.
24861 $ac_cs_success || { (exit 1); exit 1; }