(holiday-list, calendar-check-holidays, calendar-mark-holidays)
[emacs.git] / configure
blob150c8ca1209c4c3f3d11e6b8f4654fb357497b6f
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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 XFT_CFLAGS
696 XFT_LIBS
697 ALLOCA
698 liblockfile
699 LIBOBJS
700 NEED_SETGID
701 KMEM_GROUP
702 GETLOADAVG_LIBS
703 GETOPT_H
704 GETOPTOBJS
705 version
706 configuration
707 canonical
708 srcdir
709 lispdir
710 locallisppath
711 lisppath
712 x_default_search_path
713 etcdir
714 archlibdir
715 bitmapdir
716 gamedir
717 gameuser
718 c_switch_system
719 c_switch_machine
720 LD_SWITCH_X_SITE
721 LD_SWITCH_X_SITE_AUX
722 C_SWITCH_X_SITE
723 X_TOOLKIT_TYPE
724 machfile
725 opsysfile
726 carbon_appdir
727 LTLIBOBJS'
728 ac_subst_files=''
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
738 XMKMF'
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
787 ac_prev=
788 ac_dashdash=
789 for ac_option
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
807 ac_dashdash=yes ;;
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
826 --config-cache | -C)
827 cache_file=config.cache ;;
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 esac
1116 done
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160 test "$silent" = yes && exec 6>/dev/null
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1191 /^X\(\/\/\)$/{
1192 s//\1/
1195 /^X\(\/\).*/{
1196 s//\1/
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1204 else
1205 ac_srcdir_defaulted=no
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1296 cat <<\_ACEOF
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1303 X features:
1304 --x-includes=DIR X include files are in DIR
1305 --x-libraries=DIR X library files are in DIR
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1315 cat <<\_ACEOF
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-carbon-app[=DIR]
1321 specify install directory for Emacs.app on Mac OS X
1322 [DIR=/Application]
1323 --enable-asserts compile code with asserts enabled
1324 --enable-maintainer-mode
1325 enable make rules and dependencies not useful (and
1326 sometimes confusing) to the casual installer
1327 --enable-locallisppath=PATH
1328 directories Emacs should search for lisp files
1329 specific to this site
1330 --disable-largefile omit support for large files
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --without-gcc don't use GCC to compile Emacs if GCC is found
1336 --without-pop don't support POP mail retrieval with movemail
1337 --with-kerberos support Kerberos-authenticated POP
1338 --with-kerberos5 support Kerberos version 5 authenticated POP
1339 --with-hesiod support Hesiod to get the POP server host
1340 --without-sound don't compile with sound support
1341 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1342 motif, gtk, no)
1343 --with-xpm use -lXpm for displaying XPM images
1344 --with-jpeg use -ljpeg for displaying JPEG images
1345 --with-tiff use -ltiff for displaying TIFF images
1346 --with-gif use -lgif (or -lungif) for displaying GIF images
1347 --with-png use -lpng for displaying PNG images
1348 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1349 --with-rsvg use -lrsvg-2 for displaying SVG images
1350 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1351 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1352 --without-toolkit-scroll-bars
1353 don't use Motif or Xaw3d scroll bars
1354 --without-xaw3d don't use Xaw3d
1355 --without-xim don't use X11 XIM
1356 --without-carbon don't use Carbon GUI on Mac OS X
1357 --with-x use the X Window System
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368 XMKMF Path to xmkmf, Makefile generator for X Window System
1370 Use these variables to override the choices made by `configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 _ACEOF
1374 ac_status=$?
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" || continue
1381 ac_builddir=.
1383 case "$ac_dir" in
1384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 esac ;;
1393 esac
1394 ac_abs_top_builddir=$ac_pwd
1395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir=$ac_top_build_prefix
1399 case $srcdir in
1400 .) # We are building in place.
1401 ac_srcdir=.
1402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
1405 ac_srcdir=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1408 *) # Relative name.
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 esac
1413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1423 else
1424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 fi || ac_status=$?
1426 cd "$ac_pwd" || { ac_status=$?; break; }
1427 done
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1432 cat <<\_ACEOF
1433 configure
1434 generated by GNU Autoconf 2.61
1436 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441 exit
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.61. Invocation command line was
1450 $ $0 $@
1452 _ACEOF
1453 exec 5>>config.log
1455 cat <<_ASUNAME
1456 ## --------- ##
1457 ## Platform. ##
1458 ## --------- ##
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477 _ASUNAME
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 echo "PATH: $as_dir"
1485 done
1486 IFS=$as_save_IFS
1488 } >&5
1490 cat >&5 <<_ACEOF
1493 ## ----------- ##
1494 ## Core tests. ##
1495 ## ----------- ##
1497 _ACEOF
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1505 ac_configure_args=
1506 ac_configure_args0=
1507 ac_configure_args1=
1508 ac_must_keep_next=false
1509 for ac_pass in 1 2
1511 for ac_arg
1513 case $ac_arg in
1514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516 | -silent | --silent | --silen | --sile | --sil)
1517 continue ;;
1518 *\'*)
1519 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 esac
1521 case $ac_pass in
1522 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1524 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true; then
1526 ac_must_keep_next=false # Got value, back to normal.
1527 else
1528 case $ac_arg in
1529 *=* | --config-cache | -C | -disable-* | --disable-* \
1530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532 | -with-* | --with-* | -without-* | --without-* | --x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 esac
1537 -* ) ac_must_keep_next=true ;;
1538 esac
1540 ac_configure_args="$ac_configure_args '$ac_arg'"
1542 esac
1543 done
1544 done
1545 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1546 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1556 echo
1558 cat <<\_ASBOX
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1562 _ASBOX
1563 echo
1564 # The following way of writing the cache mishandles newlines in values,
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1568 case $ac_val in #(
1569 *${as_nl}*)
1570 case $ac_var in #(
1571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 esac
1574 case $ac_var in #(
1575 _ | IFS | as_nl) ;; #(
1576 *) $as_unset $ac_var ;;
1577 esac ;;
1578 esac
1579 done
1580 (set) 2>&1 |
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1583 sed -n \
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 ;; #(
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 esac |
1591 sort
1593 echo
1595 cat <<\_ASBOX
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1599 _ASBOX
1600 echo
1601 for ac_var in $ac_subst_vars
1603 eval ac_val=\$$ac_var
1604 case $ac_val in
1605 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606 esac
1607 echo "$ac_var='\''$ac_val'\''"
1608 done | sort
1609 echo
1611 if test -n "$ac_subst_files"; then
1612 cat <<\_ASBOX
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1616 _ASBOX
1617 echo
1618 for ac_var in $ac_subst_files
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1629 if test -s confdefs.h; then
1630 cat <<\_ASBOX
1631 ## ----------- ##
1632 ## confdefs.h. ##
1633 ## ----------- ##
1634 _ASBOX
1635 echo
1636 cat confdefs.h
1637 echo
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1642 } >&5
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 exit $exit_status
1647 for ac_signal in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1649 done
1650 ac_signal=0
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1659 _ACEOF
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1679 _ACEOF
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x "$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE; then
1687 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1688 else
1689 set x "$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1692 shift
1693 for ac_site_file
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1699 . "$ac_site_file"
1701 done
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1709 case $cache_file in
1710 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1711 *) . "./$cache_file";;
1712 esac
1714 else
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1717 >$cache_file
1720 ac_header_list="$ac_header_list sys/time.h"
1721 ac_header_list="$ac_header_list unistd.h"
1722 ac_func_list="$ac_func_list alarm"
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1763 done
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798 test "$program_prefix" != NONE &&
1799 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE &&
1802 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1803 # Double any \ or $. echo might interpret backslashes.
1804 # By default was `s,x,x', remove it if useless.
1805 cat <<\_ACEOF >conftest.sed
1806 s/[\\$]/&&/g;s/;s,x,x,$//
1807 _ACEOF
1808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1809 rm -f conftest.sed
1812 lispdir='${datadir}/emacs/${version}/lisp'
1813 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1814 '${datadir}/emacs/site-lisp'
1815 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1816 etcdir='${datadir}/emacs/${version}/etc'
1817 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1818 docdir='${datadir}/emacs/${version}/etc'
1819 gamedir='${localstatedir}/games/emacs'
1821 gameuser=games
1825 # Check whether --with-gcc was given.
1826 if test "${with_gcc+set}" = set; then
1827 withval=$with_gcc;
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1839 else :
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h <<\_ACEOF
1855 #define KERBEROS 1
1856 _ACEOF
1864 # Check whether --with-kerberos5 was given.
1865 if test "${with_kerberos5+set}" = set; then
1866 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1867 if test "${with_kerberos+set}" != set; then
1868 with_kerberos=yes
1869 cat >>confdefs.h <<\_ACEOF
1870 #define KERBEROS 1
1871 _ACEOF
1875 cat >>confdefs.h <<\_ACEOF
1876 #define KERBEROS5 1
1877 _ACEOF
1884 # Check whether --with-hesiod was given.
1885 if test "${with_hesiod+set}" = set; then
1886 withval=$with_hesiod; if test "$withval" = yes; then
1888 cat >>confdefs.h <<\_ACEOF
1889 #define HESIOD 1
1890 _ACEOF
1897 # Check whether --with-sound was given.
1898 if test "${with_sound+set}" = set; then
1899 withval=$with_sound;
1904 # Check whether --with-x-toolkit was given.
1905 if test "${with_x_toolkit+set}" = set; then
1906 withval=$with_x_toolkit; case "${withval}" in
1907 y | ye | yes ) val=gtk ;;
1908 n | no ) val=no ;;
1909 l | lu | luc | luci | lucid ) val=lucid ;;
1910 a | at | ath | athe | athen | athena ) val=athena ;;
1911 m | mo | mot | moti | motif ) val=motif ;;
1912 g | gt | gtk ) val=gtk ;;
1914 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1917 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1920 { (exit 1); exit 1; }; }
1922 esac
1923 with_x_toolkit=$val
1929 # Check whether --with-xpm was given.
1930 if test "${with_xpm+set}" = set; then
1931 withval=$with_xpm;
1935 # Check whether --with-jpeg was given.
1936 if test "${with_jpeg+set}" = set; then
1937 withval=$with_jpeg;
1941 # Check whether --with-tiff was given.
1942 if test "${with_tiff+set}" = set; then
1943 withval=$with_tiff;
1947 # Check whether --with-gif was given.
1948 if test "${with_gif+set}" = set; then
1949 withval=$with_gif;
1953 # Check whether --with-png was given.
1954 if test "${with_png+set}" = set; then
1955 withval=$with_png;
1959 # Check whether --with-gpm was given.
1960 if test "${with_gpm+set}" = set; then
1961 withval=$with_gpm;
1965 # Check whether --with-rsvg was given.
1966 if test "${with_rsvg+set}" = set; then
1967 withval=$with_rsvg;
1971 # Check whether --with-gtk was given.
1972 if test "${with_gtk+set}" = set; then
1973 withval=$with_gtk;
1977 # Check whether --with-pkg-config-prog was given.
1978 if test "${with_pkg_config_prog+set}" = set; then
1979 withval=$with_pkg_config_prog;
1983 # Check whether --with-toolkit-scroll-bars was given.
1984 if test "${with_toolkit_scroll_bars+set}" = set; then
1985 withval=$with_toolkit_scroll_bars;
1989 # Check whether --with-xaw3d was given.
1990 if test "${with_xaw3d+set}" = set; then
1991 withval=$with_xaw3d;
1995 # Check whether --with-xim was given.
1996 if test "${with_xim+set}" = set; then
1997 withval=$with_xim;
2001 # Check whether --with-carbon was given.
2002 if test "${with_carbon+set}" = set; then
2003 withval=$with_carbon;
2007 # Check whether --enable-carbon-app was given.
2008 if test "${enable_carbon_app+set}" = set; then
2009 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2013 # Check whether --enable-asserts was given.
2014 if test "${enable_asserts+set}" = set; then
2015 enableval=$enable_asserts; USE_XASSERTS=$enableval
2016 else
2017 USE_XASSERTS=no
2021 # Check whether --enable-maintainer-mode was given.
2022 if test "${enable_maintainer_mode+set}" = set; then
2023 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2024 else
2025 USE_MAINTAINER_MODE=no
2028 if test $USE_MAINTAINER_MODE = yes; then
2029 MAINT=
2030 else
2031 MAINT=#
2035 # Check whether --enable-locallisppath was given.
2036 if test "${enable_locallisppath+set}" = set; then
2037 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2038 locallisppath=
2039 elif test "${enableval}" != "yes"; then
2040 locallisppath=${enableval}
2045 #### Make srcdir absolute, if it isn't already. It's important to
2046 #### avoid running the path through pwd unnecessarily, since pwd can
2047 #### give you automounter prefixes, which can go away. We do all this
2048 #### so Emacs can find its files when run uninstalled.
2049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2050 unset CDPATH
2051 case "${srcdir}" in
2052 /* ) ;;
2054 ## We may be able to use the $PWD environment variable to make this
2055 ## absolute. But sometimes PWD is inaccurate.
2056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2057 ## but that tested only for a well-formed and valid PWD,
2058 ## it did not object when PWD was well-formed and valid but just wrong.
2059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2060 then
2061 srcdir="$PWD"
2062 else
2063 srcdir="`(cd ${srcdir}; pwd)`"
2066 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2067 esac
2069 #### Check if the source directory already has a configured system in it.
2070 if test `pwd` != `(cd ${srcdir} && pwd)` \
2071 && test -f "${srcdir}/src/config.h" ; then
2072 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2073 as a build directory right now; it has been configured in its own
2074 right. To configure in another directory as well, you MUST
2075 use GNU make. If you do not have GNU make, then you must
2076 now do \`make distclean' in ${srcdir},
2077 and then run $0 again." >&5
2078 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2079 as a build directory right now; it has been configured in its own
2080 right. To configure in another directory as well, you MUST
2081 use GNU make. If you do not have GNU make, then you must
2082 now do \`make distclean' in ${srcdir},
2083 and then run $0 again." >&2;}
2086 #### Given the configuration name, set machfile and opsysfile to the
2087 #### names of the m/*.h and s/*.h files we should use.
2089 ### Canonicalize the configuration name.
2091 ac_aux_dir=
2092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093 if test -f "$ac_dir/install-sh"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/install-sh -c"
2096 break
2097 elif test -f "$ac_dir/install.sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install.sh -c"
2100 break
2101 elif test -f "$ac_dir/shtool"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/shtool install -c"
2104 break
2106 done
2107 if test -z "$ac_aux_dir"; then
2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110 { (exit 1); exit 1; }; }
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 build=$ac_cv_build
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_build
2157 shift
2158 build_cpu=$1
2159 build_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 build_os=$*
2164 IFS=$ac_save_IFS
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
2175 else
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 case $ac_cv_host in
2186 *-*-*) ;;
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2190 esac
2191 host=$ac_cv_host
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_host
2194 shift
2195 host_cpu=$1
2196 host_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 host_os=$*
2201 IFS=$ac_save_IFS
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205 canonical=$host
2206 configuration=${host_alias-${build_alias-$host}}
2210 ### If you add support for a new configuration, add code to this
2211 ### switch statement to recognize your configuration name and select
2212 ### the appropriate operating system and machine description files.
2214 ### You would hope that you could choose an m/*.h file pretty much
2215 ### based on the machine portion of the configuration name, and an s-
2216 ### file based on the operating system portion. However, it turns out
2217 ### that each m/*.h file is pretty manufacturer-specific - for
2218 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2219 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2220 ### machines. So we basically have to have a special case for each
2221 ### configuration name.
2223 ### As far as handling version numbers on operating systems is
2224 ### concerned, make sure things will fail in a fixable way. If
2225 ### /etc/MACHINES doesn't say anything about version numbers, be
2226 ### prepared to handle anything reasonably. If version numbers
2227 ### matter, be sure /etc/MACHINES says something about it.
2229 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2230 ### "System V Release 4"; he writes, "The old convention encouraged
2231 ### confusion between `system' and `release' levels'."
2233 machine='' opsys='' unported=no
2234 case "${canonical}" in
2236 ## FreeBSD ports
2237 *-*-freebsd* )
2238 opsys=freebsd
2239 case "${canonical}" in
2240 alpha*-*-freebsd*) machine=alpha ;;
2241 ia64-*-freebsd*) machine=ia64 ;;
2242 sparc64-*-freebsd*) machine=sparc ;;
2243 powerpc-*-freebsd*) machine=macppc ;;
2244 i[3456]86-*-freebsd*) machine=intel386 ;;
2245 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2246 esac
2249 ## NetBSD ports
2250 *-*-netbsd* )
2251 opsys=netbsd
2252 if test -f /usr/lib/crti.o; then
2254 cat >>confdefs.h <<\_ACEOF
2255 #define HAVE_CRTIN
2256 _ACEOF
2260 case "${canonical}" in
2261 alpha*-*-netbsd*) machine=alpha ;;
2262 i[3456]86-*-netbsd*) machine=intel386 ;;
2263 m68k-*-netbsd*)
2264 # This is somewhat bogus.
2265 machine=hp9000s300 ;;
2266 mips-*-netbsd*) machine=pmax ;;
2267 mipsel-*-netbsd*) machine=pmax ;;
2268 mipseb-*-netbsd*) machine=pmax ;;
2269 ns32k-*-netbsd*) machine=ns32000 ;;
2270 powerpc-*-netbsd*) machine=macppc ;;
2271 sparc*-*-netbsd*) machine=sparc ;;
2272 vax-*-netbsd*) machine=vax ;;
2273 arm-*-netbsd*) machine=arm ;;
2274 x86_64-*-netbsd*) machine=amdx86-64 ;;
2275 hppa-*-netbsd*) machine=hp800 ;;
2276 shle-*-netbsd*) machine=sh3el ;;
2277 esac
2280 ## OpenBSD ports
2281 *-*-openbsd* )
2282 opsys=openbsd
2283 case "${canonical}" in
2284 alpha*-*-openbsd*) machine=alpha ;;
2285 arm-*-openbsd*) machine=arm ;;
2286 hppa-*-openbsd*) machine=hp9000s300 ;;
2287 i386-*-openbsd*) machine=intel386 ;;
2288 m68k-*-openbsd*) machine=hp9000s300 ;;
2289 m88k-*-openbsd*) machine=aviion ;;
2290 mips64-*-openbsd*) machine=mips64 ;;
2291 powerpc-*-openbsd*) machine=macppc ;;
2292 sh-*-openbsd*) machine=sh3el ;;
2293 sparc*-*-openbsd*) machine=sparc ;;
2294 vax-*-openbsd*) machine=vax ;;
2295 x86_64-*-openbsd*) machine=amdx86-64 ;;
2296 esac
2299 ## LynxOS ports
2300 *-*-lynxos* )
2301 opsys=lynxos
2302 case "${canonical}" in
2303 i[3456]86-*-lynxos*) machine=intel386 ;;
2304 powerpc-*-lynxos*) machine=powerpc ;;
2305 esac
2308 ## Acorn RISCiX:
2309 arm-acorn-riscix1.1* )
2310 machine=acorn opsys=riscix1-1
2312 arm-acorn-riscix1.2* | arm-acorn-riscix )
2313 ## This name is riscix12 instead of riscix1.2
2314 ## to avoid a file name conflict on MSDOS.
2315 machine=acorn opsys=riscix12
2318 ## BSDI ports
2319 *-*-bsdi* )
2320 opsys=bsdi
2321 case "${canonical}" in
2322 i[345]86-*-bsdi*) machine=intel386 ;;
2323 sparc-*-bsdi*) machine=sparc ;;
2324 powerpc-*-bsdi*) machine=macppc ;;
2325 esac
2326 case "${canonical}" in
2327 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2328 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2329 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2330 *-*-bsdi3* ) opsys=bsdos3 ;;
2331 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2332 esac
2335 ## Alliant machines
2336 ## Strictly speaking, we need the version of the alliant operating
2337 ## system to choose the right machine file, but currently the
2338 ## configuration name doesn't tell us enough to choose the right
2339 ## one; we need to give alliants their own operating system name to
2340 ## do this right. When someone cares, they can help us.
2341 fx80-alliant-* )
2342 machine=alliant4 opsys=bsd4-2
2344 i860-alliant-* )
2345 machine=alliant-2800 opsys=bsd4-3
2348 ## Alpha (DEC) machines.
2349 alpha*-dec-osf* )
2350 machine=alpha opsys=osf1
2351 # This is needed to find X11R6.1 libraries for certain tests.
2352 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2353 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2354 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2355 # due to non-traditional preprocessing with the current compiler
2356 # defaults. OSF 4 can also have that compiler version, and there
2357 # seems always to have been a usable /usr/bin/cpp.
2358 NON_GNU_CPP=/usr/bin/cpp
2359 case "${canonical}" in
2360 alpha*-dec-osf[5-9]*)
2361 opsys=osf5-0 ;;
2362 esac
2365 alpha*-*-linux-gnu* )
2366 machine=alpha opsys=gnu-linux
2369 arm*-*-linux-gnu* )
2370 machine=arm opsys=gnu-linux
2373 ## Altos 3068
2374 m68*-altos-sysv* )
2375 machine=altos opsys=usg5-2
2378 ## Amdahl UTS
2379 580-amdahl-sysv* )
2380 machine=amdahl opsys=usg5-2-2
2383 ## Apollo, Domain/OS
2384 m68*-apollo-* )
2385 machine=apollo opsys=bsd4-3
2388 ## Apple Darwin / Mac OS X
2389 *-apple-darwin* )
2390 case "${canonical}" in
2391 i[3456]86-* ) machine=intel386 ;;
2392 powerpc-* ) machine=powermac ;;
2393 * ) unported=yes ;;
2394 esac
2395 opsys=darwin
2396 # Define CPP as follows to make autoconf work correctly.
2397 CPP="${CC-cc} -E -no-cpp-precomp"
2398 # Use fink packages if available.
2399 if test -d /sw/include && test -d /sw/lib; then
2400 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2401 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2402 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2406 ## AT&T 3b2, 3b5, 3b15, 3b20
2407 we32k-att-sysv* )
2408 machine=att3b opsys=usg5-2-2
2411 ## AT&T 3b1 - The Mighty Unix PC!
2412 m68*-att-sysv* )
2413 machine=7300 opsys=usg5-2-2
2416 ## Bull dpx20
2417 rs6000-bull-bosx* )
2418 machine=ibmrs6000 opsys=aix3-2
2421 ## Bull dpx2
2422 m68*-bull-sysv3* )
2423 machine=dpx2 opsys=usg5-3
2426 ## Bull sps7
2427 m68*-bull-sysv2* )
2428 machine=sps7 opsys=usg5-2
2431 ## CCI 5/32, 6/32 -- see "Tahoe".
2433 ## Celerity
2434 ## I don't know what configuration name to use for this; config.sub
2435 ## doesn't seem to know anything about it. Hey, Celerity users, get
2436 ## in touch with us!
2437 celerity-celerity-bsd* )
2438 machine=celerity opsys=bsd4-2
2441 ## Clipper
2442 ## What operating systems does this chip run that Emacs has been
2443 ## tested on?
2444 clipper-* )
2445 machine=clipper
2446 ## We'll use the catch-all code at the bottom to guess the
2447 ## operating system.
2450 ## Compaq Nonstop
2451 mips-compaq-nonstopux* )
2452 machine=nonstopux opsys=nonstopux
2455 ## Convex
2456 *-convex-bsd* | *-convex-convexos* )
2457 machine=convex opsys=bsd4-3
2458 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2459 NON_GNU_CPP="cc -E -P"
2462 ## Cubix QBx/386
2463 i[3456]86-cubix-sysv* )
2464 machine=intel386 opsys=usg5-3
2467 ## Cydra 5
2468 cydra*-cydrome-sysv* )
2469 machine=cydra5 opsys=usg5-3
2472 ## Data General AViiON Machines
2473 ## DG changed naming conventions with the release of 5.4.4.10, they
2474 ## dropped the initial 5.4 but left the intervening R. Because of the
2475 ## R this shouldn't conflict with older versions of the OS (which I
2476 ## think were named like dgux4.*). In addition, DG new AViiONs series
2477 ## uses either Motorola M88k or Intel Pentium CPUs.
2478 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2479 machine=aviion opsys=dgux4
2481 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2482 ## This name is dgux5-4-3 instead of dgux5-4r3
2483 ## to avoid a file name conflict on MSDOS.
2484 machine=aviion opsys=dgux5-4-3
2486 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2487 machine=aviion opsys=dgux5-4r2
2489 m88k-dg-dgux* )
2490 machine=aviion opsys=dgux
2493 ## Data General AViiON Intel (x86) Machines
2494 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2495 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2496 i[345]86-dg-dguxR4* )
2497 machine=aviion-intel opsys=dgux4
2500 ## DECstations
2501 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2502 machine=pmax opsys=bsd4-2
2504 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2505 machine=pmax opsys=bsd4-3
2507 mips-dec-ultrix* )
2508 machine=pmax opsys=ultrix4-3
2510 mips-dec-osf* )
2511 machine=pmax opsys=osf1
2513 mips-dec-mach_bsd4.3* )
2514 machine=pmax opsys=mach-bsd4-3
2517 ## Motorola Delta machines
2518 m68k-motorola-sysv* | m68000-motorola-sysv* )
2519 machine=delta opsys=usg5-3
2520 if test -z "`type gnucc | grep 'not found'`"
2521 then
2522 if test -s /etc/167config
2523 then CC="gnucc -m68040"
2524 else CC="gnucc -m68881"
2526 else
2527 if test -z "`type gcc | grep 'not found'`"
2528 then CC=gcc
2529 else CC=cc
2533 m88k-motorola-sysv4* )
2534 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2535 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2536 # I hope there are not other 4.0 versions for this machine
2537 # which really need usg5-4 instead.
2538 machine=delta88k opsys=usg5-4-2
2540 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2541 machine=delta88k opsys=usg5-3
2544 ## Dual machines
2545 m68*-dual-sysv* )
2546 machine=dual opsys=usg5-2
2548 m68*-dual-uniplus* )
2549 machine=dual opsys=unipl5-2
2552 ## Elxsi 6400
2553 elxsi-elxsi-sysv* )
2554 machine=elxsi opsys=usg5-2
2557 ## Encore machines
2558 ns16k-encore-bsd* )
2559 machine=ns16000 opsys=umax
2562 ## The GEC 63 - apparently, this port isn't really finished yet.
2563 # I'm sure we finished off the last of the machines, though. -- fx
2565 ## Gould Power Node and NP1
2566 pn-gould-bsd4.2* )
2567 machine=gould opsys=bsd4-2
2569 pn-gould-bsd4.3* )
2570 machine=gould opsys=bsd4-3
2572 np1-gould-bsd* )
2573 machine=gould-np1 opsys=bsd4-3
2576 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2577 ## as far as Emacs is concerned).
2578 m88k-harris-cxux* )
2579 # Build needs to be different on 7.0 and later releases
2580 case "`uname -r`" in
2581 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2582 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2583 esac
2584 NON_GNU_CPP="/lib/cpp"
2586 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2587 m68k-harris-cxux* )
2588 machine=nh3000 opsys=cxux
2590 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2591 powerpc-harris-powerunix )
2592 machine=nh6000 opsys=powerunix
2593 NON_GNU_CPP="cc -Xo -E -P"
2595 ## SR2001/SR2201 running HI-UX/MPP
2596 hppa1.1-hitachi-hiuxmpp* )
2597 machine=sr2k opsys=hiuxmpp
2599 hppa1.1-hitachi-hiuxwe2* )
2600 machine=sr2k opsys=hiuxwe2
2602 ## Honeywell XPS100
2603 xps*-honeywell-sysv* )
2604 machine=xps100 opsys=usg5-2
2607 ## HP 9000 series 200 or 300
2608 m68*-hp-bsd* )
2609 machine=hp9000s300 opsys=bsd4-3
2611 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2612 m68*-hp-hpux* )
2613 case "`uname -r`" in
2614 ## Someone's system reports A.B8.05 for this.
2615 ## I wonder what other possibilities there are.
2616 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2617 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2618 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2619 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2620 *) machine=hp9000s300 opsys=hpux ;;
2621 esac
2624 ## HP 9000 series 700 and 800, running HP/UX
2625 hppa*-hp-hpux7* )
2626 machine=hp800 opsys=hpux
2628 hppa*-hp-hpux8* )
2629 machine=hp800 opsys=hpux8
2631 hppa*-hp-hpux9shr* )
2632 machine=hp800 opsys=hpux9shr
2634 hppa*-hp-hpux9* )
2635 machine=hp800 opsys=hpux9
2637 hppa*-hp-hpux10.2* )
2638 machine=hp800 opsys=hpux10-20
2640 hppa*-hp-hpux10* )
2641 machine=hp800 opsys=hpux10
2643 hppa*-hp-hpux1[1-9]* )
2644 machine=hp800 opsys=hpux11
2645 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2648 hppa*-*-linux-gnu* )
2649 machine=hp800 opsys=gnu-linux
2652 ## HP 9000 series 700 and 800, running HP/UX
2653 hppa*-hp-hpux* )
2654 ## Cross-compilation? Nah!
2655 case "`uname -r`" in
2656 ## Someone's system reports A.B8.05 for this.
2657 ## I wonder what other possibilities there are.
2658 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2659 *.08.* ) machine=hp800 opsys=hpux8 ;;
2660 *.09.* ) machine=hp800 opsys=hpux9 ;;
2661 *) machine=hp800 opsys=hpux10 ;;
2662 esac
2664 hppa*-*-nextstep* )
2665 machine=hp800 opsys=nextstep
2668 ## Orion machines
2669 orion-orion-bsd* )
2670 machine=orion opsys=bsd4-2
2672 clipper-orion-bsd* )
2673 machine=orion105 opsys=bsd4-2
2676 ## IBM machines
2677 i[3456]86-ibm-aix1.1* )
2678 machine=ibmps2-aix opsys=usg5-2-2
2680 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2681 machine=ibmps2-aix opsys=usg5-3
2683 i370-ibm-aix*)
2684 machine=ibm370aix opsys=usg5-3
2686 s390-*-linux-gnu* )
2687 machine=ibms390 opsys=gnu-linux
2689 s390x-*-linux-gnu* )
2690 machine=ibms390x opsys=gnu-linux
2692 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2693 machine=ibmrs6000 opsys=aix3-1
2695 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2696 machine=ibmrs6000 opsys=aix3-2-5
2698 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2699 machine=ibmrs6000 opsys=aix4-1
2701 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2702 machine=ibmrs6000 opsys=aix4-2
2704 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2705 machine=ibmrs6000 opsys=aix4-2
2707 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2708 machine=ibmrs6000 opsys=aix4-2
2710 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2711 machine=ibmrs6000 opsys=aix4
2713 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2714 machine=ibmrs6000 opsys=aix4-1
2716 rs6000-ibm-aix* | powerpc-ibm-aix* )
2717 machine=ibmrs6000 opsys=aix3-2
2719 romp-ibm-bsd4.3* )
2720 machine=ibmrt opsys=bsd4-3
2722 romp-ibm-bsd4.2* )
2723 machine=ibmrt opsys=bsd4-2
2725 romp-ibm-aos4.3* )
2726 machine=ibmrt opsys=bsd4-3
2728 romp-ibm-aos4.2* )
2729 machine=ibmrt opsys=bsd4-2
2731 romp-ibm-aos* )
2732 machine=ibmrt opsys=bsd4-3
2734 romp-ibm-bsd* )
2735 machine=ibmrt opsys=bsd4-3
2737 romp-ibm-aix* )
2738 machine=ibmrt-aix opsys=usg5-2-2
2741 ## Integrated Solutions `Optimum V'
2742 m68*-isi-bsd4.2* )
2743 machine=isi-ov opsys=bsd4-2
2745 m68*-isi-bsd4.3* )
2746 machine=isi-ov opsys=bsd4-3
2749 ## Intel 386 machines where we do care about the manufacturer
2750 i[3456]86-intsys-sysv* )
2751 machine=is386 opsys=usg5-2-2
2754 ## Prime EXL
2755 i[3456]86-prime-sysv* )
2756 machine=i386 opsys=usg5-3
2759 ## Sequent Symmetry running Dynix
2760 i[3456]86-sequent-bsd* )
2761 machine=symmetry opsys=bsd4-3
2764 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2765 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2766 machine=sequent-ptx opsys=ptx4
2767 NON_GNU_CPP=/lib/cpp
2770 ## Sequent Symmetry running DYNIX/ptx
2771 ## Use the old cpp rather than the newer ANSI one.
2772 i[3456]86-sequent-ptx* )
2773 machine=sequent-ptx opsys=ptx
2774 NON_GNU_CPP="/lib/cpp"
2777 ## ncr machine running svr4.3.
2778 i[3456]86-ncr-sysv4.3 )
2779 machine=ncr386 opsys=usg5-4-3
2782 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2783 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2784 i[3456]86-ncr-sysv* )
2785 machine=ncr386 opsys=usg5-4-2
2788 ## Intel Paragon OSF/1
2789 i860-intel-osf1* )
2790 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2793 ## Intel 860
2794 i860-*-sysv4* )
2795 machine=i860 opsys=usg5-4
2796 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2797 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2800 ## Macintosh PowerPC
2801 powerpc*-*-linux-gnu* )
2802 machine=macppc opsys=gnu-linux
2805 ## Masscomp machines
2806 m68*-masscomp-rtu* )
2807 machine=masscomp opsys=rtu
2810 ## Megatest machines
2811 m68*-megatest-bsd* )
2812 machine=mega68 opsys=bsd4-2
2815 ## Workstations sold by MIPS
2816 ## This is not necessarily all workstations using the MIPS processor -
2817 ## Irises are produced by SGI, and DECstations by DEC.
2819 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2820 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2821 ## it gives for choosing between the alternatives seems to be "Use
2822 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2823 ## the BSD world." I'll assume that these are instructions for
2824 ## handling two odd situations, and that every other situation
2825 ## should use mips.h and usg5-2-2, they being listed first.
2826 mips-mips-usg* )
2827 machine=mips4
2828 ## Fall through to the general code at the bottom to decide on the OS.
2830 mips-mips-riscos4* )
2831 machine=mips4 opsys=bsd4-3
2832 NON_GNU_CC="cc -systype bsd43"
2833 NON_GNU_CPP="cc -systype bsd43 -E"
2835 mips-mips-riscos5* )
2836 machine=mips4 opsys=riscos5
2837 NON_GNU_CC="cc -systype bsd43"
2838 NON_GNU_CPP="cc -systype bsd43 -E"
2840 mips-mips-bsd* )
2841 machine=mips opsys=bsd4-3
2843 mips-mips-* )
2844 machine=mips opsys=usg5-2-2
2847 ## NeXT
2848 m68*-next-* | m68k-*-nextstep* )
2849 machine=m68k opsys=nextstep
2852 ## The complete machine from National Semiconductor
2853 ns32k-ns-genix* )
2854 machine=ns32000 opsys=usg5-2
2857 ## NCR machines
2858 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2859 machine=tower32 opsys=usg5-2-2
2861 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2862 machine=tower32v3 opsys=usg5-3
2865 ## NEC EWS4800
2866 mips-nec-sysv4*)
2867 machine=ews4800 opsys=ux4800
2870 ## Nixdorf Targon 31
2871 m68*-nixdorf-sysv* )
2872 machine=targon31 opsys=usg5-2-2
2875 ## Nu (TI or LMI)
2876 m68*-nu-sysv* )
2877 machine=nu opsys=usg5-2
2880 ## Plexus
2881 m68*-plexus-sysv* )
2882 machine=plexus opsys=usg5-2
2885 ## Pyramid machines
2886 ## I don't really have any idea what sort of processor the Pyramid has,
2887 ## so I'm assuming it is its own architecture.
2888 pyramid-pyramid-bsd* )
2889 machine=pyramid opsys=bsd4-2
2892 ## Sequent Balance
2893 ns32k-sequent-bsd4.2* )
2894 machine=sequent opsys=bsd4-2
2896 ns32k-sequent-bsd4.3* )
2897 machine=sequent opsys=bsd4-3
2900 ## Siemens Nixdorf
2901 mips-siemens-sysv* | mips-sni-sysv*)
2902 machine=mips-siemens opsys=usg5-4
2903 NON_GNU_CC=/usr/ccs/bin/cc
2904 NON_GNU_CPP=/usr/ccs/lib/cpp
2907 ## Silicon Graphics machines
2908 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2909 m68*-sgi-iris3.5* )
2910 machine=irist opsys=iris3-5
2912 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2913 machine=irist opsys=iris3-6
2915 ## Iris 4D
2916 mips-sgi-irix3* )
2917 machine=iris4d opsys=irix3-3
2919 mips-sgi-irix4* )
2920 machine=iris4d opsys=irix4-0
2922 mips-sgi-irix6.5 )
2923 machine=iris4d opsys=irix6-5
2924 # Without defining _LANGUAGE_C, things get masked out in the headers
2925 # so that, for instance, grepping for `free' in stdlib.h fails and
2926 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2927 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2928 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2930 mips-sgi-irix6* )
2931 machine=iris4d opsys=irix6-0
2932 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2933 # but presumably it does no harm.
2934 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2935 # -32 probably isn't necessary in later v.6s -- anyone know which?
2936 NON_GCC_TEST_OPTIONS=-32
2938 mips-sgi-irix5.[01]* )
2939 machine=iris4d opsys=irix5-0
2941 mips-sgi-irix5* | mips-sgi-irix* )
2942 machine=iris4d opsys=irix5-2
2945 ## SONY machines
2946 m68*-sony-bsd4.2* )
2947 machine=news opsys=bsd4-2
2949 m68*-sony-bsd4.3* )
2950 machine=news opsys=bsd4-3
2952 m68*-sony-newsos3* | m68*-sony-news3*)
2953 machine=news opsys=bsd4-3
2955 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2956 machine=news-risc opsys=bsd4-3
2958 mips-sony-newsos6* )
2959 machine=news-r6 opsys=newsos6
2961 mips-sony-news* )
2962 machine=news-risc opsys=newsos5
2965 ## Stride
2966 m68*-stride-sysv* )
2967 machine=stride opsys=usg5-2
2970 ## Suns
2971 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2972 machine=sparc opsys=gnu-linux
2975 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2976 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2977 | rs6000-*-solaris2*)
2978 case "${canonical}" in
2979 m68*-sunos1* ) machine=sun1 ;;
2980 m68*-sunos2* ) machine=sun2 ;;
2981 m68* ) machine=sun3 ;;
2982 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2983 i[3456]86-*-* ) machine=intel386 ;;
2984 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2985 powerpcle* ) machine=powerpcle ;;
2986 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2987 sparc* ) machine=sparc ;;
2988 * ) unported=yes ;;
2989 esac
2990 case "${canonical}" in
2991 ## The Sun386 didn't get past 4.0.
2992 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2993 *-sunos4.0* ) opsys=sunos4-0 ;;
2994 *-sunos4.1.[3-9]*noshare )
2995 ## This name is sunos413 instead of sunos4-1-3
2996 ## to avoid a file name conflict on MSDOS.
2997 opsys=sunos413
2998 NON_GNU_CPP=/usr/lib/cpp
2999 NON_GCC_TEST_OPTIONS=-Bstatic
3000 GCC_TEST_OPTIONS=-static
3002 *-sunos4.1.[3-9]* | *-sunos4shr*)
3003 opsys=sunos4shr
3004 NON_GNU_CPP=/usr/lib/cpp
3006 *-sunos4* | *-sunos )
3007 opsys=sunos4-1
3008 NON_GCC_TEST_OPTIONS=-Bstatic
3009 GCC_TEST_OPTIONS=-static
3011 *-sunos5.3* | *-solaris2.3* )
3012 opsys=sol2-3
3013 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 *-sunos5.4* | *-solaris2.4* )
3016 opsys=sol2-4
3017 NON_GNU_CPP=/usr/ccs/lib/cpp
3018 RANLIB="ar -ts"
3020 *-sunos5.5* | *-solaris2.5* )
3021 opsys=sol2-5
3022 NON_GNU_CPP=/usr/ccs/lib/cpp
3023 RANLIB="ar -ts"
3025 *-sunos5.6* | *-solaris2.6* )
3026 opsys=sol2-6
3027 NON_GNU_CPP=/usr/ccs/lib/cpp
3028 RANLIB="ar -ts"
3030 *-sunos5* | *-solaris* )
3031 opsys=sol2-6
3032 emacs_check_sunpro_c=yes
3033 NON_GNU_CPP=/usr/ccs/lib/cpp
3035 * ) opsys=bsd4-2 ;;
3036 esac
3037 ## Watch out for a compiler that we know will not work.
3038 case "${canonical}" in
3039 *-solaris* | *-sunos5* )
3040 if [ "x$CC" = x/usr/ucb/cc ]; then
3041 ## /usr/ucb/cc doesn't work;
3042 ## we should find some other compiler that does work.
3043 unset CC
3046 *) ;;
3047 esac
3049 sparc-*-nextstep* )
3050 machine=sparc opsys=nextstep
3053 ## Tadpole 68k
3054 m68*-tadpole-sysv* )
3055 machine=tad68k opsys=usg5-3
3058 ## Tahoe machines
3059 tahoe-tahoe-bsd4.2* )
3060 machine=tahoe opsys=bsd4-2
3062 tahoe-tahoe-bsd4.3* )
3063 machine=tahoe opsys=bsd4-3
3066 ## Tandem Integrity S2
3067 mips-tandem-sysv* )
3068 machine=tandem-s2 opsys=usg5-3
3071 ## Tektronix XD88
3072 m88k-tektronix-sysv3* )
3073 machine=tekxd88 opsys=usg5-3
3076 ## Tektronix 16000 box (6130?)
3077 ns16k-tektronix-bsd* )
3078 machine=ns16000 opsys=bsd4-2
3080 ## Tektronix 4300
3081 ## src/m/tek4300.h hints that this is a m68k machine.
3082 m68*-tektronix-bsd* )
3083 machine=tek4300 opsys=bsd4-3
3086 ## Titan P2 or P3
3087 ## We seem to have lost the machine-description file titan.h!
3088 titan-titan-sysv* )
3089 machine=titan opsys=usg5-3
3092 ## Ustation E30 (SS5E)
3093 m68*-unisys-uniplus* )
3094 machine=ustation opsystem=unipl5-2
3097 ## Vaxen.
3098 vax-dec-* )
3099 machine=vax
3100 case "${canonical}" in
3101 *-bsd4.1* ) opsys=bsd4-1 ;;
3102 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3103 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3104 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3105 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3106 *-vms* ) opsys=vms ;;
3107 * ) unported=yes
3108 esac
3111 ## Whitechapel MG1
3112 ns16k-whitechapel-* )
3113 machine=mg1
3114 ## We don't know what sort of OS runs on these; we'll let the
3115 ## operating system guessing code below try.
3118 ## Wicat
3119 m68*-wicat-sysv* )
3120 machine=wicat opsys=usg5-2
3123 ## IA-64
3124 ia64*-*-linux* )
3125 machine=ia64 opsys=gnu-linux
3128 ## Intel 386 machines where we don't care about the manufacturer
3129 i[3456]86-*-* )
3130 machine=intel386
3131 case "${canonical}" in
3132 *-cygwin ) opsys=cygwin ;;
3133 *-darwin* ) opsys=darwin
3134 CPP="${CC-cc} -E -no-cpp-precomp"
3136 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3137 *-isc2.2* ) opsys=isc2-2 ;;
3138 *-isc4.0* ) opsys=isc4-0 ;;
3139 *-isc4.* ) opsys=isc4-1
3140 GCC_TEST_OPTIONS=-posix
3141 NON_GCC_TEST_OPTIONS=-Xp
3143 *-isc* ) opsys=isc3-0 ;;
3144 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3145 *-esix* ) opsys=esix ;;
3146 *-xenix* ) opsys=xenix ;;
3147 *-linux-gnu* ) opsys=gnu-linux ;;
3148 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3149 *-sco3.2v5* ) opsys=sco5
3150 NON_GNU_CPP=/lib/cpp
3151 # Prevent -belf from being passed to $CPP.
3152 # /lib/cpp does not accept it.
3153 OVERRIDE_CPPFLAGS=" "
3155 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3156 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3157 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3158 *-386bsd* ) opsys=386bsd ;;
3159 *-nextstep* ) opsys=nextstep ;;
3160 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3161 esac
3164 ## m68k Linux-based GNU system
3165 m68k-*-linux-gnu* )
3166 machine=m68k opsys=gnu-linux
3169 ## Mips Linux-based GNU system
3170 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3171 machine=mips opsys=gnu-linux
3174 ## UXP/DS
3175 sparc-fujitsu-sysv4* )
3176 machine=sparc opsys=uxpds
3177 NON_GNU_CPP=/usr/ccs/lib/cpp
3178 RANLIB="ar -ts"
3181 ## UXP/V
3182 f301-fujitsu-uxpv4.1)
3183 machine=f301 opsys=uxpv
3186 ## AMD x86-64 Linux-based GNU system
3187 x86_64-*-linux-gnu* )
3188 machine=amdx86-64 opsys=gnu-linux
3191 ## Tensilica Xtensa Linux-based GNU system
3192 xtensa-*-linux-gnu* )
3193 machine=xtensa opsys=gnu-linux
3197 unported=yes
3199 esac
3201 ### If the code above didn't choose an operating system, just choose
3202 ### an operating system based on the configuration name. You really
3203 ### only want to use this when you have no idea what the right
3204 ### operating system is; if you know what operating systems a machine
3205 ### runs, it's cleaner to make it explicit in the case statement
3206 ### above.
3207 if test x"${opsys}" = x; then
3208 case "${canonical}" in
3209 *-gnu* ) opsys=gnu ;;
3210 *-bsd4.[01] ) opsys=bsd4-1 ;;
3211 *-bsd4.2 ) opsys=bsd4-2 ;;
3212 *-bsd4.3 ) opsys=bsd4-3 ;;
3213 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3214 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3215 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3216 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3217 *-sysv4.2uw* ) opsys=unixware ;;
3218 *-sysv5uw* ) opsys=unixware ;;
3219 *-sysv5OpenUNIX* ) opsys=unixware ;;
3220 *-sysv4.1* | *-sysvr4.1* )
3221 NON_GNU_CPP=/usr/lib/cpp
3222 opsys=usg5-4 ;;
3223 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3224 if [ x$NON_GNU_CPP = x ]; then
3225 if [ -f /usr/ccs/lib/cpp ]; then
3226 NON_GNU_CPP=/usr/ccs/lib/cpp
3227 else
3228 NON_GNU_CPP=/lib/cpp
3231 opsys=usg5-4-2 ;;
3232 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3234 unported=yes
3236 esac
3241 if test $unported = yes; then
3242 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3243 Check \`etc/MACHINES' for recognized configuration names." >&5
3244 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3245 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3246 { (exit 1); exit 1; }; }
3249 machfile="m/${machine}.h"
3250 opsysfile="s/${opsys}.h"
3253 #### Choose a compiler.
3254 test -n "$CC" && cc_specified=yes
3256 # Save the value of CFLAGS that the user specified.
3257 SPECIFIED_CFLAGS="$CFLAGS"
3259 case ${with_gcc} in
3260 "yes" ) CC="gcc" GCC=yes ;;
3261 "no" ) : ${CC=cc} ;;
3263 esac
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 { echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6; }
3301 else
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 echo "${ECHO_T}$ac_ct_CC" >&6; }
3341 else
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3361 else
3362 CC="$ac_cv_prog_CC"
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_CC+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_CC="${ac_tool_prefix}cc"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396 { echo "$as_me:$LINENO: result: $CC" >&5
3397 echo "${ECHO_T}$CC" >&6; }
3398 else
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3406 if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 ac_prog_rejected=no
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected=yes
3427 continue
3429 ac_cv_prog_CC="cc"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3433 done
3434 done
3435 IFS=$as_save_IFS
3437 if test $ac_prog_rejected = yes; then
3438 # We found a bogon in the path, so make sure we never use it.
3439 set dummy $ac_cv_prog_CC
3440 shift
3441 if test $# != 0; then
3442 # We chose a different compiler from the bogus one.
3443 # However, it has the same basename, so the bogon will be chosen
3444 # first if we set CC to just the basename; use the full file name.
3445 shift
3446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453 { echo "$as_me:$LINENO: result: $CC" >&5
3454 echo "${ECHO_T}$CC" >&6; }
3455 else
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl.exe
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { echo "$as_me:$LINENO: result: $CC" >&5
3496 echo "${ECHO_T}$CC" >&6; }
3497 else
3498 { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3503 test -n "$CC" && break
3504 done
3506 if test -z "$CC"; then
3507 ac_ct_CC=$CC
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC="$ac_prog"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6; }
3541 else
3542 { echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6; }
3547 test -n "$ac_ct_CC" && break
3548 done
3550 if test "x$ac_ct_CC" = x; then
3551 CC=""
3552 else
3553 case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3556 whose name does not start with the host triplet. If you think this
3557 configuration is useful to you, please write to autoconf@gnu.org." >&5
3558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 CC=$ac_ct_CC
3570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Provide some information about the compiler.
3577 echo "$as_me:$LINENO: checking for C compiler version" >&5
3578 ac_compiler=`set X $ac_compile; echo $2`
3579 { (ac_try="$ac_compiler --version >&5"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler --version >&5") 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3589 { (ac_try="$ac_compiler -v >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compiler -v >&5") 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (ac_try="$ac_compiler -V >&5"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compiler -V >&5") 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3618 main ()
3622 return 0;
3624 _ACEOF
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3629 # of exeext.
3630 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3631 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634 # List of possible output files, starting from the most likely.
3635 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3636 # only as a last resort. b.out is created by i960 compilers.
3637 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3639 # The IRIX 6 linker writes into existing files which may not be
3640 # executable, retaining their permissions. Remove them first so a
3641 # subsequent execution test works.
3642 ac_rmfiles=
3643 for ac_file in $ac_files
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648 esac
3649 done
3650 rm -f $ac_rmfiles
3652 if { (ac_try="$ac_link_default"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_link_default") 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; then
3662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3665 # so that the user can short-circuit this test for compilers unknown to
3666 # Autoconf.
3667 for ac_file in $ac_files ''
3669 test -f "$ac_file" || continue
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3673 [ab].out )
3674 # We found the default executable, but exeext='' is most
3675 # certainly right.
3676 break;;
3677 *.* )
3678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3679 then :; else
3680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 # We set ac_cv_exeext here because the later test for it is not
3683 # safe: cross compilers may not add the suffix if given an `-o'
3684 # argument, so we may need to know it at that point already.
3685 # Even if this section looks crufty: it has the advantage of
3686 # actually working.
3687 break;;
3689 break;;
3690 esac
3691 done
3692 test "$ac_cv_exeext" = no && ac_cv_exeext=
3694 else
3695 ac_file=''
3698 { echo "$as_me:$LINENO: result: $ac_file" >&5
3699 echo "${ECHO_T}$ac_file" >&6; }
3700 if test -z "$ac_file"; then
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3705 See \`config.log' for more details." >&5
3706 echo "$as_me: error: C compiler cannot create executables
3707 See \`config.log' for more details." >&2;}
3708 { (exit 77); exit 77; }; }
3711 ac_exeext=$ac_cv_exeext
3713 # Check that the compiler produces executables we can run. If not, either
3714 # the compiler is broken, or we cross compile.
3715 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3718 # If not cross compiling, check that we can run a simple program.
3719 if test "$cross_compiling" != yes; then
3720 if { ac_try='./$ac_file'
3721 { (case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 cross_compiling=no
3731 else
3732 if test "$cross_compiling" = maybe; then
3733 cross_compiling=yes
3734 else
3735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3736 If you meant to cross compile, use \`--host'.
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3745 { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 # Check that the compiler produces executables we can run. If not, either
3751 # the compiler is broken, or we cross compile.
3752 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3754 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3755 echo "${ECHO_T}$cross_compiling" >&6; }
3757 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3759 if { (ac_try="$ac_link"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_link") 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3771 # work properly (i.e., refer to `conftest.exe'), while it won't with
3772 # `rm'.
3773 for ac_file in conftest.exe conftest conftest.*; do
3774 test -f "$ac_file" || continue
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 break;;
3779 * ) break;;
3780 esac
3781 done
3782 else
3783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." >&5
3785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3786 See \`config.log' for more details." >&2;}
3787 { (exit 1); exit 1; }; }
3790 rm -f conftest$ac_cv_exeext
3791 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3792 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3794 rm -f conftest.$ac_ext
3795 EXEEXT=$ac_cv_exeext
3796 ac_exeext=$EXEEXT
3797 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3799 if test "${ac_cv_objext+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3810 main ()
3814 return 0;
3816 _ACEOF
3817 rm -f conftest.o conftest.obj
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; then
3828 for ac_file in conftest.o conftest.obj conftest.*; do
3829 test -f "$ac_file" || continue;
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833 break;;
3834 esac
3835 done
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3841 See \`config.log' for more details." >&5
3842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3843 See \`config.log' for more details." >&2;}
3844 { (exit 1); exit 1; }; }
3847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3850 echo "${ECHO_T}$ac_cv_objext" >&6; }
3851 OBJEXT=$ac_cv_objext
3852 ac_objext=$OBJEXT
3853 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3866 main ()
3868 #ifndef __GNUC__
3869 choke me
3870 #endif
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_compiler_gnu=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 ac_compiler_gnu=no
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3906 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3907 GCC=`test $ac_compiler_gnu = yes && echo yes`
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3911 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3912 if test "${ac_cv_prog_cc_g+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3917 ac_cv_prog_cc_g=no
3918 CFLAGS="-g"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3927 main ()
3931 return 0;
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_prog_cc_g=yes
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 CFLAGS=""
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3965 main ()
3969 return 0;
3971 _ACEOF
3972 rm -f conftest.$ac_objext
3973 if { (ac_try="$ac_compile"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_compile") 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && {
3986 test -z "$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3988 } && test -s conftest.$ac_objext; then
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3995 CFLAGS="-g"
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_prog_cc_g=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4047 if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049 elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4051 CFLAGS="-g -O2"
4052 else
4053 CFLAGS="-g"
4055 else
4056 if test "$GCC" = yes; then
4057 CFLAGS="-O2"
4058 else
4059 CFLAGS=
4062 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4063 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_cc_c89+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 ac_cv_prog_cc_c89=no
4068 ac_save_CC=$CC
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <stdarg.h>
4076 #include <stdio.h>
4077 #include <sys/types.h>
4078 #include <sys/stat.h>
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4083 char **p;
4084 int i;
4086 return p[i];
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4090 char *s;
4091 va_list v;
4092 va_start (v,p);
4093 s = g (p, va_arg (v,int));
4094 va_end (v);
4095 return s;
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4109 #define FOO(x) 'x'
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4116 int argc;
4117 char **argv;
4119 main ()
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4123 return 0;
4125 _ACEOF
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_cv_prog_cc_c89=$ac_arg
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x$ac_cv_prog_cc_c89" != "xno" && break
4157 done
4158 rm -f conftest.$ac_ext
4159 CC=$ac_save_CC
4162 # AC_CACHE_VAL
4163 case "x$ac_cv_prog_cc_c89" in
4165 { echo "$as_me:$LINENO: result: none needed" >&5
4166 echo "${ECHO_T}none needed" >&6; } ;;
4167 xno)
4168 { echo "$as_me:$LINENO: result: unsupported" >&5
4169 echo "${ECHO_T}unsupported" >&6; } ;;
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4174 esac
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4192 test x"$CPP" = x; then
4193 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4194 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4196 if test "${emacs_cv_sunpro_c+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4207 main ()
4209 #ifndef __SUNPRO_C
4210 fail;
4211 #endif
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (ac_try="$ac_link"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest$ac_exeext &&
4234 $as_test_x conftest$ac_exeext; then
4235 emacs_cv_sunpro_c=yes
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 emacs_cv_sunpro_c=no
4243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244 conftest$ac_exeext conftest.$ac_ext
4247 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4248 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4250 if test x"$emacs_cv_sunpro_c" = xyes; then
4251 NON_GNU_CPP="$CC -E -Xs"
4255 #### Some systems specify a CPP to use unless we are using GCC.
4256 #### Now that we know whether we are using GCC, we can decide whether
4257 #### to use that one.
4258 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4259 then
4260 CPP="$NON_GNU_CPP"
4263 #### Some systems specify a CC to use unless we are using GCC.
4264 #### Now that we know whether we are using GCC, we can decide whether
4265 #### to use that one.
4266 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4267 test x$cc_specified != xyes
4268 then
4269 CC="$NON_GNU_CC"
4272 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4273 then
4274 CC="$CC $GCC_TEST_OPTIONS"
4277 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4278 then
4279 CC="$CC $NON_GCC_TEST_OPTIONS"
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4291 CPP=
4293 if test -z "$CPP"; then
4294 if test "${ac_cv_prog_CPP+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 # Double quotes because CPP needs to be expanded
4298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4300 ac_preproc_ok=false
4301 for ac_c_preproc_warn_flag in '' yes
4303 # Use a header file that comes with gcc, so configuring glibc
4304 # with a fresh cross-compiler works.
4305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 # <limits.h> exists even on freestanding compilers.
4307 # On the NeXT, cc -E runs the code through the compiler's parser,
4308 # not just through cpp. "Syntax error" is here to catch this case.
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320 Syntax error
4321 _ACEOF
4322 if { (ac_try="$ac_cpp conftest.$ac_ext"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 }; then
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 # Broken: fails on valid input.
4344 continue
4347 rm -f conftest.err conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <ac_nonexistent.h>
4358 _ACEOF
4359 if { (ac_try="$ac_cpp conftest.$ac_ext"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev/null && {
4372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 }; then
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4386 rm -f conftest.err conftest.$ac_ext
4388 done
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then
4392 break
4395 done
4396 ac_cv_prog_CPP=$CPP
4399 CPP=$ac_cv_prog_CPP
4400 else
4401 ac_cv_prog_CPP=$CPP
4403 { echo "$as_me:$LINENO: result: $CPP" >&5
4404 echo "${ECHO_T}$CPP" >&6; }
4405 ac_preproc_ok=false
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4442 }; then
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 # Broken: fails on valid input.
4449 continue
4452 rm -f conftest.err conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <ac_nonexistent.h>
4463 _ACEOF
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev/null && {
4477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 }; then
4480 # Broken: success on invalid input.
4481 continue
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Passes both tests.
4487 ac_preproc_ok=:
4488 break
4491 rm -f conftest.err conftest.$ac_ext
4493 done
4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495 rm -f conftest.err conftest.$ac_ext
4496 if $ac_preproc_ok; then
4498 else
4499 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log' for more details." >&5
4501 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4502 See \`config.log' for more details." >&2;}
4503 { (exit 1); exit 1; }; }
4506 ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4514 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_GREP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 # Extract the first word of "grep ggrep" to use in msg output
4519 if test -z "$GREP"; then
4520 set dummy grep ggrep; ac_prog_name=$2
4521 if test "${ac_cv_path_GREP+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4541 ac_count=0
4542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4543 while :
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 ac_count=`expr $ac_count + 1`
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4564 $ac_path_GREP_found && break 3
4565 done
4566 done
4568 done
4569 IFS=$as_save_IFS
4574 GREP="$ac_cv_path_GREP"
4575 if test -z "$GREP"; then
4576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4578 { (exit 1); exit 1; }; }
4581 else
4582 ac_cv_path_GREP=$GREP
4587 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4588 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4589 GREP="$ac_cv_path_GREP"
4592 { echo "$as_me:$LINENO: checking for egrep" >&5
4593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4594 if test "${ac_cv_path_EGREP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4598 then ac_cv_path_EGREP="$GREP -E"
4599 else
4600 # Extract the first word of "egrep" to use in msg output
4601 if test -z "$EGREP"; then
4602 set dummy egrep; ac_prog_name=$2
4603 if test "${ac_cv_path_EGREP+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 ac_path_EGREP_found=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_prog in egrep; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617 # Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619 case `"$ac_path_EGREP" --version 2>&1` in
4620 *GNU*)
4621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4623 ac_count=0
4624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4625 while :
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633 ac_count=`expr $ac_count + 1`
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP="$ac_path_EGREP"
4637 ac_path_EGREP_max=$ac_count
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4641 done
4642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 esac
4646 $ac_path_EGREP_found && break 3
4647 done
4648 done
4650 done
4651 IFS=$as_save_IFS
4656 EGREP="$ac_cv_path_EGREP"
4657 if test -z "$EGREP"; then
4658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4660 { (exit 1); exit 1; }; }
4663 else
4664 ac_cv_path_EGREP=$EGREP
4670 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4671 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4672 EGREP="$ac_cv_path_EGREP"
4676 { echo "$as_me:$LINENO: checking for AIX" >&5
4677 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #ifdef _AIX
4686 #endif
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "yes" >/dev/null 2>&1; then
4691 { echo "$as_me:$LINENO: result: yes" >&5
4692 echo "${ECHO_T}yes" >&6; }
4693 cat >>confdefs.h <<\_ACEOF
4694 #define _ALL_SOURCE 1
4695 _ACEOF
4697 else
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4701 rm -f conftest*
4705 cat >>confdefs.h <<\_ACEOF
4706 #define _GNU_SOURCE 1
4707 _ACEOF
4711 ### Use -Wno-pointer-sign if the compiler supports it
4712 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4713 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4714 SAVE_CFLAGS="$CFLAGS"
4715 CFLAGS="$CFLAGS -Wno-pointer-sign"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (ac_try="$ac_compile"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_compile") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest.$ac_objext; then
4748 has_option=yes
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 has_option=no
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 if test $has_option = yes; then
4758 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4760 { echo "$as_me:$LINENO: result: $has_option" >&5
4761 echo "${ECHO_T}$has_option" >&6; }
4762 CFLAGS="$SAVE_CFLAGS"
4763 unset has_option
4764 unset SAVE_CFLAGS
4766 #### Some other nice autoconf tests.
4768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4770 LN_S=$as_ln_s
4771 if test "$LN_S" = "ln -s"; then
4772 { echo "$as_me:$LINENO: result: yes" >&5
4773 echo "${ECHO_T}yes" >&6; }
4774 else
4775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4776 echo "${ECHO_T}no, using $LN_S" >&6; }
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4786 # On Suns, sometimes $CPP names a directory.
4787 if test -n "$CPP" && test -d "$CPP"; then
4788 CPP=
4790 if test -z "$CPP"; then
4791 if test "${ac_cv_prog_CPP+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 # Double quotes because CPP needs to be expanded
4795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797 ac_preproc_ok=false
4798 for ac_c_preproc_warn_flag in '' yes
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 # <limits.h> exists even on freestanding compilers.
4804 # On the NeXT, cc -E runs the code through the compiler's parser,
4805 # not just through cpp. "Syntax error" is here to catch this case.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null && {
4832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 }; then
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Broken: fails on valid input.
4841 continue
4844 rm -f conftest.err conftest.$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null && {
4869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 }; then
4872 # Broken: success on invalid input.
4873 continue
4874 else
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 # Passes both tests.
4879 ac_preproc_ok=:
4880 break
4883 rm -f conftest.err conftest.$ac_ext
4885 done
4886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4887 rm -f conftest.err conftest.$ac_ext
4888 if $ac_preproc_ok; then
4889 break
4892 done
4893 ac_cv_prog_CPP=$CPP
4896 CPP=$ac_cv_prog_CPP
4897 else
4898 ac_cv_prog_CPP=$CPP
4900 { echo "$as_me:$LINENO: result: $CPP" >&5
4901 echo "${ECHO_T}$CPP" >&6; }
4902 ac_preproc_ok=false
4903 for ac_c_preproc_warn_flag in '' yes
4905 # Use a header file that comes with gcc, so configuring glibc
4906 # with a fresh cross-compiler works.
4907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908 # <limits.h> exists even on freestanding compilers.
4909 # On the NeXT, cc -E runs the code through the compiler's parser,
4910 # not just through cpp. "Syntax error" is here to catch this case.
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #ifdef __STDC__
4918 # include <limits.h>
4919 #else
4920 # include <assert.h>
4921 #endif
4922 Syntax error
4923 _ACEOF
4924 if { (ac_try="$ac_cpp conftest.$ac_ext"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 }; then
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Broken: fails on valid input.
4946 continue
4949 rm -f conftest.err conftest.$ac_ext
4951 # OK, works on sane cases. Now check whether nonexistent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4960 _ACEOF
4961 if { (ac_try="$ac_cpp conftest.$ac_ext"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null && {
4974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 }; then
4977 # Broken: success on invalid input.
4978 continue
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4988 rm -f conftest.err conftest.$ac_ext
4990 done
4991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992 rm -f conftest.err conftest.$ac_ext
4993 if $ac_preproc_ok; then
4995 else
4996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 # Find a good install program. We prefer a C program (faster),
5010 # so one script is as good as another. But avoid the broken or
5011 # incompatible versions:
5012 # SysV /etc/install, /usr/sbin/install
5013 # SunOS /usr/etc/install
5014 # IRIX /sbin/install
5015 # AIX /bin/install
5016 # AmigaOS /C/install, which installs bootblocks on floppy discs
5017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5020 # OS/2's system install, which has a completely different semantic
5021 # ./install, which can be erroneously created by make from ./install.sh.
5022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5024 if test -z "$INSTALL"; then
5025 if test "${ac_cv_path_install+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 # Account for people who put trailing slashes in PATH elements.
5034 case $as_dir/ in
5035 ./ | .// | /cC/* | \
5036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5038 /usr/ucb/* ) ;;
5040 # OSF1 and SCO ODT 3.0 have their own names for install.
5041 # Don't use installbsd from OSF since it installs stuff as root
5042 # by default.
5043 for ac_prog in ginstall scoinst install; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5046 if test $ac_prog = install &&
5047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5048 # AIX install. It has an incompatible calling convention.
5050 elif test $ac_prog = install &&
5051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # program-specific install script used by HP pwplus--don't use.
5054 else
5055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5056 break 3
5059 done
5060 done
5062 esac
5063 done
5064 IFS=$as_save_IFS
5068 if test "${ac_cv_path_install+set}" = set; then
5069 INSTALL=$ac_cv_path_install
5070 else
5071 # As a last resort, use the slow shell script. Don't cache a
5072 # value for INSTALL within a source directory, because that will
5073 # break other packages using the cache if that directory is
5074 # removed, or if the value is a relative name.
5075 INSTALL=$ac_install_sh
5078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5079 echo "${ECHO_T}$INSTALL" >&6; }
5081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5082 # It thinks the first close brace ends the variable substitution.
5083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5089 if test "x$RANLIB" = x; then
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_RANLIB+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$RANLIB"; then
5099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 RANLIB=$ac_cv_prog_RANLIB
5119 if test -n "$RANLIB"; then
5120 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5121 echo "${ECHO_T}$RANLIB" >&6; }
5122 else
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5129 if test -z "$ac_cv_prog_RANLIB"; then
5130 ac_ct_RANLIB=$RANLIB
5131 # Extract the first word of "ranlib", so it can be a program name with args.
5132 set dummy ranlib; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test -n "$ac_ct_RANLIB"; then
5139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_ac_ct_RANLIB="ranlib"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5159 if test -n "$ac_ct_RANLIB"; then
5160 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5161 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5162 else
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5167 if test "x$ac_ct_RANLIB" = x; then
5168 RANLIB=":"
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet. If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&5
5175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 RANLIB=$ac_ct_RANLIB
5182 else
5183 RANLIB="$ac_cv_prog_RANLIB"
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 case $INSTALL_INFO in
5195 [\\/]* | ?:[\\/]*)
5196 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5215 esac
5217 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5218 if test -n "$INSTALL_INFO"; then
5219 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5220 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5221 else
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 # Extract the first word of "install-info", so it can be a program name with args.
5228 set dummy install-info; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 case $INSTALL_INFO in
5235 [\\/]* | ?:[\\/]*)
5236 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in /usr/sbin
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5255 esac
5257 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5258 if test -n "$INSTALL_INFO"; then
5259 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5260 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5261 else
5262 { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5267 # Extract the first word of "install-info", so it can be a program name with args.
5268 set dummy install-info; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 case $INSTALL_INFO in
5275 [\\/]* | ?:[\\/]*)
5276 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in /sbin
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5292 IFS=$as_save_IFS
5294 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5296 esac
5298 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5299 if test -n "$INSTALL_INFO"; then
5300 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5301 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5302 else
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 # Extract the first word of "gzip", so it can be a program name with args.
5309 set dummy gzip; ac_word=$2
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 case $GZIP_PROG in
5316 [\\/]* | ?:[\\/]*)
5317 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5336 esac
5338 GZIP_PROG=$ac_cv_path_GZIP_PROG
5339 if test -n "$GZIP_PROG"; then
5340 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5341 echo "${ECHO_T}$GZIP_PROG" >&6; }
5342 else
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5350 ## Need makeinfo >= 4.6 (?) to build the manuals.
5351 # Extract the first word of "makeinfo", so it can be a program name with args.
5352 set dummy makeinfo; ac_word=$2
5353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5355 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 case $MAKEINFO in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5376 IFS=$as_save_IFS
5378 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5380 esac
5382 MAKEINFO=$ac_cv_path_MAKEINFO
5383 if test -n "$MAKEINFO"; then
5384 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5385 echo "${ECHO_T}$MAKEINFO" >&6; }
5386 else
5387 { echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6; }
5392 if test "$MAKEINFO" != "no" && \
5393 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([5-9]|4\.[6-9])'`" = x; then
5394 MAKEINFO=no
5397 if test "$MAKEINFO" = "no"; then
5398 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5399 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5400 { (exit 1); exit 1; }; }
5405 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5406 then
5407 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5410 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5411 then
5412 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5416 late_LDFLAGS=$LDFLAGS
5417 if test "$GCC" = yes; then
5418 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5419 else
5420 LDFLAGS="$LDFLAGS -znocombreloc"
5423 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5424 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5425 cat >conftest.$ac_ext <<_ACEOF
5426 main(){return 0;}
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest$ac_exeext &&
5445 $as_test_x conftest$ac_exeext; then
5446 { echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6; }
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 LDFLAGS=$late_LDFLAGS
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5458 conftest$ac_exeext conftest.$ac_ext
5460 #### Extract some information from the operating system and machine files.
5462 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5463 - which libraries the lib-src programs will want, and
5464 - whether the GNU malloc routines are usable..." >&5
5465 echo "$as_me: checking the machine- and system-dependent files to find out
5466 - which libraries the lib-src programs will want, and
5467 - whether the GNU malloc routines are usable..." >&6;}
5469 ### First figure out CFLAGS (which we use for running the compiler here)
5470 ### and REAL_CFLAGS (which we use for real compilation).
5471 ### The two are the same except on a few systems, where they are made
5472 ### different to work around various lossages. For example,
5473 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5474 ### as implying static linking.
5476 ### If the CFLAGS env var is specified, we use that value
5477 ### instead of the default.
5479 ### It's not important that this name contain the PID; you can't run
5480 ### two configures in the same directory and have anything work
5481 ### anyway.
5482 tempcname="conftest.c"
5484 echo '
5485 #include "'${srcdir}'/src/'${opsysfile}'"
5486 #include "'${srcdir}'/src/'${machfile}'"
5487 #ifndef LIBS_MACHINE
5488 #define LIBS_MACHINE
5489 #endif
5490 #ifndef LIBS_SYSTEM
5491 #define LIBS_SYSTEM
5492 #endif
5493 #ifndef C_SWITCH_SYSTEM
5494 #define C_SWITCH_SYSTEM
5495 #endif
5496 #ifndef C_SWITCH_MACHINE
5497 #define C_SWITCH_MACHINE
5498 #endif
5499 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5500 configure___ c_switch_system=C_SWITCH_SYSTEM
5501 configure___ c_switch_machine=C_SWITCH_MACHINE
5503 #ifndef LIB_X11_LIB
5504 #define LIB_X11_LIB -lX11
5505 #endif
5507 #ifndef LIBX11_MACHINE
5508 #define LIBX11_MACHINE
5509 #endif
5511 #ifndef LIBX11_SYSTEM
5512 #define LIBX11_SYSTEM
5513 #endif
5514 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5516 #ifdef UNEXEC
5517 configure___ unexec=UNEXEC
5518 #else
5519 configure___ unexec=unexec.o
5520 #endif
5522 #ifdef SYSTEM_MALLOC
5523 configure___ system_malloc=yes
5524 #else
5525 configure___ system_malloc=no
5526 #endif
5528 #ifdef USE_MMAP_FOR_BUFFERS
5529 configure___ use_mmap_for_buffers=yes
5530 #else
5531 configure___ use_mmap_for_buffers=no
5532 #endif
5534 #ifndef C_DEBUG_SWITCH
5535 #define C_DEBUG_SWITCH -g
5536 #endif
5538 #ifndef C_OPTIMIZE_SWITCH
5539 #ifdef __GNUC__
5540 #define C_OPTIMIZE_SWITCH -O2
5541 #else
5542 #define C_OPTIMIZE_SWITCH -O
5543 #endif
5544 #endif
5546 #ifndef C_WARNINGS_SWITCH
5547 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5548 #endif
5550 #ifndef LD_SWITCH_MACHINE
5551 #define LD_SWITCH_MACHINE
5552 #endif
5554 #ifndef LD_SWITCH_SYSTEM
5555 #define LD_SWITCH_SYSTEM
5556 #endif
5558 #ifndef LD_SWITCH_X_SITE_AUX
5559 #define LD_SWITCH_X_SITE_AUX
5560 #endif
5562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5565 #ifdef THIS_IS_CONFIGURE
5567 /* Get the CFLAGS for tests in configure. */
5568 #ifdef __GNUC__
5569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5570 #else
5571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5572 #endif
5574 #else /* not THIS_IS_CONFIGURE */
5576 /* Get the CFLAGS for real compilation. */
5577 #ifdef __GNUC__
5578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5579 #else
5580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5581 #endif
5583 #endif /* not THIS_IS_CONFIGURE */
5584 ' > ${tempcname}
5586 # The value of CPP is a quoted variable reference, so we need to do this
5587 # to get its actual value...
5588 CPP=`eval "echo $CPP"`
5589 eval `${CPP} -Isrc ${tempcname} \
5590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5591 if test "x$SPECIFIED_CFLAGS" = x; then
5592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5594 else
5595 REAL_CFLAGS="$CFLAGS"
5597 rm ${tempcname}
5599 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5601 ### Make sure subsequent tests use flags consistent with the build flags.
5603 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5604 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5605 else
5606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5611 # Check whether --enable-largefile was given.
5612 if test "${enable_largefile+set}" = set; then
5613 enableval=$enable_largefile;
5616 if test "$enable_largefile" != no; then
5618 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5619 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5620 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 ac_cv_sys_largefile_CC=no
5624 if test "$GCC" != yes; then
5625 ac_save_CC=$CC
5626 while :; do
5627 # IRIX 6.2 and later do not support large files by default,
5628 # so use the C compiler's -n32 option if that helps.
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 /* Check that off_t can represent 2**63 - 1 correctly.
5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 since some C++ compilers masquerading as C compilers
5639 incorrectly reject 9223372036854775807. */
5640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5642 && LARGE_OFF_T % 2147483647 == 1)
5643 ? 1 : -1];
5645 main ()
5649 return 0;
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5669 break
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext
5678 CC="$CC -n32"
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_largefile_CC=' -n32'; break
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext
5705 break
5706 done
5707 CC=$ac_save_CC
5708 rm -f conftest.$ac_ext
5711 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5712 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5713 if test "$ac_cv_sys_largefile_CC" != no; then
5714 CC=$CC$ac_cv_sys_largefile_CC
5717 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5718 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5719 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 while :; do
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5739 main ()
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_cv_sys_file_offset_bits=no; break
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #define _FILE_OFFSET_BITS 64
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5787 ? 1 : -1];
5789 main ()
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_compile") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest.$ac_objext; then
5813 ac_cv_sys_file_offset_bits=64; break
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_sys_file_offset_bits=unknown
5823 break
5824 done
5826 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5827 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5828 case $ac_cv_sys_file_offset_bits in #(
5829 no | unknown) ;;
5831 cat >>confdefs.h <<_ACEOF
5832 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5833 _ACEOF
5835 esac
5836 rm -f conftest*
5837 if test $ac_cv_sys_file_offset_bits = unknown; then
5838 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5839 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5840 if test "${ac_cv_sys_large_files+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 while :; do
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 /* Check that off_t can represent 2**63 - 1 correctly.
5852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5853 since some C++ compilers masquerading as C compilers
5854 incorrectly reject 9223372036854775807. */
5855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5857 && LARGE_OFF_T % 2147483647 == 1)
5858 ? 1 : -1];
5860 main ()
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest.$ac_objext; then
5884 ac_cv_sys_large_files=no; break
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #define _LARGE_FILES 1
5900 #include <sys/types.h>
5901 /* Check that off_t can represent 2**63 - 1 correctly.
5902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5903 since some C++ compilers masquerading as C compilers
5904 incorrectly reject 9223372036854775807. */
5905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5907 && LARGE_OFF_T % 2147483647 == 1)
5908 ? 1 : -1];
5910 main ()
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_cv_sys_large_files=1; break
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_sys_large_files=unknown
5944 break
5945 done
5947 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5948 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5949 case $ac_cv_sys_large_files in #(
5950 no | unknown) ;;
5952 cat >>confdefs.h <<_ACEOF
5953 #define _LARGE_FILES $ac_cv_sys_large_files
5954 _ACEOF
5956 esac
5957 rm -f conftest*
5963 ### The standard library on x86-64 GNU/Linux distributions can
5964 ### be located in either /usr/lib64 or /usr/lib.
5965 case "${canonical}" in
5966 x86_64-*-linux-gnu* )
5967 if test -d /usr/lib64; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define HAVE_X86_64_LIB64_DIR 1
5971 _ACEOF
5974 esac
5979 if test "${with_sound}" != "no"; then
5980 # Sound support for GNU/Linux and the free BSDs.
5981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_stdc+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <stdlib.h>
5993 #include <stdarg.h>
5994 #include <string.h>
5995 #include <float.h>
5998 main ()
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
6022 ac_cv_header_stdc=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_header_stdc=no
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <string.h>
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then
6046 else
6047 ac_cv_header_stdc=no
6049 rm -f conftest*
6053 if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <stdlib.h>
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then
6067 else
6068 ac_cv_header_stdc=no
6070 rm -f conftest*
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <ctype.h>
6086 #include <stdlib.h>
6087 #if ((' ' & 0x0FF) == 0x020)
6088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090 #else
6091 # define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096 #endif
6098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100 main ()
6102 int i;
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6106 return 2;
6107 return 0;
6109 _ACEOF
6110 rm -f conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6131 else
6132 echo "$as_me: program exited with status $ac_status" >&5
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ( exit $ac_status )
6137 ac_cv_header_stdc=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 cat >>confdefs.h <<\_ACEOF
6150 #define STDC_HEADERS 1
6151 _ACEOF
6155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6166 inttypes.h stdint.h unistd.h
6168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6182 #include <$ac_header>
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6201 eval "$as_ac_Header=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_Header=no"
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6221 done
6227 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_res=`eval echo '${'$as_ac_Header'}'`
6237 { echo "$as_me:$LINENO: result: $ac_res" >&5
6238 echo "${ECHO_T}$ac_res" >&6; }
6239 else
6240 # Is the header compilable?
6241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <$ac_header>
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_header_compiler=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_header_compiler=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6; }
6281 # Is the header present?
6282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <$ac_header>
6291 _ACEOF
6292 if { (ac_try="$ac_cpp conftest.$ac_ext"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 }; then
6308 ac_header_preproc=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6; }
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6322 yes:no: )
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc=yes
6329 no:yes:* )
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6344 esac
6345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 eval "$as_ac_Header=\$ac_header_preproc"
6352 ac_res=`eval echo '${'$as_ac_Header'}'`
6353 { echo "$as_me:$LINENO: result: $ac_res" >&5
6354 echo "${ECHO_T}$ac_res" >&6; }
6357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6358 cat >>confdefs.h <<_ACEOF
6359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6366 # Emulation library used on NetBSD.
6367 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6368 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6369 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 ac_check_lib_save_LIBS=$LIBS
6373 LIBS="-lossaudio $LIBS"
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6381 /* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 char _oss_ioctl ();
6389 main ()
6391 return _oss_ioctl ();
6393 return 0;
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest$ac_exeext &&
6413 $as_test_x conftest$ac_exeext; then
6414 ac_cv_lib_ossaudio__oss_ioctl=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_lib_ossaudio__oss_ioctl=no
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6429 LIBSOUND=-lossaudio
6430 else
6431 LIBSOUND=
6436 ALSA_REQUIRED=1.0.0
6437 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6438 if test "X${with_pkg_config_prog}" != X; then
6439 PKG_CONFIG="${with_pkg_config_prog}"
6442 succeeded=no
6444 if test -z "$PKG_CONFIG"; then
6445 # Extract the first word of "pkg-config", so it can be a program name with args.
6446 set dummy pkg-config; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 case $PKG_CONFIG in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6474 esac
6476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6477 if test -n "$PKG_CONFIG"; then
6478 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6479 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6480 else
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6488 if test "$PKG_CONFIG" = "no" ; then
6489 HAVE_ALSA=no
6490 else
6491 PKG_CONFIG_MIN_VERSION=0.9.0
6492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6493 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6494 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6496 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6497 { echo "$as_me:$LINENO: result: yes" >&5
6498 echo "${ECHO_T}yes" >&6; }
6499 succeeded=yes
6501 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6502 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6503 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6504 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6505 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6507 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6508 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6509 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6510 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6511 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6512 else
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515 ALSA_CFLAGS=""
6516 ALSA_LIBS=""
6517 ## If we have a custom action on failure, don't print errors, but
6518 ## do set a variable so people can do so.
6519 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6525 else
6526 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6527 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6531 if test $succeeded = yes; then
6532 HAVE_ALSA=yes
6533 else
6534 HAVE_ALSA=no
6537 if test $HAVE_ALSA = yes; then
6538 SAVE_CFLAGS="$CFLAGS"
6539 SAVE_LDFLAGS="$LDFLAGS"
6540 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6541 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <asoundlib.h>
6550 main ()
6552 snd_lib_error_set_handler (0);
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6574 emacs_alsa_normal=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 emacs_alsa_normal=no
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 if test "$emacs_alsa_normal" != yes; then
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <alsa/asoundlib.h>
6592 main ()
6594 snd_lib_error_set_handler (0);
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 emacs_alsa_subdir=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 emacs_alsa_subdir=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 if test "$emacs_alsa_subdir" != yes; then
6626 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6627 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6628 { (exit 1); exit 1; }; }
6630 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6633 CFLAGS="$SAVE_CFLAGS"
6634 LDFLAGS="$SAVE_LDFLAGS"
6635 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6636 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_ALSA 1
6640 _ACEOF
6671 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6672 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6673 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6674 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6675 sys/utsname.h pwd.h
6677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687 else
6688 # Is the header compilable?
6689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 #include <$ac_header>
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_header_compiler=yes
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_header_compiler=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6; }
6729 # Is the header present?
6730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6739 _ACEOF
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 ac_header_preproc=yes
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_header_preproc=no
6764 rm -f conftest.err conftest.$ac_ext
6765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 echo "${ECHO_T}$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770 yes:no: )
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6777 no:yes:* )
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6792 esac
6793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res=`eval echo '${'$as_ac_Header'}'`
6801 { echo "$as_me:$LINENO: result: $ac_res" >&5
6802 echo "${ECHO_T}$ac_res" >&6; }
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 _ACEOF
6812 done
6815 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6816 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <sys/personality.h>
6825 main ()
6827 personality (PER_LINUX32)
6829 return 0;
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 emacs_cv_personality_linux32=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 emacs_cv_personality_linux32=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6859 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6861 if test $emacs_cv_personality_linux32 = yes; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_PERSONALITY_LINUX32 1
6865 _ACEOF
6870 for ac_header in term.h
6872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <$ac_header>
6885 _ACEOF
6886 if { (ac_try="$ac_cpp conftest.$ac_ext"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } >/dev/null && {
6899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 }; then
6902 eval "$as_ac_Header=yes"
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 eval "$as_ac_Header=no"
6910 rm -f conftest.err conftest.$ac_ext
6912 ac_res=`eval echo '${'$as_ac_Header'}'`
6913 { echo "$as_me:$LINENO: result: $ac_res" >&5
6914 echo "${ECHO_T}$ac_res" >&6; }
6915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6918 _ACEOF
6922 done
6924 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6926 if test "${ac_cv_header_stdc+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <stdlib.h>
6936 #include <stdarg.h>
6937 #include <string.h>
6938 #include <float.h>
6941 main ()
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_header_stdc=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 if test $ac_cv_header_stdc = yes; then
6976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 #include <string.h>
6985 _ACEOF
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987 $EGREP "memchr" >/dev/null 2>&1; then
6989 else
6990 ac_cv_header_stdc=no
6992 rm -f conftest*
6996 if test $ac_cv_header_stdc = yes; then
6997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 #include <stdlib.h>
7006 _ACEOF
7007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008 $EGREP "free" >/dev/null 2>&1; then
7010 else
7011 ac_cv_header_stdc=no
7013 rm -f conftest*
7017 if test $ac_cv_header_stdc = yes; then
7018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7019 if test "$cross_compiling" = yes; then
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 <ctype.h>
7029 #include <stdlib.h>
7030 #if ((' ' & 0x0FF) == 0x020)
7031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7033 #else
7034 # define ISLOWER(c) \
7035 (('a' <= (c) && (c) <= 'i') \
7036 || ('j' <= (c) && (c) <= 'r') \
7037 || ('s' <= (c) && (c) <= 'z'))
7038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7039 #endif
7041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043 main ()
7045 int i;
7046 for (i = 0; i < 256; i++)
7047 if (XOR (islower (i), ISLOWER (i))
7048 || toupper (i) != TOUPPER (i))
7049 return 2;
7050 return 0;
7052 _ACEOF
7053 rm -f conftest$ac_exeext
7054 if { (ac_try="$ac_link"
7055 case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7058 esac
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_link") 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7074 else
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ( exit $ac_status )
7080 ac_cv_header_stdc=no
7082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7089 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7090 if test $ac_cv_header_stdc = yes; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define STDC_HEADERS 1
7094 _ACEOF
7098 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7099 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7100 if test "${ac_cv_header_time+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 #include <sys/time.h>
7111 #include <time.h>
7114 main ()
7116 if ((struct tm *) 0)
7117 return 0;
7119 return 0;
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_header_time=yes
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_header_time=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7150 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7151 if test $ac_cv_header_time = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define TIME_WITH_SYS_TIME 1
7155 _ACEOF
7159 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7160 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7161 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7172 main ()
7174 #ifndef sys_siglist
7175 (void) sys_siglist;
7176 #endif
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_cv_have_decl_sys_siglist=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_have_decl_sys_siglist=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7210 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7211 if test $ac_cv_have_decl_sys_siglist = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define HAVE_DECL_SYS_SIGLIST 1
7215 _ACEOF
7218 else
7219 cat >>confdefs.h <<_ACEOF
7220 #define HAVE_DECL_SYS_SIGLIST 0
7221 _ACEOF
7227 if test $ac_cv_have_decl_sys_siglist != yes; then
7228 # For Tru64, at least:
7229 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7230 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7231 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7242 main ()
7244 #ifndef __sys_siglist
7245 (void) __sys_siglist;
7246 #endif
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_have_decl___sys_siglist=yes
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_have_decl___sys_siglist=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7280 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7281 if test $ac_cv_have_decl___sys_siglist = yes; then
7283 cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DECL___SYS_SIGLIST 1
7285 _ACEOF
7288 else
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL___SYS_SIGLIST 0
7291 _ACEOF
7297 if test $ac_cv_have_decl___sys_siglist = yes; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define sys_siglist __sys_siglist
7301 _ACEOF
7305 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7306 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7307 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <sys/types.h>
7317 #include <sys/wait.h>
7318 #ifndef WEXITSTATUS
7319 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7320 #endif
7321 #ifndef WIFEXITED
7322 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7323 #endif
7326 main ()
7328 int s;
7329 wait (&s);
7330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7332 return 0;
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (ac_try="$ac_compile"
7337 case "(($ac_try" in
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7340 esac
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7343 ac_status=$?
7344 grep -v '^ *+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_c_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 ac_cv_header_sys_wait_h=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_cv_header_sys_wait_h=no
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7363 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7364 if test $ac_cv_header_sys_wait_h = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_SYS_WAIT_H 1
7368 _ACEOF
7373 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7374 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7375 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #ifdef TIME_WITH_SYS_TIME
7385 #include <sys/time.h>
7386 #include <time.h>
7387 #else
7388 #ifdef HAVE_SYS_TIME_H
7389 #include <sys/time.h>
7390 #else
7391 #include <time.h>
7392 #endif
7393 #endif
7394 #ifdef HAVE_UTIME_H
7395 #include <utime.h>
7396 #endif
7398 main ()
7400 static struct utimbuf x; x.actime = x.modtime;
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 emacs_cv_struct_utimbuf=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 emacs_cv_struct_utimbuf=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7433 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7434 if test $emacs_cv_struct_utimbuf = yes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_STRUCT_UTIMBUF 1
7438 _ACEOF
7442 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7443 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7444 if test "${ac_cv_type_signal+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <sys/types.h>
7454 #include <signal.h>
7457 main ()
7459 return *(signal (0, 0)) (0) == 1;
7461 return 0;
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7466 case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 ac_cv_type_signal=int
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_type_signal=void
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7492 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7494 cat >>confdefs.h <<_ACEOF
7495 #define RETSIGTYPE $ac_cv_type_signal
7496 _ACEOF
7500 { echo "$as_me:$LINENO: checking for speed_t" >&5
7501 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7502 if test "${emacs_cv_speed_t+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <termios.h>
7513 main ()
7515 speed_t x = 1;
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.$ac_objext; then
7537 emacs_cv_speed_t=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 emacs_cv_speed_t=no
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7548 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7549 if test $emacs_cv_speed_t = yes; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SPEED_T 1
7553 _ACEOF
7557 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7558 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7559 if test "${emacs_cv_struct_timeval+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #ifdef TIME_WITH_SYS_TIME
7569 #include <sys/time.h>
7570 #include <time.h>
7571 #else
7572 #ifdef HAVE_SYS_TIME_H
7573 #include <sys/time.h>
7574 #else
7575 #include <time.h>
7576 #endif
7577 #endif
7579 main ()
7581 static struct timeval x; x.tv_sec = x.tv_usec;
7583 return 0;
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7603 emacs_cv_struct_timeval=yes
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 emacs_cv_struct_timeval=no
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7614 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7615 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7616 if test $emacs_cv_struct_timeval = yes; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_TIMEVAL 1
7620 _ACEOF
7624 { echo "$as_me:$LINENO: checking for struct exception" >&5
7625 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7626 if test "${emacs_cv_struct_exception+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <math.h>
7637 main ()
7639 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7641 return 0;
7643 _ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7646 case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.$ac_objext; then
7661 emacs_cv_struct_exception=yes
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 emacs_cv_struct_exception=no
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7672 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7673 HAVE_EXCEPTION=$emacs_cv_struct_exception
7674 if test $emacs_cv_struct_exception != yes; then
7676 cat >>confdefs.h <<\_ACEOF
7677 #define NO_MATHERR 1
7678 _ACEOF
7683 for ac_header in sys/socket.h
7685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_res=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7695 else
7696 # Is the header compilable?
7697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_header_compiler=yes
7726 else
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_header_compiler=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735 echo "${ECHO_T}$ac_header_compiler" >&6; }
7737 # Is the header present?
7738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <$ac_header>
7747 _ACEOF
7748 if { (ac_try="$ac_cpp conftest.$ac_ext"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } >/dev/null && {
7761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 }; then
7764 ac_header_preproc=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_header_preproc=no
7772 rm -f conftest.err conftest.$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 echo "${ECHO_T}$ac_header_preproc" >&6; }
7776 # So? What about this header?
7777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7778 yes:no: )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7783 ac_header_preproc=yes
7785 no:yes:* )
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7800 esac
7801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 eval "$as_ac_Header=\$ac_header_preproc"
7808 ac_res=`eval echo '${'$as_ac_Header'}'`
7809 { echo "$as_me:$LINENO: result: $ac_res" >&5
7810 echo "${ECHO_T}$ac_res" >&6; }
7813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7814 cat >>confdefs.h <<_ACEOF
7815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 _ACEOF
7820 done
7823 for ac_header in net/if.h
7825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 #if HAVE_SYS_SOCKET_H
7839 #include <sys/socket.h>
7840 #endif
7842 #include <$ac_header>
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && {
7858 test -z "$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 } && test -s conftest.$ac_objext; then
7861 eval "$as_ac_Header=yes"
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 eval "$as_ac_Header=no"
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_res=`eval echo '${'$as_ac_Header'}'`
7872 { echo "$as_me:$LINENO: result: $ac_res" >&5
7873 echo "${ECHO_T}$ac_res" >&6; }
7874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 _ACEOF
7881 done
7884 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_struct_tm+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7896 #include <time.h>
7899 main ()
7901 struct tm tm;
7902 int *p = &tm.tm_sec;
7903 return !p;
7905 return 0;
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_struct_tm=time.h
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_cv_struct_tm=sys/time.h
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7936 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7937 if test $ac_cv_struct_tm = sys/time.h; then
7939 cat >>confdefs.h <<\_ACEOF
7940 #define TM_IN_SYS_TIME 1
7941 _ACEOF
7945 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7946 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7947 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <sys/types.h>
7957 #include <$ac_cv_struct_tm>
7961 main ()
7963 static struct tm ac_aggr;
7964 if (ac_aggr.tm_zone)
7965 return 0;
7967 return 0;
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_tm_tm_zone=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <sys/types.h>
7999 #include <$ac_cv_struct_tm>
8003 main ()
8005 static struct tm ac_aggr;
8006 if (sizeof ac_aggr.tm_zone)
8007 return 0;
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_member_struct_tm_tm_zone=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_cv_member_struct_tm_tm_zone=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8043 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8044 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_STRUCT_TM_TM_ZONE 1
8048 _ACEOF
8053 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8055 cat >>confdefs.h <<\_ACEOF
8056 #define HAVE_TM_ZONE 1
8057 _ACEOF
8059 else
8060 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8061 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8062 if test "${ac_cv_have_decl_tzname+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 #include <time.h>
8074 main ()
8076 #ifndef tzname
8077 (void) tzname;
8078 #endif
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_have_decl_tzname=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_have_decl_tzname=no
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8112 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8113 if test $ac_cv_have_decl_tzname = yes; then
8115 cat >>confdefs.h <<_ACEOF
8116 #define HAVE_DECL_TZNAME 1
8117 _ACEOF
8120 else
8121 cat >>confdefs.h <<_ACEOF
8122 #define HAVE_DECL_TZNAME 0
8123 _ACEOF
8129 { echo "$as_me:$LINENO: checking for tzname" >&5
8130 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8131 if test "${ac_cv_var_tzname+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 #include <time.h>
8141 #if !HAVE_DECL_TZNAME
8142 extern char *tzname[];
8143 #endif
8146 main ()
8148 return tzname[0][0];
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest$ac_exeext &&
8170 $as_test_x conftest$ac_exeext; then
8171 ac_cv_var_tzname=yes
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_cv_var_tzname=no
8179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180 conftest$ac_exeext conftest.$ac_ext
8182 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8183 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8184 if test $ac_cv_var_tzname = yes; then
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_TZNAME 1
8188 _ACEOF
8193 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8194 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8195 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 #include <time.h>
8207 main ()
8209 static struct tm ac_aggr;
8210 if (ac_aggr.tm_gmtoff)
8211 return 0;
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8233 ac_cv_member_struct_tm_tm_gmtoff=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 #include <time.h>
8247 main ()
8249 static struct tm ac_aggr;
8250 if (sizeof ac_aggr.tm_gmtoff)
8251 return 0;
8253 return 0;
8255 _ACEOF
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8258 case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.$ac_objext; then
8273 ac_cv_member_struct_tm_tm_gmtoff=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_cv_member_struct_tm_tm_gmtoff=no
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8287 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8288 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8290 cat >>confdefs.h <<\_ACEOF
8291 #define HAVE_TM_GMTOFF 1
8292 _ACEOF
8296 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8297 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8298 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 #if HAVE_SYS_SOCKET_H
8309 #include <sys/socket.h>
8310 #endif
8311 #if HAVE_NET_IF_H
8312 #include <net/if.h>
8313 #endif
8316 main ()
8318 static struct ifreq ac_aggr;
8319 if (ac_aggr.ifr_flags)
8320 return 0;
8322 return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_ifreq_ifr_flags=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 #if HAVE_SYS_SOCKET_H
8355 #include <sys/socket.h>
8356 #endif
8357 #if HAVE_NET_IF_H
8358 #include <net/if.h>
8359 #endif
8362 main ()
8364 static struct ifreq ac_aggr;
8365 if (sizeof ac_aggr.ifr_flags)
8366 return 0;
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_cv_member_struct_ifreq_ifr_flags=yes
8389 else
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_member_struct_ifreq_ifr_flags=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8402 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8403 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8407 _ACEOF
8411 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8412 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8413 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8423 #if HAVE_SYS_SOCKET_H
8424 #include <sys/socket.h>
8425 #endif
8426 #if HAVE_NET_IF_H
8427 #include <net/if.h>
8428 #endif
8431 main ()
8433 static struct ifreq ac_aggr;
8434 if (ac_aggr.ifr_hwaddr)
8435 return 0;
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest.$ac_objext; then
8457 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h. */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 $ac_includes_default
8469 #if HAVE_SYS_SOCKET_H
8470 #include <sys/socket.h>
8471 #endif
8472 #if HAVE_NET_IF_H
8473 #include <net/if.h>
8474 #endif
8477 main ()
8479 static struct ifreq ac_aggr;
8480 if (sizeof ac_aggr.ifr_hwaddr)
8481 return 0;
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8517 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8518 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8520 cat >>confdefs.h <<_ACEOF
8521 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8522 _ACEOF
8526 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8527 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8528 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 #if HAVE_SYS_SOCKET_H
8539 #include <sys/socket.h>
8540 #endif
8541 #if HAVE_NET_IF_H
8542 #include <net/if.h>
8543 #endif
8546 main ()
8548 static struct ifreq ac_aggr;
8549 if (ac_aggr.ifr_netmask)
8550 return 0;
8552 return 0;
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (ac_try="$ac_compile"
8557 case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_cv_member_struct_ifreq_ifr_netmask=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8586 #endif
8587 #if HAVE_NET_IF_H
8588 #include <net/if.h>
8589 #endif
8592 main ()
8594 static struct ifreq ac_aggr;
8595 if (sizeof ac_aggr.ifr_netmask)
8596 return 0;
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8618 ac_cv_member_struct_ifreq_ifr_netmask=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_member_struct_ifreq_ifr_netmask=no
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8632 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8633 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8637 _ACEOF
8641 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8642 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8643 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #if HAVE_SYS_SOCKET_H
8654 #include <sys/socket.h>
8655 #endif
8656 #if HAVE_NET_IF_H
8657 #include <net/if.h>
8658 #endif
8661 main ()
8663 static struct ifreq ac_aggr;
8664 if (ac_aggr.ifr_broadaddr)
8665 return 0;
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #if HAVE_SYS_SOCKET_H
8700 #include <sys/socket.h>
8701 #endif
8702 #if HAVE_NET_IF_H
8703 #include <net/if.h>
8704 #endif
8707 main ()
8709 static struct ifreq ac_aggr;
8710 if (sizeof ac_aggr.ifr_broadaddr)
8711 return 0;
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8718 case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8733 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8747 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8748 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8752 _ACEOF
8756 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8757 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8758 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 #if HAVE_SYS_SOCKET_H
8769 #include <sys/socket.h>
8770 #endif
8771 #if HAVE_NET_IF_H
8772 #include <net/if.h>
8773 #endif
8776 main ()
8778 static struct ifreq ac_aggr;
8779 if (ac_aggr.ifr_addr)
8780 return 0;
8782 return 0;
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
8802 ac_cv_member_struct_ifreq_ifr_addr=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 #if HAVE_SYS_SOCKET_H
8815 #include <sys/socket.h>
8816 #endif
8817 #if HAVE_NET_IF_H
8818 #include <net/if.h>
8819 #endif
8822 main ()
8824 static struct ifreq ac_aggr;
8825 if (sizeof ac_aggr.ifr_addr)
8826 return 0;
8828 return 0;
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (ac_try="$ac_compile"
8833 case "(($ac_try" in
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_cv_member_struct_ifreq_ifr_addr=no
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8862 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8863 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8867 _ACEOF
8874 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8875 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8876 if test "$ac_cv_prog_cc_c89" != no; then
8877 { echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6; }
8880 cat >>confdefs.h <<\_ACEOF
8881 #define PROTOTYPES 1
8882 _ACEOF
8885 cat >>confdefs.h <<\_ACEOF
8886 #define __PROTOTYPES 1
8887 _ACEOF
8889 else
8890 { echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6; }
8894 { echo "$as_me:$LINENO: checking for working volatile" >&5
8895 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8896 if test "${ac_cv_c_volatile+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8907 main ()
8910 volatile int x;
8911 int * volatile y = (int *) 0;
8912 return !x && !y;
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_cv_c_volatile=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_c_volatile=no
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8945 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8946 if test $ac_cv_c_volatile = no; then
8948 cat >>confdefs.h <<\_ACEOF
8949 #define volatile
8950 _ACEOF
8954 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8955 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8956 if test "${ac_cv_c_const+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8967 main ()
8969 /* FIXME: Include the comments suggested by Paul. */
8970 #ifndef __cplusplus
8971 /* Ultrix mips cc rejects this. */
8972 typedef int charset[2];
8973 const charset cs;
8974 /* SunOS 4.1.1 cc rejects this. */
8975 char const *const *pcpcc;
8976 char **ppc;
8977 /* NEC SVR4.0.2 mips cc rejects this. */
8978 struct point {int x, y;};
8979 static struct point const zero = {0,0};
8980 /* AIX XL C 1.02.0.0 rejects this.
8981 It does not let you subtract one const X* pointer from another in
8982 an arm of an if-expression whose if-part is not a constant
8983 expression */
8984 const char *g = "string";
8985 pcpcc = &g + (g ? g-g : 0);
8986 /* HPUX 7.0 cc rejects these. */
8987 ++pcpcc;
8988 ppc = (char**) pcpcc;
8989 pcpcc = (char const *const *) ppc;
8990 { /* SCO 3.2v4 cc rejects this. */
8991 char *t;
8992 char const *s = 0 ? (char *) 0 : (char const *) 0;
8994 *t++ = 0;
8995 if (s) return 0;
8997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8998 int x[] = {25, 17};
8999 const int *foo = &x[0];
9000 ++foo;
9002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9003 typedef const int *iptr;
9004 iptr p = 0;
9005 ++p;
9007 { /* AIX XL C 1.02.0.0 rejects this saying
9008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9009 struct s { int j; const int *ap[3]; };
9010 struct s *b; b->j = 5;
9012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9013 const int foo = 10;
9014 if (!foo) return 0;
9016 return !cs[0] && !zero.x;
9017 #endif
9020 return 0;
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 ac_cv_c_const=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_cv_c_const=no
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9051 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9052 if test $ac_cv_c_const = no; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define const
9056 _ACEOF
9060 { echo "$as_me:$LINENO: checking for void * support" >&5
9061 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9062 if test "${emacs_cv_void_star+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9073 main ()
9075 void * foo;
9077 return 0;
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (ac_try="$ac_compile"
9082 case "(($ac_try" in
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9085 esac
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_compile") 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest.$ac_objext; then
9097 emacs_cv_void_star=yes
9098 else
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 emacs_cv_void_star=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9108 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9109 if test $emacs_cv_void_star = yes; then
9110 cat >>confdefs.h <<\_ACEOF
9111 #define POINTER_TYPE void
9112 _ACEOF
9114 else
9115 cat >>confdefs.h <<\_ACEOF
9116 #define POINTER_TYPE char
9117 _ACEOF
9125 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9126 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9127 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9128 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 cat >conftest.make <<\_ACEOF
9132 SHELL = /bin/sh
9133 all:
9134 @echo '@@@%%%=$(MAKE)=@@@%%%'
9135 _ACEOF
9136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9138 *@@@%%%=?*=@@@%%%*)
9139 eval ac_cv_prog_make_${ac_make}_set=yes;;
9141 eval ac_cv_prog_make_${ac_make}_set=no;;
9142 esac
9143 rm -f conftest.make
9145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9146 { echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6; }
9148 SET_MAKE=
9149 else
9150 { echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6; }
9152 SET_MAKE="MAKE=${MAKE-make}"
9156 { echo "$as_me:$LINENO: checking for long file names" >&5
9157 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9158 if test "${ac_cv_sys_long_file_names+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 ac_cv_sys_long_file_names=yes
9162 # Test for long file names in all the places we know might matter:
9163 # . the current directory, where building will happen
9164 # $prefix/lib where we will be installing things
9165 # $exec_prefix/lib likewise
9166 # $TMPDIR if set, where it might want to write temporary files
9167 # /tmp where it might want to write temporary files
9168 # /var/tmp likewise
9169 # /usr/tmp likewise
9170 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9171 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9172 # in the usual case where exec_prefix is '${prefix}'.
9173 case $ac_dir in #(
9174 . | /* | ?:[\\/]*) ;; #(
9175 *) continue;;
9176 esac
9177 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9178 ac_xdir=$ac_dir/cf$$
9179 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9180 ac_tf1=$ac_xdir/conftest9012345
9181 ac_tf2=$ac_xdir/conftest9012346
9182 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9183 ac_cv_sys_long_file_names=no
9184 rm -f -r "$ac_xdir" 2>/dev/null
9185 test $ac_cv_sys_long_file_names = no && break
9186 done
9188 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9189 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9190 if test $ac_cv_sys_long_file_names = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_LONG_FILE_NAMES 1
9194 _ACEOF
9199 #### Choose a window system.
9201 { echo "$as_me:$LINENO: checking for X" >&5
9202 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9205 # Check whether --with-x was given.
9206 if test "${with_x+set}" = set; then
9207 withval=$with_x;
9210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9211 if test "x$with_x" = xno; then
9212 # The user explicitly disabled X.
9213 have_x=disabled
9214 else
9215 case $x_includes,$x_libraries in #(
9216 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9217 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9218 { (exit 1); exit 1; }; };; #(
9219 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 # One or both of the vars are not set, and there is no cached value.
9223 ac_x_includes=no ac_x_libraries=no
9224 rm -f -r conftest.dir
9225 if mkdir conftest.dir; then
9226 cd conftest.dir
9227 cat >Imakefile <<'_ACEOF'
9228 incroot:
9229 @echo incroot='${INCROOT}'
9230 usrlibdir:
9231 @echo usrlibdir='${USRLIBDIR}'
9232 libdir:
9233 @echo libdir='${LIBDIR}'
9234 _ACEOF
9235 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9237 for ac_var in incroot usrlibdir libdir; do
9238 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9239 done
9240 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9241 for ac_extension in a so sl; do
9242 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9243 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9244 ac_im_usrlibdir=$ac_im_libdir; break
9246 done
9247 # Screen out bogus values from the imake configuration. They are
9248 # bogus both because they are the default anyway, and because
9249 # using them would break gcc on systems where it needs fixed includes.
9250 case $ac_im_incroot in
9251 /usr/include) ac_x_includes= ;;
9252 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9253 esac
9254 case $ac_im_usrlibdir in
9255 /usr/lib | /lib) ;;
9256 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9257 esac
9259 cd ..
9260 rm -f -r conftest.dir
9263 # Standard set of common directories for X headers.
9264 # Check X11 before X11Rn because it is often a symlink to the current release.
9265 ac_x_header_dirs='
9266 /usr/X11/include
9267 /usr/X11R6/include
9268 /usr/X11R5/include
9269 /usr/X11R4/include
9271 /usr/include/X11
9272 /usr/include/X11R6
9273 /usr/include/X11R5
9274 /usr/include/X11R4
9276 /usr/local/X11/include
9277 /usr/local/X11R6/include
9278 /usr/local/X11R5/include
9279 /usr/local/X11R4/include
9281 /usr/local/include/X11
9282 /usr/local/include/X11R6
9283 /usr/local/include/X11R5
9284 /usr/local/include/X11R4
9286 /usr/X386/include
9287 /usr/x386/include
9288 /usr/XFree86/include/X11
9290 /usr/include
9291 /usr/local/include
9292 /usr/unsupported/include
9293 /usr/athena/include
9294 /usr/local/x11r5/include
9295 /usr/lpp/Xamples/include
9297 /usr/openwin/include
9298 /usr/openwin/share/include'
9300 if test "$ac_x_includes" = no; then
9301 # Guess where to find include files, by looking for Xlib.h.
9302 # First, try using that file with no special directory specified.
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 #include <X11/Xlib.h>
9310 _ACEOF
9311 if { (ac_try="$ac_cpp conftest.$ac_ext"
9312 case "(($ac_try" in
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } >/dev/null && {
9324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 }; then
9327 # We can compile using X headers with no special include directory.
9328 ac_x_includes=
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 for ac_dir in $ac_x_header_dirs; do
9334 if test -r "$ac_dir/X11/Xlib.h"; then
9335 ac_x_includes=$ac_dir
9336 break
9338 done
9341 rm -f conftest.err conftest.$ac_ext
9342 fi # $ac_x_includes = no
9344 if test "$ac_x_libraries" = no; then
9345 # Check for the libraries.
9346 # See if we find them without any special options.
9347 # Don't add to $LIBS permanently.
9348 ac_save_LIBS=$LIBS
9349 LIBS="-lX11 $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <X11/Xlib.h>
9358 main ()
9360 XrmInitialize ()
9362 return 0;
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (ac_try="$ac_link"
9367 case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
9383 LIBS=$ac_save_LIBS
9384 # We can link X programs with no special library path.
9385 ac_x_libraries=
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 LIBS=$ac_save_LIBS
9391 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9393 # Don't even attempt the hair of trying to link an X program!
9394 for ac_extension in a so sl; do
9395 if test -r "$ac_dir/libX11.$ac_extension"; then
9396 ac_x_libraries=$ac_dir
9397 break 2
9399 done
9400 done
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi # $ac_x_libraries = no
9407 case $ac_x_includes,$ac_x_libraries in #(
9408 no,* | *,no | *\'*)
9409 # Didn't find X, or a directory has "'" in its name.
9410 ac_cv_have_x="have_x=no";; #(
9412 # Record where we found X for the cache.
9413 ac_cv_have_x="have_x=yes\
9414 ac_x_includes='$ac_x_includes'\
9415 ac_x_libraries='$ac_x_libraries'"
9416 esac
9418 ;; #(
9419 *) have_x=yes;;
9420 esac
9421 eval "$ac_cv_have_x"
9422 fi # $with_x != no
9424 if test "$have_x" != yes; then
9425 { echo "$as_me:$LINENO: result: $have_x" >&5
9426 echo "${ECHO_T}$have_x" >&6; }
9427 no_x=yes
9428 else
9429 # If each of the values was on the command line, it overrides each guess.
9430 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9431 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9432 # Update the cache value to reflect the command line values.
9433 ac_cv_have_x="have_x=yes\
9434 ac_x_includes='$x_includes'\
9435 ac_x_libraries='$x_libraries'"
9436 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9437 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9440 if test "$no_x" = yes; then
9441 window_system=none
9442 else
9443 window_system=x11
9446 if test "${x_libraries}" != NONE; then
9447 if test -n "${x_libraries}"; then
9448 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9449 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9451 x_default_search_path=""
9452 x_search_path=${x_libraries}
9453 if test -z "${x_search_path}"; then
9454 x_search_path=/usr/lib
9456 for x_library in `echo ${x_search_path}: | \
9457 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9458 x_search_path="\
9459 ${x_library}/X11/%L/%T/%N%C%S:\
9460 ${x_library}/X11/%l/%T/%N%C%S:\
9461 ${x_library}/X11/%T/%N%C%S:\
9462 ${x_library}/X11/%L/%T/%N%S:\
9463 ${x_library}/X11/%l/%T/%N%S:\
9464 ${x_library}/X11/%T/%N%S"
9465 if test x"${x_default_search_path}" = x; then
9466 x_default_search_path=${x_search_path}
9467 else
9468 x_default_search_path="${x_search_path}:${x_default_search_path}"
9470 done
9472 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9473 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9476 if test x"${x_includes}" = x; then
9477 bitmapdir=/usr/include/X11/bitmaps
9478 else
9479 # accumulate include directories that have X11 bitmap subdirectories
9480 bmd_acc="dummyval"
9481 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9482 if test -d "${bmd}/X11/bitmaps"; then
9483 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9485 if test -d "${bmd}/bitmaps"; then
9486 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9488 done
9489 if test ${bmd_acc} != "dummyval"; then
9490 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9494 HAVE_CARBON=no
9495 if test "${with_carbon}" != no; then
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9498 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9499 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9504 else
9505 # Is the header compilable?
9506 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9507 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <Carbon/Carbon.h>
9516 _ACEOF
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9519 case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest.$ac_objext; then
9534 ac_header_compiler=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_header_compiler=no
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6; }
9546 # Is the header present?
9547 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9548 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <Carbon/Carbon.h>
9556 _ACEOF
9557 if { (ac_try="$ac_cpp conftest.$ac_ext"
9558 case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } >/dev/null && {
9570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 }; then
9573 ac_header_preproc=yes
9574 else
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ac_header_preproc=no
9581 rm -f conftest.err conftest.$ac_ext
9582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9583 echo "${ECHO_T}$ac_header_preproc" >&6; }
9585 # So? What about this header?
9586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9587 yes:no: )
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9591 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9592 ac_header_preproc=yes
9594 no:yes:* )
9595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9596 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9598 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9600 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9606 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9609 esac
9610 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9611 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9617 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9618 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9621 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9622 HAVE_CARBON=yes
9627 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9628 if test "${with_carbon+set}" != set \
9629 && test "${carbon_appdir_x+set}" != set; then
9630 for var in with_x with_x_toolkit with_gtk with_xim \
9631 with_xpm with_jpeg with_tiff with_gif with_png; do
9632 if eval test \"\${$var+set}\" = set; then
9633 HAVE_CARBON=no
9634 break
9636 done
9639 if test "${HAVE_CARBON}" = yes; then
9640 window_system=mac
9643 case "${window_system}" in
9644 x11 )
9645 HAVE_X_WINDOWS=yes
9646 HAVE_X11=yes
9647 case "${with_x_toolkit}" in
9648 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9649 motif ) USE_X_TOOLKIT=MOTIF ;;
9650 gtk ) with_gtk=yes
9651 USE_X_TOOLKIT=none ;;
9652 no ) USE_X_TOOLKIT=none ;;
9654 if test x"$with_gtk" = xyes; then
9655 USE_X_TOOLKIT=none
9656 else
9657 USE_X_TOOLKIT=maybe
9660 esac
9662 mac | none )
9663 HAVE_X_WINDOWS=no
9664 HAVE_X11=no
9665 USE_X_TOOLKIT=none
9667 esac
9669 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9670 # Extract the first word of "X", so it can be a program name with args.
9671 set dummy X; ac_word=$2
9672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9674 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 if test -n "$HAVE_XSERVER"; then
9678 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_HAVE_XSERVER="true"
9688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9691 done
9692 done
9693 IFS=$as_save_IFS
9695 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9698 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9699 if test -n "$HAVE_XSERVER"; then
9700 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9701 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9702 else
9703 { echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6; }
9708 if test "$HAVE_XSERVER" = true ||
9709 test -n "$DISPLAY" ||
9710 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9711 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9712 were found. You should install the relevant development files for X
9713 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9714 sure you have development files for image handling, i.e.
9715 tiff, gif, jpeg, png and xpm.
9716 If you are sure you want Emacs compiled without X window support, pass
9717 --without-x
9718 to configure." >&5
9719 echo "$as_me: error: You seem to be running X, but no X development libraries
9720 were found. You should install the relevant development files for X
9721 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9722 sure you have development files for image handling, i.e.
9723 tiff, gif, jpeg, png and xpm.
9724 If you are sure you want Emacs compiled without X window support, pass
9725 --without-x
9726 to configure." >&2;}
9727 { (exit 1); exit 1; }; }
9731 ### If we're using X11, we should use the X menu package.
9732 HAVE_MENUS=no
9733 case ${HAVE_X11} in
9734 yes ) HAVE_MENUS=yes ;;
9735 esac
9737 if test "${opsys}" = "hpux9"; then
9738 case "${x_libraries}" in
9739 *X11R4* )
9740 opsysfile="s/hpux9-x11r4.h"
9742 esac
9745 if test "${opsys}" = "hpux9shr"; then
9746 case "${x_libraries}" in
9747 *X11R4* )
9748 opsysfile="s/hpux9shxr4.h"
9750 esac
9753 ### Compute the unexec source name from the object name.
9754 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9756 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9757 # Assume not, until told otherwise.
9758 GNU_MALLOC=yes
9759 doug_lea_malloc=yes
9760 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9761 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773 #define malloc_get_state innocuous_malloc_get_state
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char malloc_get_state (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9780 #ifdef __STDC__
9781 # include <limits.h>
9782 #else
9783 # include <assert.h>
9784 #endif
9786 #undef malloc_get_state
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char malloc_get_state ();
9795 /* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
9798 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9799 choke me
9800 #endif
9803 main ()
9805 return malloc_get_state ();
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_func_malloc_get_state=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_func_malloc_get_state=no
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9840 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9841 if test $ac_cv_func_malloc_get_state = yes; then
9843 else
9844 doug_lea_malloc=no
9847 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9848 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9849 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9860 #define malloc_set_state innocuous_malloc_set_state
9862 /* System header to define __stub macros and hopefully few prototypes,
9863 which can conflict with char malloc_set_state (); below.
9864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9865 <limits.h> exists even on freestanding compilers. */
9867 #ifdef __STDC__
9868 # include <limits.h>
9869 #else
9870 # include <assert.h>
9871 #endif
9873 #undef malloc_set_state
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char malloc_set_state ();
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9886 choke me
9887 #endif
9890 main ()
9892 return malloc_set_state ();
9894 return 0;
9896 _ACEOF
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9899 case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext &&
9914 $as_test_x conftest$ac_exeext; then
9915 ac_cv_func_malloc_set_state=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_func_malloc_set_state=no
9923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924 conftest$ac_exeext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9927 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9928 if test $ac_cv_func_malloc_set_state = yes; then
9930 else
9931 doug_lea_malloc=no
9934 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9935 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9936 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 extern void (* __after_morecore_hook)();
9947 main ()
9949 __after_morecore_hook = 0
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest$ac_exeext &&
9971 $as_test_x conftest$ac_exeext; then
9972 emacs_cv_var___after_morecore_hook=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 emacs_cv_var___after_morecore_hook=no
9980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9981 conftest$ac_exeext conftest.$ac_ext
9983 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9984 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9985 if test $emacs_cv_var___after_morecore_hook = no; then
9986 doug_lea_malloc=no
9988 if test "${system_malloc}" = "yes"; then
9989 GNU_MALLOC=no
9990 GNU_MALLOC_reason="
9991 (The GNU allocators don't work with this system configuration.)"
9993 if test "$doug_lea_malloc" = "yes" ; then
9994 if test "$GNU_MALLOC" = yes ; then
9995 GNU_MALLOC_reason="
9996 (Using Doug Lea's new malloc from the GNU C Library.)"
9999 cat >>confdefs.h <<\_ACEOF
10000 #define DOUG_LEA_MALLOC 1
10001 _ACEOF
10005 if test x"${REL_ALLOC}" = x; then
10006 REL_ALLOC=${GNU_MALLOC}
10012 for ac_header in stdlib.h unistd.h
10014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 ac_res=`eval echo '${'$as_ac_Header'}'`
10022 { echo "$as_me:$LINENO: result: $ac_res" >&5
10023 echo "${ECHO_T}$ac_res" >&6; }
10024 else
10025 # Is the header compilable?
10026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 $ac_includes_default
10035 #include <$ac_header>
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_header_compiler=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_compiler=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10064 echo "${ECHO_T}$ac_header_compiler" >&6; }
10066 # Is the header present?
10067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <$ac_header>
10076 _ACEOF
10077 if { (ac_try="$ac_cpp conftest.$ac_ext"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } >/dev/null && {
10090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 }; then
10093 ac_header_preproc=yes
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_header_preproc=no
10101 rm -f conftest.err conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6; }
10105 # So? What about this header?
10106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10107 yes:no: )
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10112 ac_header_preproc=yes
10114 no:yes:* )
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10129 esac
10130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 eval "$as_ac_Header=\$ac_header_preproc"
10137 ac_res=`eval echo '${'$as_ac_Header'}'`
10138 { echo "$as_me:$LINENO: result: $ac_res" >&5
10139 echo "${ECHO_T}$ac_res" >&6; }
10142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145 _ACEOF
10149 done
10152 for ac_func in getpagesize
10154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10168 #define $ac_func innocuous_$ac_func
10170 /* System header to define __stub macros and hopefully few prototypes,
10171 which can conflict with char $ac_func (); below.
10172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10173 <limits.h> exists even on freestanding compilers. */
10175 #ifdef __STDC__
10176 # include <limits.h>
10177 #else
10178 # include <assert.h>
10179 #endif
10181 #undef $ac_func
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char $ac_func ();
10190 /* The GNU C library defines this for functions which it implements
10191 to always fail with ENOSYS. Some functions are actually named
10192 something starting with __ and the normal name is an alias. */
10193 #if defined __stub_$ac_func || defined __stub___$ac_func
10194 choke me
10195 #endif
10198 main ()
10200 return $ac_func ();
10202 return 0;
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 eval "$as_ac_var=yes"
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 eval "$as_ac_var=no"
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10234 ac_res=`eval echo '${'$as_ac_var'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 _ACEOF
10243 done
10245 { echo "$as_me:$LINENO: checking for working mmap" >&5
10246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 if test "$cross_compiling" = yes; then
10251 ac_cv_func_mmap_fixed_mapped=no
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 /* malloc might have been renamed as rpl_malloc. */
10261 #undef malloc
10263 /* Thanks to Mike Haertel and Jim Avera for this test.
10264 Here is a matrix of mmap possibilities:
10265 mmap private not fixed
10266 mmap private fixed at somewhere currently unmapped
10267 mmap private fixed at somewhere already mapped
10268 mmap shared not fixed
10269 mmap shared fixed at somewhere currently unmapped
10270 mmap shared fixed at somewhere already mapped
10271 For private mappings, we should verify that changes cannot be read()
10272 back from the file, nor mmap's back from the file at a different
10273 address. (There have been systems where private was not correctly
10274 implemented like the infamous i386 svr4.0, and systems where the
10275 VM page cache was not coherent with the file system buffer cache
10276 like early versions of FreeBSD and possibly contemporary NetBSD.)
10277 For shared mappings, we should conversely verify that changes get
10278 propagated back to all the places they're supposed to be.
10280 Grep wants private fixed already mapped.
10281 The main things grep needs to know about mmap are:
10282 * does it exist and is it safe to write into the mmap'd area
10283 * how to use it (BSD variants) */
10285 #include <fcntl.h>
10286 #include <sys/mman.h>
10288 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10289 char *malloc ();
10290 #endif
10292 /* This mess was copied from the GNU getpagesize.h. */
10293 #ifndef HAVE_GETPAGESIZE
10294 /* Assume that all systems that can run configure have sys/param.h. */
10295 # ifndef HAVE_SYS_PARAM_H
10296 # define HAVE_SYS_PARAM_H 1
10297 # endif
10299 # ifdef _SC_PAGESIZE
10300 # define getpagesize() sysconf(_SC_PAGESIZE)
10301 # else /* no _SC_PAGESIZE */
10302 # ifdef HAVE_SYS_PARAM_H
10303 # include <sys/param.h>
10304 # ifdef EXEC_PAGESIZE
10305 # define getpagesize() EXEC_PAGESIZE
10306 # else /* no EXEC_PAGESIZE */
10307 # ifdef NBPG
10308 # define getpagesize() NBPG * CLSIZE
10309 # ifndef CLSIZE
10310 # define CLSIZE 1
10311 # endif /* no CLSIZE */
10312 # else /* no NBPG */
10313 # ifdef NBPC
10314 # define getpagesize() NBPC
10315 # else /* no NBPC */
10316 # ifdef PAGESIZE
10317 # define getpagesize() PAGESIZE
10318 # endif /* PAGESIZE */
10319 # endif /* no NBPC */
10320 # endif /* no NBPG */
10321 # endif /* no EXEC_PAGESIZE */
10322 # else /* no HAVE_SYS_PARAM_H */
10323 # define getpagesize() 8192 /* punt totally */
10324 # endif /* no HAVE_SYS_PARAM_H */
10325 # endif /* no _SC_PAGESIZE */
10327 #endif /* no HAVE_GETPAGESIZE */
10330 main ()
10332 char *data, *data2, *data3;
10333 int i, pagesize;
10334 int fd;
10336 pagesize = getpagesize ();
10338 /* First, make a file with some known garbage in it. */
10339 data = (char *) malloc (pagesize);
10340 if (!data)
10341 return 1;
10342 for (i = 0; i < pagesize; ++i)
10343 *(data + i) = rand ();
10344 umask (0);
10345 fd = creat ("conftest.mmap", 0600);
10346 if (fd < 0)
10347 return 1;
10348 if (write (fd, data, pagesize) != pagesize)
10349 return 1;
10350 close (fd);
10352 /* Next, try to mmap the file at a fixed address which already has
10353 something else allocated at it. If we can, also make sure that
10354 we see the same garbage. */
10355 fd = open ("conftest.mmap", O_RDWR);
10356 if (fd < 0)
10357 return 1;
10358 data2 = (char *) malloc (2 * pagesize);
10359 if (!data2)
10360 return 1;
10361 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10364 return 1;
10365 for (i = 0; i < pagesize; ++i)
10366 if (*(data + i) != *(data2 + i))
10367 return 1;
10369 /* Finally, make sure that changes to the mapped area do not
10370 percolate back to the file as seen by read(). (This is a bug on
10371 some variants of i386 svr4.0.) */
10372 for (i = 0; i < pagesize; ++i)
10373 *(data2 + i) = *(data2 + i) + 1;
10374 data3 = (char *) malloc (pagesize);
10375 if (!data3)
10376 return 1;
10377 if (read (fd, data3, pagesize) != pagesize)
10378 return 1;
10379 for (i = 0; i < pagesize; ++i)
10380 if (*(data + i) != *(data3 + i))
10381 return 1;
10382 close (fd);
10383 return 0;
10385 _ACEOF
10386 rm -f 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>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397 { (case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_try") 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_func_mmap_fixed_mapped=yes
10407 else
10408 echo "$as_me: program exited with status $ac_status" >&5
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ( exit $ac_status )
10413 ac_cv_func_mmap_fixed_mapped=no
10415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10421 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10422 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_MMAP 1
10426 _ACEOF
10429 rm -f conftest.mmap
10431 if test $use_mmap_for_buffers = yes; then
10432 REL_ALLOC=no
10435 LIBS="$libsrc_libs $LIBS"
10438 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443 ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ldnet $LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char dnet_ntoa ();
10460 main ()
10462 return dnet_ntoa ();
10464 return 0;
10466 _ACEOF
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 ac_cv_lib_dnet_dnet_ntoa=yes
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_dnet_dnet_ntoa=no
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10499 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_LIBDNET 1
10502 _ACEOF
10504 LIBS="-ldnet $LIBS"
10509 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10510 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10511 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lXbsd $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10525 main ()
10527 return main ();
10529 return 0;
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (ac_try="$ac_link"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext &&
10549 $as_test_x conftest$ac_exeext; then
10550 ac_cv_lib_Xbsd_main=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_cv_lib_Xbsd_main=no
10558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10563 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10564 if test $ac_cv_lib_Xbsd_main = yes; then
10565 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10570 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10571 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lpthreads $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char cma_open ();
10592 main ()
10594 return cma_open ();
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest$ac_exeext &&
10616 $as_test_x conftest$ac_exeext; then
10617 ac_cv_lib_pthreads_cma_open=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_pthreads_cma_open=no
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10630 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10631 if test $ac_cv_lib_pthreads_cma_open = yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_LIBPTHREADS 1
10634 _ACEOF
10636 LIBS="-lpthreads $LIBS"
10641 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10642 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10643 if test -d /usr/X386/include; then
10644 HAVE_XFREE386=yes
10645 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10646 else
10647 HAVE_XFREE386=no
10649 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10650 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10653 case ${host_os} in
10654 aix*)
10655 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10656 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10657 if test "${gdb_cv_bigtoc+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10661 case $GCC in
10662 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10663 *) gdb_cv_bigtoc=-bbigtoc ;;
10664 esac
10666 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10675 main ()
10677 int i;
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext &&
10699 $as_test_x conftest$ac_exeext; then
10701 else
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 gdb_cv_bigtoc=
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10713 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10715 esac
10717 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10718 # used for the tests that follow. We set them back to REAL_CFLAGS and
10719 # REAL_CPPFLAGS later on.
10721 REAL_CPPFLAGS="$CPPFLAGS"
10723 if test "${HAVE_X11}" = "yes"; then
10724 DEFS="$C_SWITCH_X_SITE $DEFS"
10725 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10726 LIBS="$LIBX $LIBS"
10727 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10728 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10730 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10731 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10732 # but it's more convenient here to set LD_RUN_PATH
10733 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10734 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10735 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10736 export LD_RUN_PATH
10739 if test "${opsys}" = "gnu-linux"; then
10740 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10741 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10750 main ()
10752 XOpenDisplay ("foo");
10754 return 0;
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest$ac_exeext &&
10774 $as_test_x conftest$ac_exeext; then
10775 xlinux_first_failure=no
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 xlinux_first_failure=yes
10783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10784 conftest$ac_exeext conftest.$ac_ext
10785 if test "${xlinux_first_failure}" = "yes"; then
10786 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10787 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10788 OLD_CPPFLAGS="$CPPFLAGS"
10789 OLD_LIBS="$LIBS"
10790 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10791 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10792 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10793 LIBS="$LIBS -b i486-linuxaout"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10802 main ()
10804 XOpenDisplay ("foo");
10806 return 0;
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 xlinux_second_failure=no
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 xlinux_second_failure=yes
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 if test "${xlinux_second_failure}" = "yes"; then
10838 # If we get the same failure with -b, there is no use adding -b.
10839 # So take it out. This plays safe.
10840 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10841 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10842 CPPFLAGS="$OLD_CPPFLAGS"
10843 LIBS="$OLD_LIBS"
10844 { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6; }
10850 else
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10856 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10857 # header files included from there.
10858 { echo "$as_me:$LINENO: checking for Xkb" >&5
10859 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <X11/Xlib.h>
10867 #include <X11/XKBlib.h>
10869 main ()
10871 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10873 return 0;
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } && {
10890 test -z "$ac_c_werror_flag" ||
10891 test ! -s conftest.err
10892 } && test -s conftest$ac_exeext &&
10893 $as_test_x conftest$ac_exeext; then
10894 emacs_xkb=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 emacs_xkb=no
10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10903 conftest$ac_exeext conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10905 echo "${ECHO_T}$emacs_xkb" >&6; }
10906 if test $emacs_xkb = yes; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_XKBGETKEYBOARD 1
10910 _ACEOF
10918 for ac_func in XrmSetDatabase XScreenResourceString \
10919 XScreenNumberOfScreen XSetWMProtocols
10921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10935 #define $ac_func innocuous_$ac_func
10937 /* System header to define __stub macros and hopefully few prototypes,
10938 which can conflict with char $ac_func (); below.
10939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10940 <limits.h> exists even on freestanding compilers. */
10942 #ifdef __STDC__
10943 # include <limits.h>
10944 #else
10945 # include <assert.h>
10946 #endif
10948 #undef $ac_func
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char $ac_func ();
10957 /* The GNU C library defines this for functions which it implements
10958 to always fail with ENOSYS. Some functions are actually named
10959 something starting with __ and the normal name is an alias. */
10960 #if defined __stub_$ac_func || defined __stub___$ac_func
10961 choke me
10962 #endif
10965 main ()
10967 return $ac_func ();
10969 return 0;
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (ac_try="$ac_link"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10990 eval "$as_ac_var=yes"
10991 else
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 eval "$as_ac_var=no"
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11001 ac_res=`eval echo '${'$as_ac_var'}'`
11002 { echo "$as_me:$LINENO: result: $ac_res" >&5
11003 echo "${ECHO_T}$ac_res" >&6; }
11004 if test `eval echo '${'$as_ac_var'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11007 _ACEOF
11010 done
11014 if test "${window_system}" = "x11"; then
11015 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11016 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11017 if test "${emacs_cv_x11_version_6+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <X11/Xlib.h>
11028 main ()
11030 #if XlibSpecificationRelease < 6
11031 fail;
11032 #endif
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext &&
11055 $as_test_x conftest$ac_exeext; then
11056 emacs_cv_x11_version_6=yes
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 emacs_cv_x11_version_6=no
11064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065 conftest$ac_exeext conftest.$ac_ext
11068 if test $emacs_cv_x11_version_6 = yes; then
11069 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11070 echo "${ECHO_T}6 or newer" >&6; }
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_X11R6 1
11074 _ACEOF
11076 else
11077 { echo "$as_me:$LINENO: result: before 6" >&5
11078 echo "${ECHO_T}before 6" >&6; }
11082 if test "${window_system}" = "x11"; then
11083 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11084 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11085 if test "${emacs_cv_x11_version_5+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <X11/Xlib.h>
11096 main ()
11098 #if XlibSpecificationRelease < 5
11099 fail;
11100 #endif
11103 return 0;
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_link") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext &&
11123 $as_test_x conftest$ac_exeext; then
11124 emacs_cv_x11_version_5=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 emacs_cv_x11_version_5=no
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133 conftest$ac_exeext conftest.$ac_ext
11136 if test $emacs_cv_x11_version_5 = yes; then
11137 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11138 echo "${ECHO_T}5 or newer" >&6; }
11139 HAVE_X11R5=yes
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_X11R5 1
11143 _ACEOF
11145 else
11146 HAVE_X11R5=no
11147 { echo "$as_me:$LINENO: result: before 5" >&5
11148 echo "${ECHO_T}before 5" >&6; }
11152 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11153 HAVE_RSVG=no
11154 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11155 if test "${with_rsvg}" != "no"; then
11156 if test "X${with_pkg_config_prog}" != X; then
11157 PKG_CONFIG="${with_pkg_config_prog}"
11160 RSVG_REQUIRED=2.0.0
11161 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11164 succeeded=no
11166 if test -z "$PKG_CONFIG"; then
11167 # Extract the first word of "pkg-config", so it can be a program name with args.
11168 set dummy pkg-config; ac_word=$2
11169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174 case $PKG_CONFIG in
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11190 done
11191 done
11192 IFS=$as_save_IFS
11194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11196 esac
11198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11199 if test -n "$PKG_CONFIG"; then
11200 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11201 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11202 else
11203 { echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6; }
11210 if test "$PKG_CONFIG" = "no" ; then
11212 else
11213 PKG_CONFIG_MIN_VERSION=0.9.0
11214 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11215 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11216 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11218 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11219 { echo "$as_me:$LINENO: result: yes" >&5
11220 echo "${ECHO_T}yes" >&6; }
11221 succeeded=yes
11223 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11224 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11225 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11226 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11227 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11229 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11230 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11231 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11232 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11233 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11234 else
11235 { echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6; }
11237 RSVG_CFLAGS=""
11238 RSVG_LIBS=""
11239 ## If we have a custom action on failure, don't print errors, but
11240 ## do set a variable so people can do so.
11241 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11247 else
11248 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11249 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11253 if test $succeeded = yes; then
11255 else
11262 if test ".${RSVG_CFLAGS}" != "."; then
11263 HAVE_RSVG=yes
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_RSVG 1
11267 _ACEOF
11269 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11270 LIBS="$RSVG_LIBS $LIBS"
11276 HAVE_GTK=no
11277 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11278 USE_X_TOOLKIT=none
11280 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11281 test "$USE_X_TOOLKIT" = "maybe"; then
11282 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11283 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11284 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11285 { (exit 1); exit 1; }; };
11287 GLIB_REQUIRED=2.6
11288 GTK_REQUIRED=2.6
11289 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11291 if test "X${with_pkg_config_prog}" != X; then
11292 PKG_CONFIG="${with_pkg_config_prog}"
11295 succeeded=no
11297 if test -z "$PKG_CONFIG"; then
11298 # Extract the first word of "pkg-config", so it can be a program name with args.
11299 set dummy pkg-config; ac_word=$2
11300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 case $PKG_CONFIG in
11306 [\\/]* | ?:[\\/]*)
11307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11321 done
11322 done
11323 IFS=$as_save_IFS
11325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11327 esac
11329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11330 if test -n "$PKG_CONFIG"; then
11331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11333 else
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11341 if test "$PKG_CONFIG" = "no" ; then
11342 pkg_check_gtk=no
11343 else
11344 PKG_CONFIG_MIN_VERSION=0.9.0
11345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11346 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11347 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11349 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11350 { echo "$as_me:$LINENO: result: yes" >&5
11351 echo "${ECHO_T}yes" >&6; }
11352 succeeded=yes
11354 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11355 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11356 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11357 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11358 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11360 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11361 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11362 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11363 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11364 echo "${ECHO_T}$GTK_LIBS" >&6; }
11365 else
11366 { echo "$as_me:$LINENO: result: no" >&5
11367 echo "${ECHO_T}no" >&6; }
11368 GTK_CFLAGS=""
11369 GTK_LIBS=""
11370 ## If we have a custom action on failure, don't print errors, but
11371 ## do set a variable so people can do so.
11372 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11378 else
11379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11384 if test $succeeded = yes; then
11385 pkg_check_gtk=yes
11386 else
11387 pkg_check_gtk=no
11390 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11391 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11392 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11393 { (exit 1); exit 1; }; }
11398 if test x"$pkg_check_gtk" = xyes; then
11402 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11403 CFLAGS="$CFLAGS $GTK_CFLAGS"
11404 LIBS="$GTK_LIBS $LIBS"
11405 GTK_COMPILES=no
11407 for ac_func in gtk_main
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11430 #ifdef __STDC__
11431 # include <limits.h>
11432 #else
11433 # include <assert.h>
11434 #endif
11436 #undef $ac_func
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char $ac_func ();
11445 /* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448 #if defined __stub_$ac_func || defined __stub___$ac_func
11449 choke me
11450 #endif
11453 main ()
11455 return $ac_func ();
11457 return 0;
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (ac_try="$ac_link"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 eval "$as_ac_var=yes"
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 eval "$as_ac_var=no"
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11489 ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495 _ACEOF
11496 GTK_COMPILES=yes
11498 done
11500 if test "${GTK_COMPILES}" != "yes"; then
11501 if test "$USE_X_TOOLKIT" != "maybe"; then
11502 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11503 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11504 { (exit 1); exit 1; }; };
11506 else
11507 HAVE_GTK=yes
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_GTK 1
11511 _ACEOF
11513 USE_X_TOOLKIT=none
11519 if test "${HAVE_GTK}" = "yes"; then
11521 if test "$with_toolkit_scroll_bars" != no; then
11522 with_toolkit_scroll_bars=yes
11525 HAVE_GTK_MULTIDISPLAY=no
11527 for ac_func in gdk_display_open
11529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11543 #define $ac_func innocuous_$ac_func
11545 /* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func (); below.
11547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11548 <limits.h> exists even on freestanding compilers. */
11550 #ifdef __STDC__
11551 # include <limits.h>
11552 #else
11553 # include <assert.h>
11554 #endif
11556 #undef $ac_func
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 char $ac_func ();
11565 /* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568 #if defined __stub_$ac_func || defined __stub___$ac_func
11569 choke me
11570 #endif
11573 main ()
11575 return $ac_func ();
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest$ac_exeext &&
11597 $as_test_x conftest$ac_exeext; then
11598 eval "$as_ac_var=yes"
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 eval "$as_ac_var=no"
11606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11607 conftest$ac_exeext conftest.$ac_ext
11609 ac_res=`eval echo '${'$as_ac_var'}'`
11610 { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11612 if test `eval echo '${'$as_ac_var'}'` = yes; then
11613 cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11615 _ACEOF
11616 HAVE_GTK_MULTIDISPLAY=yes
11618 done
11620 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11622 cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_GTK_MULTIDISPLAY 1
11624 _ACEOF
11628 HAVE_GTK_FILE_SELECTION=no
11630 for ac_func in gtk_file_selection_new
11632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11646 #define $ac_func innocuous_$ac_func
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char $ac_func (); below.
11650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651 <limits.h> exists even on freestanding compilers. */
11653 #ifdef __STDC__
11654 # include <limits.h>
11655 #else
11656 # include <assert.h>
11657 #endif
11659 #undef $ac_func
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char $ac_func ();
11668 /* The GNU C library defines this for functions which it implements
11669 to always fail with ENOSYS. Some functions are actually named
11670 something starting with __ and the normal name is an alias. */
11671 #if defined __stub_$ac_func || defined __stub___$ac_func
11672 choke me
11673 #endif
11676 main ()
11678 return $ac_func ();
11680 return 0;
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext &&
11700 $as_test_x conftest$ac_exeext; then
11701 eval "$as_ac_var=yes"
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 eval "$as_ac_var=no"
11709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710 conftest$ac_exeext conftest.$ac_ext
11712 ac_res=`eval echo '${'$as_ac_var'}'`
11713 { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11715 if test `eval echo '${'$as_ac_var'}'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 _ACEOF
11719 HAVE_GTK_FILE_SELECTION=yes
11721 done
11724 HAVE_GTK_FILE_CHOOSER=no
11726 for ac_func in gtk_file_chooser_dialog_new
11728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11749 #ifdef __STDC__
11750 # include <limits.h>
11751 #else
11752 # include <assert.h>
11753 #endif
11755 #undef $ac_func
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char $ac_func ();
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11768 choke me
11769 #endif
11772 main ()
11774 return $ac_func ();
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_link") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest$ac_exeext &&
11796 $as_test_x conftest$ac_exeext; then
11797 eval "$as_ac_var=yes"
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 eval "$as_ac_var=no"
11805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval echo '${'$as_ac_var'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811 if test `eval echo '${'$as_ac_var'}'` = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 _ACEOF
11815 HAVE_GTK_FILE_CHOOSER=yes
11817 done
11820 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11821 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11823 cat >>confdefs.h <<\_ACEOF
11824 #define HAVE_GTK_FILE_BOTH 1
11825 _ACEOF
11829 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11830 HAVE_GTK_AND_PTHREAD=no
11832 for ac_header in pthread.h
11834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 ac_res=`eval echo '${'$as_ac_Header'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11844 else
11845 # Is the header compilable?
11846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11855 #include <$ac_header>
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (ac_try="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_header_compiler=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_compiler=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11884 echo "${ECHO_T}$ac_header_compiler" >&6; }
11886 # Is the header present?
11887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 #include <$ac_header>
11896 _ACEOF
11897 if { (ac_try="$ac_cpp conftest.$ac_ext"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 }; then
11913 ac_header_preproc=yes
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6; }
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11934 no:yes:* )
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11949 esac
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955 eval "$as_ac_Header=\$ac_header_preproc"
11957 ac_res=`eval echo '${'$as_ac_Header'}'`
11958 { echo "$as_me:$LINENO: result: $ac_res" >&5
11959 echo "${ECHO_T}$ac_res" >&6; }
11962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 _ACEOF
11969 done
11971 if test "$ac_cv_header_pthread_h"; then
11972 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11973 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11974 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-lpthread $LIBS"
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char pthread_self ();
11994 main ()
11996 return pthread_self ();
11998 return 0;
12000 _ACEOF
12001 rm -f conftest.$ac_objext conftest$ac_exeext
12002 if { (ac_try="$ac_link"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_link") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext &&
12018 $as_test_x conftest$ac_exeext; then
12019 ac_cv_lib_pthread_pthread_self=yes
12020 else
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ac_cv_lib_pthread_pthread_self=no
12027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LIBS=$ac_check_lib_save_LIBS
12031 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12032 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12033 if test $ac_cv_lib_pthread_pthread_self = yes; then
12034 HAVE_GTK_AND_PTHREAD=yes
12038 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12039 GTK_LIBS="$GTK_LIBS -lpthread"
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_GTK_AND_PTHREAD 1
12043 _ACEOF
12049 ### Link with -lXft if available to work around a bug.
12050 HAVE_XFT=maybe
12051 if test "${HAVE_GTK}" = "yes"; then
12052 if test "X${with_pkg_config_prog}" != X; then
12053 PKG_CONFIG="${with_pkg_config_prog}"
12057 succeeded=no
12059 if test -z "$PKG_CONFIG"; then
12060 # Extract the first word of "pkg-config", so it can be a program name with args.
12061 set dummy pkg-config; ac_word=$2
12062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067 case $PKG_CONFIG in
12068 [\\/]* | ?:[\\/]*)
12069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 break 2
12083 done
12084 done
12085 IFS=$as_save_IFS
12087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12089 esac
12091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12092 if test -n "$PKG_CONFIG"; then
12093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12095 else
12096 { echo "$as_me:$LINENO: result: no" >&5
12097 echo "${ECHO_T}no" >&6; }
12103 if test "$PKG_CONFIG" = "no" ; then
12104 HAVE_XFT=no
12105 else
12106 PKG_CONFIG_MIN_VERSION=0.9.0
12107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12108 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12109 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12111 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12112 { echo "$as_me:$LINENO: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6; }
12114 succeeded=yes
12116 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12117 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12118 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12119 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12120 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12122 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12123 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12124 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12125 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12126 echo "${ECHO_T}$XFT_LIBS" >&6; }
12127 else
12128 { echo "$as_me:$LINENO: result: no" >&5
12129 echo "${ECHO_T}no" >&6; }
12130 XFT_CFLAGS=""
12131 XFT_LIBS=""
12132 ## If we have a custom action on failure, don't print errors, but
12133 ## do set a variable so people can do so.
12134 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12140 else
12141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12146 if test $succeeded = yes; then
12148 else
12149 HAVE_XFT=no
12152 if test "$HAVE_XFT" != no; then
12153 OLD_CFLAGS="$CPPFLAGS"
12154 OLD_CPPFLAGS="$CFLAGS"
12155 OLD_LIBS="$LIBS"
12156 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12157 CFLAGS="$CFLAGS $XFT_CFLAGS"
12158 LIBS="$XFT_LIBS $LIBS"
12159 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12160 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12161 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12162 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12166 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12167 else
12168 # Is the header compilable?
12169 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12170 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <X11/Xft/Xft.h>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 ac_header_compiler=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_header_compiler=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12207 echo "${ECHO_T}$ac_header_compiler" >&6; }
12209 # Is the header present?
12210 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12211 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 #include <X11/Xft/Xft.h>
12219 _ACEOF
12220 if { (ac_try="$ac_cpp conftest.$ac_ext"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } >/dev/null && {
12233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 }; then
12236 ac_header_preproc=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_header_preproc=no
12244 rm -f conftest.err conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12246 echo "${ECHO_T}$ac_header_preproc" >&6; }
12248 # So? What about this header?
12249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12250 yes:no: )
12251 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12252 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12254 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12255 ac_header_preproc=yes
12257 no:yes:* )
12258 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12259 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12261 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12263 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12265 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12267 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12269 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12272 esac
12273 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12274 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12275 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12280 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12281 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12284 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12285 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12286 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12287 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-lXft $XFT_LIBS $LIBS"
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h. */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12299 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char XftFontOpen ();
12307 main ()
12309 return XftFontOpen ();
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 ac_cv_lib_Xft_XftFontOpen=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_cv_lib_Xft_XftFontOpen=no
12340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12345 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12346 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12347 HAVE_XFT=yes
12354 if test "${HAVE_XFT}" = "yes"; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_XFT 1
12358 _ACEOF
12361 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12362 else
12363 CFLAGS="$OLD_CPPFLAGS"
12364 CFLAGS="$OLD_CFLAGS"
12365 LIBS="$OLD_LIBS"
12370 HAVE_XAW3D=no
12371 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12372 if test x"${HAVE_X11R5}" != xyes; then
12373 USE_X_TOOLKIT=none
12374 else
12375 if test "$with_xaw3d" != no; then
12376 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12377 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12378 if test "${emacs_cv_xaw3d+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 #include <X11/Intrinsic.h>
12389 #include <X11/Xaw3d/Simple.h>
12391 main ()
12395 return 0;
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest$ac_exeext &&
12415 $as_test_x conftest$ac_exeext; then
12416 emacs_cv_xaw3d=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 emacs_cv_xaw3d=no
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12428 else
12429 emacs_cv_xaw3d=no
12431 if test $emacs_cv_xaw3d = yes; then
12432 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12433 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12434 USE_X_TOOLKIT=LUCID
12435 HAVE_XAW3D=yes
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_XAW3D 1
12439 _ACEOF
12441 else
12442 { echo "$as_me:$LINENO: result: no" >&5
12443 echo "${ECHO_T}no" >&6; }
12444 { echo "$as_me:$LINENO: checking for libXaw" >&5
12445 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12446 if test "${emacs_cv_xaw+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 #include <X11/Intrinsic.h>
12457 #include <X11/Xaw/Simple.h>
12459 main ()
12463 return 0;
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } && {
12480 test -z "$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12482 } && test -s conftest$ac_exeext &&
12483 $as_test_x conftest$ac_exeext; then
12484 emacs_cv_xaw=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 emacs_cv_xaw=no
12492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493 conftest$ac_exeext conftest.$ac_ext
12496 if test $emacs_cv_xaw = yes; then
12497 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12498 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12499 USE_X_TOOLKIT=LUCID
12500 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12501 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12502 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12503 { (exit 1); exit 1; }; }
12504 else
12505 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12506 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12507 USE_X_TOOLKIT=none
12513 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12515 if test "${USE_X_TOOLKIT}" != "none"; then
12516 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12517 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12518 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <X11/Intrinsic.h>
12529 main ()
12531 #if XtSpecificationRelease < 6
12532 fail;
12533 #endif
12536 return 0;
12538 _ACEOF
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_link") 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && {
12553 test -z "$ac_c_werror_flag" ||
12554 test ! -s conftest.err
12555 } && test -s conftest$ac_exeext &&
12556 $as_test_x conftest$ac_exeext; then
12557 emacs_cv_x11_toolkit_version_6=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 emacs_cv_x11_toolkit_version_6=no
12565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12566 conftest$ac_exeext conftest.$ac_ext
12569 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12570 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12571 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12572 echo "${ECHO_T}6 or newer" >&6; }
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_X11XTR6 1
12576 _ACEOF
12578 else
12579 { echo "$as_me:$LINENO: result: before 6" >&5
12580 echo "${ECHO_T}before 6" >&6; }
12583 OLDLIBS="$LIBS"
12584 if test x$HAVE_X11XTR6 = xyes; then
12585 LIBS="-lXt -lSM -lICE $LIBS"
12586 else
12587 LIBS="-lXt $LIBS"
12590 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12591 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-lXmu $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char XmuConvertStandardSelection ();
12612 main ()
12614 return XmuConvertStandardSelection ();
12616 return 0;
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext &&
12636 $as_test_x conftest$ac_exeext; then
12637 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12650 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12651 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBXMU 1
12654 _ACEOF
12656 LIBS="-lXmu $LIBS"
12660 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12663 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12664 if test "${HAVE_X11}" = "yes"; then
12665 if test "${USE_X_TOOLKIT}" != "none"; then
12667 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12668 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12669 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-lXext $LIBS"
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char XShapeQueryExtension ();
12689 main ()
12691 return XShapeQueryExtension ();
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest$ac_exeext &&
12713 $as_test_x conftest$ac_exeext; then
12714 ac_cv_lib_Xext_XShapeQueryExtension=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_lib_Xext_XShapeQueryExtension=no
12722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12727 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12728 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_LIBXEXT 1
12731 _ACEOF
12733 LIBS="-lXext $LIBS"
12740 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12741 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12742 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12743 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 #include <Xm/Xm.h>
12754 main ()
12756 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12757 int x = 5;
12758 #else
12759 Motif version prior to 2.1.
12760 #endif
12762 return 0;
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (ac_try="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.$ac_objext; then
12782 emacs_cv_motif_version_2_1=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 emacs_cv_motif_version_2_1=no
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12793 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12794 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12795 if test $emacs_cv_motif_version_2_1 = yes; then
12796 HAVE_LIBXP=no
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_MOTIF_2_1 1
12800 _ACEOF
12802 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12803 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12804 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lXp $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char XpCreateContext ();
12824 main ()
12826 return XpCreateContext ();
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext &&
12848 $as_test_x conftest$ac_exeext; then
12849 ac_cv_lib_Xp_XpCreateContext=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_cv_lib_Xp_XpCreateContext=no
12857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12858 conftest$ac_exeext conftest.$ac_ext
12859 LIBS=$ac_check_lib_save_LIBS
12861 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12862 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12863 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12864 HAVE_LIBXP=yes
12867 if test ${HAVE_LIBXP} = yes; then
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_LIBXP 1
12871 _ACEOF
12874 else
12875 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12876 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12877 if test "${emacs_cv_lesstif+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880 # We put this in CFLAGS temporarily to precede other -I options
12881 # that might be in CFLAGS temporarily.
12882 # We put this in CPPFLAGS where it precedes the other -I options.
12883 OLD_CPPFLAGS=$CPPFLAGS
12884 OLD_CFLAGS=$CFLAGS
12885 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12886 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12887 cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h. */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12895 main ()
12897 int x = 5;
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
12919 emacs_cv_lesstif=yes
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 emacs_cv_lesstif=no
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12930 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12931 if test $emacs_cv_lesstif = yes; then
12932 # Make sure this -I option remains in CPPFLAGS after it is set
12933 # back to REAL_CPPFLAGS.
12934 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12935 # have those other -I options anyway. Ultimately, having this
12936 # directory ultimately in CPPFLAGS will be enough.
12937 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12938 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12939 else
12940 CFLAGS=$OLD_CFLAGS
12941 CPPFLAGS=$OLD_CPPFLAGS
12948 USE_TOOLKIT_SCROLL_BARS=no
12949 if test "${with_toolkit_scroll_bars}" != "no"; then
12950 if test "${USE_X_TOOLKIT}" != "none"; then
12951 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define USE_TOOLKIT_SCROLL_BARS 1
12954 _ACEOF
12956 HAVE_XAW3D=no
12957 USE_TOOLKIT_SCROLL_BARS=yes
12958 elif test "${HAVE_XAW3D}" = "yes"; then
12959 cat >>confdefs.h <<\_ACEOF
12960 #define USE_TOOLKIT_SCROLL_BARS 1
12961 _ACEOF
12963 USE_TOOLKIT_SCROLL_BARS=yes
12965 elif test "${HAVE_GTK}" = "yes"; then
12966 cat >>confdefs.h <<\_ACEOF
12967 #define USE_TOOLKIT_SCROLL_BARS 1
12968 _ACEOF
12970 USE_TOOLKIT_SCROLL_BARS=yes
12971 elif test "${HAVE_CARBON}" = "yes"; then
12972 cat >>confdefs.h <<\_ACEOF
12973 #define USE_TOOLKIT_SCROLL_BARS 1
12974 _ACEOF
12976 USE_TOOLKIT_SCROLL_BARS=yes
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h. */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12987 #include <X11/Xlib.h>
12988 #include <X11/Xresource.h>
12990 main ()
12992 XIMProc callback;
12994 return 0;
12996 _ACEOF
12997 rm -f conftest.$ac_objext
12998 if { (ac_try="$ac_compile"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.$ac_objext; then
13014 HAVE_XIM=yes
13016 cat >>confdefs.h <<\_ACEOF
13017 #define HAVE_XIM 1
13018 _ACEOF
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 HAVE_XIM=no
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 if test "${with_xim}" != "no"; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define USE_XIM 1
13034 _ACEOF
13039 if test "${HAVE_XIM}" != "no"; then
13040 late_CFLAGS=$CFLAGS
13041 if test "$GCC" = yes; then
13042 CFLAGS="$CFLAGS --pedantic-errors"
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13051 #include <X11/Xlib.h>
13052 #include <X11/Xresource.h>
13054 main ()
13056 Display *display;
13057 XrmDatabase db;
13058 char *res_name;
13059 char *res_class;
13060 XIMProc callback;
13061 XPointer *client_data;
13062 #ifndef __GNUC__
13063 /* If we're not using GCC, it's probably not XFree86, and this is
13064 probably right, but we can't use something like --pedantic-errors. */
13065 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13066 char*, XIMProc, XPointer*);
13067 #endif
13068 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13069 client_data);
13071 return 0;
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (ac_try="$ac_compile"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079 esac
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_compile") 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest.$ac_objext; then
13091 emacs_cv_arg6_star=yes
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 if test "$emacs_cv_arg6_star" = yes; then
13102 cat >>confdefs.h <<\_ACEOF
13103 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13104 _ACEOF
13106 else
13107 cat >>confdefs.h <<\_ACEOF
13108 #define XRegisterIMInstantiateCallback_arg6 XPointer
13109 _ACEOF
13112 CFLAGS=$late_CFLAGS
13115 ### Use -lXpm if available, unless `--with-xpm=no'.
13116 HAVE_XPM=no
13117 if test "${HAVE_X11}" = "yes"; then
13118 if test "${with_xpm}" != "no"; then
13119 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13120 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13121 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13122 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13126 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13127 else
13128 # Is the header compilable?
13129 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13130 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 $ac_includes_default
13138 #include <X11/xpm.h>
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (ac_try="$ac_compile"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 ac_header_compiler=yes
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_header_compiler=no
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13167 echo "${ECHO_T}$ac_header_compiler" >&6; }
13169 # Is the header present?
13170 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13171 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 #include <X11/xpm.h>
13179 _ACEOF
13180 if { (ac_try="$ac_cpp conftest.$ac_ext"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null && {
13193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 }; then
13196 ac_header_preproc=yes
13197 else
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ac_header_preproc=no
13204 rm -f conftest.err conftest.$ac_ext
13205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206 echo "${ECHO_T}$ac_header_preproc" >&6; }
13208 # So? What about this header?
13209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 yes:no: )
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13214 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
13217 no:yes:* )
13218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13219 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13221 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13223 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13225 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13227 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13229 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13232 esac
13233 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13234 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13235 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238 ac_cv_header_X11_xpm_h=$ac_header_preproc
13240 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13241 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13244 if test $ac_cv_header_X11_xpm_h = yes; then
13245 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13246 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13247 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-lXpm -lX11 $LIBS"
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char XpmReadFileToPixmap ();
13267 main ()
13269 return XpmReadFileToPixmap ();
13271 return 0;
13273 _ACEOF
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (ac_try="$ac_link"
13276 case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_link") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest$ac_exeext &&
13291 $as_test_x conftest$ac_exeext; then
13292 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13305 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13306 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13307 HAVE_XPM=yes
13313 if test "${HAVE_XPM}" = "yes"; then
13314 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13315 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 #include "X11/xpm.h"
13323 #ifndef XpmReturnAllocPixels
13324 no_return_alloc_pixels
13325 #endif
13327 _ACEOF
13328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13329 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13330 HAVE_XPM=no
13331 else
13332 HAVE_XPM=yes
13334 rm -f conftest*
13337 if test "${HAVE_XPM}" = "yes"; then
13338 { echo "$as_me:$LINENO: result: yes" >&5
13339 echo "${ECHO_T}yes" >&6; }
13340 else
13341 { echo "$as_me:$LINENO: result: no" >&5
13342 echo "${ECHO_T}no" >&6; }
13347 if test "${HAVE_XPM}" = "yes"; then
13349 cat >>confdefs.h <<\_ACEOF
13350 #define HAVE_XPM 1
13351 _ACEOF
13356 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13357 HAVE_JPEG=no
13358 if test "${HAVE_X11}" = "yes"; then
13359 if test "${with_jpeg}" != "no"; then
13360 if test "${ac_cv_header_jerror_h+set}" = set; then
13361 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13362 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13363 if test "${ac_cv_header_jerror_h+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13367 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13368 else
13369 # Is the header compilable?
13370 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13371 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 $ac_includes_default
13379 #include <jerror.h>
13380 _ACEOF
13381 rm -f conftest.$ac_objext
13382 if { (ac_try="$ac_compile"
13383 case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_compile") 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && {
13395 test -z "$ac_c_werror_flag" ||
13396 test ! -s conftest.err
13397 } && test -s conftest.$ac_objext; then
13398 ac_header_compiler=yes
13399 else
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_header_compiler=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 echo "${ECHO_T}$ac_header_compiler" >&6; }
13410 # Is the header present?
13411 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13412 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <jerror.h>
13420 _ACEOF
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null && {
13434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 }; then
13437 ac_header_preproc=yes
13438 else
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ac_header_preproc=no
13445 rm -f conftest.err conftest.$ac_ext
13446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13447 echo "${ECHO_T}$ac_header_preproc" >&6; }
13449 # So? What about this header?
13450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13451 yes:no: )
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13453 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13455 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13456 ac_header_preproc=yes
13458 no:yes:* )
13459 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13460 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13462 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13464 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13466 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13468 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13470 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13473 esac
13474 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13475 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13476 if test "${ac_cv_header_jerror_h+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 ac_cv_header_jerror_h=$ac_header_preproc
13481 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13482 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13485 if test $ac_cv_header_jerror_h = yes; then
13486 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13487 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13488 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 ac_check_lib_save_LIBS=$LIBS
13492 LIBS="-ljpeg $LIBS"
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 char jpeg_destroy_compress ();
13508 main ()
13510 return jpeg_destroy_compress ();
13512 return 0;
13514 _ACEOF
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest$ac_exeext &&
13532 $as_test_x conftest$ac_exeext; then
13533 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LIBS=$ac_check_lib_save_LIBS
13545 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13546 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13547 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13548 HAVE_JPEG=yes
13557 if test "${HAVE_JPEG}" = "yes"; then
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_JPEG 1
13560 _ACEOF
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h. */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <jpeglib.h>
13569 version=JPEG_LIB_VERSION
13571 _ACEOF
13572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13573 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_JPEG 1
13576 _ACEOF
13578 else
13579 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13580 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13581 HAVE_JPEG=no
13583 rm -f conftest*
13588 ### Use -lpng if available, unless `--with-png=no'.
13589 HAVE_PNG=no
13590 if test "${HAVE_X11}" = "yes"; then
13591 if test "${with_png}" != "no"; then
13592 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13593 # in /usr/include/libpng.
13596 for ac_header in png.h libpng/png.h
13598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 ac_res=`eval echo '${'$as_ac_Header'}'`
13606 { echo "$as_me:$LINENO: result: $ac_res" >&5
13607 echo "${ECHO_T}$ac_res" >&6; }
13608 else
13609 # Is the header compilable?
13610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 $ac_includes_default
13619 #include <$ac_header>
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (ac_try="$ac_compile"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_compile") 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } && {
13635 test -z "$ac_c_werror_flag" ||
13636 test ! -s conftest.err
13637 } && test -s conftest.$ac_objext; then
13638 ac_header_compiler=yes
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 ac_header_compiler=no
13646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13648 echo "${ECHO_T}$ac_header_compiler" >&6; }
13650 # Is the header present?
13651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h. */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13659 #include <$ac_header>
13660 _ACEOF
13661 if { (ac_try="$ac_cpp conftest.$ac_ext"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } >/dev/null && {
13674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13675 test ! -s conftest.err
13676 }; then
13677 ac_header_preproc=yes
13678 else
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_header_preproc=no
13685 rm -f conftest.err conftest.$ac_ext
13686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13687 echo "${ECHO_T}$ac_header_preproc" >&6; }
13689 # So? What about this header?
13690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13691 yes:no: )
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13696 ac_header_preproc=yes
13698 no:yes:* )
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13713 esac
13714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719 eval "$as_ac_Header=\$ac_header_preproc"
13721 ac_res=`eval echo '${'$as_ac_Header'}'`
13722 { echo "$as_me:$LINENO: result: $ac_res" >&5
13723 echo "${ECHO_T}$ac_res" >&6; }
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13729 _ACEOF
13733 done
13735 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13736 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13737 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13738 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-lpng -lz -lm $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 png_get_channels ();
13758 main ()
13760 return png_get_channels ();
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_png_png_get_channels=yes
13784 else
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_png_png_get_channels=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_png_png_get_channels" >&5
13796 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13797 if test $ac_cv_lib_png_png_get_channels = yes; then
13798 HAVE_PNG=yes
13804 if test "${HAVE_PNG}" = "yes"; then
13806 cat >>confdefs.h <<\_ACEOF
13807 #define HAVE_PNG 1
13808 _ACEOF
13813 ### Use -ltiff if available, unless `--with-tiff=no'.
13814 HAVE_TIFF=no
13815 if test "${HAVE_X11}" = "yes"; then
13816 if test "${with_tiff}" != "no"; then
13817 if test "${ac_cv_header_tiffio_h+set}" = set; then
13818 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13819 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13820 if test "${ac_cv_header_tiffio_h+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13824 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13825 else
13826 # Is the header compilable?
13827 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13828 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13836 #include <tiffio.h>
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (ac_try="$ac_compile"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_compile") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest.$ac_objext; then
13855 ac_header_compiler=yes
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ac_header_compiler=no
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867 # Is the header present?
13868 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13869 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <tiffio.h>
13877 _ACEOF
13878 if { (ac_try="$ac_cpp conftest.$ac_ext"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } >/dev/null && {
13891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 }; then
13894 ac_header_preproc=yes
13895 else
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_header_preproc=no
13902 rm -f conftest.err conftest.$ac_ext
13903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13904 echo "${ECHO_T}$ac_header_preproc" >&6; }
13906 # So? What about this header?
13907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13908 yes:no: )
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13910 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13912 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13913 ac_header_preproc=yes
13915 no:yes:* )
13916 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13917 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13919 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13921 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13923 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13925 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13926 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13927 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13930 esac
13931 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13932 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13933 if test "${ac_cv_header_tiffio_h+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 ac_cv_header_tiffio_h=$ac_header_preproc
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13942 if test $ac_cv_header_tiffio_h = yes; then
13943 tifflibs="-lz -lm"
13944 # At least one tiff package requires the jpeg library.
13945 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13946 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13947 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-ltiff $tifflibs $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 TIFFGetVersion ();
13968 main ()
13970 return TIFFGetVersion ();
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_tiff_TIFFGetVersion=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_cv_lib_tiff_TIFFGetVersion=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_tiff_TIFFGetVersion" >&5
14006 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14007 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14008 HAVE_TIFF=yes
14016 if test "${HAVE_TIFF}" = "yes"; then
14018 cat >>confdefs.h <<\_ACEOF
14019 #define HAVE_TIFF 1
14020 _ACEOF
14025 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14026 HAVE_GIF=no
14027 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14028 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14029 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14030 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14031 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14035 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14036 else
14037 # Is the header compilable?
14038 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14039 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h. */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 #include <gif_lib.h>
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14054 esac
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_compile") 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && {
14063 test -z "$ac_c_werror_flag" ||
14064 test ! -s conftest.err
14065 } && test -s conftest.$ac_objext; then
14066 ac_header_compiler=yes
14067 else
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_header_compiler=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14076 echo "${ECHO_T}$ac_header_compiler" >&6; }
14078 # Is the header present?
14079 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14080 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 #include <gif_lib.h>
14088 _ACEOF
14089 if { (ac_try="$ac_cpp conftest.$ac_ext"
14090 case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } >/dev/null && {
14102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14103 test ! -s conftest.err
14104 }; then
14105 ac_header_preproc=yes
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_header_preproc=no
14113 rm -f conftest.err conftest.$ac_ext
14114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14115 echo "${ECHO_T}$ac_header_preproc" >&6; }
14117 # So? What about this header?
14118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14119 yes:no: )
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14121 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14123 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14124 ac_header_preproc=yes
14126 no:yes:* )
14127 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14128 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14130 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14132 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14134 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14136 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14138 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14141 esac
14142 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14143 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14144 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 ac_cv_header_gif_lib_h=$ac_header_preproc
14149 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14150 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14153 if test $ac_cv_header_gif_lib_h = yes; then
14154 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14155 # Earlier versions can crash Emacs.
14156 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14157 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lgif $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char EGifPutExtensionLast ();
14178 main ()
14180 return EGifPutExtensionLast ();
14182 return 0;
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest$ac_exeext &&
14202 $as_test_x conftest$ac_exeext; then
14203 ac_cv_lib_gif_EGifPutExtensionLast=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_cv_lib_gif_EGifPutExtensionLast=no
14211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14216 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14217 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14218 HAVE_GIF=yes
14219 else
14220 try_libungif=yes
14227 if test "$HAVE_GIF" = yes; then
14228 ac_gif_lib_name="-lgif"
14231 # If gif_lib.h but no libgif, try libungif.
14232 if test x"$try_libungif" = xyes; then
14233 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14234 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14235 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 ac_check_lib_save_LIBS=$LIBS
14239 LIBS="-lungif $LIBS"
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14247 /* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14250 #ifdef __cplusplus
14251 extern "C"
14252 #endif
14253 char EGifPutExtensionLast ();
14255 main ()
14257 return EGifPutExtensionLast ();
14259 return 0;
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest$ac_exeext &&
14279 $as_test_x conftest$ac_exeext; then
14280 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_lib_ungif_EGifPutExtensionLast=no
14288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14289 conftest$ac_exeext conftest.$ac_ext
14290 LIBS=$ac_check_lib_save_LIBS
14292 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14293 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14294 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14295 HAVE_GIF=yes
14299 if test "$HAVE_GIF" = yes; then
14301 cat >>confdefs.h <<\_ACEOF
14302 #define LIBGIF -lungif
14303 _ACEOF
14305 ac_gif_lib_name="-lungif"
14309 if test "${HAVE_GIF}" = "yes"; then
14311 cat >>confdefs.h <<\_ACEOF
14312 #define HAVE_GIF 1
14313 _ACEOF
14318 if test "${HAVE_X11}" = "yes"; then
14319 MISSING=""
14320 WITH_NO=""
14321 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14322 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14323 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14324 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14325 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14326 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14327 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14328 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14329 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14330 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14332 if test "X${MISSING}" != X; then
14333 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14334 $MISSING
14335 Maybe some development libraries/packages are missing?
14336 If you don't want to link with them give
14337 $WITH_NO
14338 as options to configure" >&5
14339 echo "$as_me: error: The following required libraries were not found:
14340 $MISSING
14341 Maybe some development libraries/packages are missing?
14342 If you don't want to link with them give
14343 $WITH_NO
14344 as options to configure" >&2;}
14345 { (exit 1); exit 1; }; }
14349 ### Use -lgpm if available, unless `--with-gpm=no'.
14350 HAVE_GPM=no
14351 if test "${with_gpm}" != "no"; then
14352 if test "${ac_cv_header_gpm_h+set}" = set; then
14353 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14354 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14355 if test "${ac_cv_header_gpm_h+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14359 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14360 else
14361 # Is the header compilable?
14362 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14363 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 $ac_includes_default
14371 #include <gpm.h>
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (ac_try="$ac_compile"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378 esac
14379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14380 (eval "$ac_compile") 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && {
14387 test -z "$ac_c_werror_flag" ||
14388 test ! -s conftest.err
14389 } && test -s conftest.$ac_objext; then
14390 ac_header_compiler=yes
14391 else
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_header_compiler=no
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14400 echo "${ECHO_T}$ac_header_compiler" >&6; }
14402 # Is the header present?
14403 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14404 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h. */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 #include <gpm.h>
14412 _ACEOF
14413 if { (ac_try="$ac_cpp conftest.$ac_ext"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null && {
14426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 }; then
14429 ac_header_preproc=yes
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_header_preproc=no
14437 rm -f conftest.err conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14439 echo "${ECHO_T}$ac_header_preproc" >&6; }
14441 # So? What about this header?
14442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14443 yes:no: )
14444 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14445 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14447 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14448 ac_header_preproc=yes
14450 no:yes:* )
14451 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14452 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14454 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14456 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14458 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14460 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14462 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14465 esac
14466 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14467 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14468 if test "${ac_cv_header_gpm_h+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 ac_cv_header_gpm_h=$ac_header_preproc
14473 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14474 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14477 if test $ac_cv_header_gpm_h = yes; then
14478 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14479 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14480 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lgpm $LIBS"
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 /* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply. */
14495 #ifdef __cplusplus
14496 extern "C"
14497 #endif
14498 char Gpm_Open ();
14500 main ()
14502 return Gpm_Open ();
14504 return 0;
14506 _ACEOF
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (ac_try="$ac_link"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_link") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest$ac_exeext &&
14524 $as_test_x conftest$ac_exeext; then
14525 ac_cv_lib_gpm_Gpm_Open=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_cv_lib_gpm_Gpm_Open=no
14533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14534 conftest$ac_exeext conftest.$ac_ext
14535 LIBS=$ac_check_lib_save_LIBS
14537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14538 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14539 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14540 HAVE_GPM=yes
14548 if test "${HAVE_GPM}" = "yes"; then
14550 cat >>confdefs.h <<\_ACEOF
14551 #define HAVE_GPM 1
14552 _ACEOF
14556 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14557 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14558 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14559 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14563 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14564 else
14565 # Is the header compilable?
14566 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14567 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h. */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 $ac_includes_default
14575 #include <malloc/malloc.h>
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (ac_try="$ac_compile"
14579 case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_compile") 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } && {
14591 test -z "$ac_c_werror_flag" ||
14592 test ! -s conftest.err
14593 } && test -s conftest.$ac_objext; then
14594 ac_header_compiler=yes
14595 else
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ac_header_compiler=no
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14604 echo "${ECHO_T}$ac_header_compiler" >&6; }
14606 # Is the header present?
14607 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14608 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h. */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <malloc/malloc.h>
14616 _ACEOF
14617 if { (ac_try="$ac_cpp conftest.$ac_ext"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } >/dev/null && {
14630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 }; then
14633 ac_header_preproc=yes
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_header_preproc=no
14641 rm -f conftest.err conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643 echo "${ECHO_T}$ac_header_preproc" >&6; }
14645 # So? What about this header?
14646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647 yes:no: )
14648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14649 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14651 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14652 ac_header_preproc=yes
14654 no:yes:* )
14655 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14656 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14658 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14660 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14662 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14664 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14666 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14669 esac
14670 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14671 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14672 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14677 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14678 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14681 if test $ac_cv_header_malloc_malloc_h = yes; then
14683 cat >>confdefs.h <<\_ACEOF
14684 #define HAVE_MALLOC_MALLOC_H 1
14685 _ACEOF
14691 ### Use Mac OS X Carbon API to implement GUI.
14692 if test "${HAVE_CARBON}" = "yes"; then
14694 cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_CARBON 1
14696 _ACEOF
14698 ## Specify the install directory
14699 carbon_appdir=
14700 if test "${carbon_appdir_x}" != ""; then
14701 case ${carbon_appdir_x} in
14702 y | ye | yes) carbon_appdir=/Applications ;;
14703 * ) carbon_appdir=${carbon_appdir_x} ;;
14704 esac
14706 # We also have mouse menus.
14707 HAVE_MENUS=yes
14710 ### Use session management (-lSM -lICE) if available
14711 HAVE_X_SM=no
14712 if test "${HAVE_X11}" = "yes"; then
14713 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14714 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14715 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14716 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14720 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14721 else
14722 # Is the header compilable?
14723 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14724 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14732 #include <X11/SM/SMlib.h>
14733 _ACEOF
14734 rm -f conftest.$ac_objext
14735 if { (ac_try="$ac_compile"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_compile") 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && {
14748 test -z "$ac_c_werror_flag" ||
14749 test ! -s conftest.err
14750 } && test -s conftest.$ac_objext; then
14751 ac_header_compiler=yes
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 ac_header_compiler=no
14759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14761 echo "${ECHO_T}$ac_header_compiler" >&6; }
14763 # Is the header present?
14764 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14765 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h. */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 #include <X11/SM/SMlib.h>
14773 _ACEOF
14774 if { (ac_try="$ac_cpp conftest.$ac_ext"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } >/dev/null && {
14787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 }; then
14790 ac_header_preproc=yes
14791 else
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_header_preproc=no
14798 rm -f conftest.err conftest.$ac_ext
14799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14800 echo "${ECHO_T}$ac_header_preproc" >&6; }
14802 # So? What about this header?
14803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 yes:no: )
14805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14806 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14808 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14809 ac_header_preproc=yes
14811 no:yes:* )
14812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14813 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14815 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14817 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14819 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14821 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14823 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14826 esac
14827 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14828 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14829 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14834 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14835 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14838 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14839 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14840 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14841 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 ac_check_lib_save_LIBS=$LIBS
14845 LIBS="-lSM -lICE $LIBS"
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h. */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14853 /* Override any GCC internal prototype to avoid an error.
14854 Use char because int might match the return type of a GCC
14855 builtin and then its argument prototype would still apply. */
14856 #ifdef __cplusplus
14857 extern "C"
14858 #endif
14859 char SmcOpenConnection ();
14861 main ()
14863 return SmcOpenConnection ();
14865 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext conftest$ac_exeext
14869 if { (ac_try="$ac_link"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_link") 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest$ac_exeext &&
14885 $as_test_x conftest$ac_exeext; then
14886 ac_cv_lib_SM_SmcOpenConnection=yes
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_cv_lib_SM_SmcOpenConnection=no
14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14899 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14900 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14901 HAVE_X_SM=yes
14908 if test "${HAVE_X_SM}" = "yes"; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_X_SM 1
14912 _ACEOF
14914 case "$LIBS" in
14915 *-lSM*) ;;
14916 *) LIBS="-lSM -lICE $LIBS" ;;
14917 esac
14921 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14922 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14923 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14924 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927 cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h. */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 #include <netdb.h>
14935 main ()
14937 return h_errno;
14939 return 0;
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest$ac_exeext &&
14959 $as_test_x conftest$ac_exeext; then
14960 emacs_cv_netdb_declares_h_errno=yes
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 emacs_cv_netdb_declares_h_errno=no
14968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14969 conftest$ac_exeext conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14972 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14973 if test $emacs_cv_netdb_declares_h_errno = yes; then
14975 cat >>confdefs.h <<\_ACEOF
14976 #define HAVE_H_ERRNO 1
14977 _ACEOF
14981 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14982 # for constant arguments. Useless!
14983 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14984 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14985 if test "${ac_cv_working_alloca_h+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 #include <alloca.h>
14996 main ()
14998 char *p = (char *) alloca (2 * sizeof (int));
14999 if (p) return 0;
15001 return 0;
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (ac_try="$ac_link"
15006 case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } && {
15018 test -z "$ac_c_werror_flag" ||
15019 test ! -s conftest.err
15020 } && test -s conftest$ac_exeext &&
15021 $as_test_x conftest$ac_exeext; then
15022 ac_cv_working_alloca_h=yes
15023 else
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_working_alloca_h=no
15030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15031 conftest$ac_exeext conftest.$ac_ext
15033 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15034 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15035 if test $ac_cv_working_alloca_h = yes; then
15037 cat >>confdefs.h <<\_ACEOF
15038 #define HAVE_ALLOCA_H 1
15039 _ACEOF
15043 { echo "$as_me:$LINENO: checking for alloca" >&5
15044 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15045 if test "${ac_cv_func_alloca_works+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #ifdef __GNUC__
15055 # define alloca __builtin_alloca
15056 #else
15057 # ifdef _MSC_VER
15058 # include <malloc.h>
15059 # define alloca _alloca
15060 # else
15061 # ifdef HAVE_ALLOCA_H
15062 # include <alloca.h>
15063 # else
15064 # ifdef _AIX
15065 #pragma alloca
15066 # else
15067 # ifndef alloca /* predefined by HP cc +Olibcalls */
15068 char *alloca ();
15069 # endif
15070 # endif
15071 # endif
15072 # endif
15073 #endif
15076 main ()
15078 char *p = (char *) alloca (1);
15079 if (p) return 0;
15081 return 0;
15083 _ACEOF
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest$ac_exeext &&
15101 $as_test_x conftest$ac_exeext; then
15102 ac_cv_func_alloca_works=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_func_alloca_works=no
15110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15111 conftest$ac_exeext conftest.$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15114 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15116 if test $ac_cv_func_alloca_works = yes; then
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_ALLOCA 1
15120 _ACEOF
15122 else
15123 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15124 # that cause trouble. Some versions do not even contain alloca or
15125 # contain a buggy version. If you still want to use their alloca,
15126 # use ar to extract alloca.o from them instead of compiling alloca.c.
15128 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15130 cat >>confdefs.h <<\_ACEOF
15131 #define C_ALLOCA 1
15132 _ACEOF
15135 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15136 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15137 if test "${ac_cv_os_cray+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 #if defined CRAY && ! defined CRAY2
15147 webecray
15148 #else
15149 wenotbecray
15150 #endif
15152 _ACEOF
15153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15154 $EGREP "webecray" >/dev/null 2>&1; then
15155 ac_cv_os_cray=yes
15156 else
15157 ac_cv_os_cray=no
15159 rm -f conftest*
15162 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15163 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15164 if test $ac_cv_os_cray = yes; then
15165 for ac_func in _getb67 GETB67 getb67; do
15166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15180 #define $ac_func innocuous_$ac_func
15182 /* System header to define __stub macros and hopefully few prototypes,
15183 which can conflict with char $ac_func (); below.
15184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15185 <limits.h> exists even on freestanding compilers. */
15187 #ifdef __STDC__
15188 # include <limits.h>
15189 #else
15190 # include <assert.h>
15191 #endif
15193 #undef $ac_func
15195 /* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 char $ac_func ();
15202 /* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205 #if defined __stub_$ac_func || defined __stub___$ac_func
15206 choke me
15207 #endif
15210 main ()
15212 return $ac_func ();
15214 return 0;
15216 _ACEOF
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 eval "$as_ac_var=yes"
15236 else
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 eval "$as_ac_var=no"
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15246 ac_res=`eval echo '${'$as_ac_var'}'`
15247 { echo "$as_me:$LINENO: result: $ac_res" >&5
15248 echo "${ECHO_T}$ac_res" >&6; }
15249 if test `eval echo '${'$as_ac_var'}'` = yes; then
15251 cat >>confdefs.h <<_ACEOF
15252 #define CRAY_STACKSEG_END $ac_func
15253 _ACEOF
15255 break
15258 done
15261 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15262 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15263 if test "${ac_cv_c_stack_direction+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 if test "$cross_compiling" = yes; then
15267 ac_cv_c_stack_direction=0
15268 else
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15277 find_stack_direction ()
15279 static char *addr = 0;
15280 auto char dummy;
15281 if (addr == 0)
15283 addr = &dummy;
15284 return find_stack_direction ();
15286 else
15287 return (&dummy > addr) ? 1 : -1;
15291 main ()
15293 return find_stack_direction () < 0;
15295 _ACEOF
15296 rm -f conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_link") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15307 { (case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_try") 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_c_stack_direction=1
15317 else
15318 echo "$as_me: program exited with status $ac_status" >&5
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ( exit $ac_status )
15323 ac_cv_c_stack_direction=-1
15325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15330 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15331 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15333 cat >>confdefs.h <<_ACEOF
15334 #define STACK_DIRECTION $ac_cv_c_stack_direction
15335 _ACEOF
15341 # fmod, logb, and frexp are found in -lm on most systems.
15342 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15344 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15345 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15346 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 ac_check_lib_save_LIBS=$LIBS
15350 LIBS="-lm $LIBS"
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15358 /* Override any GCC internal prototype to avoid an error.
15359 Use char because int might match the return type of a GCC
15360 builtin and then its argument prototype would still apply. */
15361 #ifdef __cplusplus
15362 extern "C"
15363 #endif
15364 char sqrt ();
15366 main ()
15368 return sqrt ();
15370 return 0;
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (ac_try="$ac_link"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_link") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } && {
15387 test -z "$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 } && test -s conftest$ac_exeext &&
15390 $as_test_x conftest$ac_exeext; then
15391 ac_cv_lib_m_sqrt=yes
15392 else
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 ac_cv_lib_m_sqrt=no
15399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15400 conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15403 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15404 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15405 if test $ac_cv_lib_m_sqrt = yes; then
15406 cat >>confdefs.h <<_ACEOF
15407 #define HAVE_LIBM 1
15408 _ACEOF
15410 LIBS="-lm $LIBS"
15415 # Check for mail-locking functions in a "mail" library. Probably this should
15416 # have the same check as for liblockfile below.
15418 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15419 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15420 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423 ac_check_lib_save_LIBS=$LIBS
15424 LIBS="-lmail $LIBS"
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15435 #ifdef __cplusplus
15436 extern "C"
15437 #endif
15438 char maillock ();
15440 main ()
15442 return maillock ();
15444 return 0;
15446 _ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (ac_try="$ac_link"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_link") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } && {
15461 test -z "$ac_c_werror_flag" ||
15462 test ! -s conftest.err
15463 } && test -s conftest$ac_exeext &&
15464 $as_test_x conftest$ac_exeext; then
15465 ac_cv_lib_mail_maillock=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_lib_mail_maillock=no
15473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LIBS=$ac_check_lib_save_LIBS
15477 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15478 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15479 if test $ac_cv_lib_mail_maillock = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_LIBMAIL 1
15482 _ACEOF
15484 LIBS="-lmail $LIBS"
15489 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15490 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15491 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494 ac_check_lib_save_LIBS=$LIBS
15495 LIBS="-llockfile $LIBS"
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15503 /* Override any GCC internal prototype to avoid an error.
15504 Use char because int might match the return type of a GCC
15505 builtin and then its argument prototype would still apply. */
15506 #ifdef __cplusplus
15507 extern "C"
15508 #endif
15509 char maillock ();
15511 main ()
15513 return maillock ();
15515 return 0;
15517 _ACEOF
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (ac_try="$ac_link"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_link") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && {
15532 test -z "$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15534 } && test -s conftest$ac_exeext &&
15535 $as_test_x conftest$ac_exeext; then
15536 ac_cv_lib_lockfile_maillock=yes
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_cv_lib_lockfile_maillock=no
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15546 LIBS=$ac_check_lib_save_LIBS
15548 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15549 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15550 if test $ac_cv_lib_lockfile_maillock = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_LIBLOCKFILE 1
15553 _ACEOF
15555 LIBS="-llockfile $LIBS"
15559 # If we have the shared liblockfile, assume we must use it for mail
15560 # locking (e.g. Debian). If we couldn't link against liblockfile
15561 # (no liblockfile.a installed), ensure that we don't need to.
15562 if test "$ac_cv_lib_lockfile_maillock" = no; then
15563 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15564 set dummy liblockfile.so; ac_word=$2
15565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15567 if test "${ac_cv_prog_liblockfile+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 if test -n "$liblockfile"; then
15571 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15572 else
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15575 for as_dir in $as_dummy
15577 IFS=$as_save_IFS
15578 test -z "$as_dir" && as_dir=.
15579 for ac_exec_ext in '' $ac_executable_extensions; do
15580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15581 ac_cv_prog_liblockfile="yes"
15582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15583 break 2
15585 done
15586 done
15587 IFS=$as_save_IFS
15589 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15592 liblockfile=$ac_cv_prog_liblockfile
15593 if test -n "$liblockfile"; then
15594 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15595 echo "${ECHO_T}$liblockfile" >&6; }
15596 else
15597 { echo "$as_me:$LINENO: result: no" >&5
15598 echo "${ECHO_T}no" >&6; }
15602 if test $ac_cv_prog_liblockfile = yes; then
15603 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15604 This probably means that movemail could lose mail.
15605 There may be a \`development' package to install containing liblockfile." >&5
15606 echo "$as_me: error: Shared liblockfile found but can't link against it.
15607 This probably means that movemail could lose mail.
15608 There may be a \`development' package to install containing liblockfile." >&2;}
15609 { (exit 1); exit 1; }; }
15610 else :
15614 for ac_func in touchlock
15616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15630 #define $ac_func innocuous_$ac_func
15632 /* System header to define __stub macros and hopefully few prototypes,
15633 which can conflict with char $ac_func (); below.
15634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15635 <limits.h> exists even on freestanding compilers. */
15637 #ifdef __STDC__
15638 # include <limits.h>
15639 #else
15640 # include <assert.h>
15641 #endif
15643 #undef $ac_func
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char $ac_func ();
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined __stub_$ac_func || defined __stub___$ac_func
15656 choke me
15657 #endif
15660 main ()
15662 return $ac_func ();
15664 return 0;
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_link") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext &&
15684 $as_test_x conftest$ac_exeext; then
15685 eval "$as_ac_var=yes"
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 eval "$as_ac_var=no"
15693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15694 conftest$ac_exeext conftest.$ac_ext
15696 ac_res=`eval echo '${'$as_ac_var'}'`
15697 { echo "$as_me:$LINENO: result: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15699 if test `eval echo '${'$as_ac_var'}'` = yes; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15702 _ACEOF
15705 done
15708 for ac_header in maillock.h
15710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_res=`eval echo '${'$as_ac_Header'}'`
15718 { echo "$as_me:$LINENO: result: $ac_res" >&5
15719 echo "${ECHO_T}$ac_res" >&6; }
15720 else
15721 # Is the header compilable?
15722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h. */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 $ac_includes_default
15731 #include <$ac_header>
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (ac_try="$ac_compile"
15735 case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } && {
15747 test -z "$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 } && test -s conftest.$ac_objext; then
15750 ac_header_compiler=yes
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_header_compiler=no
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15760 echo "${ECHO_T}$ac_header_compiler" >&6; }
15762 # Is the header present?
15763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <$ac_header>
15772 _ACEOF
15773 if { (ac_try="$ac_cpp conftest.$ac_ext"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } >/dev/null && {
15786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 }; then
15789 ac_header_preproc=yes
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_preproc=no
15797 rm -f conftest.err conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6; }
15801 # So? What about this header?
15802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15803 yes:no: )
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15808 ac_header_preproc=yes
15810 no:yes:* )
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15825 esac
15826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 eval "$as_ac_Header=\$ac_header_preproc"
15833 ac_res=`eval echo '${'$as_ac_Header'}'`
15834 { echo "$as_me:$LINENO: result: $ac_res" >&5
15835 echo "${ECHO_T}$ac_res" >&6; }
15838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15839 cat >>confdefs.h <<_ACEOF
15840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15841 _ACEOF
15845 done
15917 for ac_func in gethostname getdomainname dup2 \
15918 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15919 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15920 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15921 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15922 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15923 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15924 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15925 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h. */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15941 #define $ac_func innocuous_$ac_func
15943 /* System header to define __stub macros and hopefully few prototypes,
15944 which can conflict with char $ac_func (); below.
15945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946 <limits.h> exists even on freestanding compilers. */
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15954 #undef $ac_func
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 char $ac_func ();
15963 /* The GNU C library defines this for functions which it implements
15964 to always fail with ENOSYS. Some functions are actually named
15965 something starting with __ and the normal name is an alias. */
15966 #if defined __stub_$ac_func || defined __stub___$ac_func
15967 choke me
15968 #endif
15971 main ()
15973 return $ac_func ();
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982 *) ac_try_echo=$ac_try;;
15983 esac
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985 (eval "$ac_link") 2>conftest.er1
15986 ac_status=$?
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } && {
15992 test -z "$ac_c_werror_flag" ||
15993 test ! -s conftest.err
15994 } && test -s conftest$ac_exeext &&
15995 $as_test_x conftest$ac_exeext; then
15996 eval "$as_ac_var=yes"
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 eval "$as_ac_var=no"
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005 conftest$ac_exeext conftest.$ac_ext
16007 ac_res=`eval echo '${'$as_ac_var'}'`
16008 { echo "$as_me:$LINENO: result: $ac_res" >&5
16009 echo "${ECHO_T}$ac_res" >&6; }
16010 if test `eval echo '${'$as_ac_var'}'` = yes; then
16011 cat >>confdefs.h <<_ACEOF
16012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16013 _ACEOF
16016 done
16020 for ac_header in sys/un.h
16022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_res=`eval echo '${'$as_ac_Header'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 else
16033 # Is the header compilable?
16034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16043 #include <$ac_header>
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } && {
16059 test -z "$ac_c_werror_flag" ||
16060 test ! -s conftest.err
16061 } && test -s conftest.$ac_objext; then
16062 ac_header_compiler=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ac_header_compiler=no
16070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6; }
16074 # Is the header present?
16075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16084 _ACEOF
16085 if { (ac_try="$ac_cpp conftest.$ac_ext"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null && {
16098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 }; then
16101 ac_header_preproc=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_preproc=no
16109 rm -f conftest.err conftest.$ac_ext
16110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6; }
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115 yes:no: )
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16122 no:yes:* )
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16137 esac
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143 eval "$as_ac_Header=\$ac_header_preproc"
16145 ac_res=`eval echo '${'$as_ac_Header'}'`
16146 { echo "$as_me:$LINENO: result: $ac_res" >&5
16147 echo "${ECHO_T}$ac_res" >&6; }
16150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153 _ACEOF
16157 done
16164 for ac_header in $ac_header_list
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 ac_res=`eval echo '${'$as_ac_Header'}'`
16174 { echo "$as_me:$LINENO: result: $ac_res" >&5
16175 echo "${ECHO_T}$ac_res" >&6; }
16176 else
16177 # Is the header compilable?
16178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (ac_try="$ac_compile"
16191 case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_compile") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } && {
16203 test -z "$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16205 } && test -s conftest.$ac_objext; then
16206 ac_header_compiler=yes
16207 else
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_compiler=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216 echo "${ECHO_T}$ac_header_compiler" >&6; }
16218 # Is the header present?
16219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h. */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 #include <$ac_header>
16228 _ACEOF
16229 if { (ac_try="$ac_cpp conftest.$ac_ext"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } >/dev/null && {
16242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 }; then
16245 ac_header_preproc=yes
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ac_header_preproc=no
16253 rm -f conftest.err conftest.$ac_ext
16254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16255 echo "${ECHO_T}$ac_header_preproc" >&6; }
16257 # So? What about this header?
16258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 yes:no: )
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16264 ac_header_preproc=yes
16266 no:yes:* )
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16281 esac
16282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287 eval "$as_ac_Header=\$ac_header_preproc"
16289 ac_res=`eval echo '${'$as_ac_Header'}'`
16290 { echo "$as_me:$LINENO: result: $ac_res" >&5
16291 echo "${ECHO_T}$ac_res" >&6; }
16294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16295 cat >>confdefs.h <<_ACEOF
16296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16297 _ACEOF
16301 done
16311 for ac_func in $ac_func_list
16313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16327 #define $ac_func innocuous_$ac_func
16329 /* System header to define __stub macros and hopefully few prototypes,
16330 which can conflict with char $ac_func (); below.
16331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16332 <limits.h> exists even on freestanding compilers. */
16334 #ifdef __STDC__
16335 # include <limits.h>
16336 #else
16337 # include <assert.h>
16338 #endif
16340 #undef $ac_func
16342 /* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply. */
16345 #ifdef __cplusplus
16346 extern "C"
16347 #endif
16348 char $ac_func ();
16349 /* The GNU C library defines this for functions which it implements
16350 to always fail with ENOSYS. Some functions are actually named
16351 something starting with __ and the normal name is an alias. */
16352 #if defined __stub_$ac_func || defined __stub___$ac_func
16353 choke me
16354 #endif
16357 main ()
16359 return $ac_func ();
16361 return 0;
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext &&
16381 $as_test_x conftest$ac_exeext; then
16382 eval "$as_ac_var=yes"
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 eval "$as_ac_var=no"
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391 conftest$ac_exeext conftest.$ac_ext
16393 ac_res=`eval echo '${'$as_ac_var'}'`
16394 { echo "$as_me:$LINENO: result: $ac_res" >&5
16395 echo "${ECHO_T}$ac_res" >&6; }
16396 if test `eval echo '${'$as_ac_var'}'` = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16399 _ACEOF
16402 done
16420 { echo "$as_me:$LINENO: checking for working mktime" >&5
16421 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16422 if test "${ac_cv_func_working_mktime+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 if test "$cross_compiling" = yes; then
16426 ac_cv_func_working_mktime=no
16427 else
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* Test program from Paul Eggert and Tony Leneis. */
16435 #ifdef TIME_WITH_SYS_TIME
16436 # include <sys/time.h>
16437 # include <time.h>
16438 #else
16439 # ifdef HAVE_SYS_TIME_H
16440 # include <sys/time.h>
16441 # else
16442 # include <time.h>
16443 # endif
16444 #endif
16446 #include <stdlib.h>
16448 #ifdef HAVE_UNISTD_H
16449 # include <unistd.h>
16450 #endif
16452 #ifndef HAVE_ALARM
16453 # define alarm(X) /* empty */
16454 #endif
16456 /* Work around redefinition to rpl_putenv by other config tests. */
16457 #undef putenv
16459 static time_t time_t_max;
16460 static time_t time_t_min;
16462 /* Values we'll use to set the TZ environment variable. */
16463 static char *tz_strings[] = {
16464 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16465 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16467 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16469 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16470 Based on a problem report from Andreas Jaeger. */
16471 static int
16472 spring_forward_gap ()
16474 /* glibc (up to about 1998-10-07) failed this test. */
16475 struct tm tm;
16477 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16478 instead of "TZ=America/Vancouver" in order to detect the bug even
16479 on systems that don't support the Olson extension, or don't have the
16480 full zoneinfo tables installed. */
16481 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16483 tm.tm_year = 98;
16484 tm.tm_mon = 3;
16485 tm.tm_mday = 5;
16486 tm.tm_hour = 2;
16487 tm.tm_min = 0;
16488 tm.tm_sec = 0;
16489 tm.tm_isdst = -1;
16490 return mktime (&tm) != (time_t) -1;
16493 static int
16494 mktime_test1 (now)
16495 time_t now;
16497 struct tm *lt;
16498 return ! (lt = localtime (&now)) || mktime (lt) == now;
16501 static int
16502 mktime_test (now)
16503 time_t now;
16505 return (mktime_test1 (now)
16506 && mktime_test1 ((time_t) (time_t_max - now))
16507 && mktime_test1 ((time_t) (time_t_min + now)));
16510 static int
16511 irix_6_4_bug ()
16513 /* Based on code from Ariel Faigon. */
16514 struct tm tm;
16515 tm.tm_year = 96;
16516 tm.tm_mon = 3;
16517 tm.tm_mday = 0;
16518 tm.tm_hour = 0;
16519 tm.tm_min = 0;
16520 tm.tm_sec = 0;
16521 tm.tm_isdst = -1;
16522 mktime (&tm);
16523 return tm.tm_mon == 2 && tm.tm_mday == 31;
16526 static int
16527 bigtime_test (j)
16528 int j;
16530 struct tm tm;
16531 time_t now;
16532 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16533 now = mktime (&tm);
16534 if (now != (time_t) -1)
16536 struct tm *lt = localtime (&now);
16537 if (! (lt
16538 && lt->tm_year == tm.tm_year
16539 && lt->tm_mon == tm.tm_mon
16540 && lt->tm_mday == tm.tm_mday
16541 && lt->tm_hour == tm.tm_hour
16542 && lt->tm_min == tm.tm_min
16543 && lt->tm_sec == tm.tm_sec
16544 && lt->tm_yday == tm.tm_yday
16545 && lt->tm_wday == tm.tm_wday
16546 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16547 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16548 return 0;
16550 return 1;
16553 static int
16554 year_2050_test ()
16556 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16557 ignoring leap seconds. */
16558 unsigned long int answer = 2527315200UL;
16560 struct tm tm;
16561 time_t t;
16562 tm.tm_year = 2050 - 1900;
16563 tm.tm_mon = 2 - 1;
16564 tm.tm_mday = 1;
16565 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16566 tm.tm_isdst = -1;
16568 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16569 instead of "TZ=America/Vancouver" in order to detect the bug even
16570 on systems that don't support the Olson extension, or don't have the
16571 full zoneinfo tables installed. */
16572 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16574 t = mktime (&tm);
16576 /* Check that the result is either a failure, or close enough
16577 to the correct answer that we can assume the discrepancy is
16578 due to leap seconds. */
16579 return (t == (time_t) -1
16580 || (0 < t && answer - 120 <= t && t <= answer + 120));
16584 main ()
16586 time_t t, delta;
16587 int i, j;
16589 /* This test makes some buggy mktime implementations loop.
16590 Give up after 60 seconds; a mktime slower than that
16591 isn't worth using anyway. */
16592 alarm (60);
16594 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16595 continue;
16596 time_t_max--;
16597 if ((time_t) -1 < 0)
16598 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16599 continue;
16600 delta = time_t_max / 997; /* a suitable prime number */
16601 for (i = 0; i < N_STRINGS; i++)
16603 if (tz_strings[i])
16604 putenv (tz_strings[i]);
16606 for (t = 0; t <= time_t_max - delta; t += delta)
16607 if (! mktime_test (t))
16608 return 1;
16609 if (! (mktime_test ((time_t) 1)
16610 && mktime_test ((time_t) (60 * 60))
16611 && mktime_test ((time_t) (60 * 60 * 24))))
16612 return 1;
16614 for (j = 1; 0 < j; j *= 2)
16615 if (! bigtime_test (j))
16616 return 1;
16617 if (! bigtime_test (j - 1))
16618 return 1;
16620 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16622 _ACEOF
16623 rm -f conftest$ac_exeext
16624 if { (ac_try="$ac_link"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_link") 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_cv_func_working_mktime=yes
16644 else
16645 echo "$as_me: program exited with status $ac_status" >&5
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ( exit $ac_status )
16650 ac_cv_func_working_mktime=no
16652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16657 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16658 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16659 if test $ac_cv_func_working_mktime = no; then
16660 case " $LIBOBJS " in
16661 *" mktime.$ac_objext "* ) ;;
16662 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16664 esac
16668 if test "$ac_cv_func_working_mktime" = no; then
16670 cat >>confdefs.h <<\_ACEOF
16671 #define BROKEN_MKTIME 1
16672 _ACEOF
16676 ac_have_func=no # yes means we've found a way to get the load average.
16678 # Make sure getloadavg.c is where it belongs, at configure-time.
16679 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16680 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16681 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16682 { (exit 1); exit 1; }; }
16684 ac_save_LIBS=$LIBS
16686 # Check for getloadavg, but be sure not to touch the cache variable.
16687 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16688 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16689 if test "${ac_cv_func_getloadavg+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16700 #define getloadavg innocuous_getloadavg
16702 /* System header to define __stub macros and hopefully few prototypes,
16703 which can conflict with char getloadavg (); below.
16704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16705 <limits.h> exists even on freestanding compilers. */
16707 #ifdef __STDC__
16708 # include <limits.h>
16709 #else
16710 # include <assert.h>
16711 #endif
16713 #undef getloadavg
16715 /* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
16718 #ifdef __cplusplus
16719 extern "C"
16720 #endif
16721 char getloadavg ();
16722 /* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725 #if defined __stub_getloadavg || defined __stub___getloadavg
16726 choke me
16727 #endif
16730 main ()
16732 return getloadavg ();
16734 return 0;
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest$ac_exeext &&
16754 $as_test_x conftest$ac_exeext; then
16755 ac_cv_func_getloadavg=yes
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_func_getloadavg=no
16763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16764 conftest$ac_exeext conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16767 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16768 if test $ac_cv_func_getloadavg = yes; then
16769 exit 0
16770 else
16771 exit 1
16773 ) && ac_have_func=yes
16775 # On HPUX9, an unprivileged user can get load averages through this function.
16777 for ac_func in pstat_getdynamic
16779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h. */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16793 #define $ac_func innocuous_$ac_func
16795 /* System header to define __stub macros and hopefully few prototypes,
16796 which can conflict with char $ac_func (); below.
16797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16798 <limits.h> exists even on freestanding compilers. */
16800 #ifdef __STDC__
16801 # include <limits.h>
16802 #else
16803 # include <assert.h>
16804 #endif
16806 #undef $ac_func
16808 /* Override any GCC internal prototype to avoid an error.
16809 Use char because int might match the return type of a GCC
16810 builtin and then its argument prototype would still apply. */
16811 #ifdef __cplusplus
16812 extern "C"
16813 #endif
16814 char $ac_func ();
16815 /* The GNU C library defines this for functions which it implements
16816 to always fail with ENOSYS. Some functions are actually named
16817 something starting with __ and the normal name is an alias. */
16818 #if defined __stub_$ac_func || defined __stub___$ac_func
16819 choke me
16820 #endif
16823 main ()
16825 return $ac_func ();
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (ac_try="$ac_link"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_link") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest$ac_exeext &&
16847 $as_test_x conftest$ac_exeext; then
16848 eval "$as_ac_var=yes"
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 eval "$as_ac_var=no"
16856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16857 conftest$ac_exeext conftest.$ac_ext
16859 ac_res=`eval echo '${'$as_ac_var'}'`
16860 { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16862 if test `eval echo '${'$as_ac_var'}'` = yes; then
16863 cat >>confdefs.h <<_ACEOF
16864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16865 _ACEOF
16868 done
16871 # Solaris has libkstat which does not require root.
16873 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16874 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16875 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lkstat $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 kstat_open ();
16895 main ()
16897 return kstat_open ();
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_kstat_kstat_open=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_kstat_kstat_open=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_kstat_kstat_open" >&5
16933 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16934 if test $ac_cv_lib_kstat_kstat_open = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_LIBKSTAT 1
16937 _ACEOF
16939 LIBS="-lkstat $LIBS"
16943 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16945 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16946 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16947 # to get the right answer into the cache.
16948 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16949 if test $ac_have_func = no; then
16950 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16951 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16952 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955 ac_check_lib_save_LIBS=$LIBS
16956 LIBS="-lelf $LIBS"
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 char elf_begin ();
16972 main ()
16974 return elf_begin ();
16976 return 0;
16978 _ACEOF
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && {
16993 test -z "$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 } && test -s conftest$ac_exeext &&
16996 $as_test_x conftest$ac_exeext; then
16997 ac_cv_lib_elf_elf_begin=yes
16998 else
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_lib_elf_elf_begin=no
17005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17006 conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17009 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17010 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17011 if test $ac_cv_lib_elf_elf_begin = yes; then
17012 LIBS="-lelf $LIBS"
17016 if test $ac_have_func = no; then
17017 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17018 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17019 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 ac_check_lib_save_LIBS=$LIBS
17023 LIBS="-lkvm $LIBS"
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17031 /* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034 #ifdef __cplusplus
17035 extern "C"
17036 #endif
17037 char kvm_open ();
17039 main ()
17041 return kvm_open ();
17043 return 0;
17045 _ACEOF
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (ac_try="$ac_link"
17048 case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_link") 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && {
17060 test -z "$ac_c_werror_flag" ||
17061 test ! -s conftest.err
17062 } && test -s conftest$ac_exeext &&
17063 $as_test_x conftest$ac_exeext; then
17064 ac_cv_lib_kvm_kvm_open=yes
17065 else
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 ac_cv_lib_kvm_kvm_open=no
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17074 LIBS=$ac_check_lib_save_LIBS
17076 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17077 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17078 if test $ac_cv_lib_kvm_kvm_open = yes; then
17079 LIBS="-lkvm $LIBS"
17082 # Check for the 4.4BSD definition of getloadavg.
17083 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17084 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17085 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088 ac_check_lib_save_LIBS=$LIBS
17089 LIBS="-lutil $LIBS"
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17097 /* Override any GCC internal prototype to avoid an error.
17098 Use char because int might match the return type of a GCC
17099 builtin and then its argument prototype would still apply. */
17100 #ifdef __cplusplus
17101 extern "C"
17102 #endif
17103 char getloadavg ();
17105 main ()
17107 return getloadavg ();
17109 return 0;
17111 _ACEOF
17112 rm -f conftest.$ac_objext conftest$ac_exeext
17113 if { (ac_try="$ac_link"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_link") 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && {
17126 test -z "$ac_c_werror_flag" ||
17127 test ! -s conftest.err
17128 } && test -s conftest$ac_exeext &&
17129 $as_test_x conftest$ac_exeext; then
17130 ac_cv_lib_util_getloadavg=yes
17131 else
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_cv_lib_util_getloadavg=no
17138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17139 conftest$ac_exeext conftest.$ac_ext
17140 LIBS=$ac_check_lib_save_LIBS
17142 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17143 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17144 if test $ac_cv_lib_util_getloadavg = yes; then
17145 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17150 if test $ac_have_func = no; then
17151 # There is a commonly available library for RS/6000 AIX.
17152 # Since it is not a standard part of AIX, it might be installed locally.
17153 ac_getloadavg_LIBS=$LIBS
17154 LIBS="-L/usr/local/lib $LIBS"
17155 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17156 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17157 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160 ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-lgetloadavg $LIBS"
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char getloadavg ();
17177 main ()
17179 return getloadavg ();
17181 return 0;
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && {
17198 test -z "$ac_c_werror_flag" ||
17199 test ! -s conftest.err
17200 } && test -s conftest$ac_exeext &&
17201 $as_test_x conftest$ac_exeext; then
17202 ac_cv_lib_getloadavg_getloadavg=yes
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ac_cv_lib_getloadavg_getloadavg=no
17210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17215 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17216 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17217 LIBS="-lgetloadavg $LIBS"
17218 else
17219 LIBS=$ac_getloadavg_LIBS
17224 # Make sure it is really in the library, if we think we found it,
17225 # otherwise set up the replacement function.
17227 for ac_func in getloadavg
17229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h. */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17243 #define $ac_func innocuous_$ac_func
17245 /* System header to define __stub macros and hopefully few prototypes,
17246 which can conflict with char $ac_func (); below.
17247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17248 <limits.h> exists even on freestanding compilers. */
17250 #ifdef __STDC__
17251 # include <limits.h>
17252 #else
17253 # include <assert.h>
17254 #endif
17256 #undef $ac_func
17258 /* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 char $ac_func ();
17265 /* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
17268 #if defined __stub_$ac_func || defined __stub___$ac_func
17269 choke me
17270 #endif
17273 main ()
17275 return $ac_func ();
17277 return 0;
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_link") 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } && {
17294 test -z "$ac_c_werror_flag" ||
17295 test ! -s conftest.err
17296 } && test -s conftest$ac_exeext &&
17297 $as_test_x conftest$ac_exeext; then
17298 eval "$as_ac_var=yes"
17299 else
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 eval "$as_ac_var=no"
17306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17307 conftest$ac_exeext conftest.$ac_ext
17309 ac_res=`eval echo '${'$as_ac_var'}'`
17310 { echo "$as_me:$LINENO: result: $ac_res" >&5
17311 echo "${ECHO_T}$ac_res" >&6; }
17312 if test `eval echo '${'$as_ac_var'}'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17315 _ACEOF
17317 else
17318 case " $LIBOBJS " in
17319 *" getloadavg.$ac_objext "* ) ;;
17320 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17322 esac
17325 cat >>confdefs.h <<\_ACEOF
17326 #define C_GETLOADAVG 1
17327 _ACEOF
17329 # Figure out what our getloadavg.c needs.
17330 ac_have_func=no
17331 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17332 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17333 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17334 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17338 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17339 else
17340 # Is the header compilable?
17341 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17342 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 $ac_includes_default
17350 #include <sys/dg_sys_info.h>
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (ac_try="$ac_compile"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_compile") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest.$ac_objext; then
17369 ac_header_compiler=yes
17370 else
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_header_compiler=no
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17379 echo "${ECHO_T}$ac_header_compiler" >&6; }
17381 # Is the header present?
17382 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17383 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h. */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17390 #include <sys/dg_sys_info.h>
17391 _ACEOF
17392 if { (ac_try="$ac_cpp conftest.$ac_ext"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } >/dev/null && {
17405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17406 test ! -s conftest.err
17407 }; then
17408 ac_header_preproc=yes
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_header_preproc=no
17416 rm -f conftest.err conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17418 echo "${ECHO_T}$ac_header_preproc" >&6; }
17420 # So? What about this header?
17421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17422 yes:no: )
17423 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17424 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17426 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17427 ac_header_preproc=yes
17429 no:yes:* )
17430 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17431 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17433 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17435 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17437 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17439 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17441 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17444 esac
17445 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17446 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17447 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17453 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17456 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17457 ac_have_func=yes
17459 cat >>confdefs.h <<\_ACEOF
17460 #define DGUX 1
17461 _ACEOF
17464 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17465 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17466 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469 ac_check_lib_save_LIBS=$LIBS
17470 LIBS="-ldgc $LIBS"
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h. */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 /* Override any GCC internal prototype to avoid an error.
17479 Use char because int might match the return type of a GCC
17480 builtin and then its argument prototype would still apply. */
17481 #ifdef __cplusplus
17482 extern "C"
17483 #endif
17484 char dg_sys_info ();
17486 main ()
17488 return dg_sys_info ();
17490 return 0;
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest$ac_exeext &&
17510 $as_test_x conftest$ac_exeext; then
17511 ac_cv_lib_dgc_dg_sys_info=yes
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_cv_lib_dgc_dg_sys_info=no
17519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17520 conftest$ac_exeext conftest.$ac_ext
17521 LIBS=$ac_check_lib_save_LIBS
17523 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17524 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17525 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_LIBDGC 1
17528 _ACEOF
17530 LIBS="-ldgc $LIBS"
17538 if test "${ac_cv_header_locale_h+set}" = set; then
17539 { echo "$as_me:$LINENO: checking for locale.h" >&5
17540 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17541 if test "${ac_cv_header_locale_h+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17545 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17546 else
17547 # Is the header compilable?
17548 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17549 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 $ac_includes_default
17557 #include <locale.h>
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_compile") 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } && {
17573 test -z "$ac_c_werror_flag" ||
17574 test ! -s conftest.err
17575 } && test -s conftest.$ac_objext; then
17576 ac_header_compiler=yes
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_header_compiler=no
17584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17586 echo "${ECHO_T}$ac_header_compiler" >&6; }
17588 # Is the header present?
17589 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17590 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h. */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <locale.h>
17598 _ACEOF
17599 if { (ac_try="$ac_cpp conftest.$ac_ext"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } >/dev/null && {
17612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 }; then
17615 ac_header_preproc=yes
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_header_preproc=no
17623 rm -f conftest.err conftest.$ac_ext
17624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17625 echo "${ECHO_T}$ac_header_preproc" >&6; }
17627 # So? What about this header?
17628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17629 yes:no: )
17630 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17631 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17633 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17634 ac_header_preproc=yes
17636 no:yes:* )
17637 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17638 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17639 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17640 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17641 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17642 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17643 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17644 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17645 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17646 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17647 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17648 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17651 esac
17652 { echo "$as_me:$LINENO: checking for locale.h" >&5
17653 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17654 if test "${ac_cv_header_locale_h+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657 ac_cv_header_locale_h=$ac_header_preproc
17659 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17660 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17666 for ac_func in setlocale
17668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674 cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h. */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17682 #define $ac_func innocuous_$ac_func
17684 /* System header to define __stub macros and hopefully few prototypes,
17685 which can conflict with char $ac_func (); below.
17686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17687 <limits.h> exists even on freestanding compilers. */
17689 #ifdef __STDC__
17690 # include <limits.h>
17691 #else
17692 # include <assert.h>
17693 #endif
17695 #undef $ac_func
17697 /* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17700 #ifdef __cplusplus
17701 extern "C"
17702 #endif
17703 char $ac_func ();
17704 /* The GNU C library defines this for functions which it implements
17705 to always fail with ENOSYS. Some functions are actually named
17706 something starting with __ and the normal name is an alias. */
17707 #if defined __stub_$ac_func || defined __stub___$ac_func
17708 choke me
17709 #endif
17712 main ()
17714 return $ac_func ();
17716 return 0;
17718 _ACEOF
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (ac_try="$ac_link"
17721 case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_link") 2>conftest.er1
17727 ac_status=$?
17728 grep -v '^ *+' conftest.er1 >conftest.err
17729 rm -f conftest.er1
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest$ac_exeext &&
17736 $as_test_x conftest$ac_exeext; then
17737 eval "$as_ac_var=yes"
17738 else
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 eval "$as_ac_var=no"
17745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17746 conftest$ac_exeext conftest.$ac_ext
17748 ac_res=`eval echo '${'$as_ac_var'}'`
17749 { echo "$as_me:$LINENO: result: $ac_res" >&5
17750 echo "${ECHO_T}$ac_res" >&6; }
17751 if test `eval echo '${'$as_ac_var'}'` = yes; then
17752 cat >>confdefs.h <<_ACEOF
17753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754 _ACEOF
17757 done
17760 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17761 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17762 # Irix 4.0.5F has the header but not the library.
17763 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17764 ac_have_func=yes
17766 cat >>confdefs.h <<\_ACEOF
17767 #define SVR4 1
17768 _ACEOF
17772 if test $ac_have_func = no; then
17773 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17774 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17775 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17776 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17780 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17781 else
17782 # Is the header compilable?
17783 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17784 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17792 #include <inq_stats/cpustats.h>
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (ac_try="$ac_compile"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_compile") 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest.$ac_objext; then
17811 ac_header_compiler=yes
17812 else
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_header_compiler=no
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17821 echo "${ECHO_T}$ac_header_compiler" >&6; }
17823 # Is the header present?
17824 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17825 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 #include <inq_stats/cpustats.h>
17833 _ACEOF
17834 if { (ac_try="$ac_cpp conftest.$ac_ext"
17835 case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } >/dev/null && {
17847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17848 test ! -s conftest.err
17849 }; then
17850 ac_header_preproc=yes
17851 else
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 ac_header_preproc=no
17858 rm -f conftest.err conftest.$ac_ext
17859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17860 echo "${ECHO_T}$ac_header_preproc" >&6; }
17862 # So? What about this header?
17863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17864 yes:no: )
17865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17866 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17868 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17869 ac_header_preproc=yes
17871 no:yes:* )
17872 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17873 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17875 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17877 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17879 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17880 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17881 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17882 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17883 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17886 esac
17887 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17894 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17895 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17898 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17899 ac_have_func=yes
17901 cat >>confdefs.h <<\_ACEOF
17902 #define UMAX 1
17903 _ACEOF
17906 cat >>confdefs.h <<\_ACEOF
17907 #define UMAX4_3 1
17908 _ACEOF
17915 if test $ac_have_func = no; then
17916 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17917 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17918 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17923 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17924 else
17925 # Is the header compilable?
17926 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17927 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 $ac_includes_default
17935 #include <sys/cpustats.h>
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_compile") 2>conftest.er1
17945 ac_status=$?
17946 grep -v '^ *+' conftest.er1 >conftest.err
17947 rm -f conftest.er1
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && {
17951 test -z "$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17953 } && test -s conftest.$ac_objext; then
17954 ac_header_compiler=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_header_compiler=no
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17964 echo "${ECHO_T}$ac_header_compiler" >&6; }
17966 # Is the header present?
17967 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17968 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17969 cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h. */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 #include <sys/cpustats.h>
17976 _ACEOF
17977 if { (ac_try="$ac_cpp conftest.$ac_ext"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17984 ac_status=$?
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } >/dev/null && {
17990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 }; then
17993 ac_header_preproc=yes
17994 else
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 ac_header_preproc=no
18001 rm -f conftest.err conftest.$ac_ext
18002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18003 echo "${ECHO_T}$ac_header_preproc" >&6; }
18005 # So? What about this header?
18006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18007 yes:no: )
18008 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18009 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18011 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18012 ac_header_preproc=yes
18014 no:yes:* )
18015 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18016 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18018 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18020 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18021 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18022 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18023 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18024 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18025 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18026 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18029 esac
18030 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18031 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 else
18035 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18038 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18041 if test $ac_cv_header_sys_cpustats_h = yes; then
18042 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18043 #define UMAX 1
18044 _ACEOF
18051 if test $ac_have_func = no; then
18053 for ac_header in mach/mach.h
18055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_res=`eval echo '${'$as_ac_Header'}'`
18063 { echo "$as_me:$LINENO: result: $ac_res" >&5
18064 echo "${ECHO_T}$ac_res" >&6; }
18065 else
18066 # Is the header compilable?
18067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 $ac_includes_default
18076 #include <$ac_header>
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (ac_try="$ac_compile"
18080 case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_compile") 2>conftest.er1
18086 ac_status=$?
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && {
18092 test -z "$ac_c_werror_flag" ||
18093 test ! -s conftest.err
18094 } && test -s conftest.$ac_objext; then
18095 ac_header_compiler=yes
18096 else
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_header_compiler=no
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18105 echo "${ECHO_T}$ac_header_compiler" >&6; }
18107 # Is the header present?
18108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h. */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116 #include <$ac_header>
18117 _ACEOF
18118 if { (ac_try="$ac_cpp conftest.$ac_ext"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } >/dev/null && {
18131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 }; then
18134 ac_header_preproc=yes
18135 else
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_header_preproc=no
18142 rm -f conftest.err conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18144 echo "${ECHO_T}$ac_header_preproc" >&6; }
18146 # So? What about this header?
18147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18148 yes:no: )
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18153 ac_header_preproc=yes
18155 no:yes:* )
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18170 esac
18171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 eval "$as_ac_Header=\$ac_header_preproc"
18178 ac_res=`eval echo '${'$as_ac_Header'}'`
18179 { echo "$as_me:$LINENO: result: $ac_res" >&5
18180 echo "${ECHO_T}$ac_res" >&6; }
18183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18184 cat >>confdefs.h <<_ACEOF
18185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18186 _ACEOF
18190 done
18195 for ac_header in nlist.h
18197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 ac_res=`eval echo '${'$as_ac_Header'}'`
18205 { echo "$as_me:$LINENO: result: $ac_res" >&5
18206 echo "${ECHO_T}$ac_res" >&6; }
18207 else
18208 # Is the header compilable?
18209 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 $ac_includes_default
18218 #include <$ac_header>
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_compile") 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } && {
18234 test -z "$ac_c_werror_flag" ||
18235 test ! -s conftest.err
18236 } && test -s conftest.$ac_objext; then
18237 ac_header_compiler=yes
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_header_compiler=no
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18247 echo "${ECHO_T}$ac_header_compiler" >&6; }
18249 # Is the header present?
18250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 #include <$ac_header>
18259 _ACEOF
18260 if { (ac_try="$ac_cpp conftest.$ac_ext"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } >/dev/null && {
18273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 }; then
18276 ac_header_preproc=yes
18277 else
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 ac_header_preproc=no
18284 rm -f conftest.err conftest.$ac_ext
18285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18286 echo "${ECHO_T}$ac_header_preproc" >&6; }
18288 # So? What about this header?
18289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18290 yes:no: )
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18295 ac_header_preproc=yes
18297 no:yes:* )
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18312 esac
18313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318 eval "$as_ac_Header=\$ac_header_preproc"
18320 ac_res=`eval echo '${'$as_ac_Header'}'`
18321 { echo "$as_me:$LINENO: result: $ac_res" >&5
18322 echo "${ECHO_T}$ac_res" >&6; }
18325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18326 cat >>confdefs.h <<_ACEOF
18327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18328 _ACEOF
18329 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18330 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18331 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h. */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 #include <nlist.h>
18343 main ()
18345 static struct nlist ac_aggr;
18346 if (ac_aggr.n_un.n_name)
18347 return 0;
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_compile") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } && {
18366 test -z "$ac_c_werror_flag" ||
18367 test ! -s conftest.err
18368 } && test -s conftest.$ac_objext; then
18369 ac_cv_member_struct_nlist_n_un_n_name=yes
18370 else
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 #include <nlist.h>
18383 main ()
18385 static struct nlist ac_aggr;
18386 if (sizeof ac_aggr.n_un.n_name)
18387 return 0;
18389 return 0;
18391 _ACEOF
18392 rm -f conftest.$ac_objext
18393 if { (ac_try="$ac_compile"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_compile") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest.$ac_objext; then
18409 ac_cv_member_struct_nlist_n_un_n_name=yes
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_cv_member_struct_nlist_n_un_n_name=no
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18422 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18423 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18424 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18426 cat >>confdefs.h <<_ACEOF
18427 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18428 _ACEOF
18431 cat >>confdefs.h <<\_ACEOF
18432 #define NLIST_NAME_UNION 1
18433 _ACEOF
18440 done
18443 done
18446 # Some definitions of getloadavg require that the program be installed setgid.
18447 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18448 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18449 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18459 #ifdef LDAV_PRIVILEGED
18460 Yowza Am I SETGID yet
18461 #endif
18462 _ACEOF
18463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18464 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18465 ac_cv_func_getloadavg_setgid=yes
18466 else
18467 ac_cv_func_getloadavg_setgid=no
18469 rm -f conftest*
18472 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18473 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18474 if test $ac_cv_func_getloadavg_setgid = yes; then
18475 NEED_SETGID=true
18477 cat >>confdefs.h <<\_ACEOF
18478 #define GETLOADAVG_PRIVILEGED 1
18479 _ACEOF
18481 else
18482 NEED_SETGID=false
18485 if test $ac_cv_func_getloadavg_setgid = yes; then
18486 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18487 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18488 if test "${ac_cv_group_kmem+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18492 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18493 # If we got an error (system does not support symlinks), try without -L.
18494 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18495 ac_cv_group_kmem=`echo $ac_ls_output \
18496 | sed -ne 's/[ ][ ]*/ /g;
18497 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18498 / /s/.* //;p;'`
18501 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18502 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18503 KMEM_GROUP=$ac_cv_group_kmem
18505 if test "x$ac_save_LIBS" = x; then
18506 GETLOADAVG_LIBS=$LIBS
18507 else
18508 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18510 LIBS=$ac_save_LIBS
18514 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18515 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18516 if test "${ac_cv_sys_largefile_source+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519 while :; do
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 #include <stdio.h>
18528 main ()
18530 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 ac_cv_sys_largefile_source=no; break
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 #define _LARGEFILE_SOURCE 1
18570 #include <stdio.h>
18572 main ()
18574 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18576 return 0;
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } && {
18593 test -z "$ac_c_werror_flag" ||
18594 test ! -s conftest.err
18595 } && test -s conftest$ac_exeext &&
18596 $as_test_x conftest$ac_exeext; then
18597 ac_cv_sys_largefile_source=1; break
18598 else
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18606 conftest$ac_exeext conftest.$ac_ext
18607 ac_cv_sys_largefile_source=unknown
18608 break
18609 done
18611 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18612 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18613 case $ac_cv_sys_largefile_source in #(
18614 no | unknown) ;;
18616 cat >>confdefs.h <<_ACEOF
18617 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18618 _ACEOF
18620 esac
18621 rm -f conftest*
18623 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18624 # in glibc 2.1.3, but that breaks too many other things.
18625 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18626 if test $ac_cv_sys_largefile_source != unknown; then
18628 cat >>confdefs.h <<\_ACEOF
18629 #define HAVE_FSEEKO 1
18630 _ACEOF
18635 # Configure getopt.
18636 # getopt.m4 serial 10
18638 # The getopt module assume you want GNU getopt, with getopt_long etc,
18639 # rather than vanilla POSIX getopt. This means your your code should
18640 # always include <getopt.h> for the getopt prototypes.
18652 # Prerequisites of lib/getopt*.
18657 GETOPT_H=
18659 for ac_header in getopt.h
18661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 ac_res=`eval echo '${'$as_ac_Header'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 else
18672 # Is the header compilable?
18673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 $ac_includes_default
18682 #include <$ac_header>
18683 _ACEOF
18684 rm -f conftest.$ac_objext
18685 if { (ac_try="$ac_compile"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_compile") 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest.$ac_objext; then
18701 ac_header_compiler=yes
18702 else
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 ac_header_compiler=no
18709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18711 echo "${ECHO_T}$ac_header_compiler" >&6; }
18713 # Is the header present?
18714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 #include <$ac_header>
18723 _ACEOF
18724 if { (ac_try="$ac_cpp conftest.$ac_ext"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } >/dev/null && {
18737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 }; then
18740 ac_header_preproc=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_header_preproc=no
18748 rm -f conftest.err conftest.$ac_ext
18749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18750 echo "${ECHO_T}$ac_header_preproc" >&6; }
18752 # So? What about this header?
18753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18754 yes:no: )
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18759 ac_header_preproc=yes
18761 no:yes:* )
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18776 esac
18777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782 eval "$as_ac_Header=\$ac_header_preproc"
18784 ac_res=`eval echo '${'$as_ac_Header'}'`
18785 { echo "$as_me:$LINENO: result: $ac_res" >&5
18786 echo "${ECHO_T}$ac_res" >&6; }
18789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18792 _ACEOF
18794 else
18795 GETOPT_H=getopt.h
18798 done
18800 if test -z "$GETOPT_H"; then
18802 for ac_func in getopt_long_only
18804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18818 #define $ac_func innocuous_$ac_func
18820 /* System header to define __stub macros and hopefully few prototypes,
18821 which can conflict with char $ac_func (); below.
18822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 <limits.h> exists even on freestanding compilers. */
18825 #ifdef __STDC__
18826 # include <limits.h>
18827 #else
18828 # include <assert.h>
18829 #endif
18831 #undef $ac_func
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char $ac_func ();
18840 /* The GNU C library defines this for functions which it implements
18841 to always fail with ENOSYS. Some functions are actually named
18842 something starting with __ and the normal name is an alias. */
18843 #if defined __stub_$ac_func || defined __stub___$ac_func
18844 choke me
18845 #endif
18848 main ()
18850 return $ac_func ();
18852 return 0;
18854 _ACEOF
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (ac_try="$ac_link"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_link") 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest$ac_exeext &&
18872 $as_test_x conftest$ac_exeext; then
18873 eval "$as_ac_var=yes"
18874 else
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 eval "$as_ac_var=no"
18881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18882 conftest$ac_exeext conftest.$ac_ext
18884 ac_res=`eval echo '${'$as_ac_var'}'`
18885 { echo "$as_me:$LINENO: result: $ac_res" >&5
18886 echo "${ECHO_T}$ac_res" >&6; }
18887 if test `eval echo '${'$as_ac_var'}'` = yes; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18890 _ACEOF
18892 else
18893 GETOPT_H=getopt.h
18895 done
18899 if test -z "$GETOPT_H"; then
18900 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18901 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18902 if test "${ac_cv_have_decl_optreset+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
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 #include <getopt.h>
18914 main ()
18916 #ifndef optreset
18917 (void) optreset;
18918 #endif
18921 return 0;
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (ac_try="$ac_compile"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_compile") 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
18941 ac_cv_have_decl_optreset=yes
18942 else
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_have_decl_optreset=no
18949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18952 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18953 if test $ac_cv_have_decl_optreset = yes; then
18954 GETOPT_H=getopt.h
18959 if test -z "$GETOPT_H"; then
18960 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18961 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18962 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 if test "$cross_compiling" = yes; then
18966 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18967 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18968 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <getopt.h>
18980 main ()
18982 #ifndef getopt_clip
18983 (void) getopt_clip;
18984 #endif
18987 return 0;
18989 _ACEOF
18990 rm -f conftest.$ac_objext
18991 if { (ac_try="$ac_compile"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_compile") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest.$ac_objext; then
19007 ac_cv_have_decl_getopt_clip=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_cv_have_decl_getopt_clip=no
19015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19018 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19019 if test $ac_cv_have_decl_getopt_clip = yes; then
19020 gl_cv_func_gnu_getopt=no
19021 else
19022 gl_cv_func_gnu_getopt=yes
19025 else
19026 cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h. */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 #include <getopt.h>
19034 main ()
19037 char *myargv[3];
19038 myargv[0] = "conftest";
19039 myargv[1] = "-+";
19040 myargv[2] = 0;
19041 return getopt (2, myargv, "+a") != '?';
19044 return 0;
19046 _ACEOF
19047 rm -f conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_link") 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 gl_cv_func_gnu_getopt=yes
19068 else
19069 echo "$as_me: program exited with status $ac_status" >&5
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ( exit $ac_status )
19074 gl_cv_func_gnu_getopt=no
19076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19081 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19082 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19083 if test "$gl_cv_func_gnu_getopt" = "no"; then
19084 GETOPT_H=getopt.h
19090 if test -n "$GETOPT_H"; then
19093 GETOPT_H=getopt.h
19095 cat >>confdefs.h <<\_ACEOF
19096 #define __GETOPT_PREFIX rpl_
19097 _ACEOF
19102 GETOPTOBJS='getopt.o getopt1.o'
19109 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19110 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19111 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114 # Use it with a single arg.
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 $ac_includes_default
19123 main ()
19125 getpgrp (0);
19127 return 0;
19129 _ACEOF
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_compile") 2>conftest.er1
19138 ac_status=$?
19139 grep -v '^ *+' conftest.er1 >conftest.err
19140 rm -f conftest.er1
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } && {
19144 test -z "$ac_c_werror_flag" ||
19145 test ! -s conftest.err
19146 } && test -s conftest.$ac_objext; then
19147 ac_cv_func_getpgrp_void=no
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 ac_cv_func_getpgrp_void=yes
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19159 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19160 if test $ac_cv_func_getpgrp_void = yes; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define GETPGRP_VOID 1
19164 _ACEOF
19170 for ac_func in strftime
19172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19186 #define $ac_func innocuous_$ac_func
19188 /* System header to define __stub macros and hopefully few prototypes,
19189 which can conflict with char $ac_func (); below.
19190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19191 <limits.h> exists even on freestanding compilers. */
19193 #ifdef __STDC__
19194 # include <limits.h>
19195 #else
19196 # include <assert.h>
19197 #endif
19199 #undef $ac_func
19201 /* Override any GCC internal prototype to avoid an error.
19202 Use char because int might match the return type of a GCC
19203 builtin and then its argument prototype would still apply. */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 char $ac_func ();
19208 /* The GNU C library defines this for functions which it implements
19209 to always fail with ENOSYS. Some functions are actually named
19210 something starting with __ and the normal name is an alias. */
19211 #if defined __stub_$ac_func || defined __stub___$ac_func
19212 choke me
19213 #endif
19216 main ()
19218 return $ac_func ();
19220 return 0;
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } && {
19237 test -z "$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 } && test -s conftest$ac_exeext &&
19240 $as_test_x conftest$ac_exeext; then
19241 eval "$as_ac_var=yes"
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 eval "$as_ac_var=no"
19249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19250 conftest$ac_exeext conftest.$ac_ext
19252 ac_res=`eval echo '${'$as_ac_var'}'`
19253 { echo "$as_me:$LINENO: result: $ac_res" >&5
19254 echo "${ECHO_T}$ac_res" >&6; }
19255 if test `eval echo '${'$as_ac_var'}'` = yes; then
19256 cat >>confdefs.h <<_ACEOF
19257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19258 _ACEOF
19260 else
19261 # strftime is in -lintl on SCO UNIX.
19262 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19263 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19264 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 ac_check_lib_save_LIBS=$LIBS
19268 LIBS="-lintl $LIBS"
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 char strftime ();
19284 main ()
19286 return strftime ();
19288 return 0;
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest$ac_exeext &&
19308 $as_test_x conftest$ac_exeext; then
19309 ac_cv_lib_intl_strftime=yes
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_lib_intl_strftime=no
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
19319 LIBS=$ac_check_lib_save_LIBS
19321 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19322 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19323 if test $ac_cv_lib_intl_strftime = yes; then
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE_STRFTIME 1
19326 _ACEOF
19328 LIBS="-lintl $LIBS"
19332 done
19335 # UNIX98 PTYs.
19337 for ac_func in grantpt
19339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19353 #define $ac_func innocuous_$ac_func
19355 /* System header to define __stub macros and hopefully few prototypes,
19356 which can conflict with char $ac_func (); below.
19357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19358 <limits.h> exists even on freestanding compilers. */
19360 #ifdef __STDC__
19361 # include <limits.h>
19362 #else
19363 # include <assert.h>
19364 #endif
19366 #undef $ac_func
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19371 #ifdef __cplusplus
19372 extern "C"
19373 #endif
19374 char $ac_func ();
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined __stub_$ac_func || defined __stub___$ac_func
19379 choke me
19380 #endif
19383 main ()
19385 return $ac_func ();
19387 return 0;
19389 _ACEOF
19390 rm -f conftest.$ac_objext conftest$ac_exeext
19391 if { (ac_try="$ac_link"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395 esac
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_link") 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest$ac_exeext &&
19407 $as_test_x conftest$ac_exeext; then
19408 eval "$as_ac_var=yes"
19409 else
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 eval "$as_ac_var=no"
19416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19417 conftest$ac_exeext conftest.$ac_ext
19419 ac_res=`eval echo '${'$as_ac_var'}'`
19420 { echo "$as_me:$LINENO: result: $ac_res" >&5
19421 echo "${ECHO_T}$ac_res" >&6; }
19422 if test `eval echo '${'$as_ac_var'}'` = yes; then
19423 cat >>confdefs.h <<_ACEOF
19424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19425 _ACEOF
19428 done
19431 # PTY-related GNU extensions.
19433 for ac_func in getpt
19435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h. */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19449 #define $ac_func innocuous_$ac_func
19451 /* System header to define __stub macros and hopefully few prototypes,
19452 which can conflict with char $ac_func (); below.
19453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19454 <limits.h> exists even on freestanding compilers. */
19456 #ifdef __STDC__
19457 # include <limits.h>
19458 #else
19459 # include <assert.h>
19460 #endif
19462 #undef $ac_func
19464 /* Override any GCC internal prototype to avoid an error.
19465 Use char because int might match the return type of a GCC
19466 builtin and then its argument prototype would still apply. */
19467 #ifdef __cplusplus
19468 extern "C"
19469 #endif
19470 char $ac_func ();
19471 /* The GNU C library defines this for functions which it implements
19472 to always fail with ENOSYS. Some functions are actually named
19473 something starting with __ and the normal name is an alias. */
19474 #if defined __stub_$ac_func || defined __stub___$ac_func
19475 choke me
19476 #endif
19479 main ()
19481 return $ac_func ();
19483 return 0;
19485 _ACEOF
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (ac_try="$ac_link"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_link") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest$ac_exeext &&
19503 $as_test_x conftest$ac_exeext; then
19504 eval "$as_ac_var=yes"
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 eval "$as_ac_var=no"
19512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19513 conftest$ac_exeext conftest.$ac_ext
19515 ac_res=`eval echo '${'$as_ac_var'}'`
19516 { echo "$as_me:$LINENO: result: $ac_res" >&5
19517 echo "${ECHO_T}$ac_res" >&6; }
19518 if test `eval echo '${'$as_ac_var'}'` = yes; then
19519 cat >>confdefs.h <<_ACEOF
19520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19521 _ACEOF
19524 done
19527 # Check this now, so that we will NOT find the above functions in ncurses.
19528 # That is because we have not set up to link ncurses in lib-src.
19529 # It's better to believe a function is not available
19530 # than to expect to find it in ncurses.
19532 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19533 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19534 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537 ac_check_lib_save_LIBS=$LIBS
19538 LIBS="-lncurses $LIBS"
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h. */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19546 /* Override any GCC internal prototype to avoid an error.
19547 Use char because int might match the return type of a GCC
19548 builtin and then its argument prototype would still apply. */
19549 #ifdef __cplusplus
19550 extern "C"
19551 #endif
19552 char tparm ();
19554 main ()
19556 return tparm ();
19558 return 0;
19560 _ACEOF
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_link") 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest$ac_exeext &&
19578 $as_test_x conftest$ac_exeext; then
19579 ac_cv_lib_ncurses_tparm=yes
19580 else
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_lib_ncurses_tparm=no
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19592 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19593 if test $ac_cv_lib_ncurses_tparm = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595 #define HAVE_LIBNCURSES 1
19596 _ACEOF
19598 LIBS="-lncurses $LIBS"
19603 # Do we need the Hesiod library to provide the support routines?
19604 if test "$with_hesiod" = yes ; then
19605 # Don't set $LIBS here -- see comments above.
19606 resolv=no
19607 { echo "$as_me:$LINENO: checking for res_send" >&5
19608 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19609 if test "${ac_cv_func_res_send+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19620 #define res_send innocuous_res_send
19622 /* System header to define __stub macros and hopefully few prototypes,
19623 which can conflict with char res_send (); below.
19624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19625 <limits.h> exists even on freestanding compilers. */
19627 #ifdef __STDC__
19628 # include <limits.h>
19629 #else
19630 # include <assert.h>
19631 #endif
19633 #undef res_send
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19638 #ifdef __cplusplus
19639 extern "C"
19640 #endif
19641 char res_send ();
19642 /* The GNU C library defines this for functions which it implements
19643 to always fail with ENOSYS. Some functions are actually named
19644 something starting with __ and the normal name is an alias. */
19645 #if defined __stub_res_send || defined __stub___res_send
19646 choke me
19647 #endif
19650 main ()
19652 return res_send ();
19654 return 0;
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext &&
19674 $as_test_x conftest$ac_exeext; then
19675 ac_cv_func_res_send=yes
19676 else
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_cv_func_res_send=no
19683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19684 conftest$ac_exeext conftest.$ac_ext
19686 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19687 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19688 if test $ac_cv_func_res_send = yes; then
19690 else
19691 { echo "$as_me:$LINENO: checking for __res_send" >&5
19692 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19693 if test "${ac_cv_func___res_send+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19704 #define __res_send innocuous___res_send
19706 /* System header to define __stub macros and hopefully few prototypes,
19707 which can conflict with char __res_send (); below.
19708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19709 <limits.h> exists even on freestanding compilers. */
19711 #ifdef __STDC__
19712 # include <limits.h>
19713 #else
19714 # include <assert.h>
19715 #endif
19717 #undef __res_send
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char __res_send ();
19726 /* The GNU C library defines this for functions which it implements
19727 to always fail with ENOSYS. Some functions are actually named
19728 something starting with __ and the normal name is an alias. */
19729 #if defined __stub___res_send || defined __stub_____res_send
19730 choke me
19731 #endif
19734 main ()
19736 return __res_send ();
19738 return 0;
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_func___res_send=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_func___res_send=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19771 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19772 if test $ac_cv_func___res_send = yes; then
19774 else
19775 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19776 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19777 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780 ac_check_lib_save_LIBS=$LIBS
19781 LIBS="-lresolv $LIBS"
19782 cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h. */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19789 /* Override any GCC internal prototype to avoid an error.
19790 Use char because int might match the return type of a GCC
19791 builtin and then its argument prototype would still apply. */
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 char res_send ();
19797 main ()
19799 return res_send ();
19801 return 0;
19803 _ACEOF
19804 rm -f conftest.$ac_objext conftest$ac_exeext
19805 if { (ac_try="$ac_link"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_link") 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest$ac_exeext &&
19821 $as_test_x conftest$ac_exeext; then
19822 ac_cv_lib_resolv_res_send=yes
19823 else
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_lib_resolv_res_send=no
19830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19831 conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19834 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19835 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19836 if test $ac_cv_lib_resolv_res_send = yes; then
19837 resolv=yes
19838 else
19839 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19840 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19841 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 else
19844 ac_check_lib_save_LIBS=$LIBS
19845 LIBS="-lresolv $LIBS"
19846 cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h. */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19853 /* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
19856 #ifdef __cplusplus
19857 extern "C"
19858 #endif
19859 char __res_send ();
19861 main ()
19863 return __res_send ();
19865 return 0;
19867 _ACEOF
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (ac_try="$ac_link"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_link") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest$ac_exeext &&
19885 $as_test_x conftest$ac_exeext; then
19886 ac_cv_lib_resolv___res_send=yes
19887 else
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_cv_lib_resolv___res_send=no
19894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19895 conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19898 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19899 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19900 if test $ac_cv_lib_resolv___res_send = yes; then
19901 resolv=yes
19910 if test "$resolv" = yes ; then
19911 RESOLVLIB=-lresolv
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_LIBRESOLV 1
19915 _ACEOF
19917 else
19918 RESOLVLIB=
19920 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19921 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19922 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h. */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19933 #define hes_getmailhost innocuous_hes_getmailhost
19935 /* System header to define __stub macros and hopefully few prototypes,
19936 which can conflict with char hes_getmailhost (); below.
19937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19938 <limits.h> exists even on freestanding compilers. */
19940 #ifdef __STDC__
19941 # include <limits.h>
19942 #else
19943 # include <assert.h>
19944 #endif
19946 #undef hes_getmailhost
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 char hes_getmailhost ();
19955 /* The GNU C library defines this for functions which it implements
19956 to always fail with ENOSYS. Some functions are actually named
19957 something starting with __ and the normal name is an alias. */
19958 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19959 choke me
19960 #endif
19963 main ()
19965 return hes_getmailhost ();
19967 return 0;
19969 _ACEOF
19970 rm -f conftest.$ac_objext conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext &&
19987 $as_test_x conftest$ac_exeext; then
19988 ac_cv_func_hes_getmailhost=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_cv_func_hes_getmailhost=no
19996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19997 conftest$ac_exeext conftest.$ac_ext
19999 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20000 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20001 if test $ac_cv_func_hes_getmailhost = yes; then
20003 else
20004 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20005 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20006 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009 ac_check_lib_save_LIBS=$LIBS
20010 LIBS="-lhesiod $RESOLVLIB $LIBS"
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20018 /* Override any GCC internal prototype to avoid an error.
20019 Use char because int might match the return type of a GCC
20020 builtin and then its argument prototype would still apply. */
20021 #ifdef __cplusplus
20022 extern "C"
20023 #endif
20024 char hes_getmailhost ();
20026 main ()
20028 return hes_getmailhost ();
20030 return 0;
20032 _ACEOF
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (ac_try="$ac_link"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_link") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest$ac_exeext &&
20050 $as_test_x conftest$ac_exeext; then
20051 ac_cv_lib_hesiod_hes_getmailhost=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_cv_lib_hesiod_hes_getmailhost=no
20059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20060 conftest$ac_exeext conftest.$ac_ext
20061 LIBS=$ac_check_lib_save_LIBS
20063 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20064 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20065 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define HAVE_LIBHESIOD 1
20069 _ACEOF
20071 else
20079 # These tell us which Kerberos-related libraries to use.
20080 if test "${with_kerberos+set}" = set; then
20082 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20083 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20084 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 ac_check_lib_save_LIBS=$LIBS
20088 LIBS="-lcom_err $LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char com_err ();
20104 main ()
20106 return com_err ();
20108 return 0;
20110 _ACEOF
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest$ac_exeext &&
20128 $as_test_x conftest$ac_exeext; then
20129 ac_cv_lib_com_err_com_err=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 ac_cv_lib_com_err_com_err=no
20137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20138 conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20141 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20142 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20143 if test $ac_cv_lib_com_err_com_err = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_LIBCOM_ERR 1
20146 _ACEOF
20148 LIBS="-lcom_err $LIBS"
20153 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20154 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20155 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158 ac_check_lib_save_LIBS=$LIBS
20159 LIBS="-lk5crypto $LIBS"
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20167 /* Override any GCC internal prototype to avoid an error.
20168 Use char because int might match the return type of a GCC
20169 builtin and then its argument prototype would still apply. */
20170 #ifdef __cplusplus
20171 extern "C"
20172 #endif
20173 char mit_des_cbc_encrypt ();
20175 main ()
20177 return mit_des_cbc_encrypt ();
20179 return 0;
20181 _ACEOF
20182 rm -f conftest.$ac_objext conftest$ac_exeext
20183 if { (ac_try="$ac_link"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_link") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest$ac_exeext &&
20199 $as_test_x conftest$ac_exeext; then
20200 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20201 else
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209 conftest$ac_exeext conftest.$ac_ext
20210 LIBS=$ac_check_lib_save_LIBS
20212 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20213 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20214 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20215 cat >>confdefs.h <<_ACEOF
20216 #define HAVE_LIBK5CRYPTO 1
20217 _ACEOF
20219 LIBS="-lk5crypto $LIBS"
20224 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20225 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20226 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lcrypto $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char mit_des_cbc_encrypt ();
20246 main ()
20248 return mit_des_cbc_encrypt ();
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20272 else
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20284 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20285 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBCRYPTO 1
20288 _ACEOF
20290 LIBS="-lcrypto $LIBS"
20295 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20296 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20297 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 ac_check_lib_save_LIBS=$LIBS
20301 LIBS="-lkrb5 $LIBS"
20302 cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 char krb5_init_context ();
20317 main ()
20319 return krb5_init_context ();
20321 return 0;
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_lib_krb5_krb5_init_context=yes
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_lib_krb5_krb5_init_context=no
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20355 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20356 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_LIBKRB5 1
20359 _ACEOF
20361 LIBS="-lkrb5 $LIBS"
20365 if test "${with_kerberos5+set}" != set; then
20367 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20368 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-ldes425 $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h. */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char des_cbc_encrypt ();
20389 main ()
20391 return des_cbc_encrypt ();
20393 return 0;
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_des425_des_cbc_encrypt=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_des425_des_cbc_encrypt=no
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20427 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20428 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_LIBDES425 1
20431 _ACEOF
20433 LIBS="-ldes425 $LIBS"
20435 else
20437 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20438 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20439 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-ldes $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char des_cbc_encrypt ();
20459 main ()
20461 return des_cbc_encrypt ();
20463 return 0;
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_lib_des_des_cbc_encrypt=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_des_des_cbc_encrypt=no
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20496 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20497 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20498 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LIBDES 1
20501 _ACEOF
20503 LIBS="-ldes $LIBS"
20510 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20511 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20512 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 ac_check_lib_save_LIBS=$LIBS
20516 LIBS="-lkrb4 $LIBS"
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 /* Override any GCC internal prototype to avoid an error.
20525 Use char because int might match the return type of a GCC
20526 builtin and then its argument prototype would still apply. */
20527 #ifdef __cplusplus
20528 extern "C"
20529 #endif
20530 char krb_get_cred ();
20532 main ()
20534 return krb_get_cred ();
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (ac_try="$ac_link"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_link") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest$ac_exeext &&
20556 $as_test_x conftest$ac_exeext; then
20557 ac_cv_lib_krb4_krb_get_cred=yes
20558 else
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_cv_lib_krb4_krb_get_cred=no
20565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20566 conftest$ac_exeext conftest.$ac_ext
20567 LIBS=$ac_check_lib_save_LIBS
20569 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20570 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20571 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20572 cat >>confdefs.h <<_ACEOF
20573 #define HAVE_LIBKRB4 1
20574 _ACEOF
20576 LIBS="-lkrb4 $LIBS"
20578 else
20580 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20581 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20582 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585 ac_check_lib_save_LIBS=$LIBS
20586 LIBS="-lkrb $LIBS"
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20594 /* Override any GCC internal prototype to avoid an error.
20595 Use char because int might match the return type of a GCC
20596 builtin and then its argument prototype would still apply. */
20597 #ifdef __cplusplus
20598 extern "C"
20599 #endif
20600 char krb_get_cred ();
20602 main ()
20604 return krb_get_cred ();
20606 return 0;
20608 _ACEOF
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (ac_try="$ac_link"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_link") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest$ac_exeext &&
20626 $as_test_x conftest$ac_exeext; then
20627 ac_cv_lib_krb_krb_get_cred=yes
20628 else
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ac_cv_lib_krb_krb_get_cred=no
20635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20636 conftest$ac_exeext conftest.$ac_ext
20637 LIBS=$ac_check_lib_save_LIBS
20639 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20640 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20641 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20642 cat >>confdefs.h <<_ACEOF
20643 #define HAVE_LIBKRB 1
20644 _ACEOF
20646 LIBS="-lkrb $LIBS"
20654 if test "${with_kerberos5+set}" = set; then
20656 for ac_header in krb5.h
20658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 ac_res=`eval echo '${'$as_ac_Header'}'`
20666 { echo "$as_me:$LINENO: result: $ac_res" >&5
20667 echo "${ECHO_T}$ac_res" >&6; }
20668 else
20669 # Is the header compilable?
20670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20672 cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h. */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 $ac_includes_default
20679 #include <$ac_header>
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (ac_try="$ac_compile"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_compile") 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest.$ac_objext; then
20698 ac_header_compiler=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_header_compiler=no
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20708 echo "${ECHO_T}$ac_header_compiler" >&6; }
20710 # Is the header present?
20711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20713 cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h. */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 #include <$ac_header>
20720 _ACEOF
20721 if { (ac_try="$ac_cpp conftest.$ac_ext"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } >/dev/null && {
20734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 }; then
20737 ac_header_preproc=yes
20738 else
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_header_preproc=no
20745 rm -f conftest.err conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20747 echo "${ECHO_T}$ac_header_preproc" >&6; }
20749 # So? What about this header?
20750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20751 yes:no: )
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20756 ac_header_preproc=yes
20758 no:yes:* )
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20773 esac
20774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779 eval "$as_ac_Header=\$ac_header_preproc"
20781 ac_res=`eval echo '${'$as_ac_Header'}'`
20782 { echo "$as_me:$LINENO: result: $ac_res" >&5
20783 echo "${ECHO_T}$ac_res" >&6; }
20786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20787 cat >>confdefs.h <<_ACEOF
20788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20789 _ACEOF
20793 done
20795 else
20797 for ac_header in des.h
20799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 ac_res=`eval echo '${'$as_ac_Header'}'`
20807 { echo "$as_me:$LINENO: result: $ac_res" >&5
20808 echo "${ECHO_T}$ac_res" >&6; }
20809 else
20810 # Is the header compilable?
20811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20813 cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h. */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20819 $ac_includes_default
20820 #include <$ac_header>
20821 _ACEOF
20822 rm -f conftest.$ac_objext
20823 if { (ac_try="$ac_compile"
20824 case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_compile") 2>conftest.er1
20830 ac_status=$?
20831 grep -v '^ *+' conftest.er1 >conftest.err
20832 rm -f conftest.er1
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } && {
20836 test -z "$ac_c_werror_flag" ||
20837 test ! -s conftest.err
20838 } && test -s conftest.$ac_objext; then
20839 ac_header_compiler=yes
20840 else
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20844 ac_header_compiler=no
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20849 echo "${ECHO_T}$ac_header_compiler" >&6; }
20851 # Is the header present?
20852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <$ac_header>
20861 _ACEOF
20862 if { (ac_try="$ac_cpp conftest.$ac_ext"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } >/dev/null && {
20875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 }; then
20878 ac_header_preproc=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_preproc=no
20886 rm -f conftest.err conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20888 echo "${ECHO_T}$ac_header_preproc" >&6; }
20890 # So? What about this header?
20891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20892 yes:no: )
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20897 ac_header_preproc=yes
20899 no:yes:* )
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20914 esac
20915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920 eval "$as_ac_Header=\$ac_header_preproc"
20922 ac_res=`eval echo '${'$as_ac_Header'}'`
20923 { echo "$as_me:$LINENO: result: $ac_res" >&5
20924 echo "${ECHO_T}$ac_res" >&6; }
20927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20928 cat >>confdefs.h <<_ACEOF
20929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20930 _ACEOF
20932 else
20934 for ac_header in kerberosIV/des.h
20936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_res=`eval echo '${'$as_ac_Header'}'`
20944 { echo "$as_me:$LINENO: result: $ac_res" >&5
20945 echo "${ECHO_T}$ac_res" >&6; }
20946 else
20947 # Is the header compilable?
20948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 #include <$ac_header>
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20976 ac_header_compiler=yes
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_header_compiler=no
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20986 echo "${ECHO_T}$ac_header_compiler" >&6; }
20988 # Is the header present?
20989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <$ac_header>
20998 _ACEOF
20999 if { (ac_try="$ac_cpp conftest.$ac_ext"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21006 ac_status=$?
21007 grep -v '^ *+' conftest.er1 >conftest.err
21008 rm -f conftest.er1
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } >/dev/null && {
21012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 }; then
21015 ac_header_preproc=yes
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_header_preproc=no
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21027 # So? What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21029 yes:no: )
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21034 ac_header_preproc=yes
21036 no:yes:* )
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21051 esac
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057 eval "$as_ac_Header=\$ac_header_preproc"
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060 { echo "$as_me:$LINENO: result: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21067 _ACEOF
21069 else
21071 for ac_header in kerberos/des.h
21073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 ac_res=`eval echo '${'$as_ac_Header'}'`
21081 { echo "$as_me:$LINENO: result: $ac_res" >&5
21082 echo "${ECHO_T}$ac_res" >&6; }
21083 else
21084 # Is the header compilable?
21085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 $ac_includes_default
21094 #include <$ac_header>
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 ac_header_compiler=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_compiler=no
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21123 echo "${ECHO_T}$ac_header_compiler" >&6; }
21125 # Is the header present?
21126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <$ac_header>
21135 _ACEOF
21136 if { (ac_try="$ac_cpp conftest.$ac_ext"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } >/dev/null && {
21149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 }; then
21152 ac_header_preproc=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 ac_header_preproc=no
21160 rm -f conftest.err conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21162 echo "${ECHO_T}$ac_header_preproc" >&6; }
21164 # So? What about this header?
21165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21166 yes:no: )
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21171 ac_header_preproc=yes
21173 no:yes:* )
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21188 esac
21189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 eval "$as_ac_Header=\$ac_header_preproc"
21196 ac_res=`eval echo '${'$as_ac_Header'}'`
21197 { echo "$as_me:$LINENO: result: $ac_res" >&5
21198 echo "${ECHO_T}$ac_res" >&6; }
21201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21202 cat >>confdefs.h <<_ACEOF
21203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21204 _ACEOF
21208 done
21212 done
21216 done
21219 for ac_header in krb.h
21221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 ac_res=`eval echo '${'$as_ac_Header'}'`
21229 { echo "$as_me:$LINENO: result: $ac_res" >&5
21230 echo "${ECHO_T}$ac_res" >&6; }
21231 else
21232 # Is the header compilable?
21233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h. */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 $ac_includes_default
21242 #include <$ac_header>
21243 _ACEOF
21244 rm -f conftest.$ac_objext
21245 if { (ac_try="$ac_compile"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_header_compiler=yes
21262 else
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_header_compiler=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21271 echo "${ECHO_T}$ac_header_compiler" >&6; }
21273 # Is the header present?
21274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <$ac_header>
21283 _ACEOF
21284 if { (ac_try="$ac_cpp conftest.$ac_ext"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } >/dev/null && {
21297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 }; then
21300 ac_header_preproc=yes
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 ac_header_preproc=no
21308 rm -f conftest.err conftest.$ac_ext
21309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21310 echo "${ECHO_T}$ac_header_preproc" >&6; }
21312 # So? What about this header?
21313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21314 yes:no: )
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21319 ac_header_preproc=yes
21321 no:yes:* )
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21336 esac
21337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 eval "$as_ac_Header=\$ac_header_preproc"
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21352 _ACEOF
21354 else
21356 for ac_header in kerberosIV/krb.h
21358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 ac_res=`eval echo '${'$as_ac_Header'}'`
21366 { echo "$as_me:$LINENO: result: $ac_res" >&5
21367 echo "${ECHO_T}$ac_res" >&6; }
21368 else
21369 # Is the header compilable?
21370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21372 cat >conftest.$ac_ext <<_ACEOF
21373 /* confdefs.h. */
21374 _ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h. */
21378 $ac_includes_default
21379 #include <$ac_header>
21380 _ACEOF
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 ac_header_compiler=yes
21399 else
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 ac_header_compiler=no
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21408 echo "${ECHO_T}$ac_header_compiler" >&6; }
21410 # Is the header present?
21411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 #include <$ac_header>
21420 _ACEOF
21421 if { (ac_try="$ac_cpp conftest.$ac_ext"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } >/dev/null && {
21434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 }; then
21437 ac_header_preproc=yes
21438 else
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_header_preproc=no
21445 rm -f conftest.err conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21447 echo "${ECHO_T}$ac_header_preproc" >&6; }
21449 # So? What about this header?
21450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21451 yes:no: )
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21456 ac_header_preproc=yes
21458 no:yes:* )
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21473 esac
21474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479 eval "$as_ac_Header=\$ac_header_preproc"
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482 { echo "$as_me:$LINENO: result: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21491 else
21493 for ac_header in kerberos/krb.h
21495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 ac_res=`eval echo '${'$as_ac_Header'}'`
21503 { echo "$as_me:$LINENO: result: $ac_res" >&5
21504 echo "${ECHO_T}$ac_res" >&6; }
21505 else
21506 # Is the header compilable?
21507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h. */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 $ac_includes_default
21516 #include <$ac_header>
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (ac_try="$ac_compile"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_compile") 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && {
21532 test -z "$ac_c_werror_flag" ||
21533 test ! -s conftest.err
21534 } && test -s conftest.$ac_objext; then
21535 ac_header_compiler=yes
21536 else
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_header_compiler=no
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21545 echo "${ECHO_T}$ac_header_compiler" >&6; }
21547 # Is the header present?
21548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21550 cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h. */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 #include <$ac_header>
21557 _ACEOF
21558 if { (ac_try="$ac_cpp conftest.$ac_ext"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } >/dev/null && {
21571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 }; then
21574 ac_header_preproc=yes
21575 else
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21579 ac_header_preproc=no
21582 rm -f conftest.err conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21584 echo "${ECHO_T}$ac_header_preproc" >&6; }
21586 # So? What about this header?
21587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21588 yes:no: )
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21593 ac_header_preproc=yes
21595 no:yes:* )
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21610 esac
21611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616 eval "$as_ac_Header=\$ac_header_preproc"
21618 ac_res=`eval echo '${'$as_ac_Header'}'`
21619 { echo "$as_me:$LINENO: result: $ac_res" >&5
21620 echo "${ECHO_T}$ac_res" >&6; }
21623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21624 cat >>confdefs.h <<_ACEOF
21625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21626 _ACEOF
21630 done
21634 done
21638 done
21642 for ac_header in com_err.h
21644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 ac_res=`eval echo '${'$as_ac_Header'}'`
21652 { echo "$as_me:$LINENO: result: $ac_res" >&5
21653 echo "${ECHO_T}$ac_res" >&6; }
21654 else
21655 # Is the header compilable?
21656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h. */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 $ac_includes_default
21665 #include <$ac_header>
21666 _ACEOF
21667 rm -f conftest.$ac_objext
21668 if { (ac_try="$ac_compile"
21669 case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21672 esac
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_compile") 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } && {
21681 test -z "$ac_c_werror_flag" ||
21682 test ! -s conftest.err
21683 } && test -s conftest.$ac_objext; then
21684 ac_header_compiler=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_header_compiler=no
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21694 echo "${ECHO_T}$ac_header_compiler" >&6; }
21696 # Is the header present?
21697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21699 cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h. */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 #include <$ac_header>
21706 _ACEOF
21707 if { (ac_try="$ac_cpp conftest.$ac_ext"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } >/dev/null && {
21720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 }; then
21723 ac_header_preproc=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 ac_header_preproc=no
21731 rm -f conftest.err conftest.$ac_ext
21732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733 echo "${ECHO_T}$ac_header_preproc" >&6; }
21735 # So? What about this header?
21736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21737 yes:no: )
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc=yes
21744 no:yes:* )
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21759 esac
21760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765 eval "$as_ac_Header=\$ac_header_preproc"
21767 ac_res=`eval echo '${'$as_ac_Header'}'`
21768 { echo "$as_me:$LINENO: result: $ac_res" >&5
21769 echo "${ECHO_T}$ac_res" >&6; }
21772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21773 cat >>confdefs.h <<_ACEOF
21774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21775 _ACEOF
21779 done
21783 # Solaris requires -lintl if you want strerror (which calls dgettext)
21784 # to return localized messages.
21786 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21787 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21788 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791 ac_check_lib_save_LIBS=$LIBS
21792 LIBS="-lintl $LIBS"
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21800 /* Override any GCC internal prototype to avoid an error.
21801 Use char because int might match the return type of a GCC
21802 builtin and then its argument prototype would still apply. */
21803 #ifdef __cplusplus
21804 extern "C"
21805 #endif
21806 char dgettext ();
21808 main ()
21810 return dgettext ();
21812 return 0;
21814 _ACEOF
21815 rm -f conftest.$ac_objext conftest$ac_exeext
21816 if { (ac_try="$ac_link"
21817 case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21820 esac
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_link") 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest$ac_exeext &&
21832 $as_test_x conftest$ac_exeext; then
21833 ac_cv_lib_intl_dgettext=yes
21834 else
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ac_cv_lib_intl_dgettext=no
21841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21842 conftest$ac_exeext conftest.$ac_ext
21843 LIBS=$ac_check_lib_save_LIBS
21845 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21846 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21847 if test $ac_cv_lib_intl_dgettext = yes; then
21848 cat >>confdefs.h <<_ACEOF
21849 #define HAVE_LIBINTL 1
21850 _ACEOF
21852 LIBS="-lintl $LIBS"
21857 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21858 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21859 if test "${emacs_cv_localtime_cache+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862 if test x$ac_cv_func_tzset = xyes; then
21863 if test "$cross_compiling" = yes; then
21864 # If we have tzset, assume the worst when cross-compiling.
21865 emacs_cv_localtime_cache=yes
21866 else
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <time.h>
21874 extern char **environ;
21875 unset_TZ ()
21877 char **from, **to;
21878 for (to = from = environ; (*to = *from); from++)
21879 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21880 to++;
21882 char TZ_GMT0[] = "TZ=GMT0";
21883 char TZ_PST8[] = "TZ=PST8";
21884 main()
21886 time_t now = time ((time_t *) 0);
21887 int hour_GMT0, hour_unset;
21888 if (putenv (TZ_GMT0) != 0)
21889 exit (1);
21890 hour_GMT0 = localtime (&now)->tm_hour;
21891 unset_TZ ();
21892 hour_unset = localtime (&now)->tm_hour;
21893 if (putenv (TZ_PST8) != 0)
21894 exit (1);
21895 if (localtime (&now)->tm_hour == hour_GMT0)
21896 exit (1);
21897 unset_TZ ();
21898 if (localtime (&now)->tm_hour != hour_unset)
21899 exit (1);
21900 exit (0);
21902 _ACEOF
21903 rm -f conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_link") 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21914 { (case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_try") 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 emacs_cv_localtime_cache=no
21924 else
21925 echo "$as_me: program exited with status $ac_status" >&5
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 ( exit $ac_status )
21930 emacs_cv_localtime_cache=yes
21932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21936 else
21937 # If we lack tzset, report that localtime does not cache TZ,
21938 # since we can't invalidate the cache if we don't have tzset.
21939 emacs_cv_localtime_cache=no
21942 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21943 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21944 if test $emacs_cv_localtime_cache = yes; then
21946 cat >>confdefs.h <<\_ACEOF
21947 #define LOCALTIME_CACHE 1
21948 _ACEOF
21952 if test "x$HAVE_TIMEVAL" = xyes; then
21954 for ac_func in gettimeofday
21956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 else
21962 cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h. */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21970 #define $ac_func innocuous_$ac_func
21972 /* System header to define __stub macros and hopefully few prototypes,
21973 which can conflict with char $ac_func (); below.
21974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21975 <limits.h> exists even on freestanding compilers. */
21977 #ifdef __STDC__
21978 # include <limits.h>
21979 #else
21980 # include <assert.h>
21981 #endif
21983 #undef $ac_func
21985 /* Override any GCC internal prototype to avoid an error.
21986 Use char because int might match the return type of a GCC
21987 builtin and then its argument prototype would still apply. */
21988 #ifdef __cplusplus
21989 extern "C"
21990 #endif
21991 char $ac_func ();
21992 /* The GNU C library defines this for functions which it implements
21993 to always fail with ENOSYS. Some functions are actually named
21994 something starting with __ and the normal name is an alias. */
21995 #if defined __stub_$ac_func || defined __stub___$ac_func
21996 choke me
21997 #endif
22000 main ()
22002 return $ac_func ();
22004 return 0;
22006 _ACEOF
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_link") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest$ac_exeext &&
22024 $as_test_x conftest$ac_exeext; then
22025 eval "$as_ac_var=yes"
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 eval "$as_ac_var=no"
22033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22034 conftest$ac_exeext conftest.$ac_ext
22036 ac_res=`eval echo '${'$as_ac_var'}'`
22037 { echo "$as_me:$LINENO: result: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22039 if test `eval echo '${'$as_ac_var'}'` = yes; then
22040 cat >>confdefs.h <<_ACEOF
22041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22042 _ACEOF
22045 done
22047 if test $ac_cv_func_gettimeofday = yes; then
22048 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22049 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22050 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h. */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22060 #ifdef TIME_WITH_SYS_TIME
22061 #include <sys/time.h>
22062 #include <time.h>
22063 #else
22064 #ifdef HAVE_SYS_TIME_H
22065 #include <sys/time.h>
22066 #else
22067 #include <time.h>
22068 #endif
22069 #endif
22071 main ()
22073 struct timeval time;
22074 gettimeofday (&time, 0);
22076 return 0;
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22096 emacs_cv_gettimeofday_two_arguments=yes
22097 else
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 emacs_cv_gettimeofday_two_arguments=no
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22107 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22108 if test $emacs_cv_gettimeofday_two_arguments = no; then
22110 cat >>confdefs.h <<\_ACEOF
22111 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22112 _ACEOF
22118 ok_so_far=yes
22119 { echo "$as_me:$LINENO: checking for socket" >&5
22120 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22121 if test "${ac_cv_func_socket+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124 cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h. */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22132 #define socket innocuous_socket
22134 /* System header to define __stub macros and hopefully few prototypes,
22135 which can conflict with char socket (); below.
22136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22137 <limits.h> exists even on freestanding compilers. */
22139 #ifdef __STDC__
22140 # include <limits.h>
22141 #else
22142 # include <assert.h>
22143 #endif
22145 #undef socket
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22150 #ifdef __cplusplus
22151 extern "C"
22152 #endif
22153 char socket ();
22154 /* The GNU C library defines this for functions which it implements
22155 to always fail with ENOSYS. Some functions are actually named
22156 something starting with __ and the normal name is an alias. */
22157 #if defined __stub_socket || defined __stub___socket
22158 choke me
22159 #endif
22162 main ()
22164 return socket ();
22166 return 0;
22168 _ACEOF
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_link") 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest$ac_exeext &&
22186 $as_test_x conftest$ac_exeext; then
22187 ac_cv_func_socket=yes
22188 else
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 ac_cv_func_socket=no
22195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22196 conftest$ac_exeext conftest.$ac_ext
22198 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22199 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22200 if test $ac_cv_func_socket = yes; then
22202 else
22203 ok_so_far=no
22206 if test $ok_so_far = yes; then
22207 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22208 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22209 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22210 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22214 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22215 else
22216 # Is the header compilable?
22217 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22218 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 $ac_includes_default
22226 #include <netinet/in.h>
22227 _ACEOF
22228 rm -f conftest.$ac_objext
22229 if { (ac_try="$ac_compile"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest.$ac_objext; then
22245 ac_header_compiler=yes
22246 else
22247 echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_header_compiler=no
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22255 echo "${ECHO_T}$ac_header_compiler" >&6; }
22257 # Is the header present?
22258 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22259 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h. */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 #include <netinet/in.h>
22267 _ACEOF
22268 if { (ac_try="$ac_cpp conftest.$ac_ext"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } >/dev/null && {
22281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 }; then
22284 ac_header_preproc=yes
22285 else
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 ac_header_preproc=no
22292 rm -f conftest.err conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22294 echo "${ECHO_T}$ac_header_preproc" >&6; }
22296 # So? What about this header?
22297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22298 yes:no: )
22299 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22300 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22302 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22303 ac_header_preproc=yes
22305 no:yes:* )
22306 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22307 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22309 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22311 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22313 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22315 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22317 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22320 esac
22321 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22322 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22323 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 ac_cv_header_netinet_in_h=$ac_header_preproc
22328 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22329 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22332 if test $ac_cv_header_netinet_in_h = yes; then
22334 else
22335 ok_so_far=no
22340 if test $ok_so_far = yes; then
22341 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22342 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22343 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22344 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22348 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22349 else
22350 # Is the header compilable?
22351 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22352 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #include <arpa/inet.h>
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_compile") 2>conftest.er1
22370 ac_status=$?
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest.$ac_objext; then
22379 ac_header_compiler=yes
22380 else
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_header_compiler=no
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22389 echo "${ECHO_T}$ac_header_compiler" >&6; }
22391 # Is the header present?
22392 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22393 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 #include <arpa/inet.h>
22401 _ACEOF
22402 if { (ac_try="$ac_cpp conftest.$ac_ext"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22409 ac_status=$?
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } >/dev/null && {
22415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 }; then
22418 ac_header_preproc=yes
22419 else
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_header_preproc=no
22426 rm -f conftest.err conftest.$ac_ext
22427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22428 echo "${ECHO_T}$ac_header_preproc" >&6; }
22430 # So? What about this header?
22431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22432 yes:no: )
22433 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22434 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22436 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22437 ac_header_preproc=yes
22439 no:yes:* )
22440 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22441 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22442 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22443 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22444 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22445 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22446 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22447 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22448 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22449 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22451 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22454 esac
22455 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22456 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22457 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460 ac_cv_header_arpa_inet_h=$ac_header_preproc
22462 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22463 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22466 if test $ac_cv_header_arpa_inet_h = yes; then
22468 else
22469 ok_so_far=no
22474 if test $ok_so_far = yes; then
22476 cat >>confdefs.h <<\_ACEOF
22477 #define HAVE_INET_SOCKETS 1
22478 _ACEOF
22483 for ac_header in sys/ioctl.h
22485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 ac_res=`eval echo '${'$as_ac_Header'}'`
22493 { echo "$as_me:$LINENO: result: $ac_res" >&5
22494 echo "${ECHO_T}$ac_res" >&6; }
22495 else
22496 # Is the header compilable?
22497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22499 cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h. */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 $ac_includes_default
22506 #include <$ac_header>
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_compile") 2>conftest.er1
22516 ac_status=$?
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } && {
22522 test -z "$ac_c_werror_flag" ||
22523 test ! -s conftest.err
22524 } && test -s conftest.$ac_objext; then
22525 ac_header_compiler=yes
22526 else
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ac_header_compiler=no
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22535 echo "${ECHO_T}$ac_header_compiler" >&6; }
22537 # Is the header present?
22538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22540 cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h. */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546 #include <$ac_header>
22547 _ACEOF
22548 if { (ac_try="$ac_cpp conftest.$ac_ext"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22555 ac_status=$?
22556 grep -v '^ *+' conftest.er1 >conftest.err
22557 rm -f conftest.er1
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } >/dev/null && {
22561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 }; then
22564 ac_header_preproc=yes
22565 else
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 ac_header_preproc=no
22572 rm -f conftest.err conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22574 echo "${ECHO_T}$ac_header_preproc" >&6; }
22576 # So? What about this header?
22577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22578 yes:no: )
22579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22583 ac_header_preproc=yes
22585 no:yes:* )
22586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22600 esac
22601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606 eval "$as_ac_Header=\$ac_header_preproc"
22608 ac_res=`eval echo '${'$as_ac_Header'}'`
22609 { echo "$as_me:$LINENO: result: $ac_res" >&5
22610 echo "${ECHO_T}$ac_res" >&6; }
22613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22614 cat >>confdefs.h <<_ACEOF
22615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22616 _ACEOF
22620 done
22623 if test -f /usr/lpp/X11/bin/smt.exp; then
22625 cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_AIX_SMT_EXP 1
22627 _ACEOF
22631 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22632 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22633 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22634 { echo "$as_me:$LINENO: result: yes" >&5
22635 echo "${ECHO_T}yes" >&6; }
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_DEV_PTMX 1
22639 _ACEOF
22641 else
22642 { echo "$as_me:$LINENO: result: no" >&5
22643 echo "${ECHO_T}no" >&6; }
22646 { echo "$as_me:$LINENO: checking for pid_t" >&5
22647 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22648 if test "${ac_cv_type_pid_t+set}" = set; then
22649 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 else
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 $ac_includes_default
22658 typedef pid_t ac__type_new_;
22660 main ()
22662 if ((ac__type_new_ *) 0)
22663 return 0;
22664 if (sizeof (ac__type_new_))
22665 return 0;
22667 return 0;
22669 _ACEOF
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 ac_cv_type_pid_t=yes
22688 else
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_cv_type_pid_t=no
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22698 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22699 if test $ac_cv_type_pid_t = yes; then
22701 else
22703 cat >>confdefs.h <<_ACEOF
22704 #define pid_t int
22705 _ACEOF
22710 for ac_header in vfork.h
22712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 ac_res=`eval echo '${'$as_ac_Header'}'`
22720 { echo "$as_me:$LINENO: result: $ac_res" >&5
22721 echo "${ECHO_T}$ac_res" >&6; }
22722 else
22723 # Is the header compilable?
22724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22726 cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h. */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 $ac_includes_default
22733 #include <$ac_header>
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_header_compiler=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 ac_header_compiler=no
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22762 echo "${ECHO_T}$ac_header_compiler" >&6; }
22764 # Is the header present?
22765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22767 cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h. */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 #include <$ac_header>
22774 _ACEOF
22775 if { (ac_try="$ac_cpp conftest.$ac_ext"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } >/dev/null && {
22788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 }; then
22791 ac_header_preproc=yes
22792 else
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 ac_header_preproc=no
22799 rm -f conftest.err conftest.$ac_ext
22800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22801 echo "${ECHO_T}$ac_header_preproc" >&6; }
22803 # So? What about this header?
22804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22805 yes:no: )
22806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22810 ac_header_preproc=yes
22812 no:yes:* )
22813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22827 esac
22828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833 eval "$as_ac_Header=\$ac_header_preproc"
22835 ac_res=`eval echo '${'$as_ac_Header'}'`
22836 { echo "$as_me:$LINENO: result: $ac_res" >&5
22837 echo "${ECHO_T}$ac_res" >&6; }
22840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22841 cat >>confdefs.h <<_ACEOF
22842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22843 _ACEOF
22847 done
22851 for ac_func in fork vfork
22853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22858 else
22859 cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h. */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22867 #define $ac_func innocuous_$ac_func
22869 /* System header to define __stub macros and hopefully few prototypes,
22870 which can conflict with char $ac_func (); below.
22871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22872 <limits.h> exists even on freestanding compilers. */
22874 #ifdef __STDC__
22875 # include <limits.h>
22876 #else
22877 # include <assert.h>
22878 #endif
22880 #undef $ac_func
22882 /* Override any GCC internal prototype to avoid an error.
22883 Use char because int might match the return type of a GCC
22884 builtin and then its argument prototype would still apply. */
22885 #ifdef __cplusplus
22886 extern "C"
22887 #endif
22888 char $ac_func ();
22889 /* The GNU C library defines this for functions which it implements
22890 to always fail with ENOSYS. Some functions are actually named
22891 something starting with __ and the normal name is an alias. */
22892 #if defined __stub_$ac_func || defined __stub___$ac_func
22893 choke me
22894 #endif
22897 main ()
22899 return $ac_func ();
22901 return 0;
22903 _ACEOF
22904 rm -f conftest.$ac_objext conftest$ac_exeext
22905 if { (ac_try="$ac_link"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_link") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest$ac_exeext &&
22921 $as_test_x conftest$ac_exeext; then
22922 eval "$as_ac_var=yes"
22923 else
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 eval "$as_ac_var=no"
22930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22931 conftest$ac_exeext conftest.$ac_ext
22933 ac_res=`eval echo '${'$as_ac_var'}'`
22934 { echo "$as_me:$LINENO: result: $ac_res" >&5
22935 echo "${ECHO_T}$ac_res" >&6; }
22936 if test `eval echo '${'$as_ac_var'}'` = yes; then
22937 cat >>confdefs.h <<_ACEOF
22938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22939 _ACEOF
22942 done
22944 if test "x$ac_cv_func_fork" = xyes; then
22945 { echo "$as_me:$LINENO: checking for working fork" >&5
22946 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22947 if test "${ac_cv_func_fork_works+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 else
22950 if test "$cross_compiling" = yes; then
22951 ac_cv_func_fork_works=cross
22952 else
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h. */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 $ac_includes_default
22961 main ()
22964 /* By Ruediger Kuhlmann. */
22965 return fork () < 0;
22968 return 0;
22970 _ACEOF
22971 rm -f conftest$ac_exeext
22972 if { (ac_try="$ac_link"
22973 case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22976 esac
22977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_link") 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22982 { (case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_try") 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_func_fork_works=yes
22992 else
22993 echo "$as_me: program exited with status $ac_status" >&5
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 ( exit $ac_status )
22998 ac_cv_func_fork_works=no
23000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23005 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23006 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23008 else
23009 ac_cv_func_fork_works=$ac_cv_func_fork
23011 if test "x$ac_cv_func_fork_works" = xcross; then
23012 case $host in
23013 *-*-amigaos* | *-*-msdosdjgpp*)
23014 # Override, as these systems have only a dummy fork() stub
23015 ac_cv_func_fork_works=no
23018 ac_cv_func_fork_works=yes
23020 esac
23021 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23022 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23024 ac_cv_func_vfork_works=$ac_cv_func_vfork
23025 if test "x$ac_cv_func_vfork" = xyes; then
23026 { echo "$as_me:$LINENO: checking for working vfork" >&5
23027 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23028 if test "${ac_cv_func_vfork_works+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031 if test "$cross_compiling" = yes; then
23032 ac_cv_func_vfork_works=cross
23033 else
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 /* Thanks to Paul Eggert for this test. */
23041 $ac_includes_default
23042 #include <sys/wait.h>
23043 #ifdef HAVE_VFORK_H
23044 # include <vfork.h>
23045 #endif
23046 /* On some sparc systems, changes by the child to local and incoming
23047 argument registers are propagated back to the parent. The compiler
23048 is told about this with #include <vfork.h>, but some compilers
23049 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23050 static variable whose address is put into a register that is
23051 clobbered by the vfork. */
23052 static void
23053 #ifdef __cplusplus
23054 sparc_address_test (int arg)
23055 # else
23056 sparc_address_test (arg) int arg;
23057 #endif
23059 static pid_t child;
23060 if (!child) {
23061 child = vfork ();
23062 if (child < 0) {
23063 perror ("vfork");
23064 _exit(2);
23066 if (!child) {
23067 arg = getpid();
23068 write(-1, "", 0);
23069 _exit (arg);
23075 main ()
23077 pid_t parent = getpid ();
23078 pid_t child;
23080 sparc_address_test (0);
23082 child = vfork ();
23084 if (child == 0) {
23085 /* Here is another test for sparc vfork register problems. This
23086 test uses lots of local variables, at least as many local
23087 variables as main has allocated so far including compiler
23088 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23089 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23090 reuse the register of parent for one of the local variables,
23091 since it will think that parent can't possibly be used any more
23092 in this routine. Assigning to the local variable will thus
23093 munge parent in the parent process. */
23094 pid_t
23095 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23096 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23097 /* Convince the compiler that p..p7 are live; otherwise, it might
23098 use the same hardware register for all 8 local variables. */
23099 if (p != p1 || p != p2 || p != p3 || p != p4
23100 || p != p5 || p != p6 || p != p7)
23101 _exit(1);
23103 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23104 from child file descriptors. If the child closes a descriptor
23105 before it execs or exits, this munges the parent's descriptor
23106 as well. Test for this by closing stdout in the child. */
23107 _exit(close(fileno(stdout)) != 0);
23108 } else {
23109 int status;
23110 struct stat st;
23112 while (wait(&status) != child)
23114 return (
23115 /* Was there some problem with vforking? */
23116 child < 0
23118 /* Did the child fail? (This shouldn't happen.) */
23119 || status
23121 /* Did the vfork/compiler bug occur? */
23122 || parent != getpid()
23124 /* Did the file descriptor bug occur? */
23125 || fstat(fileno(stdout), &st) != 0
23129 _ACEOF
23130 rm -f conftest$ac_exeext
23131 if { (ac_try="$ac_link"
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_link") 2>&5
23138 ac_status=$?
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23141 { (case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_try") 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 ac_cv_func_vfork_works=yes
23151 else
23152 echo "$as_me: program exited with status $ac_status" >&5
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23156 ( exit $ac_status )
23157 ac_cv_func_vfork_works=no
23159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23165 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23168 if test "x$ac_cv_func_fork_works" = xcross; then
23169 ac_cv_func_vfork_works=$ac_cv_func_vfork
23170 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23171 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23174 if test "x$ac_cv_func_vfork_works" = xyes; then
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_WORKING_VFORK 1
23178 _ACEOF
23180 else
23182 cat >>confdefs.h <<\_ACEOF
23183 #define vfork fork
23184 _ACEOF
23187 if test "x$ac_cv_func_fork_works" = xyes; then
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_WORKING_FORK 1
23191 _ACEOF
23196 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23197 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23198 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 else
23201 cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 #include <langinfo.h>
23209 main ()
23211 char* cs = nl_langinfo(CODESET);
23213 return 0;
23215 _ACEOF
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (ac_try="$ac_link"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_link") 2>conftest.er1
23224 ac_status=$?
23225 grep -v '^ *+' conftest.er1 >conftest.err
23226 rm -f conftest.er1
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest$ac_exeext &&
23233 $as_test_x conftest$ac_exeext; then
23234 emacs_cv_langinfo_codeset=yes
23235 else
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 emacs_cv_langinfo_codeset=no
23242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23243 conftest$ac_exeext conftest.$ac_ext
23246 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23247 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23248 if test $emacs_cv_langinfo_codeset = yes; then
23250 cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_LANGINFO_CODESET 1
23252 _ACEOF
23256 { echo "$as_me:$LINENO: checking for size_t" >&5
23257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23258 if test "${ac_cv_type_size_t+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 else
23261 cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h. */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 $ac_includes_default
23268 typedef size_t ac__type_new_;
23270 main ()
23272 if ((ac__type_new_ *) 0)
23273 return 0;
23274 if (sizeof (ac__type_new_))
23275 return 0;
23277 return 0;
23279 _ACEOF
23280 rm -f conftest.$ac_objext
23281 if { (ac_try="$ac_compile"
23282 case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_compile") 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest.$ac_objext; then
23297 ac_cv_type_size_t=yes
23298 else
23299 echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 ac_cv_type_size_t=no
23305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23308 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23309 if test $ac_cv_type_size_t = yes; then
23311 cat >>confdefs.h <<_ACEOF
23312 #define HAVE_SIZE_T 1
23313 _ACEOF
23319 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23320 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23321 if test "${ac_cv_type_mbstate_t+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324 cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h. */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23330 $ac_includes_default
23331 # include <wchar.h>
23333 main ()
23335 mbstate_t x; return sizeof x;
23337 return 0;
23339 _ACEOF
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347 (eval "$ac_compile") 2>conftest.er1
23348 ac_status=$?
23349 grep -v '^ *+' conftest.er1 >conftest.err
23350 rm -f conftest.er1
23351 cat conftest.err >&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest.$ac_objext; then
23357 ac_cv_type_mbstate_t=yes
23358 else
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_cv_type_mbstate_t=no
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23368 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23369 if test $ac_cv_type_mbstate_t = yes; then
23371 cat >>confdefs.h <<\_ACEOF
23372 #define HAVE_MBSTATE_T 1
23373 _ACEOF
23375 else
23377 cat >>confdefs.h <<\_ACEOF
23378 #define mbstate_t int
23379 _ACEOF
23383 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23384 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23385 if test "${emacs_cv_c_restrict+set}" = set; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h. */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 void fred (int *restrict x);
23396 main ()
23400 return 0;
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_compile") 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest.$ac_objext; then
23420 emacs_cv_c_restrict=yes
23421 else
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 void fred (int *__restrict x);
23433 main ()
23437 return 0;
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_compile") 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest.$ac_objext; then
23457 emacs_cv_c_restrict=__restrict
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 emacs_cv_c_restrict=no
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23471 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23472 case "$emacs_cv_c_restrict" in
23473 yes) emacs_restrict=restrict;;
23474 no) emacs_restrict="";;
23475 *) emacs_restrict="$emacs_cv_c_restrict";;
23476 esac
23477 if test "$emacs_restrict" != __restrict; then
23479 cat >>confdefs.h <<_ACEOF
23480 #define __restrict $emacs_restrict
23481 _ACEOF
23485 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23486 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23487 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h. */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 void fred (int x[__restrict]);
23498 main ()
23502 return 0;
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509 *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_compile") 2>conftest.er1
23513 ac_status=$?
23514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest.$ac_objext; then
23522 emacs_cv_c_restrict_arr=yes
23523 else
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 emacs_cv_c_restrict_arr=no
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23533 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23534 if test "$emacs_cv_c_restrict_arr" = yes; then
23536 cat >>confdefs.h <<\_ACEOF
23537 #define __restrict_arr __restrict
23538 _ACEOF
23544 # Set up the CFLAGS for real compilation, so we can substitute it.
23545 CFLAGS="$REAL_CFLAGS"
23546 CPPFLAGS="$REAL_CPPFLAGS"
23548 #### Find out which version of Emacs this is.
23549 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23550 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23551 if test x"${version}" = x; then
23552 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23553 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23554 { (exit 1); exit 1; }; }
23557 ### Specify what sort of things we'll be editing into Makefile and config.h.
23558 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23594 cat >>confdefs.h <<_ACEOF
23595 #define EMACS_CONFIGURATION "${canonical}"
23596 _ACEOF
23599 cat >>confdefs.h <<_ACEOF
23600 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23601 _ACEOF
23604 cat >>confdefs.h <<_ACEOF
23605 #define config_machfile "${machfile}"
23606 _ACEOF
23609 cat >>confdefs.h <<_ACEOF
23610 #define config_opsysfile "${opsysfile}"
23611 _ACEOF
23614 cat >>confdefs.h <<_ACEOF
23615 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23616 _ACEOF
23619 cat >>confdefs.h <<_ACEOF
23620 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23621 _ACEOF
23624 cat >>confdefs.h <<_ACEOF
23625 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23626 _ACEOF
23629 cat >>confdefs.h <<_ACEOF
23630 #define UNEXEC_SRC ${UNEXEC_SRC}
23631 _ACEOF
23634 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23636 cat >>confdefs.h <<\_ACEOF
23637 #define HAVE_X_WINDOWS 1
23638 _ACEOF
23641 if test "${USE_X_TOOLKIT}" != "none" ; then
23643 cat >>confdefs.h <<\_ACEOF
23644 #define USE_X_TOOLKIT 1
23645 _ACEOF
23648 if test "${HAVE_X11}" = "yes" ; then
23650 cat >>confdefs.h <<\_ACEOF
23651 #define HAVE_X11 1
23652 _ACEOF
23655 if test "${HAVE_XFREE386}" = "yes" ; then
23657 cat >>confdefs.h <<\_ACEOF
23658 #define HAVE_XFREE386 1
23659 _ACEOF
23662 if test "${HAVE_MENUS}" = "yes" ; then
23664 cat >>confdefs.h <<\_ACEOF
23665 #define HAVE_MENUS 1
23666 _ACEOF
23669 if test "${GNU_MALLOC}" = "yes" ; then
23671 cat >>confdefs.h <<\_ACEOF
23672 #define GNU_MALLOC 1
23673 _ACEOF
23676 if test "${REL_ALLOC}" = "yes" ; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define REL_ALLOC 1
23680 _ACEOF
23689 #### Report on what we decided to do.
23690 #### Report GTK as a toolkit, even if it doesn't use Xt.
23691 #### It makes printing result more understandable as using GTK sets
23692 #### toolkit_scroll_bars to yes by default.
23693 if test "${HAVE_GTK}" = "yes"; then
23694 USE_X_TOOLKIT=GTK
23697 echo "
23698 Configured for \`${canonical}'.
23700 Where should the build process find the source code? ${srcdir}
23701 What operating system and machine description files should Emacs use?
23702 \`${opsysfile}' and \`${machfile}'
23703 What compiler should emacs be built with? ${CC} ${CFLAGS}
23704 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23705 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23706 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23707 What window system should Emacs use? ${window_system}
23708 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23710 if test -n "${x_includes}"; then
23711 echo " Where do we find X Windows header files? ${x_includes}"
23712 else
23713 echo " Where do we find X Windows header files? Standard dirs"
23715 if test -n "${x_libraries}"; then
23716 echo " Where do we find X Windows libraries? ${x_libraries}"
23717 else
23718 echo " Where do we find X Windows libraries? Standard dirs"
23721 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23722 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23723 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23724 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23725 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23726 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23727 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23728 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23729 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23730 echo
23732 if test $USE_XASSERTS = yes; then
23733 echo " Compiling with asserts turned on."
23734 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23735 echo
23738 if test "$USE_X_TOOLKIT" = GTK; then
23739 case "$canonical" in
23740 *cygwin*)
23741 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23742 will probably get a crash on startup. If this happens, please use another
23743 toolkit for Emacs. See etc/PROBLEMS for more information."
23745 esac
23750 # Remove any trailing slashes in these variables.
23751 test "${prefix}" != NONE &&
23752 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23753 test "${exec_prefix}" != NONE &&
23754 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23756 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23757 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23758 ## from Makefile.c can correctly provide the arg `-traditional' to the
23759 ## C preprocessor.
23761 cat >conftest.$ac_ext <<_ACEOF
23762 /* confdefs.h. */
23763 _ACEOF
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h. */
23767 yes..yes
23768 _ACEOF
23769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23770 $EGREP "yes..yes" >/dev/null 2>&1; then
23771 CPP_NEED_TRADITIONAL=no
23772 else
23773 CPP_NEED_TRADITIONAL=yes
23775 rm -f conftest*
23778 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23780 ac_config_commands="$ac_config_commands default"
23782 cat >confcache <<\_ACEOF
23783 # This file is a shell script that caches the results of configure
23784 # tests run on this system so they can be shared between configure
23785 # scripts and configure runs, see configure's option --config-cache.
23786 # It is not useful on other systems. If it contains results you don't
23787 # want to keep, you may remove or edit it.
23789 # config.status only pays attention to the cache file if you give it
23790 # the --recheck option to rerun configure.
23792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23794 # following values.
23796 _ACEOF
23798 # The following way of writing the cache mishandles newlines in values,
23799 # but we know of no workaround that is simple, portable, and efficient.
23800 # So, we kill variables containing newlines.
23801 # Ultrix sh set writes to stderr and can't be redirected directly,
23802 # and sets the high bit in the cache file unless we assign to the vars.
23804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23805 eval ac_val=\$$ac_var
23806 case $ac_val in #(
23807 *${as_nl}*)
23808 case $ac_var in #(
23809 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23810 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23811 esac
23812 case $ac_var in #(
23813 _ | IFS | as_nl) ;; #(
23814 *) $as_unset $ac_var ;;
23815 esac ;;
23816 esac
23817 done
23819 (set) 2>&1 |
23820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23821 *${as_nl}ac_space=\ *)
23822 # `set' does not quote correctly, so add quotes (double-quote
23823 # substitution turns \\\\ into \\, and sed turns \\ into \).
23824 sed -n \
23825 "s/'/'\\\\''/g;
23826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23827 ;; #(
23829 # `set' quotes correctly as required by POSIX, so do not add quotes.
23830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23832 esac |
23833 sort
23835 sed '
23836 /^ac_cv_env_/b end
23837 t clear
23838 :clear
23839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23840 t end
23841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23842 :end' >>confcache
23843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23844 if test -w "$cache_file"; then
23845 test "x$cache_file" != "x/dev/null" &&
23846 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23847 echo "$as_me: updating cache $cache_file" >&6;}
23848 cat confcache >$cache_file
23849 else
23850 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23851 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23854 rm -f confcache
23856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23857 # Let make expand exec_prefix.
23858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23860 DEFS=-DHAVE_CONFIG_H
23862 ac_libobjs=
23863 ac_ltlibobjs=
23864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23865 # 1. Remove the extension, and $U if already installed.
23866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23867 ac_i=`echo "$ac_i" | sed "$ac_script"`
23868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23869 # will be set to the directory where LIBOBJS objects are built.
23870 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23871 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23872 done
23873 LIBOBJS=$ac_libobjs
23875 LTLIBOBJS=$ac_ltlibobjs
23879 : ${CONFIG_STATUS=./config.status}
23880 ac_clean_files_save=$ac_clean_files
23881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23882 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23883 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23884 cat >$CONFIG_STATUS <<_ACEOF
23885 #! $SHELL
23886 # Generated by $as_me.
23887 # Run this file to recreate the current configuration.
23888 # Compiler output produced by configure, useful for debugging
23889 # configure, is in config.log if it exists.
23891 debug=false
23892 ac_cs_recheck=false
23893 ac_cs_silent=false
23894 SHELL=\${CONFIG_SHELL-$SHELL}
23895 _ACEOF
23897 cat >>$CONFIG_STATUS <<\_ACEOF
23898 ## --------------------- ##
23899 ## M4sh Initialization. ##
23900 ## --------------------- ##
23902 # Be more Bourne compatible
23903 DUALCASE=1; export DUALCASE # for MKS sh
23904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23905 emulate sh
23906 NULLCMD=:
23907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23908 # is contrary to our usage. Disable this feature.
23909 alias -g '${1+"$@"}'='"$@"'
23910 setopt NO_GLOB_SUBST
23911 else
23912 case `(set -o) 2>/dev/null` in
23913 *posix*) set -o posix ;;
23914 esac
23921 # PATH needs CR
23922 # Avoid depending upon Character Ranges.
23923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23926 as_cr_digits='0123456789'
23927 as_cr_alnum=$as_cr_Letters$as_cr_digits
23929 # The user is always right.
23930 if test "${PATH_SEPARATOR+set}" != set; then
23931 echo "#! /bin/sh" >conf$$.sh
23932 echo "exit 0" >>conf$$.sh
23933 chmod +x conf$$.sh
23934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23935 PATH_SEPARATOR=';'
23936 else
23937 PATH_SEPARATOR=:
23939 rm -f conf$$.sh
23942 # Support unset when possible.
23943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23944 as_unset=unset
23945 else
23946 as_unset=false
23950 # IFS
23951 # We need space, tab and new line, in precisely that order. Quoting is
23952 # there to prevent editors from complaining about space-tab.
23953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23954 # splitting by setting IFS to empty value.)
23955 as_nl='
23957 IFS=" "" $as_nl"
23959 # Find who we are. Look in the path if we contain no directory separator.
23960 case $0 in
23961 *[\\/]* ) as_myself=$0 ;;
23962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23963 for as_dir in $PATH
23965 IFS=$as_save_IFS
23966 test -z "$as_dir" && as_dir=.
23967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23968 done
23969 IFS=$as_save_IFS
23972 esac
23973 # We did not find ourselves, most probably we were run as `sh COMMAND'
23974 # in which case we are not to be found in the path.
23975 if test "x$as_myself" = x; then
23976 as_myself=$0
23978 if test ! -f "$as_myself"; then
23979 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23980 { (exit 1); exit 1; }
23983 # Work around bugs in pre-3.0 UWIN ksh.
23984 for as_var in ENV MAIL MAILPATH
23985 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23986 done
23987 PS1='$ '
23988 PS2='> '
23989 PS4='+ '
23991 # NLS nuisances.
23992 for as_var in \
23993 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23994 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23995 LC_TELEPHONE LC_TIME
23997 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23998 eval $as_var=C; export $as_var
23999 else
24000 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24002 done
24004 # Required to use basename.
24005 if expr a : '\(a\)' >/dev/null 2>&1 &&
24006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24007 as_expr=expr
24008 else
24009 as_expr=false
24012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24013 as_basename=basename
24014 else
24015 as_basename=false
24019 # Name of the executable.
24020 as_me=`$as_basename -- "$0" ||
24021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24022 X"$0" : 'X\(//\)$' \| \
24023 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24024 echo X/"$0" |
24025 sed '/^.*\/\([^/][^/]*\)\/*$/{
24026 s//\1/
24029 /^X\/\(\/\/\)$/{
24030 s//\1/
24033 /^X\/\(\/\).*/{
24034 s//\1/
24037 s/.*/./; q'`
24039 # CDPATH.
24040 $as_unset CDPATH
24044 as_lineno_1=$LINENO
24045 as_lineno_2=$LINENO
24046 test "x$as_lineno_1" != "x$as_lineno_2" &&
24047 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24049 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24050 # uniformly replaced by the line number. The first 'sed' inserts a
24051 # line-number line after each line using $LINENO; the second 'sed'
24052 # does the real work. The second script uses 'N' to pair each
24053 # line-number line with the line containing $LINENO, and appends
24054 # trailing '-' during substitution so that $LINENO is not a special
24055 # case at line end.
24056 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24057 # scripts with optimization help from Paolo Bonzini. Blame Lee
24058 # E. McMahon (1931-1989) for sed's syntax. :-)
24059 sed -n '
24061 /[$]LINENO/=
24062 ' <$as_myself |
24063 sed '
24064 s/[$]LINENO.*/&-/
24065 t lineno
24067 :lineno
24069 :loop
24070 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24071 t loop
24072 s/-\n.*//
24073 ' >$as_me.lineno &&
24074 chmod +x "$as_me.lineno" ||
24075 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24076 { (exit 1); exit 1; }; }
24078 # Don't try to exec as it changes $[0], causing all sort of problems
24079 # (the dirname of $[0] is not the place where we might find the
24080 # original and so on. Autoconf is especially sensitive to this).
24081 . "./$as_me.lineno"
24082 # Exit status is that of the last command.
24083 exit
24087 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24088 as_dirname=dirname
24089 else
24090 as_dirname=false
24093 ECHO_C= ECHO_N= ECHO_T=
24094 case `echo -n x` in
24095 -n*)
24096 case `echo 'x\c'` in
24097 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24098 *) ECHO_C='\c';;
24099 esac;;
24101 ECHO_N='-n';;
24102 esac
24104 if expr a : '\(a\)' >/dev/null 2>&1 &&
24105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24106 as_expr=expr
24107 else
24108 as_expr=false
24111 rm -f conf$$ conf$$.exe conf$$.file
24112 if test -d conf$$.dir; then
24113 rm -f conf$$.dir/conf$$.file
24114 else
24115 rm -f conf$$.dir
24116 mkdir conf$$.dir
24118 echo >conf$$.file
24119 if ln -s conf$$.file conf$$ 2>/dev/null; then
24120 as_ln_s='ln -s'
24121 # ... but there are two gotchas:
24122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24124 # In both cases, we have to default to `cp -p'.
24125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24126 as_ln_s='cp -p'
24127 elif ln conf$$.file conf$$ 2>/dev/null; then
24128 as_ln_s=ln
24129 else
24130 as_ln_s='cp -p'
24132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24133 rmdir conf$$.dir 2>/dev/null
24135 if mkdir -p . 2>/dev/null; then
24136 as_mkdir_p=:
24137 else
24138 test -d ./-p && rmdir ./-p
24139 as_mkdir_p=false
24142 if test -x / >/dev/null 2>&1; then
24143 as_test_x='test -x'
24144 else
24145 if ls -dL / >/dev/null 2>&1; then
24146 as_ls_L_option=L
24147 else
24148 as_ls_L_option=
24150 as_test_x='
24151 eval sh -c '\''
24152 if test -d "$1"; then
24153 test -d "$1/.";
24154 else
24155 case $1 in
24156 -*)set "./$1";;
24157 esac;
24158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24159 ???[sx]*):;;*)false;;esac;fi
24160 '\'' sh
24163 as_executable_p=$as_test_x
24165 # Sed expression to map a string onto a valid CPP name.
24166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24168 # Sed expression to map a string onto a valid variable name.
24169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24172 exec 6>&1
24174 # Save the log message, to keep $[0] and so on meaningful, and to
24175 # report actual input values of CONFIG_FILES etc. instead of their
24176 # values after options handling.
24177 ac_log="
24178 This file was extended by $as_me, which was
24179 generated by GNU Autoconf 2.61. Invocation command line was
24181 CONFIG_FILES = $CONFIG_FILES
24182 CONFIG_HEADERS = $CONFIG_HEADERS
24183 CONFIG_LINKS = $CONFIG_LINKS
24184 CONFIG_COMMANDS = $CONFIG_COMMANDS
24185 $ $0 $@
24187 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24190 _ACEOF
24192 cat >>$CONFIG_STATUS <<_ACEOF
24193 # Files that config.status was made for.
24194 config_files="$ac_config_files"
24195 config_headers="$ac_config_headers"
24196 config_commands="$ac_config_commands"
24198 _ACEOF
24200 cat >>$CONFIG_STATUS <<\_ACEOF
24201 ac_cs_usage="\
24202 \`$as_me' instantiates files from templates according to the
24203 current configuration.
24205 Usage: $0 [OPTIONS] [FILE]...
24207 -h, --help print this help, then exit
24208 -V, --version print version number and configuration settings, then exit
24209 -q, --quiet do not print progress messages
24210 -d, --debug don't remove temporary files
24211 --recheck update $as_me by reconfiguring in the same conditions
24212 --file=FILE[:TEMPLATE]
24213 instantiate the configuration file FILE
24214 --header=FILE[:TEMPLATE]
24215 instantiate the configuration header FILE
24217 Configuration files:
24218 $config_files
24220 Configuration headers:
24221 $config_headers
24223 Configuration commands:
24224 $config_commands
24226 Report bugs to <bug-autoconf@gnu.org>."
24228 _ACEOF
24229 cat >>$CONFIG_STATUS <<_ACEOF
24230 ac_cs_version="\\
24231 config.status
24232 configured by $0, generated by GNU Autoconf 2.61,
24233 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24235 Copyright (C) 2006 Free Software Foundation, Inc.
24236 This config.status script is free software; the Free Software Foundation
24237 gives unlimited permission to copy, distribute and modify it."
24239 ac_pwd='$ac_pwd'
24240 srcdir='$srcdir'
24241 INSTALL='$INSTALL'
24242 _ACEOF
24244 cat >>$CONFIG_STATUS <<\_ACEOF
24245 # If no file are specified by the user, then we need to provide default
24246 # value. By we need to know if files were specified by the user.
24247 ac_need_defaults=:
24248 while test $# != 0
24250 case $1 in
24251 --*=*)
24252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24254 ac_shift=:
24257 ac_option=$1
24258 ac_optarg=$2
24259 ac_shift=shift
24261 esac
24263 case $ac_option in
24264 # Handling of the options.
24265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24266 ac_cs_recheck=: ;;
24267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24268 echo "$ac_cs_version"; exit ;;
24269 --debug | --debu | --deb | --de | --d | -d )
24270 debug=: ;;
24271 --file | --fil | --fi | --f )
24272 $ac_shift
24273 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24274 ac_need_defaults=false;;
24275 --header | --heade | --head | --hea )
24276 $ac_shift
24277 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24278 ac_need_defaults=false;;
24279 --he | --h)
24280 # Conflict between --help and --header
24281 { echo "$as_me: error: ambiguous option: $1
24282 Try \`$0 --help' for more information." >&2
24283 { (exit 1); exit 1; }; };;
24284 --help | --hel | -h )
24285 echo "$ac_cs_usage"; exit ;;
24286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24287 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24288 ac_cs_silent=: ;;
24290 # This is an error.
24291 -*) { echo "$as_me: error: unrecognized option: $1
24292 Try \`$0 --help' for more information." >&2
24293 { (exit 1); exit 1; }; } ;;
24295 *) ac_config_targets="$ac_config_targets $1"
24296 ac_need_defaults=false ;;
24298 esac
24299 shift
24300 done
24302 ac_configure_extra_args=
24304 if $ac_cs_silent; then
24305 exec 6>/dev/null
24306 ac_configure_extra_args="$ac_configure_extra_args --silent"
24309 _ACEOF
24310 cat >>$CONFIG_STATUS <<_ACEOF
24311 if \$ac_cs_recheck; then
24312 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24313 CONFIG_SHELL=$SHELL
24314 export CONFIG_SHELL
24315 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24318 _ACEOF
24319 cat >>$CONFIG_STATUS <<\_ACEOF
24320 exec 5>>config.log
24322 echo
24323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24324 ## Running $as_me. ##
24325 _ASBOX
24326 echo "$ac_log"
24327 } >&5
24329 _ACEOF
24330 cat >>$CONFIG_STATUS <<_ACEOF
24332 # INIT-COMMANDS
24334 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24336 _ACEOF
24338 cat >>$CONFIG_STATUS <<\_ACEOF
24340 # Handling of arguments.
24341 for ac_config_target in $ac_config_targets
24343 case $ac_config_target in
24344 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24346 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24347 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24348 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24349 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24350 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24351 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24352 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24353 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24354 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24355 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24356 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24358 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24359 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24360 { (exit 1); exit 1; }; };;
24361 esac
24362 done
24365 # If the user did not use the arguments to specify the items to instantiate,
24366 # then the envvar interface is used. Set only those that are not.
24367 # We use the long form for the default assignment because of an extremely
24368 # bizarre bug on SunOS 4.1.3.
24369 if $ac_need_defaults; then
24370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24371 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24375 # Have a temporary directory for convenience. Make it in the build tree
24376 # simply because there is no reason against having it here, and in addition,
24377 # creating and moving files from /tmp can sometimes cause problems.
24378 # Hook for its removal unless debugging.
24379 # Note that there is a small window in which the directory will not be cleaned:
24380 # after its creation but before its name has been assigned to `$tmp'.
24381 $debug ||
24383 tmp=
24384 trap 'exit_status=$?
24385 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24387 trap '{ (exit 1); exit 1; }' 1 2 13 15
24389 # Create a (secure) tmp directory for tmp files.
24392 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24393 test -n "$tmp" && test -d "$tmp"
24394 } ||
24396 tmp=./conf$$-$RANDOM
24397 (umask 077 && mkdir "$tmp")
24398 } ||
24400 echo "$me: cannot create a temporary directory in ." >&2
24401 { (exit 1); exit 1; }
24405 # Set up the sed scripts for CONFIG_FILES section.
24408 # No need to generate the scripts if there are no CONFIG_FILES.
24409 # This happens for instance when ./config.status config.h
24410 if test -n "$CONFIG_FILES"; then
24412 _ACEOF
24416 ac_delim='%!_!# '
24417 for ac_last_try in false false false false false :; do
24418 cat >conf$$subs.sed <<_ACEOF
24419 SHELL!$SHELL$ac_delim
24420 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24421 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24422 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24423 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24424 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24425 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24426 exec_prefix!$exec_prefix$ac_delim
24427 prefix!$prefix$ac_delim
24428 program_transform_name!$program_transform_name$ac_delim
24429 bindir!$bindir$ac_delim
24430 sbindir!$sbindir$ac_delim
24431 libexecdir!$libexecdir$ac_delim
24432 datarootdir!$datarootdir$ac_delim
24433 datadir!$datadir$ac_delim
24434 sysconfdir!$sysconfdir$ac_delim
24435 sharedstatedir!$sharedstatedir$ac_delim
24436 localstatedir!$localstatedir$ac_delim
24437 includedir!$includedir$ac_delim
24438 oldincludedir!$oldincludedir$ac_delim
24439 docdir!$docdir$ac_delim
24440 infodir!$infodir$ac_delim
24441 htmldir!$htmldir$ac_delim
24442 dvidir!$dvidir$ac_delim
24443 pdfdir!$pdfdir$ac_delim
24444 psdir!$psdir$ac_delim
24445 libdir!$libdir$ac_delim
24446 localedir!$localedir$ac_delim
24447 mandir!$mandir$ac_delim
24448 DEFS!$DEFS$ac_delim
24449 ECHO_C!$ECHO_C$ac_delim
24450 ECHO_N!$ECHO_N$ac_delim
24451 ECHO_T!$ECHO_T$ac_delim
24452 LIBS!$LIBS$ac_delim
24453 build_alias!$build_alias$ac_delim
24454 host_alias!$host_alias$ac_delim
24455 target_alias!$target_alias$ac_delim
24456 MAINT!$MAINT$ac_delim
24457 build!$build$ac_delim
24458 build_cpu!$build_cpu$ac_delim
24459 build_vendor!$build_vendor$ac_delim
24460 build_os!$build_os$ac_delim
24461 host!$host$ac_delim
24462 host_cpu!$host_cpu$ac_delim
24463 host_vendor!$host_vendor$ac_delim
24464 host_os!$host_os$ac_delim
24465 CC!$CC$ac_delim
24466 CFLAGS!$CFLAGS$ac_delim
24467 LDFLAGS!$LDFLAGS$ac_delim
24468 CPPFLAGS!$CPPFLAGS$ac_delim
24469 ac_ct_CC!$ac_ct_CC$ac_delim
24470 EXEEXT!$EXEEXT$ac_delim
24471 OBJEXT!$OBJEXT$ac_delim
24472 CPP!$CPP$ac_delim
24473 GREP!$GREP$ac_delim
24474 EGREP!$EGREP$ac_delim
24475 LN_S!$LN_S$ac_delim
24476 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24477 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24478 INSTALL_DATA!$INSTALL_DATA$ac_delim
24479 RANLIB!$RANLIB$ac_delim
24480 INSTALL_INFO!$INSTALL_INFO$ac_delim
24481 GZIP_PROG!$GZIP_PROG$ac_delim
24482 MAKEINFO!$MAKEINFO$ac_delim
24483 LIBSOUND!$LIBSOUND$ac_delim
24484 PKG_CONFIG!$PKG_CONFIG$ac_delim
24485 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24486 ALSA_LIBS!$ALSA_LIBS$ac_delim
24487 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24488 SET_MAKE!$SET_MAKE$ac_delim
24489 XMKMF!$XMKMF$ac_delim
24490 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24491 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24492 RSVG_LIBS!$RSVG_LIBS$ac_delim
24493 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24494 GTK_LIBS!$GTK_LIBS$ac_delim
24495 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24496 XFT_LIBS!$XFT_LIBS$ac_delim
24497 ALLOCA!$ALLOCA$ac_delim
24498 liblockfile!$liblockfile$ac_delim
24499 LIBOBJS!$LIBOBJS$ac_delim
24500 NEED_SETGID!$NEED_SETGID$ac_delim
24501 KMEM_GROUP!$KMEM_GROUP$ac_delim
24502 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24503 GETOPT_H!$GETOPT_H$ac_delim
24504 GETOPTOBJS!$GETOPTOBJS$ac_delim
24505 version!$version$ac_delim
24506 configuration!$configuration$ac_delim
24507 canonical!$canonical$ac_delim
24508 srcdir!$srcdir$ac_delim
24509 lispdir!$lispdir$ac_delim
24510 locallisppath!$locallisppath$ac_delim
24511 lisppath!$lisppath$ac_delim
24512 x_default_search_path!$x_default_search_path$ac_delim
24513 etcdir!$etcdir$ac_delim
24514 archlibdir!$archlibdir$ac_delim
24515 bitmapdir!$bitmapdir$ac_delim
24516 _ACEOF
24518 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24519 break
24520 elif $ac_last_try; then
24521 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24522 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24523 { (exit 1); exit 1; }; }
24524 else
24525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24527 done
24529 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24530 if test -n "$ac_eof"; then
24531 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24532 ac_eof=`expr $ac_eof + 1`
24535 cat >>$CONFIG_STATUS <<_ACEOF
24536 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24538 _ACEOF
24539 sed '
24540 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24541 s/^/s,@/; s/!/@,|#_!!_#|/
24544 s/'"$ac_delim"'$/,g/; t
24545 s/$/\\/; p
24546 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24547 ' >>$CONFIG_STATUS <conf$$subs.sed
24548 rm -f conf$$subs.sed
24549 cat >>$CONFIG_STATUS <<_ACEOF
24550 CEOF$ac_eof
24551 _ACEOF
24554 ac_delim='%!_!# '
24555 for ac_last_try in false false false false false :; do
24556 cat >conf$$subs.sed <<_ACEOF
24557 gamedir!$gamedir$ac_delim
24558 gameuser!$gameuser$ac_delim
24559 c_switch_system!$c_switch_system$ac_delim
24560 c_switch_machine!$c_switch_machine$ac_delim
24561 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24562 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24563 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24564 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24565 machfile!$machfile$ac_delim
24566 opsysfile!$opsysfile$ac_delim
24567 carbon_appdir!$carbon_appdir$ac_delim
24568 LTLIBOBJS!$LTLIBOBJS$ac_delim
24569 _ACEOF
24571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24572 break
24573 elif $ac_last_try; then
24574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24576 { (exit 1); exit 1; }; }
24577 else
24578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24580 done
24582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24583 if test -n "$ac_eof"; then
24584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24585 ac_eof=`expr $ac_eof + 1`
24588 cat >>$CONFIG_STATUS <<_ACEOF
24589 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24591 _ACEOF
24592 sed '
24593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24594 s/^/s,@/; s/!/@,|#_!!_#|/
24597 s/'"$ac_delim"'$/,g/; t
24598 s/$/\\/; p
24599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24600 ' >>$CONFIG_STATUS <conf$$subs.sed
24601 rm -f conf$$subs.sed
24602 cat >>$CONFIG_STATUS <<_ACEOF
24603 :end
24604 s/|#_!!_#|//g
24605 CEOF$ac_eof
24606 _ACEOF
24609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24611 # trailing colons and then remove the whole line if VPATH becomes empty
24612 # (actually we leave an empty line to preserve line numbers).
24613 if test "x$srcdir" = x.; then
24614 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24615 s/:*\$(srcdir):*/:/
24616 s/:*\${srcdir}:*/:/
24617 s/:*@srcdir@:*/:/
24618 s/^\([^=]*=[ ]*\):*/\1/
24619 s/:*$//
24620 s/^[^=]*=[ ]*$//
24624 cat >>$CONFIG_STATUS <<\_ACEOF
24625 fi # test -n "$CONFIG_FILES"
24628 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24630 case $ac_tag in
24631 :[FHLC]) ac_mode=$ac_tag; continue;;
24632 esac
24633 case $ac_mode$ac_tag in
24634 :[FHL]*:*);;
24635 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24637 { (exit 1); exit 1; }; };;
24638 :[FH]-) ac_tag=-:-;;
24639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24640 esac
24641 ac_save_IFS=$IFS
24642 IFS=:
24643 set x $ac_tag
24644 IFS=$ac_save_IFS
24645 shift
24646 ac_file=$1
24647 shift
24649 case $ac_mode in
24650 :L) ac_source=$1;;
24651 :[FH])
24652 ac_file_inputs=
24653 for ac_f
24655 case $ac_f in
24656 -) ac_f="$tmp/stdin";;
24657 *) # Look for the file first in the build tree, then in the source tree
24658 # (if the path is not absolute). The absolute path cannot be DOS-style,
24659 # because $ac_f cannot contain `:'.
24660 test -f "$ac_f" ||
24661 case $ac_f in
24662 [\\/$]*) false;;
24663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24664 esac ||
24665 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24667 { (exit 1); exit 1; }; };;
24668 esac
24669 ac_file_inputs="$ac_file_inputs $ac_f"
24670 done
24672 # Let's still pretend it is `configure' which instantiates (i.e., don't
24673 # use $as_me), people would be surprised to read:
24674 # /* config.h. Generated by config.status. */
24675 configure_input="Generated from "`IFS=:
24676 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24677 if test x"$ac_file" != x-; then
24678 configure_input="$ac_file. $configure_input"
24679 { echo "$as_me:$LINENO: creating $ac_file" >&5
24680 echo "$as_me: creating $ac_file" >&6;}
24683 case $ac_tag in
24684 *:-:* | *:-) cat >"$tmp/stdin";;
24685 esac
24687 esac
24689 ac_dir=`$as_dirname -- "$ac_file" ||
24690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691 X"$ac_file" : 'X\(//\)[^/]' \| \
24692 X"$ac_file" : 'X\(//\)$' \| \
24693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24694 echo X"$ac_file" |
24695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24696 s//\1/
24699 /^X\(\/\/\)[^/].*/{
24700 s//\1/
24703 /^X\(\/\/\)$/{
24704 s//\1/
24707 /^X\(\/\).*/{
24708 s//\1/
24711 s/.*/./; q'`
24712 { as_dir="$ac_dir"
24713 case $as_dir in #(
24714 -*) as_dir=./$as_dir;;
24715 esac
24716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24717 as_dirs=
24718 while :; do
24719 case $as_dir in #(
24720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24721 *) as_qdir=$as_dir;;
24722 esac
24723 as_dirs="'$as_qdir' $as_dirs"
24724 as_dir=`$as_dirname -- "$as_dir" ||
24725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24726 X"$as_dir" : 'X\(//\)[^/]' \| \
24727 X"$as_dir" : 'X\(//\)$' \| \
24728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24729 echo X"$as_dir" |
24730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24731 s//\1/
24734 /^X\(\/\/\)[^/].*/{
24735 s//\1/
24738 /^X\(\/\/\)$/{
24739 s//\1/
24742 /^X\(\/\).*/{
24743 s//\1/
24746 s/.*/./; q'`
24747 test -d "$as_dir" && break
24748 done
24749 test -z "$as_dirs" || eval "mkdir $as_dirs"
24750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24752 { (exit 1); exit 1; }; }; }
24753 ac_builddir=.
24755 case "$ac_dir" in
24756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24759 # A ".." for each directory in $ac_dir_suffix.
24760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24761 case $ac_top_builddir_sub in
24762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24764 esac ;;
24765 esac
24766 ac_abs_top_builddir=$ac_pwd
24767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24768 # for backward compatibility:
24769 ac_top_builddir=$ac_top_build_prefix
24771 case $srcdir in
24772 .) # We are building in place.
24773 ac_srcdir=.
24774 ac_top_srcdir=$ac_top_builddir_sub
24775 ac_abs_top_srcdir=$ac_pwd ;;
24776 [\\/]* | ?:[\\/]* ) # Absolute name.
24777 ac_srcdir=$srcdir$ac_dir_suffix;
24778 ac_top_srcdir=$srcdir
24779 ac_abs_top_srcdir=$srcdir ;;
24780 *) # Relative name.
24781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24782 ac_top_srcdir=$ac_top_build_prefix$srcdir
24783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24784 esac
24785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24788 case $ac_mode in
24791 # CONFIG_FILE
24794 case $INSTALL in
24795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24797 esac
24798 _ACEOF
24800 cat >>$CONFIG_STATUS <<\_ACEOF
24801 # If the template does not know about datarootdir, expand it.
24802 # FIXME: This hack should be removed a few years after 2.60.
24803 ac_datarootdir_hack=; ac_datarootdir_seen=
24805 case `sed -n '/datarootdir/ {
24809 /@datadir@/p
24810 /@docdir@/p
24811 /@infodir@/p
24812 /@localedir@/p
24813 /@mandir@/p
24814 ' $ac_file_inputs` in
24815 *datarootdir*) ac_datarootdir_seen=yes;;
24816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24817 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24818 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24819 _ACEOF
24820 cat >>$CONFIG_STATUS <<_ACEOF
24821 ac_datarootdir_hack='
24822 s&@datadir@&$datadir&g
24823 s&@docdir@&$docdir&g
24824 s&@infodir@&$infodir&g
24825 s&@localedir@&$localedir&g
24826 s&@mandir@&$mandir&g
24827 s&\\\${datarootdir}&$datarootdir&g' ;;
24828 esac
24829 _ACEOF
24831 # Neutralize VPATH when `$srcdir' = `.'.
24832 # Shell code in configure.ac might set extrasub.
24833 # FIXME: do we really want to maintain this feature?
24834 cat >>$CONFIG_STATUS <<_ACEOF
24835 sed "$ac_vpsub
24836 $extrasub
24837 _ACEOF
24838 cat >>$CONFIG_STATUS <<\_ACEOF
24840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24841 s&@configure_input@&$configure_input&;t t
24842 s&@top_builddir@&$ac_top_builddir_sub&;t t
24843 s&@srcdir@&$ac_srcdir&;t t
24844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24845 s&@top_srcdir@&$ac_top_srcdir&;t t
24846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24847 s&@builddir@&$ac_builddir&;t t
24848 s&@abs_builddir@&$ac_abs_builddir&;t t
24849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24850 s&@INSTALL@&$ac_INSTALL&;t t
24851 $ac_datarootdir_hack
24852 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24855 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24857 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24858 which seems to be undefined. Please make sure it is defined." >&5
24859 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24860 which seems to be undefined. Please make sure it is defined." >&2;}
24862 rm -f "$tmp/stdin"
24863 case $ac_file in
24864 -) cat "$tmp/out"; rm -f "$tmp/out";;
24865 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24866 esac
24870 # CONFIG_HEADER
24872 _ACEOF
24874 # Transform confdefs.h into a sed script `conftest.defines', that
24875 # substitutes the proper values into config.h.in to produce config.h.
24876 rm -f conftest.defines conftest.tail
24877 # First, append a space to every undef/define line, to ease matching.
24878 echo 's/$/ /' >conftest.defines
24879 # Then, protect against being on the right side of a sed subst, or in
24880 # an unquoted here document, in config.status. If some macros were
24881 # called several times there might be several #defines for the same
24882 # symbol, which is useless. But do not sort them, since the last
24883 # AC_DEFINE must be honored.
24884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24885 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24886 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24887 # PARAMS is the parameter list in the macro definition--in most cases, it's
24888 # just an empty string.
24889 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24890 ac_dB='\\)[ (].*,\\1define\\2'
24891 ac_dC=' '
24892 ac_dD=' ,'
24894 uniq confdefs.h |
24895 sed -n '
24896 t rset
24897 :rset
24898 s/^[ ]*#[ ]*define[ ][ ]*//
24899 t ok
24902 s/[\\&,]/\\&/g
24903 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24904 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24905 ' >>conftest.defines
24907 # Remove the space that was appended to ease matching.
24908 # Then replace #undef with comments. This is necessary, for
24909 # example, in the case of _POSIX_SOURCE, which is predefined and required
24910 # on some systems where configure will not decide to define it.
24911 # (The regexp can be short, since the line contains either #define or #undef.)
24912 echo 's/ $//
24913 s,^[ #]*u.*,/* & */,' >>conftest.defines
24915 # Break up conftest.defines:
24916 ac_max_sed_lines=50
24918 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24919 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24920 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24921 # et cetera.
24922 ac_in='$ac_file_inputs'
24923 ac_out='"$tmp/out1"'
24924 ac_nxt='"$tmp/out2"'
24926 while :
24928 # Write a here document:
24929 cat >>$CONFIG_STATUS <<_ACEOF
24930 # First, check the format of the line:
24931 cat >"\$tmp/defines.sed" <<\\CEOF
24932 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24933 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24935 :def
24936 _ACEOF
24937 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24938 echo 'CEOF
24939 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24940 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24941 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24942 grep . conftest.tail >/dev/null || break
24943 rm -f conftest.defines
24944 mv conftest.tail conftest.defines
24945 done
24946 rm -f conftest.defines conftest.tail
24948 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24949 cat >>$CONFIG_STATUS <<\_ACEOF
24950 if test x"$ac_file" != x-; then
24951 echo "/* $configure_input */" >"$tmp/config.h"
24952 cat "$ac_result" >>"$tmp/config.h"
24953 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24955 echo "$as_me: $ac_file is unchanged" >&6;}
24956 else
24957 rm -f $ac_file
24958 mv "$tmp/config.h" $ac_file
24960 else
24961 echo "/* $configure_input */"
24962 cat "$ac_result"
24964 rm -f "$tmp/out12"
24967 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24968 echo "$as_me: executing $ac_file commands" >&6;}
24970 esac
24973 case $ac_file$ac_mode in
24974 "default":C)
24976 ### Make the necessary directories, if they don't exist.
24977 for dir in etc lisp ; do
24978 test -d ${dir} || mkdir ${dir}
24979 done
24981 # Build src/Makefile from ${srcdir}/src/Makefile.c
24982 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24983 # This must be done after src/config.h is built, since we rely on that file.
24985 # Now get this: Some word that is part of the ${srcdir} directory name
24986 # or the ${configuration} value might, just might, happen to be an
24987 # identifier like `sun4' or `i386' or something, and be predefined by
24988 # the C preprocessor to some helpful value like 1, or maybe the empty
24989 # string. Needless to say consequent macro substitutions are less
24990 # than conducive to the makefile finding the correct directory.
24991 undefs="`echo $top_srcdir $configuration $canonical |
24992 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24993 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24996 echo creating src/epaths.h
24997 ${MAKE-make} epaths-force
24999 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25000 # `..' to `. .' unless invoked with -traditional
25002 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25003 CPPFLAGS="$CPPFLAGS -traditional"
25006 echo creating lib-src/Makefile
25007 ( cd lib-src
25008 rm -f junk.c junk1.c junk2.c
25009 sed -e '/start of cpp stuff/q' \
25010 < Makefile.c > junk1.c
25011 sed -e '1,/start of cpp stuff/d'\
25012 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25013 < Makefile.c > junk.c
25014 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25015 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25016 cat junk1.c junk2.c > Makefile.new
25017 rm -f junk.c junk1.c junk2.c
25018 chmod 444 Makefile.new
25019 mv -f Makefile.new Makefile
25022 echo creating src/Makefile
25023 ( cd src
25024 rm -f junk.c junk1.c junk2.c
25025 sed -e '/start of cpp stuff/q' \
25026 < Makefile.c > junk1.c
25027 sed -e '1,/start of cpp stuff/d'\
25028 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25029 < Makefile.c > junk.c
25030 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25031 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25032 cat junk1.c junk2.c > Makefile.new
25033 rm -f junk.c junk1.c junk2.c
25034 chmod 444 Makefile.new
25035 mv -f Makefile.new Makefile
25038 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25039 echo creating src/.gdbinit
25040 echo source $srcdir/src/.gdbinit > src/.gdbinit
25043 # This is how we know whether to re-run configure in certain cases.
25044 touch src/config.stamp
25048 esac
25049 done # for ac_tag
25052 { (exit 0); exit 0; }
25053 _ACEOF
25054 chmod +x $CONFIG_STATUS
25055 ac_clean_files=$ac_clean_files_save
25058 # configure is writing to config.log, and then calls config.status.
25059 # config.status does its own redirection, appending to config.log.
25060 # Unfortunately, on DOS this fails, as config.log is still kept open
25061 # by configure, so config.status won't be able to write to it; its
25062 # output is simply discarded. So we exec the FD to /dev/null,
25063 # effectively closing config.log, so it can be properly (re)opened and
25064 # appended to by config.status. When coming back to configure, we
25065 # need to make the FD available again.
25066 if test "$no_create" != yes; then
25067 ac_cs_success=:
25068 ac_config_status_args=
25069 test "$silent" = yes &&
25070 ac_config_status_args="$ac_config_status_args --quiet"
25071 exec 5>/dev/null
25072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25073 exec 5>>config.log
25074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25075 # would make configure fail if this is the last instruction.
25076 $ac_cs_success || { (exit 1); exit 1; }