(make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
[emacs.git] / configure
bloba120cb47d617ea6df6db668949cd26eb393790e4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 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] [DIR=/Application]
1321 specify install directory for Emacs.app on Mac OS X
1322 --enable-asserts compile code with asserts enabled
1323 --enable-maintainer-mode enable make rules and dependencies not useful
1324 (and sometimes confusing) to the casual installer
1325 --enable-locallisppath=PATH
1326 directories Emacs should search for lisp files
1327 specific to this site
1328 --disable-largefile omit support for large files
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --without-gcc don't use GCC to compile Emacs if GCC is found
1334 --without-pop don't support POP mail retrieval with movemail
1335 --with-kerberos support Kerberos-authenticated POP
1336 --with-kerberos5 support Kerberos version 5 authenticated POP
1337 --with-hesiod support Hesiod to get the POP server host
1338 --without-sound don't compile with sound support
1339 --with-x-toolkit=KIT use an X toolkit
1340 (KIT = yes/lucid/athena/motif/gtk/no)
1341 --with-xpm use -lXpm for displaying XPM images
1342 --with-jpeg use -ljpeg for displaying JPEG images
1343 --with-tiff use -ltiff for displaying TIFF images
1344 --with-gif use -lgif (or -lungif) for displaying GIF images
1345 --with-png use -lpng for displaying PNG images
1346 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1347 --with-rsvg use -lrsvg-2 for displaying SVG images
1348 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1349 --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg
1350 --without-toolkit-scroll-bars
1351 don't use Motif or Xaw3d scroll bars
1352 --without-xaw3d don't use Xaw3d
1353 --without-xim don't use X11 XIM
1354 --without-carbon don't use Carbon GUI on Mac OS X
1355 --with-x use the X Window System
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CPP C preprocessor
1366 XMKMF Path to xmkmf, Makefile generator for X Window System
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1371 _ACEOF
1372 ac_status=$?
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1379 ac_builddir=.
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1397 case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430 cat <<\_ACEOF
1431 configure
1432 generated by GNU Autoconf 2.61
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by $as_me, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1448 $ $0 $@
1450 _ACEOF
1451 exec 5>>config.log
1453 cat <<_ASUNAME
1454 ## --------- ##
1455 ## Platform. ##
1456 ## --------- ##
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1475 _ASUNAME
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1483 done
1484 IFS=$as_save_IFS
1486 } >&5
1488 cat >&5 <<_ACEOF
1491 ## ----------- ##
1492 ## Core tests. ##
1493 ## ----------- ##
1495 _ACEOF
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1503 ac_configure_args=
1504 ac_configure_args0=
1505 ac_configure_args1=
1506 ac_must_keep_next=false
1507 for ac_pass in 1 2
1509 for ac_arg
1511 case $ac_arg in
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1515 continue ;;
1516 *\'*)
1517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 esac
1519 case $ac_pass in
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1525 else
1526 case $ac_arg in
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 esac
1535 -* ) ac_must_keep_next=true ;;
1536 esac
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1540 esac
1541 done
1542 done
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1554 echo
1556 cat <<\_ASBOX
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1560 _ASBOX
1561 echo
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in #(
1567 *${as_nl}*)
1568 case $ac_var in #(
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 esac
1572 case $ac_var in #(
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1575 esac ;;
1576 esac
1577 done
1578 (set) 2>&1 |
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1581 sed -n \
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 ;; #(
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 esac |
1589 sort
1591 echo
1593 cat <<\_ASBOX
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1597 _ASBOX
1598 echo
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1602 case $ac_val in
1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604 esac
1605 echo "$ac_var='\''$ac_val'\''"
1606 done | sort
1607 echo
1609 if test -n "$ac_subst_files"; then
1610 cat <<\_ASBOX
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_files
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1627 if test -s confdefs.h; then
1628 cat <<\_ASBOX
1629 ## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##
1632 _ASBOX
1633 echo
1634 cat confdefs.h
1635 echo
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1640 } >&5
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 exit $exit_status
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647 done
1648 ac_signal=0
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1657 _ACEOF
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677 _ACEOF
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1686 else
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1690 shift
1691 for ac_site_file
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1697 . "$ac_site_file"
1699 done
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1707 case $cache_file in
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1710 esac
1712 else
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1715 >$cache_file
1718 ac_header_list="$ac_header_list sys/time.h"
1719 ac_header_list="$ac_header_list unistd.h"
1720 ac_func_list="$ac_func_list alarm"
1721 # Check that the precious variables saved in the cache have kept the same
1722 # value.
1723 ac_cache_corrupted=false
1724 for ac_var in $ac_precious_vars; do
1725 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1726 eval ac_new_set=\$ac_env_${ac_var}_set
1727 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1728 eval ac_new_val=\$ac_env_${ac_var}_value
1729 case $ac_old_set,$ac_new_set in
1730 set,)
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1732 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1733 ac_cache_corrupted=: ;;
1734 ,set)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,);;
1740 if test "x$ac_old_val" != "x$ac_new_val"; then
1741 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1742 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1743 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1744 echo "$as_me: former value: $ac_old_val" >&2;}
1745 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1746 echo "$as_me: current value: $ac_new_val" >&2;}
1747 ac_cache_corrupted=:
1748 fi;;
1749 esac
1750 # Pass precious variables to config.status.
1751 if test "$ac_new_set" = set; then
1752 case $ac_new_val in
1753 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 *) ac_arg=$ac_var=$ac_new_val ;;
1755 esac
1756 case " $ac_configure_args " in
1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1758 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759 esac
1761 done
1762 if $ac_cache_corrupted; then
1763 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1764 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1765 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1766 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1767 { (exit 1); exit 1; }; }
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1796 test "$program_prefix" != NONE &&
1797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1798 # Use a double $ so make ignores it.
1799 test "$program_suffix" != NONE &&
1800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1801 # Double any \ or $. echo might interpret backslashes.
1802 # By default was `s,x,x', remove it if useless.
1803 cat <<\_ACEOF >conftest.sed
1804 s/[\\$]/&&/g;s/;s,x,x,$//
1805 _ACEOF
1806 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1807 rm -f conftest.sed
1810 lispdir='${datadir}/emacs/${version}/lisp'
1811 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1812 '${datadir}/emacs/site-lisp'
1813 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1814 etcdir='${datadir}/emacs/${version}/etc'
1815 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1816 docdir='${datadir}/emacs/${version}/etc'
1817 gamedir='${localstatedir}/games/emacs'
1819 gameuser=games
1822 # Check whether --with-gcc was given.
1823 if test "${with_gcc+set}" = set; then
1824 withval=$with_gcc;
1828 # Check whether --with-pop was given.
1829 if test "${with_pop+set}" = set; then
1830 withval=$with_pop; if test "$withval" = yes; then
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1833 _ACEOF
1835 else :
1837 else
1838 cat >>confdefs.h <<\_ACEOF
1839 #define MAIL_USE_POP 1
1840 _ACEOF
1846 # Check whether --with-kerberos was given.
1847 if test "${with_kerberos+set}" = set; then
1848 withval=$with_kerberos; if test "$withval" = yes; then
1849 cat >>confdefs.h <<\_ACEOF
1850 #define KERBEROS 1
1851 _ACEOF
1858 # Check whether --with-kerberos5 was given.
1859 if test "${with_kerberos5+set}" = set; then
1860 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1861 if test "${with_kerberos+set}" != set; then
1862 with_kerberos=yes
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS 1
1865 _ACEOF
1869 cat >>confdefs.h <<\_ACEOF
1870 #define KERBEROS5 1
1871 _ACEOF
1877 # Check whether --with-hesiod was given.
1878 if test "${with_hesiod+set}" = set; then
1879 withval=$with_hesiod; if test "$withval" = yes; then
1881 cat >>confdefs.h <<\_ACEOF
1882 #define HESIOD 1
1883 _ACEOF
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=gtk ;;
1901 n | no ) val=no ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1915 esac
1916 with_x_toolkit=$val
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1923 withval=$with_xpm;
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1929 withval=$with_jpeg;
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1935 withval=$with_tiff;
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1941 withval=$with_gif;
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1947 withval=$with_png;
1951 # Check whether --with-gpm was given.
1952 if test "${with_gpm+set}" = set; then
1953 withval=$with_gpm;
1957 # Check whether --with-rsvg was given.
1958 if test "${with_rsvg+set}" = set; then
1959 withval=$with_rsvg;
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1965 withval=$with_gtk;
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1983 withval=$with_xpm;
1987 # Check whether --with-xim was given.
1988 if test "${with_xim+set}" = set; then
1989 withval=$with_xim;
1993 # Check whether --with-carbon was given.
1994 if test "${with_carbon+set}" = set; then
1995 withval=$with_carbon;
1998 # Check whether --enable-carbon-app was given.
1999 if test "${enable_carbon_app+set}" = set; then
2000 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2004 # Check whether --enable-asserts was given.
2005 if test "${enable_asserts+set}" = set; then
2006 enableval=$enable_asserts; USE_XASSERTS=$enableval
2007 else
2008 USE_XASSERTS=no
2012 # Check whether --enable-maintainer-mode was given.
2013 if test "${enable_maintainer_mode+set}" = set; then
2014 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2015 else
2016 USE_MAINTAINER_MODE=no
2019 if test $USE_MAINTAINER_MODE = yes; then
2020 MAINT=
2021 else
2022 MAINT=#
2026 # Check whether --enable-locallisppath was given.
2027 if test "${enable_locallisppath+set}" = set; then
2028 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2029 locallisppath=
2030 elif test "${enableval}" != "yes"; then
2031 locallisppath=${enableval}
2036 #### Make srcdir absolute, if it isn't already. It's important to
2037 #### avoid running the path through pwd unnecessarily, since pwd can
2038 #### give you automounter prefixes, which can go away. We do all this
2039 #### so Emacs can find its files when run uninstalled.
2040 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2041 unset CDPATH
2042 case "${srcdir}" in
2043 /* ) ;;
2045 ## We may be able to use the $PWD environment variable to make this
2046 ## absolute. But sometimes PWD is inaccurate.
2047 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2048 ## but that tested only for a well-formed and valid PWD,
2049 ## it did not object when PWD was well-formed and valid but just wrong.
2050 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2051 then
2052 srcdir="$PWD"
2053 else
2054 srcdir="`(cd ${srcdir}; pwd)`"
2057 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2058 esac
2060 #### Check if the source directory already has a configured system in it.
2061 if test `pwd` != `(cd ${srcdir} && pwd)` \
2062 && test -f "${srcdir}/src/config.h" ; then
2063 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2064 as a build directory right now; it has been configured in its own
2065 right. To configure in another directory as well, you MUST
2066 use GNU make. If you do not have GNU make, then you must
2067 now do \`make distclean' in ${srcdir},
2068 and then run $0 again." >&5
2069 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&2;}
2077 #### Given the configuration name, set machfile and opsysfile to the
2078 #### names of the m/*.h and s/*.h files we should use.
2080 ### Canonicalize the configuration name.
2082 ac_aux_dir=
2083 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2084 if test -f "$ac_dir/install-sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
2088 elif test -f "$ac_dir/install.sh"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
2092 elif test -f "$ac_dir/shtool"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2097 done
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 # Make sure we can run config.sub.
2114 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2115 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2116 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2117 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: checking build system type" >&5
2120 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2121 if test "${ac_cv_build+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 ac_build_alias=$build_alias
2125 test "x$ac_build_alias" = x &&
2126 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2127 test "x$ac_build_alias" = x &&
2128 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2129 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2130 { (exit 1); exit 1; }; }
2131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2132 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2133 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2137 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2138 echo "${ECHO_T}$ac_cv_build" >&6; }
2139 case $ac_cv_build in
2140 *-*-*) ;;
2141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2142 echo "$as_me: error: invalid value of canonical build" >&2;}
2143 { (exit 1); exit 1; }; };;
2144 esac
2145 build=$ac_cv_build
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_build
2148 shift
2149 build_cpu=$1
2150 build_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 build_os=$*
2155 IFS=$ac_save_IFS
2156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159 { echo "$as_me:$LINENO: checking host system type" >&5
2160 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2161 if test "${ac_cv_host+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test "x$host_alias" = x; then
2165 ac_cv_host=$ac_cv_build
2166 else
2167 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2168 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2169 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2170 { (exit 1); exit 1; }; }
2174 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2175 echo "${ECHO_T}$ac_cv_host" >&6; }
2176 case $ac_cv_host in
2177 *-*-*) ;;
2178 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2179 echo "$as_me: error: invalid value of canonical host" >&2;}
2180 { (exit 1); exit 1; }; };;
2181 esac
2182 host=$ac_cv_host
2183 ac_save_IFS=$IFS; IFS='-'
2184 set x $ac_cv_host
2185 shift
2186 host_cpu=$1
2187 host_vendor=$2
2188 shift; shift
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2191 host_os=$*
2192 IFS=$ac_save_IFS
2193 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196 canonical=$host
2197 configuration=${host_alias-${build_alias-$host}}
2201 ### If you add support for a new configuration, add code to this
2202 ### switch statement to recognize your configuration name and select
2203 ### the appropriate operating system and machine description files.
2205 ### You would hope that you could choose an m/*.h file pretty much
2206 ### based on the machine portion of the configuration name, and an s-
2207 ### file based on the operating system portion. However, it turns out
2208 ### that each m/*.h file is pretty manufacturer-specific - for
2209 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2210 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2211 ### machines. So we basically have to have a special case for each
2212 ### configuration name.
2214 ### As far as handling version numbers on operating systems is
2215 ### concerned, make sure things will fail in a fixable way. If
2216 ### /etc/MACHINES doesn't say anything about version numbers, be
2217 ### prepared to handle anything reasonably. If version numbers
2218 ### matter, be sure /etc/MACHINES says something about it.
2220 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2221 ### "System V Release 4"; he writes, "The old convention encouraged
2222 ### confusion between `system' and `release' levels'."
2224 machine='' opsys='' unported=no
2225 case "${canonical}" in
2227 ## FreeBSD ports
2228 *-*-freebsd* )
2229 opsys=freebsd
2230 case "${canonical}" in
2231 alpha*-*-freebsd*) machine=alpha ;;
2232 ia64-*-freebsd*) machine=ia64 ;;
2233 sparc64-*-freebsd*) machine=sparc ;;
2234 powerpc-*-freebsd*) machine=macppc ;;
2235 i[3456]86-*-freebsd*) machine=intel386 ;;
2236 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2237 esac
2240 ## NetBSD ports
2241 *-*-netbsd* )
2242 opsys=netbsd
2243 if test -f /usr/lib/crti.o; then
2245 cat >>confdefs.h <<\_ACEOF
2246 #define HAVE_CRTIN
2247 _ACEOF
2251 case "${canonical}" in
2252 alpha*-*-netbsd*) machine=alpha ;;
2253 i[3456]86-*-netbsd*) machine=intel386 ;;
2254 m68k-*-netbsd*)
2255 # This is somewhat bogus.
2256 machine=hp9000s300 ;;
2257 mips-*-netbsd*) machine=pmax ;;
2258 mipsel-*-netbsd*) machine=pmax ;;
2259 mipseb-*-netbsd*) machine=pmax ;;
2260 ns32k-*-netbsd*) machine=ns32000 ;;
2261 powerpc-*-netbsd*) machine=macppc ;;
2262 sparc*-*-netbsd*) machine=sparc ;;
2263 vax-*-netbsd*) machine=vax ;;
2264 arm-*-netbsd*) machine=arm ;;
2265 x86_64-*-netbsd*) machine=amdx86-64 ;;
2266 hppa-*-netbsd*) machine=hp800 ;;
2267 shle-*-netbsd*) machine=sh3el ;;
2268 esac
2271 ## OpenBSD ports
2272 *-*-openbsd* )
2273 opsys=openbsd
2274 case "${canonical}" in
2275 alpha*-*-openbsd*) machine=alpha ;;
2276 arm-*-openbsd*) machine=arm ;;
2277 hppa-*-openbsd*) machine=hp9000s300 ;;
2278 i386-*-openbsd*) machine=intel386 ;;
2279 m68k-*-openbsd*) machine=hp9000s300 ;;
2280 m88k-*-openbsd*) machine=aviion ;;
2281 mips64-*-openbsd*) machine=mips64 ;;
2282 powerpc-*-openbsd*) machine=macppc ;;
2283 sh-*-openbsd*) machine=sh3el ;;
2284 sparc*-*-openbsd*) machine=sparc ;;
2285 vax-*-openbsd*) machine=vax ;;
2286 x86_64-*-openbsd*) machine=amdx86-64 ;;
2287 esac
2290 ## LynxOS ports
2291 *-*-lynxos* )
2292 opsys=lynxos
2293 case "${canonical}" in
2294 i[3456]86-*-lynxos*) machine=intel386 ;;
2295 powerpc-*-lynxos*) machine=powerpc ;;
2296 esac
2299 ## Acorn RISCiX:
2300 arm-acorn-riscix1.1* )
2301 machine=acorn opsys=riscix1-1
2303 arm-acorn-riscix1.2* | arm-acorn-riscix )
2304 ## This name is riscix12 instead of riscix1.2
2305 ## to avoid a file name conflict on MSDOS.
2306 machine=acorn opsys=riscix12
2309 ## BSDI ports
2310 *-*-bsdi* )
2311 opsys=bsdi
2312 case "${canonical}" in
2313 i[345]86-*-bsdi*) machine=intel386 ;;
2314 sparc-*-bsdi*) machine=sparc ;;
2315 powerpc-*-bsdi*) machine=macppc ;;
2316 esac
2317 case "${canonical}" in
2318 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2319 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2320 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2321 *-*-bsdi3* ) opsys=bsdos3 ;;
2322 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2323 esac
2326 ## Alliant machines
2327 ## Strictly speaking, we need the version of the alliant operating
2328 ## system to choose the right machine file, but currently the
2329 ## configuration name doesn't tell us enough to choose the right
2330 ## one; we need to give alliants their own operating system name to
2331 ## do this right. When someone cares, they can help us.
2332 fx80-alliant-* )
2333 machine=alliant4 opsys=bsd4-2
2335 i860-alliant-* )
2336 machine=alliant-2800 opsys=bsd4-3
2339 ## Alpha (DEC) machines.
2340 alpha*-dec-osf* )
2341 machine=alpha opsys=osf1
2342 # This is needed to find X11R6.1 libraries for certain tests.
2343 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2344 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2345 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2346 # due to non-traditional preprocessing with the current compiler
2347 # defaults. OSF 4 can also have that compiler version, and there
2348 # seems always to have been a usable /usr/bin/cpp.
2349 NON_GNU_CPP=/usr/bin/cpp
2350 case "${canonical}" in
2351 alpha*-dec-osf[5-9]*)
2352 opsys=osf5-0 ;;
2353 esac
2356 alpha*-*-linux-gnu* )
2357 machine=alpha opsys=gnu-linux
2360 arm*-*-linux-gnu* )
2361 machine=arm opsys=gnu-linux
2364 ## Altos 3068
2365 m68*-altos-sysv* )
2366 machine=altos opsys=usg5-2
2369 ## Amdahl UTS
2370 580-amdahl-sysv* )
2371 machine=amdahl opsys=usg5-2-2
2374 ## Apollo, Domain/OS
2375 m68*-apollo-* )
2376 machine=apollo opsys=bsd4-3
2379 ## Apple Darwin / Mac OS X
2380 *-apple-darwin* )
2381 case "${canonical}" in
2382 i[3456]86-* ) machine=intel386 ;;
2383 powerpc-* ) machine=powermac ;;
2384 * ) unported=yes ;;
2385 esac
2386 opsys=darwin
2387 # Define CPP as follows to make autoconf work correctly.
2388 CPP="${CC-cc} -E -no-cpp-precomp"
2389 # Use fink packages if available.
2390 if test -d /sw/include && test -d /sw/lib; then
2391 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2392 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2393 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2397 ## AT&T 3b2, 3b5, 3b15, 3b20
2398 we32k-att-sysv* )
2399 machine=att3b opsys=usg5-2-2
2402 ## AT&T 3b1 - The Mighty Unix PC!
2403 m68*-att-sysv* )
2404 machine=7300 opsys=usg5-2-2
2407 ## Bull dpx20
2408 rs6000-bull-bosx* )
2409 machine=ibmrs6000 opsys=aix3-2
2412 ## Bull dpx2
2413 m68*-bull-sysv3* )
2414 machine=dpx2 opsys=usg5-3
2417 ## Bull sps7
2418 m68*-bull-sysv2* )
2419 machine=sps7 opsys=usg5-2
2422 ## CCI 5/32, 6/32 -- see "Tahoe".
2424 ## Celerity
2425 ## I don't know what configuration name to use for this; config.sub
2426 ## doesn't seem to know anything about it. Hey, Celerity users, get
2427 ## in touch with us!
2428 celerity-celerity-bsd* )
2429 machine=celerity opsys=bsd4-2
2432 ## Clipper
2433 ## What operating systems does this chip run that Emacs has been
2434 ## tested on?
2435 clipper-* )
2436 machine=clipper
2437 ## We'll use the catch-all code at the bottom to guess the
2438 ## operating system.
2441 ## Compaq Nonstop
2442 mips-compaq-nonstopux* )
2443 machine=nonstopux opsys=nonstopux
2446 ## Convex
2447 *-convex-bsd* | *-convex-convexos* )
2448 machine=convex opsys=bsd4-3
2449 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2450 NON_GNU_CPP="cc -E -P"
2453 ## Cubix QBx/386
2454 i[3456]86-cubix-sysv* )
2455 machine=intel386 opsys=usg5-3
2458 ## Cydra 5
2459 cydra*-cydrome-sysv* )
2460 machine=cydra5 opsys=usg5-3
2463 ## Data General AViiON Machines
2464 ## DG changed naming conventions with the release of 5.4.4.10, they
2465 ## dropped the initial 5.4 but left the intervening R. Because of the
2466 ## R this shouldn't conflict with older versions of the OS (which I
2467 ## think were named like dgux4.*). In addition, DG new AViiONs series
2468 ## uses either Motorola M88k or Intel Pentium CPUs.
2469 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2470 machine=aviion opsys=dgux4
2472 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2473 ## This name is dgux5-4-3 instead of dgux5-4r3
2474 ## to avoid a file name conflict on MSDOS.
2475 machine=aviion opsys=dgux5-4-3
2477 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2478 machine=aviion opsys=dgux5-4r2
2480 m88k-dg-dgux* )
2481 machine=aviion opsys=dgux
2484 ## Data General AViiON Intel (x86) Machines
2485 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2486 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2487 i[345]86-dg-dguxR4* )
2488 machine=aviion-intel opsys=dgux4
2491 ## DECstations
2492 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2493 machine=pmax opsys=bsd4-2
2495 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2496 machine=pmax opsys=bsd4-3
2498 mips-dec-ultrix* )
2499 machine=pmax opsys=ultrix4-3
2501 mips-dec-osf* )
2502 machine=pmax opsys=osf1
2504 mips-dec-mach_bsd4.3* )
2505 machine=pmax opsys=mach-bsd4-3
2508 ## Motorola Delta machines
2509 m68k-motorola-sysv* | m68000-motorola-sysv* )
2510 machine=delta opsys=usg5-3
2511 if test -z "`type gnucc | grep 'not found'`"
2512 then
2513 if test -s /etc/167config
2514 then CC="gnucc -m68040"
2515 else CC="gnucc -m68881"
2517 else
2518 if test -z "`type gcc | grep 'not found'`"
2519 then CC=gcc
2520 else CC=cc
2524 m88k-motorola-sysv4* )
2525 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2526 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2527 # I hope there are not other 4.0 versions for this machine
2528 # which really need usg5-4 instead.
2529 machine=delta88k opsys=usg5-4-2
2531 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2532 machine=delta88k opsys=usg5-3
2535 ## Dual machines
2536 m68*-dual-sysv* )
2537 machine=dual opsys=usg5-2
2539 m68*-dual-uniplus* )
2540 machine=dual opsys=unipl5-2
2543 ## Elxsi 6400
2544 elxsi-elxsi-sysv* )
2545 machine=elxsi opsys=usg5-2
2548 ## Encore machines
2549 ns16k-encore-bsd* )
2550 machine=ns16000 opsys=umax
2553 ## The GEC 63 - apparently, this port isn't really finished yet.
2554 # I'm sure we finished off the last of the machines, though. -- fx
2556 ## Gould Power Node and NP1
2557 pn-gould-bsd4.2* )
2558 machine=gould opsys=bsd4-2
2560 pn-gould-bsd4.3* )
2561 machine=gould opsys=bsd4-3
2563 np1-gould-bsd* )
2564 machine=gould-np1 opsys=bsd4-3
2567 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2568 ## as far as Emacs is concerned).
2569 m88k-harris-cxux* )
2570 # Build needs to be different on 7.0 and later releases
2571 case "`uname -r`" in
2572 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2573 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2574 esac
2575 NON_GNU_CPP="/lib/cpp"
2577 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2578 m68k-harris-cxux* )
2579 machine=nh3000 opsys=cxux
2581 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2582 powerpc-harris-powerunix )
2583 machine=nh6000 opsys=powerunix
2584 NON_GNU_CPP="cc -Xo -E -P"
2586 ## SR2001/SR2201 running HI-UX/MPP
2587 hppa1.1-hitachi-hiuxmpp* )
2588 machine=sr2k opsys=hiuxmpp
2590 hppa1.1-hitachi-hiuxwe2* )
2591 machine=sr2k opsys=hiuxwe2
2593 ## Honeywell XPS100
2594 xps*-honeywell-sysv* )
2595 machine=xps100 opsys=usg5-2
2598 ## HP 9000 series 200 or 300
2599 m68*-hp-bsd* )
2600 machine=hp9000s300 opsys=bsd4-3
2602 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2603 m68*-hp-hpux* )
2604 case "`uname -r`" in
2605 ## Someone's system reports A.B8.05 for this.
2606 ## I wonder what other possibilities there are.
2607 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2608 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2609 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2610 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2611 *) machine=hp9000s300 opsys=hpux ;;
2612 esac
2615 ## HP 9000 series 700 and 800, running HP/UX
2616 hppa*-hp-hpux7* )
2617 machine=hp800 opsys=hpux
2619 hppa*-hp-hpux8* )
2620 machine=hp800 opsys=hpux8
2622 hppa*-hp-hpux9shr* )
2623 machine=hp800 opsys=hpux9shr
2625 hppa*-hp-hpux9* )
2626 machine=hp800 opsys=hpux9
2628 hppa*-hp-hpux10.2* )
2629 machine=hp800 opsys=hpux10-20
2631 hppa*-hp-hpux10* )
2632 machine=hp800 opsys=hpux10
2634 hppa*-hp-hpux1[1-9]* )
2635 machine=hp800 opsys=hpux11
2636 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2639 hppa*-*-linux-gnu* )
2640 machine=hp800 opsys=gnu-linux
2643 ## HP 9000 series 700 and 800, running HP/UX
2644 hppa*-hp-hpux* )
2645 ## Cross-compilation? Nah!
2646 case "`uname -r`" in
2647 ## Someone's system reports A.B8.05 for this.
2648 ## I wonder what other possibilities there are.
2649 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2650 *.08.* ) machine=hp800 opsys=hpux8 ;;
2651 *.09.* ) machine=hp800 opsys=hpux9 ;;
2652 *) machine=hp800 opsys=hpux10 ;;
2653 esac
2655 hppa*-*-nextstep* )
2656 machine=hp800 opsys=nextstep
2659 ## Orion machines
2660 orion-orion-bsd* )
2661 machine=orion opsys=bsd4-2
2663 clipper-orion-bsd* )
2664 machine=orion105 opsys=bsd4-2
2667 ## IBM machines
2668 i[3456]86-ibm-aix1.1* )
2669 machine=ibmps2-aix opsys=usg5-2-2
2671 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2672 machine=ibmps2-aix opsys=usg5-3
2674 i370-ibm-aix*)
2675 machine=ibm370aix opsys=usg5-3
2677 s390-*-linux-gnu* )
2678 machine=ibms390 opsys=gnu-linux
2680 s390x-*-linux-gnu* )
2681 machine=ibms390x opsys=gnu-linux
2683 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2684 machine=ibmrs6000 opsys=aix3-1
2686 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2687 machine=ibmrs6000 opsys=aix3-2-5
2689 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2690 machine=ibmrs6000 opsys=aix4-1
2692 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2693 machine=ibmrs6000 opsys=aix4-2
2695 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2696 machine=ibmrs6000 opsys=aix4-2
2698 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2699 machine=ibmrs6000 opsys=aix4-2
2701 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2702 machine=ibmrs6000 opsys=aix4
2704 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2705 machine=ibmrs6000 opsys=aix4-1
2707 rs6000-ibm-aix* | powerpc-ibm-aix* )
2708 machine=ibmrs6000 opsys=aix3-2
2710 romp-ibm-bsd4.3* )
2711 machine=ibmrt opsys=bsd4-3
2713 romp-ibm-bsd4.2* )
2714 machine=ibmrt opsys=bsd4-2
2716 romp-ibm-aos4.3* )
2717 machine=ibmrt opsys=bsd4-3
2719 romp-ibm-aos4.2* )
2720 machine=ibmrt opsys=bsd4-2
2722 romp-ibm-aos* )
2723 machine=ibmrt opsys=bsd4-3
2725 romp-ibm-bsd* )
2726 machine=ibmrt opsys=bsd4-3
2728 romp-ibm-aix* )
2729 machine=ibmrt-aix opsys=usg5-2-2
2732 ## Integrated Solutions `Optimum V'
2733 m68*-isi-bsd4.2* )
2734 machine=isi-ov opsys=bsd4-2
2736 m68*-isi-bsd4.3* )
2737 machine=isi-ov opsys=bsd4-3
2740 ## Intel 386 machines where we do care about the manufacturer
2741 i[3456]86-intsys-sysv* )
2742 machine=is386 opsys=usg5-2-2
2745 ## Prime EXL
2746 i[3456]86-prime-sysv* )
2747 machine=i386 opsys=usg5-3
2750 ## Sequent Symmetry running Dynix
2751 i[3456]86-sequent-bsd* )
2752 machine=symmetry opsys=bsd4-3
2755 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2756 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2757 machine=sequent-ptx opsys=ptx4
2758 NON_GNU_CPP=/lib/cpp
2761 ## Sequent Symmetry running DYNIX/ptx
2762 ## Use the old cpp rather than the newer ANSI one.
2763 i[3456]86-sequent-ptx* )
2764 machine=sequent-ptx opsys=ptx
2765 NON_GNU_CPP="/lib/cpp"
2768 ## ncr machine running svr4.3.
2769 i[3456]86-ncr-sysv4.3 )
2770 machine=ncr386 opsys=usg5-4-3
2773 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2774 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2775 i[3456]86-ncr-sysv* )
2776 machine=ncr386 opsys=usg5-4-2
2779 ## Intel Paragon OSF/1
2780 i860-intel-osf1* )
2781 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2784 ## Intel 860
2785 i860-*-sysv4* )
2786 machine=i860 opsys=usg5-4
2787 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2788 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2791 ## Macintosh PowerPC
2792 powerpc*-*-linux-gnu* )
2793 machine=macppc opsys=gnu-linux
2796 ## Masscomp machines
2797 m68*-masscomp-rtu* )
2798 machine=masscomp opsys=rtu
2801 ## Megatest machines
2802 m68*-megatest-bsd* )
2803 machine=mega68 opsys=bsd4-2
2806 ## Workstations sold by MIPS
2807 ## This is not necessarily all workstations using the MIPS processor -
2808 ## Irises are produced by SGI, and DECstations by DEC.
2810 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2811 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2812 ## it gives for choosing between the alternatives seems to be "Use
2813 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2814 ## the BSD world." I'll assume that these are instructions for
2815 ## handling two odd situations, and that every other situation
2816 ## should use mips.h and usg5-2-2, they being listed first.
2817 mips-mips-usg* )
2818 machine=mips4
2819 ## Fall through to the general code at the bottom to decide on the OS.
2821 mips-mips-riscos4* )
2822 machine=mips4 opsys=bsd4-3
2823 NON_GNU_CC="cc -systype bsd43"
2824 NON_GNU_CPP="cc -systype bsd43 -E"
2826 mips-mips-riscos5* )
2827 machine=mips4 opsys=riscos5
2828 NON_GNU_CC="cc -systype bsd43"
2829 NON_GNU_CPP="cc -systype bsd43 -E"
2831 mips-mips-bsd* )
2832 machine=mips opsys=bsd4-3
2834 mips-mips-* )
2835 machine=mips opsys=usg5-2-2
2838 ## NeXT
2839 m68*-next-* | m68k-*-nextstep* )
2840 machine=m68k opsys=nextstep
2843 ## The complete machine from National Semiconductor
2844 ns32k-ns-genix* )
2845 machine=ns32000 opsys=usg5-2
2848 ## NCR machines
2849 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2850 machine=tower32 opsys=usg5-2-2
2852 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2853 machine=tower32v3 opsys=usg5-3
2856 ## NEC EWS4800
2857 mips-nec-sysv4*)
2858 machine=ews4800 opsys=ux4800
2861 ## Nixdorf Targon 31
2862 m68*-nixdorf-sysv* )
2863 machine=targon31 opsys=usg5-2-2
2866 ## Nu (TI or LMI)
2867 m68*-nu-sysv* )
2868 machine=nu opsys=usg5-2
2871 ## Plexus
2872 m68*-plexus-sysv* )
2873 machine=plexus opsys=usg5-2
2876 ## Pyramid machines
2877 ## I don't really have any idea what sort of processor the Pyramid has,
2878 ## so I'm assuming it is its own architecture.
2879 pyramid-pyramid-bsd* )
2880 machine=pyramid opsys=bsd4-2
2883 ## Sequent Balance
2884 ns32k-sequent-bsd4.2* )
2885 machine=sequent opsys=bsd4-2
2887 ns32k-sequent-bsd4.3* )
2888 machine=sequent opsys=bsd4-3
2891 ## Siemens Nixdorf
2892 mips-siemens-sysv* | mips-sni-sysv*)
2893 machine=mips-siemens opsys=usg5-4
2894 NON_GNU_CC=/usr/ccs/bin/cc
2895 NON_GNU_CPP=/usr/ccs/lib/cpp
2898 ## Silicon Graphics machines
2899 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2900 m68*-sgi-iris3.5* )
2901 machine=irist opsys=iris3-5
2903 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2904 machine=irist opsys=iris3-6
2906 ## Iris 4D
2907 mips-sgi-irix3* )
2908 machine=iris4d opsys=irix3-3
2910 mips-sgi-irix4* )
2911 machine=iris4d opsys=irix4-0
2913 mips-sgi-irix6.5 )
2914 machine=iris4d opsys=irix6-5
2915 # Without defining _LANGUAGE_C, things get masked out in the headers
2916 # so that, for instance, grepping for `free' in stdlib.h fails and
2917 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2918 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2919 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2921 mips-sgi-irix6* )
2922 machine=iris4d opsys=irix6-0
2923 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2924 # but presumably it does no harm.
2925 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2926 # -32 probably isn't necessary in later v.6s -- anyone know which?
2927 NON_GCC_TEST_OPTIONS=-32
2929 mips-sgi-irix5.[01]* )
2930 machine=iris4d opsys=irix5-0
2932 mips-sgi-irix5* | mips-sgi-irix* )
2933 machine=iris4d opsys=irix5-2
2936 ## SONY machines
2937 m68*-sony-bsd4.2* )
2938 machine=news opsys=bsd4-2
2940 m68*-sony-bsd4.3* )
2941 machine=news opsys=bsd4-3
2943 m68*-sony-newsos3* | m68*-sony-news3*)
2944 machine=news opsys=bsd4-3
2946 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2947 machine=news-risc opsys=bsd4-3
2949 mips-sony-newsos6* )
2950 machine=news-r6 opsys=newsos6
2952 mips-sony-news* )
2953 machine=news-risc opsys=newsos5
2956 ## Stride
2957 m68*-stride-sysv* )
2958 machine=stride opsys=usg5-2
2961 ## Suns
2962 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2963 machine=sparc opsys=gnu-linux
2966 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2967 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2968 | rs6000-*-solaris2*)
2969 case "${canonical}" in
2970 m68*-sunos1* ) machine=sun1 ;;
2971 m68*-sunos2* ) machine=sun2 ;;
2972 m68* ) machine=sun3 ;;
2973 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2974 i[3456]86-*-* ) machine=intel386 ;;
2975 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2976 powerpcle* ) machine=powerpcle ;;
2977 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2978 sparc* ) machine=sparc ;;
2979 * ) unported=yes ;;
2980 esac
2981 case "${canonical}" in
2982 ## The Sun386 didn't get past 4.0.
2983 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2984 *-sunos4.0* ) opsys=sunos4-0 ;;
2985 *-sunos4.1.[3-9]*noshare )
2986 ## This name is sunos413 instead of sunos4-1-3
2987 ## to avoid a file name conflict on MSDOS.
2988 opsys=sunos413
2989 NON_GNU_CPP=/usr/lib/cpp
2990 NON_GCC_TEST_OPTIONS=-Bstatic
2991 GCC_TEST_OPTIONS=-static
2993 *-sunos4.1.[3-9]* | *-sunos4shr*)
2994 opsys=sunos4shr
2995 NON_GNU_CPP=/usr/lib/cpp
2997 *-sunos4* | *-sunos )
2998 opsys=sunos4-1
2999 NON_GCC_TEST_OPTIONS=-Bstatic
3000 GCC_TEST_OPTIONS=-static
3002 *-sunos5.3* | *-solaris2.3* )
3003 opsys=sol2-3
3004 NON_GNU_CPP=/usr/ccs/lib/cpp
3006 *-sunos5.4* | *-solaris2.4* )
3007 opsys=sol2-4
3008 NON_GNU_CPP=/usr/ccs/lib/cpp
3009 RANLIB="ar -ts"
3011 *-sunos5.5* | *-solaris2.5* )
3012 opsys=sol2-5
3013 NON_GNU_CPP=/usr/ccs/lib/cpp
3014 RANLIB="ar -ts"
3016 *-sunos5.6* | *-solaris2.6* )
3017 opsys=sol2-6
3018 NON_GNU_CPP=/usr/ccs/lib/cpp
3019 RANLIB="ar -ts"
3021 *-sunos5* | *-solaris* )
3022 opsys=sol2-6
3023 emacs_check_sunpro_c=yes
3024 NON_GNU_CPP=/usr/ccs/lib/cpp
3026 * ) opsys=bsd4-2 ;;
3027 esac
3028 ## Watch out for a compiler that we know will not work.
3029 case "${canonical}" in
3030 *-solaris* | *-sunos5* )
3031 if [ "x$CC" = x/usr/ucb/cc ]; then
3032 ## /usr/ucb/cc doesn't work;
3033 ## we should find some other compiler that does work.
3034 unset CC
3037 *) ;;
3038 esac
3040 sparc-*-nextstep* )
3041 machine=sparc opsys=nextstep
3044 ## Tadpole 68k
3045 m68*-tadpole-sysv* )
3046 machine=tad68k opsys=usg5-3
3049 ## Tahoe machines
3050 tahoe-tahoe-bsd4.2* )
3051 machine=tahoe opsys=bsd4-2
3053 tahoe-tahoe-bsd4.3* )
3054 machine=tahoe opsys=bsd4-3
3057 ## Tandem Integrity S2
3058 mips-tandem-sysv* )
3059 machine=tandem-s2 opsys=usg5-3
3062 ## Tektronix XD88
3063 m88k-tektronix-sysv3* )
3064 machine=tekxd88 opsys=usg5-3
3067 ## Tektronix 16000 box (6130?)
3068 ns16k-tektronix-bsd* )
3069 machine=ns16000 opsys=bsd4-2
3071 ## Tektronix 4300
3072 ## src/m/tek4300.h hints that this is a m68k machine.
3073 m68*-tektronix-bsd* )
3074 machine=tek4300 opsys=bsd4-3
3077 ## Titan P2 or P3
3078 ## We seem to have lost the machine-description file titan.h!
3079 titan-titan-sysv* )
3080 machine=titan opsys=usg5-3
3083 ## Ustation E30 (SS5E)
3084 m68*-unisys-uniplus* )
3085 machine=ustation opsystem=unipl5-2
3088 ## Vaxen.
3089 vax-dec-* )
3090 machine=vax
3091 case "${canonical}" in
3092 *-bsd4.1* ) opsys=bsd4-1 ;;
3093 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3094 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3095 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3096 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3097 *-vms* ) opsys=vms ;;
3098 * ) unported=yes
3099 esac
3102 ## Whitechapel MG1
3103 ns16k-whitechapel-* )
3104 machine=mg1
3105 ## We don't know what sort of OS runs on these; we'll let the
3106 ## operating system guessing code below try.
3109 ## Wicat
3110 m68*-wicat-sysv* )
3111 machine=wicat opsys=usg5-2
3114 ## IA-64
3115 ia64*-*-linux* )
3116 machine=ia64 opsys=gnu-linux
3119 ## Intel 386 machines where we don't care about the manufacturer
3120 i[3456]86-*-* )
3121 machine=intel386
3122 case "${canonical}" in
3123 *-cygwin ) opsys=cygwin ;;
3124 *-darwin* ) opsys=darwin
3125 CPP="${CC-cc} -E -no-cpp-precomp"
3127 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3128 *-isc2.2* ) opsys=isc2-2 ;;
3129 *-isc4.0* ) opsys=isc4-0 ;;
3130 *-isc4.* ) opsys=isc4-1
3131 GCC_TEST_OPTIONS=-posix
3132 NON_GCC_TEST_OPTIONS=-Xp
3134 *-isc* ) opsys=isc3-0 ;;
3135 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3136 *-esix* ) opsys=esix ;;
3137 *-xenix* ) opsys=xenix ;;
3138 *-linux-gnu* ) opsys=gnu-linux ;;
3139 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3140 *-sco3.2v5* ) opsys=sco5
3141 NON_GNU_CPP=/lib/cpp
3142 # Prevent -belf from being passed to $CPP.
3143 # /lib/cpp does not accept it.
3144 OVERRIDE_CPPFLAGS=" "
3146 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3147 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3148 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3149 *-386bsd* ) opsys=386bsd ;;
3150 *-nextstep* ) opsys=nextstep ;;
3151 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3152 esac
3155 ## m68k Linux-based GNU system
3156 m68k-*-linux-gnu* )
3157 machine=m68k opsys=gnu-linux
3160 ## Mips Linux-based GNU system
3161 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3162 machine=mips opsys=gnu-linux
3165 ## UXP/DS
3166 sparc-fujitsu-sysv4* )
3167 machine=sparc opsys=uxpds
3168 NON_GNU_CPP=/usr/ccs/lib/cpp
3169 RANLIB="ar -ts"
3172 ## UXP/V
3173 f301-fujitsu-uxpv4.1)
3174 machine=f301 opsys=uxpv
3177 ## AMD x86-64 Linux-based GNU system
3178 x86_64-*-linux-gnu* )
3179 machine=amdx86-64 opsys=gnu-linux
3182 ## Tensilica Xtensa Linux-based GNU system
3183 xtensa-*-linux-gnu* )
3184 machine=xtensa opsys=gnu-linux
3188 unported=yes
3190 esac
3192 ### If the code above didn't choose an operating system, just choose
3193 ### an operating system based on the configuration name. You really
3194 ### only want to use this when you have no idea what the right
3195 ### operating system is; if you know what operating systems a machine
3196 ### runs, it's cleaner to make it explicit in the case statement
3197 ### above.
3198 if test x"${opsys}" = x; then
3199 case "${canonical}" in
3200 *-gnu* ) opsys=gnu ;;
3201 *-bsd4.[01] ) opsys=bsd4-1 ;;
3202 *-bsd4.2 ) opsys=bsd4-2 ;;
3203 *-bsd4.3 ) opsys=bsd4-3 ;;
3204 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3205 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3206 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3207 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3208 *-sysv4.2uw* ) opsys=unixware ;;
3209 *-sysv5uw* ) opsys=unixware ;;
3210 *-sysv5OpenUNIX* ) opsys=unixware ;;
3211 *-sysv4.1* | *-sysvr4.1* )
3212 NON_GNU_CPP=/usr/lib/cpp
3213 opsys=usg5-4 ;;
3214 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3215 if [ x$NON_GNU_CPP = x ]; then
3216 if [ -f /usr/ccs/lib/cpp ]; then
3217 NON_GNU_CPP=/usr/ccs/lib/cpp
3218 else
3219 NON_GNU_CPP=/lib/cpp
3222 opsys=usg5-4-2 ;;
3223 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3225 unported=yes
3227 esac
3232 if test $unported = yes; then
3233 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3234 Check \`etc/MACHINES' for recognized configuration names." >&5
3235 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3236 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3237 { (exit 1); exit 1; }; }
3240 machfile="m/${machine}.h"
3241 opsysfile="s/${opsys}.h"
3244 #### Choose a compiler.
3245 test -n "$CC" && cc_specified=yes
3247 # Save the value of CFLAGS that the user specified.
3248 SPECIFIED_CFLAGS="$CFLAGS"
3250 case ${with_gcc} in
3251 "yes" ) CC="gcc" GCC=yes ;;
3252 "no" ) : ${CC=cc} ;;
3254 esac
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { echo "$as_me:$LINENO: result: $CC" >&5
3291 echo "${ECHO_T}$CC" >&6; }
3292 else
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3299 if test -z "$ac_cv_prog_CC"; then
3300 ac_ct_CC=$CC
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc; ac_word=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="gcc"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3331 echo "${ECHO_T}$ac_ct_CC" >&6; }
3332 else
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3343 whose name does not start with the host triplet. If you think this
3344 configuration is useful to you, please write to autoconf@gnu.org." >&5
3345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3346 whose name does not start with the host triplet. If you think this
3347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CC=$ac_ct_CC
3352 else
3353 CC="$ac_cv_prog_CC"
3356 if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}cc; ac_word=$2
3360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}cc"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3379 done
3380 done
3381 IFS=$as_save_IFS
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { echo "$as_me:$LINENO: result: $CC" >&5
3388 echo "${ECHO_T}$CC" >&6; }
3389 else
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3397 if test -z "$CC"; then
3398 # Extract the first word of "cc", so it can be a program name with args.
3399 set dummy cc; ac_word=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 ac_prog_rejected=no
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3417 ac_prog_rejected=yes
3418 continue
3420 ac_cv_prog_CC="cc"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3428 if test $ac_prog_rejected = yes; then
3429 # We found a bogon in the path, so make sure we never use it.
3430 set dummy $ac_cv_prog_CC
3431 shift
3432 if test $# != 0; then
3433 # We chose a different compiler from the bogus one.
3434 # However, it has the same basename, so the bogon will be chosen
3435 # first if we set CC to just the basename; use the full file name.
3436 shift
3437 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { echo "$as_me:$LINENO: result: $CC" >&5
3445 echo "${ECHO_T}$CC" >&6; }
3446 else
3447 { echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6; }
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 for ac_prog in cl.exe
3457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3461 if test "${ac_cv_prog_CC+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3480 IFS=$as_save_IFS
3484 CC=$ac_cv_prog_CC
3485 if test -n "$CC"; then
3486 { echo "$as_me:$LINENO: result: $CC" >&5
3487 echo "${ECHO_T}$CC" >&6; }
3488 else
3489 { echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6; }
3494 test -n "$CC" && break
3495 done
3497 if test -z "$CC"; then
3498 ac_ct_CC=$CC
3499 for ac_prog in cl.exe
3501 # Extract the first word of "$ac_prog", so it can be a program name with args.
3502 set dummy $ac_prog; ac_word=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_ac_ct_CC="$ac_prog"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3522 done
3523 done
3524 IFS=$as_save_IFS
3528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3529 if test -n "$ac_ct_CC"; then
3530 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3531 echo "${ECHO_T}$ac_ct_CC" >&6; }
3532 else
3533 { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3538 test -n "$ac_ct_CC" && break
3539 done
3541 if test "x$ac_ct_CC" = x; then
3542 CC=""
3543 else
3544 case $cross_compiling:$ac_tool_warned in
3545 yes:)
3546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3547 whose name does not start with the host triplet. If you think this
3548 configuration is useful to you, please write to autoconf@gnu.org." >&5
3549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3550 whose name does not start with the host triplet. If you think this
3551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3567 # Provide some information about the compiler.
3568 echo "$as_me:$LINENO: checking for C compiler version" >&5
3569 ac_compiler=`set X $ac_compile; echo $2`
3570 { (ac_try="$ac_compiler --version >&5"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compiler --version >&5") 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
3580 { (ac_try="$ac_compiler -v >&5"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compiler -v >&5") 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590 { (ac_try="$ac_compiler -V >&5"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compiler -V >&5") 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3609 main ()
3613 return 0;
3615 _ACEOF
3616 ac_clean_files_save=$ac_clean_files
3617 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3618 # Try to create an executable without -o first, disregard a.out.
3619 # It will help us diagnose broken compilers, and finding out an intuition
3620 # of exeext.
3621 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3622 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3623 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3625 # List of possible output files, starting from the most likely.
3626 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3627 # only as a last resort. b.out is created by i960 compilers.
3628 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3630 # The IRIX 6 linker writes into existing files which may not be
3631 # executable, retaining their permissions. Remove them first so a
3632 # subsequent execution test works.
3633 ac_rmfiles=
3634 for ac_file in $ac_files
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3638 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3639 esac
3640 done
3641 rm -f $ac_rmfiles
3643 if { (ac_try="$ac_link_default"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_link_default") 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; then
3653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3654 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3655 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3656 # so that the user can short-circuit this test for compilers unknown to
3657 # Autoconf.
3658 for ac_file in $ac_files ''
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3664 [ab].out )
3665 # We found the default executable, but exeext='' is most
3666 # certainly right.
3667 break;;
3668 *.* )
3669 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3670 then :; else
3671 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 # We set ac_cv_exeext here because the later test for it is not
3674 # safe: cross compilers may not add the suffix if given an `-o'
3675 # argument, so we may need to know it at that point already.
3676 # Even if this section looks crufty: it has the advantage of
3677 # actually working.
3678 break;;
3680 break;;
3681 esac
3682 done
3683 test "$ac_cv_exeext" = no && ac_cv_exeext=
3685 else
3686 ac_file=''
3689 { echo "$as_me:$LINENO: result: $ac_file" >&5
3690 echo "${ECHO_T}$ac_file" >&6; }
3691 if test -z "$ac_file"; then
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3696 See \`config.log' for more details." >&5
3697 echo "$as_me: error: C compiler cannot create executables
3698 See \`config.log' for more details." >&2;}
3699 { (exit 77); exit 77; }; }
3702 ac_exeext=$ac_cv_exeext
3704 # Check that the compiler produces executables we can run. If not, either
3705 # the compiler is broken, or we cross compile.
3706 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3707 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3708 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3709 # If not cross compiling, check that we can run a simple program.
3710 if test "$cross_compiling" != yes; then
3711 if { ac_try='./$ac_file'
3712 { (case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_try") 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 cross_compiling=no
3722 else
3723 if test "$cross_compiling" = maybe; then
3724 cross_compiling=yes
3725 else
3726 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: cannot run C compiled programs.
3730 If you meant to cross compile, use \`--host'.
3731 See \`config.log' for more details." >&2;}
3732 { (exit 1); exit 1; }; }
3736 { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3739 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3740 ac_clean_files=$ac_clean_files_save
3741 # Check that the compiler produces executables we can run. If not, either
3742 # the compiler is broken, or we cross compile.
3743 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3744 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3745 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3746 echo "${ECHO_T}$cross_compiling" >&6; }
3748 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3749 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3750 if { (ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_link") 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; then
3760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3762 # work properly (i.e., refer to `conftest.exe'), while it won't with
3763 # `rm'.
3764 for ac_file in conftest.exe conftest conftest.*; do
3765 test -f "$ac_file" || continue
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 break;;
3770 * ) break;;
3771 esac
3772 done
3773 else
3774 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3775 See \`config.log' for more details." >&5
3776 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3777 See \`config.log' for more details." >&2;}
3778 { (exit 1); exit 1; }; }
3781 rm -f conftest$ac_cv_exeext
3782 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3783 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3785 rm -f conftest.$ac_ext
3786 EXEEXT=$ac_cv_exeext
3787 ac_exeext=$EXEEXT
3788 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3789 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3790 if test "${ac_cv_objext+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3801 main ()
3805 return 0;
3807 _ACEOF
3808 rm -f conftest.o conftest.obj
3809 if { (ac_try="$ac_compile"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_compile") 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; then
3819 for ac_file in conftest.o conftest.obj conftest.*; do
3820 test -f "$ac_file" || continue;
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 break;;
3825 esac
3826 done
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3834 See \`config.log' for more details." >&2;}
3835 { (exit 1); exit 1; }; }
3838 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3840 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3841 echo "${ECHO_T}$ac_cv_objext" >&6; }
3842 OBJEXT=$ac_cv_objext
3843 ac_objext=$OBJEXT
3844 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3845 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3846 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 main ()
3859 #ifndef __GNUC__
3860 choke me
3861 #endif
3864 return 0;
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.$ac_objext; then
3884 ac_compiler_gnu=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_compiler_gnu=no
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3898 GCC=`test $ac_compiler_gnu = yes && echo yes`
3899 ac_test_CFLAGS=${CFLAGS+set}
3900 ac_save_CFLAGS=$CFLAGS
3901 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3902 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3903 if test "${ac_cv_prog_cc_g+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 ac_save_c_werror_flag=$ac_c_werror_flag
3907 ac_c_werror_flag=yes
3908 ac_cv_prog_cc_g=no
3909 CFLAGS="-g"
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3918 main ()
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_g=yes
3943 else
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 CFLAGS=""
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3956 main ()
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3986 CFLAGS="-g"
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 main ()
3999 return 0;
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest.$ac_objext; then
4019 ac_cv_prog_cc_g=yes
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039 CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041 if test "$GCC" = yes; then
4042 CFLAGS="-g -O2"
4043 else
4044 CFLAGS="-g"
4046 else
4047 if test "$GCC" = yes; then
4048 CFLAGS="-O2"
4049 else
4050 CFLAGS=
4053 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4054 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4055 if test "${ac_cv_prog_cc_c89+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 ac_cv_prog_cc_c89=no
4059 ac_save_CC=$CC
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <stdarg.h>
4067 #include <stdio.h>
4068 #include <sys/types.h>
4069 #include <sys/stat.h>
4070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4071 struct buf { int x; };
4072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4073 static char *e (p, i)
4074 char **p;
4075 int i;
4077 return p[i];
4079 static char *f (char * (*g) (char **, int), char **p, ...)
4081 char *s;
4082 va_list v;
4083 va_start (v,p);
4084 s = g (p, va_arg (v,int));
4085 va_end (v);
4086 return s;
4089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4090 function prototypes and stuff, but not '\xHH' hex character constants.
4091 These don't provoke an error unfortunately, instead are silently treated
4092 as 'x'. The following induces an error, until -std is added to get
4093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4094 array size at least. It's necessary to write '\x00'==0 to get something
4095 that's true only with -std. */
4096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4099 inside strings and character constants. */
4100 #define FOO(x) 'x'
4101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4103 int test (int i, double x);
4104 struct s1 {int (*f) (int a);};
4105 struct s2 {int (*f) (double a);};
4106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4107 int argc;
4108 char **argv;
4110 main ()
4112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4114 return 0;
4116 _ACEOF
4117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4120 CC="$ac_save_CC $ac_arg"
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 ac_cv_prog_cc_c89=$ac_arg
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4146 rm -f core conftest.err conftest.$ac_objext
4147 test "x$ac_cv_prog_cc_c89" != "xno" && break
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC
4153 # AC_CACHE_VAL
4154 case "x$ac_cv_prog_cc_c89" in
4156 { echo "$as_me:$LINENO: result: none needed" >&5
4157 echo "${ECHO_T}none needed" >&6; } ;;
4158 xno)
4159 { echo "$as_me:$LINENO: result: unsupported" >&5
4160 echo "${ECHO_T}unsupported" >&6; } ;;
4162 CC="$CC $ac_cv_prog_cc_c89"
4163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4164 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4165 esac
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 # On Suns, sometimes $CPP names a directory.
4176 if test -n "$CPP" && test -d "$CPP"; then
4177 CPP=
4180 ## If not using gcc, and on Solaris, and no CPP specified, see if
4181 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4182 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4183 test x"$CPP" = x; then
4184 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4185 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4187 if test "${emacs_cv_sunpro_c+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4198 main ()
4200 #ifndef __SUNPRO_C
4201 fail;
4202 #endif
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext conftest$ac_exeext
4209 if { (ac_try="$ac_link"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_link") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest$ac_exeext &&
4225 $as_test_x conftest$ac_exeext; then
4226 emacs_cv_sunpro_c=yes
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 emacs_cv_sunpro_c=no
4234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4235 conftest$ac_exeext conftest.$ac_ext
4238 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4239 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4241 if test x"$emacs_cv_sunpro_c" = xyes; then
4242 NON_GNU_CPP="$CC -E -Xs"
4246 #### Some systems specify a CPP to use unless we are using GCC.
4247 #### Now that we know whether we are using GCC, we can decide whether
4248 #### to use that one.
4249 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4250 then
4251 CPP="$NON_GNU_CPP"
4254 #### Some systems specify a CC to use unless we are using GCC.
4255 #### Now that we know whether we are using GCC, we can decide whether
4256 #### to use that one.
4257 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4258 test x$cc_specified != xyes
4259 then
4260 CC="$NON_GNU_CC"
4263 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4264 then
4265 CC="$CC $GCC_TEST_OPTIONS"
4268 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4269 then
4270 CC="$CC $NON_GCC_TEST_OPTIONS"
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4279 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4280 # On Suns, sometimes $CPP names a directory.
4281 if test -n "$CPP" && test -d "$CPP"; then
4282 CPP=
4284 if test -z "$CPP"; then
4285 if test "${ac_cv_prog_CPP+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 # Double quotes because CPP needs to be expanded
4289 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4291 ac_preproc_ok=false
4292 for ac_c_preproc_warn_flag in '' yes
4294 # Use a header file that comes with gcc, so configuring glibc
4295 # with a fresh cross-compiler works.
4296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297 # <limits.h> exists even on freestanding compilers.
4298 # On the NeXT, cc -E runs the code through the compiler's parser,
4299 # not just through cpp. "Syntax error" is here to catch this case.
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #ifdef __STDC__
4307 # include <limits.h>
4308 #else
4309 # include <assert.h>
4310 #endif
4311 Syntax error
4312 _ACEOF
4313 if { (ac_try="$ac_cpp conftest.$ac_ext"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev/null && {
4326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 }; then
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 # Broken: fails on valid input.
4335 continue
4338 rm -f conftest.err conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4349 _ACEOF
4350 if { (ac_try="$ac_cpp conftest.$ac_ext"
4351 case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev/null && {
4363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 }; then
4366 # Broken: success on invalid input.
4367 continue
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 # Passes both tests.
4373 ac_preproc_ok=:
4374 break
4377 rm -f conftest.err conftest.$ac_ext
4379 done
4380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4381 rm -f conftest.err conftest.$ac_ext
4382 if $ac_preproc_ok; then
4383 break
4386 done
4387 ac_cv_prog_CPP=$CPP
4390 CPP=$ac_cv_prog_CPP
4391 else
4392 ac_cv_prog_CPP=$CPP
4394 { echo "$as_me:$LINENO: result: $CPP" >&5
4395 echo "${ECHO_T}$CPP" >&6; }
4396 ac_preproc_ok=false
4397 for ac_c_preproc_warn_flag in '' yes
4399 # Use a header file that comes with gcc, so configuring glibc
4400 # with a fresh cross-compiler works.
4401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402 # <limits.h> exists even on freestanding compilers.
4403 # On the NeXT, cc -E runs the code through the compiler's parser,
4404 # not just through cpp. "Syntax error" is here to catch this case.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #ifdef __STDC__
4412 # include <limits.h>
4413 #else
4414 # include <assert.h>
4415 #endif
4416 Syntax error
4417 _ACEOF
4418 if { (ac_try="$ac_cpp conftest.$ac_ext"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } >/dev/null && {
4431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 }; then
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 # Broken: fails on valid input.
4440 continue
4443 rm -f conftest.err conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <ac_nonexistent.h>
4454 _ACEOF
4455 if { (ac_try="$ac_cpp conftest.$ac_ext"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null && {
4468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4469 test ! -s conftest.err
4470 }; then
4471 # Broken: success on invalid input.
4472 continue
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 # Passes both tests.
4478 ac_preproc_ok=:
4479 break
4482 rm -f conftest.err conftest.$ac_ext
4484 done
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then
4489 else
4490 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details." >&5
4492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4505 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4506 if test "${ac_cv_path_GREP+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 # Extract the first word of "grep ggrep" to use in msg output
4510 if test -z "$GREP"; then
4511 set dummy grep ggrep; ac_prog_name=$2
4512 if test "${ac_cv_path_GREP+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532 ac_count=0
4533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4534 while :
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 ac_count=`expr $ac_count + 1`
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4559 done
4560 IFS=$as_save_IFS
4565 GREP="$ac_cv_path_GREP"
4566 if test -z "$GREP"; then
4567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4569 { (exit 1); exit 1; }; }
4572 else
4573 ac_cv_path_GREP=$GREP
4578 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4579 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4580 GREP="$ac_cv_path_GREP"
4583 { echo "$as_me:$LINENO: checking for egrep" >&5
4584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4585 if test "${ac_cv_path_EGREP+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4589 then ac_cv_path_EGREP="$GREP -E"
4590 else
4591 # Extract the first word of "egrep" to use in msg output
4592 if test -z "$EGREP"; then
4593 set dummy egrep; ac_prog_name=$2
4594 if test "${ac_cv_path_EGREP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 ac_path_EGREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in egrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609 # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4611 *GNU*)
4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4614 ac_count=0
4615 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4616 while :
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 echo 'EGREP' >> "conftest.nl"
4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 ac_count=`expr $ac_count + 1`
4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_EGREP="$ac_path_EGREP"
4628 ac_path_EGREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4632 done
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4637 $ac_path_EGREP_found && break 3
4638 done
4639 done
4641 done
4642 IFS=$as_save_IFS
4647 EGREP="$ac_cv_path_EGREP"
4648 if test -z "$EGREP"; then
4649 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4650 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4651 { (exit 1); exit 1; }; }
4654 else
4655 ac_cv_path_EGREP=$EGREP
4661 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4662 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4667 { echo "$as_me:$LINENO: checking for AIX" >&5
4668 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #ifdef _AIX
4677 #endif
4679 _ACEOF
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "yes" >/dev/null 2>&1; then
4682 { echo "$as_me:$LINENO: result: yes" >&5
4683 echo "${ECHO_T}yes" >&6; }
4684 cat >>confdefs.h <<\_ACEOF
4685 #define _ALL_SOURCE 1
4686 _ACEOF
4688 else
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4692 rm -f conftest*
4696 cat >>confdefs.h <<\_ACEOF
4697 #define _GNU_SOURCE 1
4698 _ACEOF
4702 ### Use -Wno-pointer-sign if the compiler supports it
4703 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4704 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4705 SAVE_CFLAGS="$CFLAGS"
4706 CFLAGS="$CFLAGS -Wno-pointer-sign"
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (ac_try="$ac_compile"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 has_option=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 has_option=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4751 { echo "$as_me:$LINENO: result: $has_option" >&5
4752 echo "${ECHO_T}$has_option" >&6; }
4753 CFLAGS="$SAVE_CFLAGS"
4754 unset has_option
4755 unset SAVE_CFLAGS
4757 #### Some other nice autoconf tests.
4759 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4760 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4761 LN_S=$as_ln_s
4762 if test "$LN_S" = "ln -s"; then
4763 { echo "$as_me:$LINENO: result: yes" >&5
4764 echo "${ECHO_T}yes" >&6; }
4765 else
4766 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4767 echo "${ECHO_T}no, using $LN_S" >&6; }
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4776 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4779 CPP=
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 # Double quotes because CPP needs to be expanded
4786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4788 ac_preproc_ok=false
4789 for ac_c_preproc_warn_flag in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #ifdef __STDC__
4804 # include <limits.h>
4805 #else
4806 # include <assert.h>
4807 #endif
4808 Syntax error
4809 _ACEOF
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev/null && {
4823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 }; then
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 # Broken: fails on valid input.
4832 continue
4835 rm -f conftest.err conftest.$ac_ext
4837 # OK, works on sane cases. Now check whether nonexistent headers
4838 # can be detected and how.
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <ac_nonexistent.h>
4846 _ACEOF
4847 if { (ac_try="$ac_cpp conftest.$ac_ext"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 }; then
4863 # Broken: success on invalid input.
4864 continue
4865 else
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 # Passes both tests.
4870 ac_preproc_ok=:
4871 break
4874 rm -f conftest.err conftest.$ac_ext
4876 done
4877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878 rm -f conftest.err conftest.$ac_ext
4879 if $ac_preproc_ok; then
4880 break
4883 done
4884 ac_cv_prog_CPP=$CPP
4887 CPP=$ac_cv_prog_CPP
4888 else
4889 ac_cv_prog_CPP=$CPP
4891 { echo "$as_me:$LINENO: result: $CPP" >&5
4892 echo "${ECHO_T}$CPP" >&6; }
4893 ac_preproc_ok=false
4894 for ac_c_preproc_warn_flag in '' yes
4896 # Use a header file that comes with gcc, so configuring glibc
4897 # with a fresh cross-compiler works.
4898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899 # <limits.h> exists even on freestanding compilers.
4900 # On the NeXT, cc -E runs the code through the compiler's parser,
4901 # not just through cpp. "Syntax error" is here to catch this case.
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #ifdef __STDC__
4909 # include <limits.h>
4910 #else
4911 # include <assert.h>
4912 #endif
4913 Syntax error
4914 _ACEOF
4915 if { (ac_try="$ac_cpp conftest.$ac_ext"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null && {
4928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 }; then
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 # Broken: fails on valid input.
4937 continue
4940 rm -f conftest.err conftest.$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4951 _ACEOF
4952 if { (ac_try="$ac_cpp conftest.$ac_ext"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null && {
4965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 }; then
4968 # Broken: success on invalid input.
4969 continue
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 # Passes both tests.
4975 ac_preproc_ok=:
4976 break
4979 rm -f conftest.err conftest.$ac_ext
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then
4986 else
4987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4988 See \`config.log' for more details." >&5
4989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." >&2;}
4991 { (exit 1); exit 1; }; }
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 # Find a good install program. We prefer a C program (faster),
5001 # so one script is as good as another. But avoid the broken or
5002 # incompatible versions:
5003 # SysV /etc/install, /usr/sbin/install
5004 # SunOS /usr/etc/install
5005 # IRIX /sbin/install
5006 # AIX /bin/install
5007 # AmigaOS /C/install, which installs bootblocks on floppy discs
5008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5011 # OS/2's system install, which has a completely different semantic
5012 # ./install, which can be erroneously created by make from ./install.sh.
5013 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5015 if test -z "$INSTALL"; then
5016 if test "${ac_cv_path_install+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 # Account for people who put trailing slashes in PATH elements.
5025 case $as_dir/ in
5026 ./ | .// | /cC/* | \
5027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5029 /usr/ucb/* ) ;;
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 # Don't use installbsd from OSF since it installs stuff as root
5033 # by default.
5034 for ac_prog in ginstall scoinst install; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5037 if test $ac_prog = install &&
5038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5039 # AIX install. It has an incompatible calling convention.
5041 elif test $ac_prog = install &&
5042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5043 # program-specific install script used by HP pwplus--don't use.
5045 else
5046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5047 break 3
5050 done
5051 done
5053 esac
5054 done
5055 IFS=$as_save_IFS
5059 if test "${ac_cv_path_install+set}" = set; then
5060 INSTALL=$ac_cv_path_install
5061 else
5062 # As a last resort, use the slow shell script. Don't cache a
5063 # value for INSTALL within a source directory, because that will
5064 # break other packages using the cache if that directory is
5065 # removed, or if the value is a relative name.
5066 INSTALL=$ac_install_sh
5069 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5070 echo "${ECHO_T}$INSTALL" >&6; }
5072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5073 # It thinks the first close brace ends the variable substitution.
5074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5080 if test "x$RANLIB" = x; then
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5086 if test "${ac_cv_prog_RANLIB+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 if test -n "$RANLIB"; then
5090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 RANLIB=$ac_cv_prog_RANLIB
5110 if test -n "$RANLIB"; then
5111 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5112 echo "${ECHO_T}$RANLIB" >&6; }
5113 else
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5120 if test -z "$ac_cv_prog_RANLIB"; then
5121 ac_ct_RANLIB=$RANLIB
5122 # Extract the first word of "ranlib", so it can be a program name with args.
5123 set dummy ranlib; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 if test -n "$ac_ct_RANLIB"; then
5130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_ac_ct_RANLIB="ranlib"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5150 if test -n "$ac_ct_RANLIB"; then
5151 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5152 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5153 else
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5158 if test "x$ac_ct_RANLIB" = x; then
5159 RANLIB=":"
5160 else
5161 case $cross_compiling:$ac_tool_warned in
5162 yes:)
5163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5164 whose name does not start with the host triplet. If you think this
5165 configuration is useful to you, please write to autoconf@gnu.org." >&5
5166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5167 whose name does not start with the host triplet. If you think this
5168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171 RANLIB=$ac_ct_RANLIB
5173 else
5174 RANLIB="$ac_cv_prog_RANLIB"
5178 # Extract the first word of "install-info", so it can be a program name with args.
5179 set dummy install-info; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 case $INSTALL_INFO in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5206 esac
5208 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5209 if test -n "$INSTALL_INFO"; then
5210 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5211 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5212 else
5213 { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5218 # Extract the first word of "install-info", so it can be a program name with args.
5219 set dummy install-info; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 case $INSTALL_INFO in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in /usr/sbin
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5246 esac
5248 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5249 if test -n "$INSTALL_INFO"; then
5250 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5251 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5252 else
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5258 # Extract the first word of "install-info", so it can be a program name with args.
5259 set dummy install-info; ac_word=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 case $INSTALL_INFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in /sbin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5285 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5287 esac
5289 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5290 if test -n "$INSTALL_INFO"; then
5291 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5292 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5293 else
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 # Extract the first word of "gzip", so it can be a program name with args.
5300 set dummy gzip; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 case $GZIP_PROG in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5324 IFS=$as_save_IFS
5327 esac
5329 GZIP_PROG=$ac_cv_path_GZIP_PROG
5330 if test -n "$GZIP_PROG"; then
5331 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5332 echo "${ECHO_T}$GZIP_PROG" >&6; }
5333 else
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5341 ## Need makeinfo >= 4.6 (?) to build the manuals.
5342 # Extract the first word of "makeinfo", so it can be a program name with args.
5343 set dummy makeinfo; ac_word=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 case $MAKEINFO in
5350 [\\/]* | ?:[\\/]*)
5351 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5369 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5371 esac
5373 MAKEINFO=$ac_cv_path_MAKEINFO
5374 if test -n "$MAKEINFO"; then
5375 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5376 echo "${ECHO_T}$MAKEINFO" >&6; }
5377 else
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5383 if test "$MAKEINFO" != "no" && \
5384 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([5-9]|4\.[6-9])'`" = x; then
5385 MAKEINFO=no
5388 if test "$MAKEINFO" = "no"; then
5389 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5390 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5391 { (exit 1); exit 1; }; }
5396 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5397 then
5398 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5401 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5402 then
5403 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5407 late_LDFLAGS=$LDFLAGS
5408 if test "$GCC" = yes; then
5409 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5410 else
5411 LDFLAGS="$LDFLAGS -znocombreloc"
5414 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5415 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5416 cat >conftest.$ac_ext <<_ACEOF
5417 main(){return 0;}
5418 _ACEOF
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (ac_try="$ac_link"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest$ac_exeext &&
5436 $as_test_x conftest$ac_exeext; then
5437 { echo "$as_me:$LINENO: result: yes" >&5
5438 echo "${ECHO_T}yes" >&6; }
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 LDFLAGS=$late_LDFLAGS
5444 { echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6; }
5448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5449 conftest$ac_exeext conftest.$ac_ext
5451 #### Extract some information from the operating system and machine files.
5453 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5454 - which libraries the lib-src programs will want, and
5455 - whether the GNU malloc routines are usable..." >&5
5456 echo "$as_me: checking the machine- and system-dependent files to find out
5457 - which libraries the lib-src programs will want, and
5458 - whether the GNU malloc routines are usable..." >&6;}
5460 ### First figure out CFLAGS (which we use for running the compiler here)
5461 ### and REAL_CFLAGS (which we use for real compilation).
5462 ### The two are the same except on a few systems, where they are made
5463 ### different to work around various lossages. For example,
5464 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5465 ### as implying static linking.
5467 ### If the CFLAGS env var is specified, we use that value
5468 ### instead of the default.
5470 ### It's not important that this name contain the PID; you can't run
5471 ### two configures in the same directory and have anything work
5472 ### anyway.
5473 tempcname="conftest.c"
5475 echo '
5476 #include "'${srcdir}'/src/'${opsysfile}'"
5477 #include "'${srcdir}'/src/'${machfile}'"
5478 #ifndef LIBS_MACHINE
5479 #define LIBS_MACHINE
5480 #endif
5481 #ifndef LIBS_SYSTEM
5482 #define LIBS_SYSTEM
5483 #endif
5484 #ifndef C_SWITCH_SYSTEM
5485 #define C_SWITCH_SYSTEM
5486 #endif
5487 #ifndef C_SWITCH_MACHINE
5488 #define C_SWITCH_MACHINE
5489 #endif
5490 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5491 configure___ c_switch_system=C_SWITCH_SYSTEM
5492 configure___ c_switch_machine=C_SWITCH_MACHINE
5494 #ifndef LIB_X11_LIB
5495 #define LIB_X11_LIB -lX11
5496 #endif
5498 #ifndef LIBX11_MACHINE
5499 #define LIBX11_MACHINE
5500 #endif
5502 #ifndef LIBX11_SYSTEM
5503 #define LIBX11_SYSTEM
5504 #endif
5505 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5507 #ifdef UNEXEC
5508 configure___ unexec=UNEXEC
5509 #else
5510 configure___ unexec=unexec.o
5511 #endif
5513 #ifdef SYSTEM_MALLOC
5514 configure___ system_malloc=yes
5515 #else
5516 configure___ system_malloc=no
5517 #endif
5519 #ifdef USE_MMAP_FOR_BUFFERS
5520 configure___ use_mmap_for_buffers=yes
5521 #else
5522 configure___ use_mmap_for_buffers=no
5523 #endif
5525 #ifndef C_DEBUG_SWITCH
5526 #define C_DEBUG_SWITCH -g
5527 #endif
5529 #ifndef C_OPTIMIZE_SWITCH
5530 #ifdef __GNUC__
5531 #define C_OPTIMIZE_SWITCH -O2
5532 #else
5533 #define C_OPTIMIZE_SWITCH -O
5534 #endif
5535 #endif
5537 #ifndef C_WARNINGS_SWITCH
5538 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5539 #endif
5541 #ifndef LD_SWITCH_MACHINE
5542 #define LD_SWITCH_MACHINE
5543 #endif
5545 #ifndef LD_SWITCH_SYSTEM
5546 #define LD_SWITCH_SYSTEM
5547 #endif
5549 #ifndef LD_SWITCH_X_SITE_AUX
5550 #define LD_SWITCH_X_SITE_AUX
5551 #endif
5553 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5554 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5556 #ifdef THIS_IS_CONFIGURE
5558 /* Get the CFLAGS for tests in configure. */
5559 #ifdef __GNUC__
5560 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5561 #else
5562 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5563 #endif
5565 #else /* not THIS_IS_CONFIGURE */
5567 /* Get the CFLAGS for real compilation. */
5568 #ifdef __GNUC__
5569 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5570 #else
5571 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5572 #endif
5574 #endif /* not THIS_IS_CONFIGURE */
5575 ' > ${tempcname}
5577 # The value of CPP is a quoted variable reference, so we need to do this
5578 # to get its actual value...
5579 CPP=`eval "echo $CPP"`
5580 eval `${CPP} -Isrc ${tempcname} \
5581 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5582 if test "x$SPECIFIED_CFLAGS" = x; then
5583 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5584 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5585 else
5586 REAL_CFLAGS="$CFLAGS"
5588 rm ${tempcname}
5590 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5592 ### Make sure subsequent tests use flags consistent with the build flags.
5594 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5595 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5596 else
5597 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then
5604 enableval=$enable_largefile;
5607 if test "$enable_largefile" != no; then
5609 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5610 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 ac_cv_sys_largefile_CC=no
5615 if test "$GCC" != yes; then
5616 ac_save_CC=$CC
5617 while :; do
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5634 ? 1 : -1];
5636 main ()
5640 return 0;
5642 _ACEOF
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 break
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f core conftest.err conftest.$ac_objext
5669 CC="$CC -n32"
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_cv_sys_largefile_CC=' -n32'; break
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext
5696 break
5697 done
5698 CC=$ac_save_CC
5699 rm -f conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5703 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5704 if test "$ac_cv_sys_largefile_CC" != no; then
5705 CC=$CC$ac_cv_sys_largefile_CC
5708 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5709 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5710 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 while :; do
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <sys/types.h>
5721 /* Check that off_t can represent 2**63 - 1 correctly.
5722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5723 since some C++ compilers masquerading as C compilers
5724 incorrectly reject 9223372036854775807. */
5725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5727 && LARGE_OFF_T % 2147483647 == 1)
5728 ? 1 : -1];
5730 main ()
5734 return 0;
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_sys_file_offset_bits=no; break
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #define _FILE_OFFSET_BITS 64
5770 #include <sys/types.h>
5771 /* Check that off_t can represent 2**63 - 1 correctly.
5772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5773 since some C++ compilers masquerading as C compilers
5774 incorrectly reject 9223372036854775807. */
5775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5777 && LARGE_OFF_T % 2147483647 == 1)
5778 ? 1 : -1];
5780 main ()
5784 return 0;
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 ac_cv_sys_file_offset_bits=64; break
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 ac_cv_sys_file_offset_bits=unknown
5814 break
5815 done
5817 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5818 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5819 case $ac_cv_sys_file_offset_bits in #(
5820 no | unknown) ;;
5822 cat >>confdefs.h <<_ACEOF
5823 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5824 _ACEOF
5826 esac
5827 rm -f conftest*
5828 if test $ac_cv_sys_file_offset_bits = unknown; then
5829 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5830 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5831 if test "${ac_cv_sys_large_files+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 while :; do
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <sys/types.h>
5842 /* Check that off_t can represent 2**63 - 1 correctly.
5843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5844 since some C++ compilers masquerading as C compilers
5845 incorrectly reject 9223372036854775807. */
5846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5848 && LARGE_OFF_T % 2147483647 == 1)
5849 ? 1 : -1];
5851 main ()
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.$ac_objext; then
5875 ac_cv_sys_large_files=no; break
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #define _LARGE_FILES 1
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5899 ? 1 : -1];
5901 main ()
5905 return 0;
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
5925 ac_cv_sys_large_files=1; break
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cv_sys_large_files=unknown
5935 break
5936 done
5938 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5939 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5940 case $ac_cv_sys_large_files in #(
5941 no | unknown) ;;
5943 cat >>confdefs.h <<_ACEOF
5944 #define _LARGE_FILES $ac_cv_sys_large_files
5945 _ACEOF
5947 esac
5948 rm -f conftest*
5954 ### The standard library on x86-64 GNU/Linux distributions can
5955 ### be located in either /usr/lib64 or /usr/lib.
5956 case "${canonical}" in
5957 x86_64-*-linux-gnu* )
5958 if test -d /usr/lib64; then
5960 cat >>confdefs.h <<\_ACEOF
5961 #define HAVE_X86_64_LIB64_DIR 1
5962 _ACEOF
5965 esac
5970 if test "${with_sound}" != "no"; then
5971 # Sound support for GNU/Linux and the free BSDs.
5972 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5974 if test "${ac_cv_header_stdc+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <stdlib.h>
5984 #include <stdarg.h>
5985 #include <string.h>
5986 #include <float.h>
5989 main ()
5993 return 0;
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6013 ac_cv_header_stdc=yes
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cv_header_stdc=no
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 if test $ac_cv_header_stdc = yes; then
6024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <string.h>
6033 _ACEOF
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "memchr" >/dev/null 2>&1; then
6037 else
6038 ac_cv_header_stdc=no
6040 rm -f conftest*
6044 if test $ac_cv_header_stdc = yes; then
6045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6054 _ACEOF
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "free" >/dev/null 2>&1; then
6058 else
6059 ac_cv_header_stdc=no
6061 rm -f conftest*
6065 if test $ac_cv_header_stdc = yes; then
6066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6067 if test "$cross_compiling" = yes; then
6069 else
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #include <ctype.h>
6077 #include <stdlib.h>
6078 #if ((' ' & 0x0FF) == 0x020)
6079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6081 #else
6082 # define ISLOWER(c) \
6083 (('a' <= (c) && (c) <= 'i') \
6084 || ('j' <= (c) && (c) <= 'r') \
6085 || ('s' <= (c) && (c) <= 'z'))
6086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6087 #endif
6089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6091 main ()
6093 int i;
6094 for (i = 0; i < 256; i++)
6095 if (XOR (islower (i), ISLOWER (i))
6096 || toupper (i) != TOUPPER (i))
6097 return 2;
6098 return 0;
6100 _ACEOF
6101 rm -f conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6122 else
6123 echo "$as_me: program exited with status $ac_status" >&5
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ( exit $ac_status )
6128 ac_cv_header_stdc=no
6130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6136 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6138 if test $ac_cv_header_stdc = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6142 _ACEOF
6146 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6157 inttypes.h stdint.h unistd.h
6159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6173 #include <$ac_header>
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && {
6189 test -z "$ac_c_werror_flag" ||
6190 test ! -s conftest.err
6191 } && test -s conftest.$ac_objext; then
6192 eval "$as_ac_Header=yes"
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 eval "$as_ac_Header=no"
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 ac_res=`eval echo '${'$as_ac_Header'}'`
6203 { echo "$as_me:$LINENO: result: $ac_res" >&5
6204 echo "${ECHO_T}$ac_res" >&6; }
6205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6208 _ACEOF
6212 done
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 ac_res=`eval echo '${'$as_ac_Header'}'`
6228 { echo "$as_me:$LINENO: result: $ac_res" >&5
6229 echo "${ECHO_T}$ac_res" >&6; }
6230 else
6231 # Is the header compilable?
6232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <$ac_header>
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 ac_header_compiler=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_compiler=no
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270 echo "${ECHO_T}$ac_header_compiler" >&6; }
6272 # Is the header present?
6273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <$ac_header>
6282 _ACEOF
6283 if { (ac_try="$ac_cpp conftest.$ac_ext"
6284 case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null && {
6296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 }; then
6299 ac_header_preproc=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_preproc=no
6307 rm -f conftest.err conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309 echo "${ECHO_T}$ac_header_preproc" >&6; }
6311 # So? What about this header?
6312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6313 yes:no: )
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6318 ac_header_preproc=yes
6320 no:yes:* )
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6335 esac
6336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 eval "$as_ac_Header=\$ac_header_preproc"
6343 ac_res=`eval echo '${'$as_ac_Header'}'`
6344 { echo "$as_me:$LINENO: result: $ac_res" >&5
6345 echo "${ECHO_T}$ac_res" >&6; }
6348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6349 cat >>confdefs.h <<_ACEOF
6350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 _ACEOF
6355 done
6357 # Emulation library used on NetBSD.
6358 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6359 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6360 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 ac_check_lib_save_LIBS=$LIBS
6364 LIBS="-lossaudio $LIBS"
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6372 /* Override any GCC internal prototype to avoid an error.
6373 Use char because int might match the return type of a GCC
6374 builtin and then its argument prototype would still apply. */
6375 #ifdef __cplusplus
6376 extern "C"
6377 #endif
6378 char _oss_ioctl ();
6380 main ()
6382 return _oss_ioctl ();
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (ac_try="$ac_link"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest$ac_exeext &&
6404 $as_test_x conftest$ac_exeext; then
6405 ac_cv_lib_ossaudio__oss_ioctl=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_cv_lib_ossaudio__oss_ioctl=no
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6415 LIBS=$ac_check_lib_save_LIBS
6417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6418 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6419 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6420 LIBSOUND=-lossaudio
6421 else
6422 LIBSOUND=
6427 ALSA_REQUIRED=1.0.0
6428 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6429 if test "X${with_pkg_config_prog}" != X; then
6430 PKG_CONFIG="${with_pkg_config_prog}"
6433 succeeded=no
6435 if test -z "$PKG_CONFIG"; then
6436 # Extract the first word of "pkg-config", so it can be a program name with args.
6437 set dummy pkg-config; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 case $PKG_CONFIG in
6444 [\\/]* | ?:[\\/]*)
6445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6465 esac
6467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6468 if test -n "$PKG_CONFIG"; then
6469 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6470 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6471 else
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6479 if test "$PKG_CONFIG" = "no" ; then
6480 HAVE_ALSA=no
6481 else
6482 PKG_CONFIG_MIN_VERSION=0.9.0
6483 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6484 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6485 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6487 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6488 { echo "$as_me:$LINENO: result: yes" >&5
6489 echo "${ECHO_T}yes" >&6; }
6490 succeeded=yes
6492 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6493 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6494 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6495 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6496 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6498 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6499 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6500 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6501 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6502 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6503 else
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6506 ALSA_CFLAGS=""
6507 ALSA_LIBS=""
6508 ## If we have a custom action on failure, don't print errors, but
6509 ## do set a variable so people can do so.
6510 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6516 else
6517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6522 if test $succeeded = yes; then
6523 HAVE_ALSA=yes
6524 else
6525 HAVE_ALSA=no
6528 if test $HAVE_ALSA = yes; then
6529 SAVE_CFLAGS="$CFLAGS"
6530 SAVE_LDFLAGS="$LDFLAGS"
6531 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6532 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <asoundlib.h>
6541 main ()
6543 snd_lib_error_set_handler (0);
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 emacs_alsa_normal=yes
6566 else
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 emacs_alsa_normal=no
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 if test "$emacs_alsa_normal" != yes; then
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <alsa/asoundlib.h>
6583 main ()
6585 snd_lib_error_set_handler (0);
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 emacs_alsa_subdir=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 emacs_alsa_subdir=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test "$emacs_alsa_subdir" != yes; then
6617 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6618 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6619 { (exit 1); exit 1; }; }
6621 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6624 CFLAGS="$SAVE_CFLAGS"
6625 LDFLAGS="$SAVE_LDFLAGS"
6626 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6627 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6629 cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_ALSA 1
6631 _ACEOF
6662 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6663 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6664 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6665 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6666 sys/utsname.h pwd.h
6668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_res=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6678 else
6679 # Is the header compilable?
6680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 #include <$ac_header>
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 ac_header_compiler=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_header_compiler=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6718 echo "${ECHO_T}$ac_header_compiler" >&6; }
6720 # Is the header present?
6721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <$ac_header>
6730 _ACEOF
6731 if { (ac_try="$ac_cpp conftest.$ac_ext"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } >/dev/null && {
6744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 }; then
6747 ac_header_preproc=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_header_preproc=no
6755 rm -f conftest.err conftest.$ac_ext
6756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6757 echo "${ECHO_T}$ac_header_preproc" >&6; }
6759 # So? What about this header?
6760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6761 yes:no: )
6762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6766 ac_header_preproc=yes
6768 no:yes:* )
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6783 esac
6784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 eval "$as_ac_Header=\$ac_header_preproc"
6791 ac_res=`eval echo '${'$as_ac_Header'}'`
6792 { echo "$as_me:$LINENO: result: $ac_res" >&5
6793 echo "${ECHO_T}$ac_res" >&6; }
6796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6799 _ACEOF
6803 done
6806 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6807 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <sys/personality.h>
6816 main ()
6818 personality (PER_LINUX32)
6820 return 0;
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 emacs_cv_personality_linux32=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 emacs_cv_personality_linux32=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6850 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6852 if test $emacs_cv_personality_linux32 = yes; then
6854 cat >>confdefs.h <<\_ACEOF
6855 #define HAVE_PERSONALITY_LINUX32 1
6856 _ACEOF
6861 for ac_header in term.h
6863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <$ac_header>
6876 _ACEOF
6877 if { (ac_try="$ac_cpp conftest.$ac_ext"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } >/dev/null && {
6890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 }; then
6893 eval "$as_ac_Header=yes"
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 eval "$as_ac_Header=no"
6901 rm -f conftest.err conftest.$ac_ext
6903 ac_res=`eval echo '${'$as_ac_Header'}'`
6904 { echo "$as_me:$LINENO: result: $ac_res" >&5
6905 echo "${ECHO_T}$ac_res" >&6; }
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 _ACEOF
6913 done
6915 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6916 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6917 if test "${ac_cv_header_stdc+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <stdlib.h>
6927 #include <stdarg.h>
6928 #include <string.h>
6929 #include <float.h>
6932 main ()
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_stdc=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_stdc=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 if test $ac_cv_header_stdc = yes; then
6967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <string.h>
6976 _ACEOF
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "memchr" >/dev/null 2>&1; then
6980 else
6981 ac_cv_header_stdc=no
6983 rm -f conftest*
6987 if test $ac_cv_header_stdc = yes; then
6988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <stdlib.h>
6997 _ACEOF
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 $EGREP "free" >/dev/null 2>&1; then
7001 else
7002 ac_cv_header_stdc=no
7004 rm -f conftest*
7008 if test $ac_cv_header_stdc = yes; then
7009 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7010 if test "$cross_compiling" = yes; then
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <ctype.h>
7020 #include <stdlib.h>
7021 #if ((' ' & 0x0FF) == 0x020)
7022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7024 #else
7025 # define ISLOWER(c) \
7026 (('a' <= (c) && (c) <= 'i') \
7027 || ('j' <= (c) && (c) <= 'r') \
7028 || ('s' <= (c) && (c) <= 'z'))
7029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7030 #endif
7032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7034 main ()
7036 int i;
7037 for (i = 0; i < 256; i++)
7038 if (XOR (islower (i), ISLOWER (i))
7039 || toupper (i) != TOUPPER (i))
7040 return 2;
7041 return 0;
7043 _ACEOF
7044 rm -f conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7046 case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7065 else
7066 echo "$as_me: program exited with status $ac_status" >&5
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ( exit $ac_status )
7071 ac_cv_header_stdc=no
7073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7080 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7081 if test $ac_cv_header_stdc = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define STDC_HEADERS 1
7085 _ACEOF
7089 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7090 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7091 if test "${ac_cv_header_time+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <sys/types.h>
7101 #include <sys/time.h>
7102 #include <time.h>
7105 main ()
7107 if ((struct tm *) 0)
7108 return 0;
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_header_time=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_header_time=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7141 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7142 if test $ac_cv_header_time = yes; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define TIME_WITH_SYS_TIME 1
7146 _ACEOF
7150 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7151 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7152 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7163 main ()
7165 #ifndef sys_siglist
7166 (void) sys_siglist;
7167 #endif
7170 return 0;
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_have_decl_sys_siglist=yes
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_have_decl_sys_siglist=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7201 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7202 if test $ac_cv_have_decl_sys_siglist = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205 #define HAVE_DECL_SYS_SIGLIST 1
7206 _ACEOF
7209 else
7210 cat >>confdefs.h <<_ACEOF
7211 #define HAVE_DECL_SYS_SIGLIST 0
7212 _ACEOF
7218 if test $ac_cv_have_decl_sys_siglist != yes; then
7219 # For Tru64, at least:
7220 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7221 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7222 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7233 main ()
7235 #ifndef __sys_siglist
7236 (void) __sys_siglist;
7237 #endif
7240 return 0;
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 ac_cv_have_decl___sys_siglist=yes
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_have_decl___sys_siglist=no
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7271 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7272 if test $ac_cv_have_decl___sys_siglist = yes; then
7274 cat >>confdefs.h <<_ACEOF
7275 #define HAVE_DECL___SYS_SIGLIST 1
7276 _ACEOF
7279 else
7280 cat >>confdefs.h <<_ACEOF
7281 #define HAVE_DECL___SYS_SIGLIST 0
7282 _ACEOF
7288 if test $ac_cv_have_decl___sys_siglist = yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define sys_siglist __sys_siglist
7292 _ACEOF
7296 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7297 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7298 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7308 #include <sys/wait.h>
7309 #ifndef WEXITSTATUS
7310 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7311 #endif
7312 #ifndef WIFEXITED
7313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7314 #endif
7317 main ()
7319 int s;
7320 wait (&s);
7321 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 ac_cv_header_sys_wait_h=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_header_sys_wait_h=no
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7354 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7355 if test $ac_cv_header_sys_wait_h = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_SYS_WAIT_H 1
7359 _ACEOF
7364 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7365 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7366 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 #ifdef TIME_WITH_SYS_TIME
7376 #include <sys/time.h>
7377 #include <time.h>
7378 #else
7379 #ifdef HAVE_SYS_TIME_H
7380 #include <sys/time.h>
7381 #else
7382 #include <time.h>
7383 #endif
7384 #endif
7385 #ifdef HAVE_UTIME_H
7386 #include <utime.h>
7387 #endif
7389 main ()
7391 static struct utimbuf x; x.actime = x.modtime;
7393 return 0;
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7398 case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7413 emacs_cv_struct_utimbuf=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 emacs_cv_struct_utimbuf=no
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7424 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7425 if test $emacs_cv_struct_utimbuf = yes; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_STRUCT_UTIMBUF 1
7429 _ACEOF
7433 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7435 if test "${ac_cv_type_signal+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #include <sys/types.h>
7445 #include <signal.h>
7448 main ()
7450 return *(signal (0, 0)) (0) == 1;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 ac_cv_type_signal=int
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_type_signal=void
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7483 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7485 cat >>confdefs.h <<_ACEOF
7486 #define RETSIGTYPE $ac_cv_type_signal
7487 _ACEOF
7491 { echo "$as_me:$LINENO: checking for speed_t" >&5
7492 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7493 if test "${emacs_cv_speed_t+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #include <termios.h>
7504 main ()
7506 speed_t x = 1;
7508 return 0;
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 emacs_cv_speed_t=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 emacs_cv_speed_t=no
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7539 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7540 if test $emacs_cv_speed_t = yes; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define HAVE_SPEED_T 1
7544 _ACEOF
7548 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7549 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7550 if test "${emacs_cv_struct_timeval+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #ifdef TIME_WITH_SYS_TIME
7560 #include <sys/time.h>
7561 #include <time.h>
7562 #else
7563 #ifdef HAVE_SYS_TIME_H
7564 #include <sys/time.h>
7565 #else
7566 #include <time.h>
7567 #endif
7568 #endif
7570 main ()
7572 static struct timeval x; x.tv_sec = x.tv_usec;
7574 return 0;
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (ac_try="$ac_compile"
7579 case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_compile") 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && {
7591 test -z "$ac_c_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
7594 emacs_cv_struct_timeval=yes
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 emacs_cv_struct_timeval=no
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7605 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7606 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7607 if test $emacs_cv_struct_timeval = yes; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_TIMEVAL 1
7611 _ACEOF
7615 { echo "$as_me:$LINENO: checking for struct exception" >&5
7616 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7617 if test "${emacs_cv_struct_exception+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <math.h>
7628 main ()
7630 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7632 return 0;
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 emacs_cv_struct_exception=yes
7653 else
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 emacs_cv_struct_exception=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7663 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7664 HAVE_EXCEPTION=$emacs_cv_struct_exception
7665 if test $emacs_cv_struct_exception != yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define NO_MATHERR 1
7669 _ACEOF
7674 for ac_header in sys/socket.h
7676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_res=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7686 else
7687 # Is the header compilable?
7688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 #include <$ac_header>
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 ac_header_compiler=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_header_compiler=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7726 echo "${ECHO_T}$ac_header_compiler" >&6; }
7728 # Is the header present?
7729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #include <$ac_header>
7738 _ACEOF
7739 if { (ac_try="$ac_cpp conftest.$ac_ext"
7740 case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } >/dev/null && {
7752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 }; then
7755 ac_header_preproc=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_header_preproc=no
7763 rm -f conftest.err conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6; }
7767 # So? What about this header?
7768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7769 yes:no: )
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7774 ac_header_preproc=yes
7776 no:yes:* )
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7791 esac
7792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 eval "$as_ac_Header=\$ac_header_preproc"
7799 ac_res=`eval echo '${'$as_ac_Header'}'`
7800 { echo "$as_me:$LINENO: result: $ac_res" >&5
7801 echo "${ECHO_T}$ac_res" >&6; }
7804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7805 cat >>confdefs.h <<_ACEOF
7806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 _ACEOF
7811 done
7814 for ac_header in net/if.h
7816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h. */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7829 #if HAVE_SYS_SOCKET_H
7830 #include <sys/socket.h>
7831 #endif
7833 #include <$ac_header>
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 eval "$as_ac_Header=yes"
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 eval "$as_ac_Header=no"
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 ac_res=`eval echo '${'$as_ac_Header'}'`
7863 { echo "$as_me:$LINENO: result: $ac_res" >&5
7864 echo "${ECHO_T}$ac_res" >&6; }
7865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 _ACEOF
7872 done
7875 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7876 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7877 if test "${ac_cv_struct_tm+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <sys/types.h>
7887 #include <time.h>
7890 main ()
7892 struct tm tm;
7893 int *p = &tm.tm_sec;
7894 return !p;
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (ac_try="$ac_compile"
7901 case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_compile") 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && {
7913 test -z "$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7915 } && test -s conftest.$ac_objext; then
7916 ac_cv_struct_tm=time.h
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 ac_cv_struct_tm=sys/time.h
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7927 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7928 if test $ac_cv_struct_tm = sys/time.h; then
7930 cat >>confdefs.h <<\_ACEOF
7931 #define TM_IN_SYS_TIME 1
7932 _ACEOF
7936 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7937 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7938 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7952 main ()
7954 static struct tm ac_aggr;
7955 if (ac_aggr.tm_zone)
7956 return 0;
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <$ac_cv_struct_tm>
7994 main ()
7996 static struct tm ac_aggr;
7997 if (sizeof ac_aggr.tm_zone)
7998 return 0;
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_member_struct_tm_tm_zone=yes
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_member_struct_tm_tm_zone=no
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8034 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8035 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8037 cat >>confdefs.h <<_ACEOF
8038 #define HAVE_STRUCT_TM_TM_ZONE 1
8039 _ACEOF
8044 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8046 cat >>confdefs.h <<\_ACEOF
8047 #define HAVE_TM_ZONE 1
8048 _ACEOF
8050 else
8051 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8052 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8053 if test "${ac_cv_have_decl_tzname+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 #include <time.h>
8065 main ()
8067 #ifndef tzname
8068 (void) tzname;
8069 #endif
8072 return 0;
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_have_decl_tzname=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_have_decl_tzname=no
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8103 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8104 if test $ac_cv_have_decl_tzname = yes; then
8106 cat >>confdefs.h <<_ACEOF
8107 #define HAVE_DECL_TZNAME 1
8108 _ACEOF
8111 else
8112 cat >>confdefs.h <<_ACEOF
8113 #define HAVE_DECL_TZNAME 0
8114 _ACEOF
8120 { echo "$as_me:$LINENO: checking for tzname" >&5
8121 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8122 if test "${ac_cv_var_tzname+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <time.h>
8132 #if !HAVE_DECL_TZNAME
8133 extern char *tzname[];
8134 #endif
8137 main ()
8139 return tzname[0][0];
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest$ac_exeext &&
8161 $as_test_x conftest$ac_exeext; then
8162 ac_cv_var_tzname=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_cv_var_tzname=no
8170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171 conftest$ac_exeext conftest.$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8174 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8175 if test $ac_cv_var_tzname = yes; then
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_TZNAME 1
8179 _ACEOF
8184 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8185 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8186 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <time.h>
8198 main ()
8200 static struct tm ac_aggr;
8201 if (ac_aggr.tm_gmtoff)
8202 return 0;
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_cv_member_struct_tm_tm_gmtoff=yes
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <time.h>
8238 main ()
8240 static struct tm ac_aggr;
8241 if (sizeof ac_aggr.tm_gmtoff)
8242 return 0;
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_member_struct_tm_tm_gmtoff=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_member_struct_tm_tm_gmtoff=no
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8278 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8279 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_TM_GMTOFF 1
8283 _ACEOF
8287 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8288 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8289 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 #if HAVE_SYS_SOCKET_H
8300 #include <sys/socket.h>
8301 #endif
8302 #if HAVE_NET_IF_H
8303 #include <net/if.h>
8304 #endif
8307 main ()
8309 static struct ifreq ac_aggr;
8310 if (ac_aggr.ifr_flags)
8311 return 0;
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_ifreq_ifr_flags=yes
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8347 #endif
8348 #if HAVE_NET_IF_H
8349 #include <net/if.h>
8350 #endif
8353 main ()
8355 static struct ifreq ac_aggr;
8356 if (sizeof ac_aggr.ifr_flags)
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_member_struct_ifreq_ifr_flags=yes
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_member_struct_ifreq_ifr_flags=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8393 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8394 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8396 cat >>confdefs.h <<_ACEOF
8397 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8398 _ACEOF
8402 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8403 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8404 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 $ac_includes_default
8414 #if HAVE_SYS_SOCKET_H
8415 #include <sys/socket.h>
8416 #endif
8417 #if HAVE_NET_IF_H
8418 #include <net/if.h>
8419 #endif
8422 main ()
8424 static struct ifreq ac_aggr;
8425 if (ac_aggr.ifr_hwaddr)
8426 return 0;
8428 return 0;
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #if HAVE_SYS_SOCKET_H
8461 #include <sys/socket.h>
8462 #endif
8463 #if HAVE_NET_IF_H
8464 #include <net/if.h>
8465 #endif
8468 main ()
8470 static struct ifreq ac_aggr;
8471 if (sizeof ac_aggr.ifr_hwaddr)
8472 return 0;
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8509 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8511 cat >>confdefs.h <<_ACEOF
8512 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8513 _ACEOF
8517 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8518 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8519 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 #if HAVE_SYS_SOCKET_H
8530 #include <sys/socket.h>
8531 #endif
8532 #if HAVE_NET_IF_H
8533 #include <net/if.h>
8534 #endif
8537 main ()
8539 static struct ifreq ac_aggr;
8540 if (ac_aggr.ifr_netmask)
8541 return 0;
8543 return 0;
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (ac_try="$ac_compile"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest.$ac_objext; then
8563 ac_cv_member_struct_ifreq_ifr_netmask=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 #if HAVE_SYS_SOCKET_H
8576 #include <sys/socket.h>
8577 #endif
8578 #if HAVE_NET_IF_H
8579 #include <net/if.h>
8580 #endif
8583 main ()
8585 static struct ifreq ac_aggr;
8586 if (sizeof ac_aggr.ifr_netmask)
8587 return 0;
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_netmask=yes
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_netmask=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8623 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8628 _ACEOF
8632 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8633 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8646 #endif
8647 #if HAVE_NET_IF_H
8648 #include <net/if.h>
8649 #endif
8652 main ()
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_broadaddr)
8656 return 0;
8658 return 0;
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h. */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8692 #endif
8693 #if HAVE_NET_IF_H
8694 #include <net/if.h>
8695 #endif
8698 main ()
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_broadaddr)
8702 return 0;
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.$ac_objext; then
8724 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8738 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8739 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8743 _ACEOF
8747 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8748 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8749 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 #if HAVE_SYS_SOCKET_H
8760 #include <sys/socket.h>
8761 #endif
8762 #if HAVE_NET_IF_H
8763 #include <net/if.h>
8764 #endif
8767 main ()
8769 static struct ifreq ac_aggr;
8770 if (ac_aggr.ifr_addr)
8771 return 0;
8773 return 0;
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (ac_try="$ac_compile"
8778 case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8793 ac_cv_member_struct_ifreq_ifr_addr=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h. */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 $ac_includes_default
8805 #if HAVE_SYS_SOCKET_H
8806 #include <sys/socket.h>
8807 #endif
8808 #if HAVE_NET_IF_H
8809 #include <net/if.h>
8810 #endif
8813 main ()
8815 static struct ifreq ac_aggr;
8816 if (sizeof ac_aggr.ifr_addr)
8817 return 0;
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8824 case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_addr=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_addr=no
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8853 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8858 _ACEOF
8865 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8866 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8867 if test "$ac_cv_prog_cc_c89" != no; then
8868 { echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6; }
8871 cat >>confdefs.h <<\_ACEOF
8872 #define PROTOTYPES 1
8873 _ACEOF
8876 cat >>confdefs.h <<\_ACEOF
8877 #define __PROTOTYPES 1
8878 _ACEOF
8880 else
8881 { echo "$as_me:$LINENO: result: no" >&5
8882 echo "${ECHO_T}no" >&6; }
8885 { echo "$as_me:$LINENO: checking for working volatile" >&5
8886 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8887 if test "${ac_cv_c_volatile+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8898 main ()
8901 volatile int x;
8902 int * volatile y = (int *) 0;
8903 return !x && !y;
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_compile") 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest.$ac_objext; then
8925 ac_cv_c_volatile=yes
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_cv_c_volatile=no
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8936 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8937 if test $ac_cv_c_volatile = no; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define volatile
8941 _ACEOF
8945 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8947 if test "${ac_cv_c_const+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8958 main ()
8960 /* FIXME: Include the comments suggested by Paul. */
8961 #ifndef __cplusplus
8962 /* Ultrix mips cc rejects this. */
8963 typedef int charset[2];
8964 const charset cs;
8965 /* SunOS 4.1.1 cc rejects this. */
8966 char const *const *pcpcc;
8967 char **ppc;
8968 /* NEC SVR4.0.2 mips cc rejects this. */
8969 struct point {int x, y;};
8970 static struct point const zero = {0,0};
8971 /* AIX XL C 1.02.0.0 rejects this.
8972 It does not let you subtract one const X* pointer from another in
8973 an arm of an if-expression whose if-part is not a constant
8974 expression */
8975 const char *g = "string";
8976 pcpcc = &g + (g ? g-g : 0);
8977 /* HPUX 7.0 cc rejects these. */
8978 ++pcpcc;
8979 ppc = (char**) pcpcc;
8980 pcpcc = (char const *const *) ppc;
8981 { /* SCO 3.2v4 cc rejects this. */
8982 char *t;
8983 char const *s = 0 ? (char *) 0 : (char const *) 0;
8985 *t++ = 0;
8986 if (s) return 0;
8988 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8989 int x[] = {25, 17};
8990 const int *foo = &x[0];
8991 ++foo;
8993 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8994 typedef const int *iptr;
8995 iptr p = 0;
8996 ++p;
8998 { /* AIX XL C 1.02.0.0 rejects this saying
8999 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9000 struct s { int j; const int *ap[3]; };
9001 struct s *b; b->j = 5;
9003 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9004 const int foo = 10;
9005 if (!foo) return 0;
9007 return !cs[0] && !zero.x;
9008 #endif
9011 return 0;
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.$ac_objext; then
9031 ac_cv_c_const=yes
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_cv_c_const=no
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9042 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9043 if test $ac_cv_c_const = no; then
9045 cat >>confdefs.h <<\_ACEOF
9046 #define const
9047 _ACEOF
9051 { echo "$as_me:$LINENO: checking for void * support" >&5
9052 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9053 if test "${emacs_cv_void_star+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9064 main ()
9066 void * foo;
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_compile") 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest.$ac_objext; then
9088 emacs_cv_void_star=yes
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 emacs_cv_void_star=no
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9099 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9100 if test $emacs_cv_void_star = yes; then
9101 cat >>confdefs.h <<\_ACEOF
9102 #define POINTER_TYPE void
9103 _ACEOF
9105 else
9106 cat >>confdefs.h <<\_ACEOF
9107 #define POINTER_TYPE char
9108 _ACEOF
9116 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9117 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9118 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9119 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 cat >conftest.make <<\_ACEOF
9123 SHELL = /bin/sh
9124 all:
9125 @echo '@@@%%%=$(MAKE)=@@@%%%'
9126 _ACEOF
9127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9129 *@@@%%%=?*=@@@%%%*)
9130 eval ac_cv_prog_make_${ac_make}_set=yes;;
9132 eval ac_cv_prog_make_${ac_make}_set=no;;
9133 esac
9134 rm -f conftest.make
9136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9137 { echo "$as_me:$LINENO: result: yes" >&5
9138 echo "${ECHO_T}yes" >&6; }
9139 SET_MAKE=
9140 else
9141 { echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6; }
9143 SET_MAKE="MAKE=${MAKE-make}"
9147 { echo "$as_me:$LINENO: checking for long file names" >&5
9148 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9149 if test "${ac_cv_sys_long_file_names+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 ac_cv_sys_long_file_names=yes
9153 # Test for long file names in all the places we know might matter:
9154 # . the current directory, where building will happen
9155 # $prefix/lib where we will be installing things
9156 # $exec_prefix/lib likewise
9157 # $TMPDIR if set, where it might want to write temporary files
9158 # /tmp where it might want to write temporary files
9159 # /var/tmp likewise
9160 # /usr/tmp likewise
9161 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9162 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9163 # in the usual case where exec_prefix is '${prefix}'.
9164 case $ac_dir in #(
9165 . | /* | ?:[\\/]*) ;; #(
9166 *) continue;;
9167 esac
9168 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9169 ac_xdir=$ac_dir/cf$$
9170 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9171 ac_tf1=$ac_xdir/conftest9012345
9172 ac_tf2=$ac_xdir/conftest9012346
9173 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9174 ac_cv_sys_long_file_names=no
9175 rm -f -r "$ac_xdir" 2>/dev/null
9176 test $ac_cv_sys_long_file_names = no && break
9177 done
9179 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9180 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9181 if test $ac_cv_sys_long_file_names = yes; then
9183 cat >>confdefs.h <<\_ACEOF
9184 #define HAVE_LONG_FILE_NAMES 1
9185 _ACEOF
9190 #### Choose a window system.
9192 { echo "$as_me:$LINENO: checking for X" >&5
9193 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9196 # Check whether --with-x was given.
9197 if test "${with_x+set}" = set; then
9198 withval=$with_x;
9201 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9202 if test "x$with_x" = xno; then
9203 # The user explicitly disabled X.
9204 have_x=disabled
9205 else
9206 case $x_includes,$x_libraries in #(
9207 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9208 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9209 { (exit 1); exit 1; }; };; #(
9210 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213 # One or both of the vars are not set, and there is no cached value.
9214 ac_x_includes=no ac_x_libraries=no
9215 rm -f -r conftest.dir
9216 if mkdir conftest.dir; then
9217 cd conftest.dir
9218 cat >Imakefile <<'_ACEOF'
9219 incroot:
9220 @echo incroot='${INCROOT}'
9221 usrlibdir:
9222 @echo usrlibdir='${USRLIBDIR}'
9223 libdir:
9224 @echo libdir='${LIBDIR}'
9225 _ACEOF
9226 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9228 for ac_var in incroot usrlibdir libdir; do
9229 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9230 done
9231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9232 for ac_extension in a so sl; do
9233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9234 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9235 ac_im_usrlibdir=$ac_im_libdir; break
9237 done
9238 # Screen out bogus values from the imake configuration. They are
9239 # bogus both because they are the default anyway, and because
9240 # using them would break gcc on systems where it needs fixed includes.
9241 case $ac_im_incroot in
9242 /usr/include) ac_x_includes= ;;
9243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9244 esac
9245 case $ac_im_usrlibdir in
9246 /usr/lib | /lib) ;;
9247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9248 esac
9250 cd ..
9251 rm -f -r conftest.dir
9254 # Standard set of common directories for X headers.
9255 # Check X11 before X11Rn because it is often a symlink to the current release.
9256 ac_x_header_dirs='
9257 /usr/X11/include
9258 /usr/X11R6/include
9259 /usr/X11R5/include
9260 /usr/X11R4/include
9262 /usr/include/X11
9263 /usr/include/X11R6
9264 /usr/include/X11R5
9265 /usr/include/X11R4
9267 /usr/local/X11/include
9268 /usr/local/X11R6/include
9269 /usr/local/X11R5/include
9270 /usr/local/X11R4/include
9272 /usr/local/include/X11
9273 /usr/local/include/X11R6
9274 /usr/local/include/X11R5
9275 /usr/local/include/X11R4
9277 /usr/X386/include
9278 /usr/x386/include
9279 /usr/XFree86/include/X11
9281 /usr/include
9282 /usr/local/include
9283 /usr/unsupported/include
9284 /usr/athena/include
9285 /usr/local/x11r5/include
9286 /usr/lpp/Xamples/include
9288 /usr/openwin/include
9289 /usr/openwin/share/include'
9291 if test "$ac_x_includes" = no; then
9292 # Guess where to find include files, by looking for Xlib.h.
9293 # First, try using that file with no special directory specified.
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #include <X11/Xlib.h>
9301 _ACEOF
9302 if { (ac_try="$ac_cpp conftest.$ac_ext"
9303 case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } >/dev/null && {
9315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 }; then
9318 # We can compile using X headers with no special include directory.
9319 ac_x_includes=
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 for ac_dir in $ac_x_header_dirs; do
9325 if test -r "$ac_dir/X11/Xlib.h"; then
9326 ac_x_includes=$ac_dir
9327 break
9329 done
9332 rm -f conftest.err conftest.$ac_ext
9333 fi # $ac_x_includes = no
9335 if test "$ac_x_libraries" = no; then
9336 # Check for the libraries.
9337 # See if we find them without any special options.
9338 # Don't add to $LIBS permanently.
9339 ac_save_LIBS=$LIBS
9340 LIBS="-lX11 $LIBS"
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #include <X11/Xlib.h>
9349 main ()
9351 XrmInitialize ()
9353 return 0;
9355 _ACEOF
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9358 case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361 esac
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_link") 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_c_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest$ac_exeext &&
9373 $as_test_x conftest$ac_exeext; then
9374 LIBS=$ac_save_LIBS
9375 # We can link X programs with no special library path.
9376 ac_x_libraries=
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 LIBS=$ac_save_LIBS
9382 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9384 # Don't even attempt the hair of trying to link an X program!
9385 for ac_extension in a so sl; do
9386 if test -r "$ac_dir/libX11.$ac_extension"; then
9387 ac_x_libraries=$ac_dir
9388 break 2
9390 done
9391 done
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395 conftest$ac_exeext conftest.$ac_ext
9396 fi # $ac_x_libraries = no
9398 case $ac_x_includes,$ac_x_libraries in #(
9399 no,* | *,no | *\'*)
9400 # Didn't find X, or a directory has "'" in its name.
9401 ac_cv_have_x="have_x=no";; #(
9403 # Record where we found X for the cache.
9404 ac_cv_have_x="have_x=yes\
9405 ac_x_includes='$ac_x_includes'\
9406 ac_x_libraries='$ac_x_libraries'"
9407 esac
9409 ;; #(
9410 *) have_x=yes;;
9411 esac
9412 eval "$ac_cv_have_x"
9413 fi # $with_x != no
9415 if test "$have_x" != yes; then
9416 { echo "$as_me:$LINENO: result: $have_x" >&5
9417 echo "${ECHO_T}$have_x" >&6; }
9418 no_x=yes
9419 else
9420 # If each of the values was on the command line, it overrides each guess.
9421 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9422 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9423 # Update the cache value to reflect the command line values.
9424 ac_cv_have_x="have_x=yes\
9425 ac_x_includes='$x_includes'\
9426 ac_x_libraries='$x_libraries'"
9427 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9428 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9431 if test "$no_x" = yes; then
9432 window_system=none
9433 else
9434 window_system=x11
9437 if test "${x_libraries}" != NONE; then
9438 if test -n "${x_libraries}"; then
9439 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9440 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9442 x_default_search_path=""
9443 x_search_path=${x_libraries}
9444 if test -z "${x_search_path}"; then
9445 x_search_path=/usr/lib
9447 for x_library in `echo ${x_search_path}: | \
9448 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9449 x_search_path="\
9450 ${x_library}/X11/%L/%T/%N%C%S:\
9451 ${x_library}/X11/%l/%T/%N%C%S:\
9452 ${x_library}/X11/%T/%N%C%S:\
9453 ${x_library}/X11/%L/%T/%N%S:\
9454 ${x_library}/X11/%l/%T/%N%S:\
9455 ${x_library}/X11/%T/%N%S"
9456 if test x"${x_default_search_path}" = x; then
9457 x_default_search_path=${x_search_path}
9458 else
9459 x_default_search_path="${x_search_path}:${x_default_search_path}"
9461 done
9463 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9464 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9467 if test x"${x_includes}" = x; then
9468 bitmapdir=/usr/include/X11/bitmaps
9469 else
9470 # accumulate include directories that have X11 bitmap subdirectories
9471 bmd_acc="dummyval"
9472 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9473 if test -d "${bmd}/X11/bitmaps"; then
9474 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9476 if test -d "${bmd}/bitmaps"; then
9477 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9479 done
9480 if test ${bmd_acc} != "dummyval"; then
9481 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9485 HAVE_CARBON=no
9486 if test "${with_carbon}" != no; then
9487 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9488 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9489 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9490 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9494 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9495 else
9496 # Is the header compilable?
9497 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9498 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 $ac_includes_default
9506 #include <Carbon/Carbon.h>
9507 _ACEOF
9508 rm -f conftest.$ac_objext
9509 if { (ac_try="$ac_compile"
9510 case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_compile") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest.$ac_objext; then
9525 ac_header_compiler=yes
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_header_compiler=no
9533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9535 echo "${ECHO_T}$ac_header_compiler" >&6; }
9537 # Is the header present?
9538 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9539 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 #include <Carbon/Carbon.h>
9547 _ACEOF
9548 if { (ac_try="$ac_cpp conftest.$ac_ext"
9549 case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null && {
9561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 }; then
9564 ac_header_preproc=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_header_preproc=no
9572 rm -f conftest.err conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9574 echo "${ECHO_T}$ac_header_preproc" >&6; }
9576 # So? What about this header?
9577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9578 yes:no: )
9579 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9580 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9582 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9583 ac_header_preproc=yes
9585 no:yes:* )
9586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9587 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9591 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9593 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9595 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9597 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9600 esac
9601 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9602 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9603 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9608 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9609 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9612 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9613 HAVE_CARBON=yes
9618 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9619 if test "${with_carbon+set}" != set \
9620 && test "${carbon_appdir_x+set}" != set; then
9621 for var in with_x with_x_toolkit with_gtk with_xim \
9622 with_xpm with_jpeg with_tiff with_gif with_png; do
9623 if eval test \"\${$var+set}\" = set; then
9624 HAVE_CARBON=no
9625 break
9627 done
9630 if test "${HAVE_CARBON}" = yes; then
9631 window_system=mac
9634 case "${window_system}" in
9635 x11 )
9636 HAVE_X_WINDOWS=yes
9637 HAVE_X11=yes
9638 case "${with_x_toolkit}" in
9639 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9640 motif ) USE_X_TOOLKIT=MOTIF ;;
9641 gtk ) with_gtk=yes
9642 USE_X_TOOLKIT=none ;;
9643 no ) USE_X_TOOLKIT=none ;;
9645 if test x"$with_gtk" = xyes; then
9646 USE_X_TOOLKIT=none
9647 else
9648 USE_X_TOOLKIT=maybe
9651 esac
9653 mac | none )
9654 HAVE_X_WINDOWS=no
9655 HAVE_X11=no
9656 USE_X_TOOLKIT=none
9658 esac
9660 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9661 # Extract the first word of "X", so it can be a program name with args.
9662 set dummy X; ac_word=$2
9663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9665 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 if test -n "$HAVE_XSERVER"; then
9669 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_HAVE_XSERVER="true"
9679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9686 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9689 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9690 if test -n "$HAVE_XSERVER"; then
9691 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9692 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9693 else
9694 { echo "$as_me:$LINENO: result: no" >&5
9695 echo "${ECHO_T}no" >&6; }
9699 if test "$HAVE_XSERVER" = true ||
9700 test -n "$DISPLAY" ||
9701 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9702 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9703 were found. You should install the relevant development files for X
9704 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9705 sure you have development files for image handling, i.e.
9706 tiff, gif, jpeg, png and xpm.
9707 If you are sure you want Emacs compiled without X window support, pass
9708 --without-x
9709 to configure." >&5
9710 echo "$as_me: error: You seem to be running X, but no X development libraries
9711 were found. You should install the relevant development files for X
9712 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9713 sure you have development files for image handling, i.e.
9714 tiff, gif, jpeg, png and xpm.
9715 If you are sure you want Emacs compiled without X window support, pass
9716 --without-x
9717 to configure." >&2;}
9718 { (exit 1); exit 1; }; }
9722 ### If we're using X11, we should use the X menu package.
9723 HAVE_MENUS=no
9724 case ${HAVE_X11} in
9725 yes ) HAVE_MENUS=yes ;;
9726 esac
9728 if test "${opsys}" = "hpux9"; then
9729 case "${x_libraries}" in
9730 *X11R4* )
9731 opsysfile="s/hpux9-x11r4.h"
9733 esac
9736 if test "${opsys}" = "hpux9shr"; then
9737 case "${x_libraries}" in
9738 *X11R4* )
9739 opsysfile="s/hpux9shxr4.h"
9741 esac
9744 ### Compute the unexec source name from the object name.
9745 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9747 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9748 # Assume not, until told otherwise.
9749 GNU_MALLOC=yes
9750 doug_lea_malloc=yes
9751 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9752 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9753 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764 #define malloc_get_state innocuous_malloc_get_state
9766 /* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char malloc_get_state (); below.
9768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769 <limits.h> exists even on freestanding compilers. */
9771 #ifdef __STDC__
9772 # include <limits.h>
9773 #else
9774 # include <assert.h>
9775 #endif
9777 #undef malloc_get_state
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char malloc_get_state ();
9786 /* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
9789 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9790 choke me
9791 #endif
9794 main ()
9796 return malloc_get_state ();
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext &&
9818 $as_test_x conftest$ac_exeext; then
9819 ac_cv_func_malloc_get_state=yes
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_func_malloc_get_state=no
9827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9828 conftest$ac_exeext conftest.$ac_ext
9830 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9831 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9832 if test $ac_cv_func_malloc_get_state = yes; then
9834 else
9835 doug_lea_malloc=no
9838 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9839 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9840 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9851 #define malloc_set_state innocuous_malloc_set_state
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char malloc_set_state (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9858 #ifdef __STDC__
9859 # include <limits.h>
9860 #else
9861 # include <assert.h>
9862 #endif
9864 #undef malloc_set_state
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char malloc_set_state ();
9873 /* The GNU C library defines this for functions which it implements
9874 to always fail with ENOSYS. Some functions are actually named
9875 something starting with __ and the normal name is an alias. */
9876 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9877 choke me
9878 #endif
9881 main ()
9883 return malloc_set_state ();
9885 return 0;
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
9906 ac_cv_func_malloc_set_state=yes
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_func_malloc_set_state=no
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9918 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9919 if test $ac_cv_func_malloc_set_state = yes; then
9921 else
9922 doug_lea_malloc=no
9925 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9926 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9927 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 extern void (* __after_morecore_hook)();
9938 main ()
9940 __after_morecore_hook = 0
9942 return 0;
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest$ac_exeext &&
9962 $as_test_x conftest$ac_exeext; then
9963 emacs_cv_var___after_morecore_hook=yes
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 emacs_cv_var___after_morecore_hook=no
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9974 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9975 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9976 if test $emacs_cv_var___after_morecore_hook = no; then
9977 doug_lea_malloc=no
9979 if test "${system_malloc}" = "yes"; then
9980 GNU_MALLOC=no
9981 GNU_MALLOC_reason="
9982 (The GNU allocators don't work with this system configuration.)"
9984 if test "$doug_lea_malloc" = "yes" ; then
9985 if test "$GNU_MALLOC" = yes ; then
9986 GNU_MALLOC_reason="
9987 (Using Doug Lea's new malloc from the GNU C Library.)"
9990 cat >>confdefs.h <<\_ACEOF
9991 #define DOUG_LEA_MALLOC 1
9992 _ACEOF
9996 if test x"${REL_ALLOC}" = x; then
9997 REL_ALLOC=${GNU_MALLOC}
10003 for ac_header in stdlib.h unistd.h
10005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_res=`eval echo '${'$as_ac_Header'}'`
10013 { echo "$as_me:$LINENO: result: $ac_res" >&5
10014 echo "${ECHO_T}$ac_res" >&6; }
10015 else
10016 # Is the header compilable?
10017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 #include <$ac_header>
10027 _ACEOF
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_compile") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && {
10042 test -z "$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 } && test -s conftest.$ac_objext; then
10045 ac_header_compiler=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_header_compiler=no
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10055 echo "${ECHO_T}$ac_header_compiler" >&6; }
10057 # Is the header present?
10058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <$ac_header>
10067 _ACEOF
10068 if { (ac_try="$ac_cpp conftest.$ac_ext"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } >/dev/null && {
10081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 }; then
10084 ac_header_preproc=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_header_preproc=no
10092 rm -f conftest.err conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10094 echo "${ECHO_T}$ac_header_preproc" >&6; }
10096 # So? What about this header?
10097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10098 yes:no: )
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10103 ac_header_preproc=yes
10105 no:yes:* )
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10120 esac
10121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 eval "$as_ac_Header=\$ac_header_preproc"
10128 ac_res=`eval echo '${'$as_ac_Header'}'`
10129 { echo "$as_me:$LINENO: result: $ac_res" >&5
10130 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10136 _ACEOF
10140 done
10143 for ac_func in getpagesize
10145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10166 #ifdef __STDC__
10167 # include <limits.h>
10168 #else
10169 # include <assert.h>
10170 #endif
10172 #undef $ac_func
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10177 #ifdef __cplusplus
10178 extern "C"
10179 #endif
10180 char $ac_func ();
10181 /* The GNU C library defines this for functions which it implements
10182 to always fail with ENOSYS. Some functions are actually named
10183 something starting with __ and the normal name is an alias. */
10184 #if defined __stub_$ac_func || defined __stub___$ac_func
10185 choke me
10186 #endif
10189 main ()
10191 return $ac_func ();
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 eval "$as_ac_var=yes"
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 eval "$as_ac_var=no"
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10225 ac_res=`eval echo '${'$as_ac_var'}'`
10226 { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10228 if test `eval echo '${'$as_ac_var'}'` = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10231 _ACEOF
10234 done
10236 { echo "$as_me:$LINENO: checking for working mmap" >&5
10237 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10238 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 if test "$cross_compiling" = yes; then
10242 ac_cv_func_mmap_fixed_mapped=no
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 /* malloc might have been renamed as rpl_malloc. */
10252 #undef malloc
10254 /* Thanks to Mike Haertel and Jim Avera for this test.
10255 Here is a matrix of mmap possibilities:
10256 mmap private not fixed
10257 mmap private fixed at somewhere currently unmapped
10258 mmap private fixed at somewhere already mapped
10259 mmap shared not fixed
10260 mmap shared fixed at somewhere currently unmapped
10261 mmap shared fixed at somewhere already mapped
10262 For private mappings, we should verify that changes cannot be read()
10263 back from the file, nor mmap's back from the file at a different
10264 address. (There have been systems where private was not correctly
10265 implemented like the infamous i386 svr4.0, and systems where the
10266 VM page cache was not coherent with the file system buffer cache
10267 like early versions of FreeBSD and possibly contemporary NetBSD.)
10268 For shared mappings, we should conversely verify that changes get
10269 propagated back to all the places they're supposed to be.
10271 Grep wants private fixed already mapped.
10272 The main things grep needs to know about mmap are:
10273 * does it exist and is it safe to write into the mmap'd area
10274 * how to use it (BSD variants) */
10276 #include <fcntl.h>
10277 #include <sys/mman.h>
10279 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10280 char *malloc ();
10281 #endif
10283 /* This mess was copied from the GNU getpagesize.h. */
10284 #ifndef HAVE_GETPAGESIZE
10285 /* Assume that all systems that can run configure have sys/param.h. */
10286 # ifndef HAVE_SYS_PARAM_H
10287 # define HAVE_SYS_PARAM_H 1
10288 # endif
10290 # ifdef _SC_PAGESIZE
10291 # define getpagesize() sysconf(_SC_PAGESIZE)
10292 # else /* no _SC_PAGESIZE */
10293 # ifdef HAVE_SYS_PARAM_H
10294 # include <sys/param.h>
10295 # ifdef EXEC_PAGESIZE
10296 # define getpagesize() EXEC_PAGESIZE
10297 # else /* no EXEC_PAGESIZE */
10298 # ifdef NBPG
10299 # define getpagesize() NBPG * CLSIZE
10300 # ifndef CLSIZE
10301 # define CLSIZE 1
10302 # endif /* no CLSIZE */
10303 # else /* no NBPG */
10304 # ifdef NBPC
10305 # define getpagesize() NBPC
10306 # else /* no NBPC */
10307 # ifdef PAGESIZE
10308 # define getpagesize() PAGESIZE
10309 # endif /* PAGESIZE */
10310 # endif /* no NBPC */
10311 # endif /* no NBPG */
10312 # endif /* no EXEC_PAGESIZE */
10313 # else /* no HAVE_SYS_PARAM_H */
10314 # define getpagesize() 8192 /* punt totally */
10315 # endif /* no HAVE_SYS_PARAM_H */
10316 # endif /* no _SC_PAGESIZE */
10318 #endif /* no HAVE_GETPAGESIZE */
10321 main ()
10323 char *data, *data2, *data3;
10324 int i, pagesize;
10325 int fd;
10327 pagesize = getpagesize ();
10329 /* First, make a file with some known garbage in it. */
10330 data = (char *) malloc (pagesize);
10331 if (!data)
10332 return 1;
10333 for (i = 0; i < pagesize; ++i)
10334 *(data + i) = rand ();
10335 umask (0);
10336 fd = creat ("conftest.mmap", 0600);
10337 if (fd < 0)
10338 return 1;
10339 if (write (fd, data, pagesize) != pagesize)
10340 return 1;
10341 close (fd);
10343 /* Next, try to mmap the file at a fixed address which already has
10344 something else allocated at it. If we can, also make sure that
10345 we see the same garbage. */
10346 fd = open ("conftest.mmap", O_RDWR);
10347 if (fd < 0)
10348 return 1;
10349 data2 = (char *) malloc (2 * pagesize);
10350 if (!data2)
10351 return 1;
10352 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10355 return 1;
10356 for (i = 0; i < pagesize; ++i)
10357 if (*(data + i) != *(data2 + i))
10358 return 1;
10360 /* Finally, make sure that changes to the mapped area do not
10361 percolate back to the file as seen by read(). (This is a bug on
10362 some variants of i386 svr4.0.) */
10363 for (i = 0; i < pagesize; ++i)
10364 *(data2 + i) = *(data2 + i) + 1;
10365 data3 = (char *) malloc (pagesize);
10366 if (!data3)
10367 return 1;
10368 if (read (fd, data3, pagesize) != pagesize)
10369 return 1;
10370 for (i = 0; i < pagesize; ++i)
10371 if (*(data + i) != *(data3 + i))
10372 return 1;
10373 close (fd);
10374 return 0;
10376 _ACEOF
10377 rm -f conftest$ac_exeext
10378 if { (ac_try="$ac_link"
10379 case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_link") 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 ac_cv_func_mmap_fixed_mapped=yes
10398 else
10399 echo "$as_me: program exited with status $ac_status" >&5
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ( exit $ac_status )
10404 ac_cv_func_mmap_fixed_mapped=no
10406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10412 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10413 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_MMAP 1
10417 _ACEOF
10420 rm -f conftest.mmap
10422 if test $use_mmap_for_buffers = yes; then
10423 REL_ALLOC=no
10426 LIBS="$libsrc_libs $LIBS"
10429 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10430 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10431 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 ac_check_lib_save_LIBS=$LIBS
10435 LIBS="-ldnet $LIBS"
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10443 /* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 char dnet_ntoa ();
10451 main ()
10453 return dnet_ntoa ();
10455 return 0;
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext &&
10475 $as_test_x conftest$ac_exeext; then
10476 ac_cv_lib_dnet_dnet_ntoa=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_lib_dnet_dnet_ntoa=no
10484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10489 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10490 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_LIBDNET 1
10493 _ACEOF
10495 LIBS="-ldnet $LIBS"
10500 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10501 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10502 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505 ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-lXbsd $LIBS"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10516 main ()
10518 return main ();
10520 return 0;
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest$ac_exeext &&
10540 $as_test_x conftest$ac_exeext; then
10541 ac_cv_lib_Xbsd_main=yes
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_cv_lib_Xbsd_main=no
10549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10554 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10555 if test $ac_cv_lib_Xbsd_main = yes; then
10556 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10561 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10562 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10563 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lpthreads $LIBS"
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 char cma_open ();
10583 main ()
10585 return cma_open ();
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (ac_try="$ac_link"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_link") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest$ac_exeext &&
10607 $as_test_x conftest$ac_exeext; then
10608 ac_cv_lib_pthreads_cma_open=yes
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_cv_lib_pthreads_cma_open=no
10616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LIBS=$ac_check_lib_save_LIBS
10620 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10621 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10622 if test $ac_cv_lib_pthreads_cma_open = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_LIBPTHREADS 1
10625 _ACEOF
10627 LIBS="-lpthreads $LIBS"
10632 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10633 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10634 if test -d /usr/X386/include; then
10635 HAVE_XFREE386=yes
10636 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10637 else
10638 HAVE_XFREE386=no
10640 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10641 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10644 case ${host_os} in
10645 aix*)
10646 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10647 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10648 if test "${gdb_cv_bigtoc+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10652 case $GCC in
10653 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10654 *) gdb_cv_bigtoc=-bbigtoc ;;
10655 esac
10657 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10666 main ()
10668 int i;
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext &&
10690 $as_test_x conftest$ac_exeext; then
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 gdb_cv_bigtoc=
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700 conftest$ac_exeext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10704 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10706 esac
10708 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10709 # used for the tests that follow. We set them back to REAL_CFLAGS and
10710 # REAL_CPPFLAGS later on.
10712 REAL_CPPFLAGS="$CPPFLAGS"
10714 if test "${HAVE_X11}" = "yes"; then
10715 DEFS="$C_SWITCH_X_SITE $DEFS"
10716 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10717 LIBS="$LIBX $LIBS"
10718 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10719 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10721 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10722 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10723 # but it's more convenient here to set LD_RUN_PATH
10724 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10725 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10726 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10727 export LD_RUN_PATH
10730 if test "${opsys}" = "gnu-linux"; then
10731 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10732 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10741 main ()
10743 XOpenDisplay ("foo");
10745 return 0;
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (ac_try="$ac_link"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext &&
10765 $as_test_x conftest$ac_exeext; then
10766 xlinux_first_failure=no
10767 else
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 xlinux_first_failure=yes
10774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10775 conftest$ac_exeext conftest.$ac_ext
10776 if test "${xlinux_first_failure}" = "yes"; then
10777 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10778 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10779 OLD_CPPFLAGS="$CPPFLAGS"
10780 OLD_LIBS="$LIBS"
10781 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10782 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10783 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10784 LIBS="$LIBS -b i486-linuxaout"
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10793 main ()
10795 XOpenDisplay ("foo");
10797 return 0;
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 xlinux_second_failure=no
10819 else
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 xlinux_second_failure=yes
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10828 if test "${xlinux_second_failure}" = "yes"; then
10829 # If we get the same failure with -b, there is no use adding -b.
10830 # So take it out. This plays safe.
10831 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10832 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10833 CPPFLAGS="$OLD_CPPFLAGS"
10834 LIBS="$OLD_LIBS"
10835 { echo "$as_me:$LINENO: result: no" >&5
10836 echo "${ECHO_T}no" >&6; }
10837 else
10838 { echo "$as_me:$LINENO: result: yes" >&5
10839 echo "${ECHO_T}yes" >&6; }
10841 else
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10847 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10848 # header files included from there.
10849 { echo "$as_me:$LINENO: checking for Xkb" >&5
10850 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 #include <X11/Xlib.h>
10858 #include <X11/XKBlib.h>
10860 main ()
10862 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10864 return 0;
10866 _ACEOF
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_link") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest$ac_exeext &&
10884 $as_test_x conftest$ac_exeext; then
10885 emacs_xkb=yes
10886 else
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 emacs_xkb=no
10893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894 conftest$ac_exeext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10896 echo "${ECHO_T}$emacs_xkb" >&6; }
10897 if test $emacs_xkb = yes; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_XKBGETKEYBOARD 1
10901 _ACEOF
10909 for ac_func in XrmSetDatabase XScreenResourceString \
10910 XScreenNumberOfScreen XSetWMProtocols
10912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10933 #ifdef __STDC__
10934 # include <limits.h>
10935 #else
10936 # include <assert.h>
10937 #endif
10939 #undef $ac_func
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944 #ifdef __cplusplus
10945 extern "C"
10946 #endif
10947 char $ac_func ();
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10952 choke me
10953 #endif
10956 main ()
10958 return $ac_func ();
10960 return 0;
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 eval "$as_ac_var=yes"
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 eval "$as_ac_var=no"
10989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10992 ac_res=`eval echo '${'$as_ac_var'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10995 if test `eval echo '${'$as_ac_var'}'` = yes; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10998 _ACEOF
11001 done
11005 if test "${window_system}" = "x11"; then
11006 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11007 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11008 if test "${emacs_cv_x11_version_6+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <X11/Xlib.h>
11019 main ()
11021 #if XlibSpecificationRelease < 6
11022 fail;
11023 #endif
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_link") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest$ac_exeext &&
11046 $as_test_x conftest$ac_exeext; then
11047 emacs_cv_x11_version_6=yes
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 emacs_cv_x11_version_6=no
11055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11056 conftest$ac_exeext conftest.$ac_ext
11059 if test $emacs_cv_x11_version_6 = yes; then
11060 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11061 echo "${ECHO_T}6 or newer" >&6; }
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_X11R6 1
11065 _ACEOF
11067 else
11068 { echo "$as_me:$LINENO: result: before 6" >&5
11069 echo "${ECHO_T}before 6" >&6; }
11073 if test "${window_system}" = "x11"; then
11074 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11075 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11076 if test "${emacs_cv_x11_version_5+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 #include <X11/Xlib.h>
11087 main ()
11089 #if XlibSpecificationRelease < 5
11090 fail;
11091 #endif
11094 return 0;
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest$ac_exeext &&
11114 $as_test_x conftest$ac_exeext; then
11115 emacs_cv_x11_version_5=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 emacs_cv_x11_version_5=no
11123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11124 conftest$ac_exeext conftest.$ac_ext
11127 if test $emacs_cv_x11_version_5 = yes; then
11128 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11129 echo "${ECHO_T}5 or newer" >&6; }
11130 HAVE_X11R5=yes
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_X11R5 1
11134 _ACEOF
11136 else
11137 HAVE_X11R5=no
11138 { echo "$as_me:$LINENO: result: before 5" >&5
11139 echo "${ECHO_T}before 5" >&6; }
11143 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11144 HAVE_RSVG=no
11145 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11146 if test "${with_rsvg}" != "no"; then
11147 if test "X${with_pkg_config_prog}" != X; then
11148 PKG_CONFIG="${with_pkg_config_prog}"
11151 RSVG_REQUIRED=2.0.0
11152 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11155 succeeded=no
11157 if test -z "$PKG_CONFIG"; then
11158 # Extract the first word of "pkg-config", so it can be a program name with args.
11159 set dummy pkg-config; ac_word=$2
11160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11162 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 case $PKG_CONFIG in
11166 [\\/]* | ?:[\\/]*)
11167 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11177 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11181 done
11182 done
11183 IFS=$as_save_IFS
11185 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11187 esac
11189 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11190 if test -n "$PKG_CONFIG"; then
11191 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11192 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11193 else
11194 { echo "$as_me:$LINENO: result: no" >&5
11195 echo "${ECHO_T}no" >&6; }
11201 if test "$PKG_CONFIG" = "no" ; then
11203 else
11204 PKG_CONFIG_MIN_VERSION=0.9.0
11205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11206 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11207 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11209 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11210 { echo "$as_me:$LINENO: result: yes" >&5
11211 echo "${ECHO_T}yes" >&6; }
11212 succeeded=yes
11214 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11215 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11216 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11217 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11218 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11220 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11221 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11222 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11223 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11224 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11225 else
11226 { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11228 RSVG_CFLAGS=""
11229 RSVG_LIBS=""
11230 ## If we have a custom action on failure, don't print errors, but
11231 ## do set a variable so people can do so.
11232 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11238 else
11239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11244 if test $succeeded = yes; then
11246 else
11253 if test ".${RSVG_CFLAGS}" != "."; then
11254 HAVE_RSVG=yes
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_RSVG 1
11258 _ACEOF
11260 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11261 LIBS="$RSVG_LIBS $LIBS"
11267 HAVE_GTK=no
11268 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11269 USE_X_TOOLKIT=none
11271 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11272 test "$USE_X_TOOLKIT" = "maybe"; then
11273 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11274 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11275 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11276 { (exit 1); exit 1; }; };
11278 GLIB_REQUIRED=2.4
11279 GTK_REQUIRED=2.4
11280 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11282 if test "X${with_pkg_config_prog}" != X; then
11283 PKG_CONFIG="${with_pkg_config_prog}"
11286 succeeded=no
11288 if test -z "$PKG_CONFIG"; then
11289 # Extract the first word of "pkg-config", so it can be a program name with args.
11290 set dummy pkg-config; ac_word=$2
11291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 case $PKG_CONFIG in
11297 [\\/]* | ?:[\\/]*)
11298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11312 done
11313 done
11314 IFS=$as_save_IFS
11316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11318 esac
11320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11321 if test -n "$PKG_CONFIG"; then
11322 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11323 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11324 else
11325 { echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6; }
11332 if test "$PKG_CONFIG" = "no" ; then
11333 pkg_check_gtk=no
11334 else
11335 PKG_CONFIG_MIN_VERSION=0.9.0
11336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11337 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11338 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11340 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11341 { echo "$as_me:$LINENO: result: yes" >&5
11342 echo "${ECHO_T}yes" >&6; }
11343 succeeded=yes
11345 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11346 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11347 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11348 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11349 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11351 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11352 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11353 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11354 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11355 echo "${ECHO_T}$GTK_LIBS" >&6; }
11356 else
11357 { echo "$as_me:$LINENO: result: no" >&5
11358 echo "${ECHO_T}no" >&6; }
11359 GTK_CFLAGS=""
11360 GTK_LIBS=""
11361 ## If we have a custom action on failure, don't print errors, but
11362 ## do set a variable so people can do so.
11363 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11369 else
11370 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11371 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11375 if test $succeeded = yes; then
11376 pkg_check_gtk=yes
11377 else
11378 pkg_check_gtk=no
11381 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11382 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11383 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11384 { (exit 1); exit 1; }; }
11389 if test x"$pkg_check_gtk" = xyes; then
11393 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11394 CFLAGS="$CFLAGS $GTK_CFLAGS"
11395 LIBS="$GTK_LIBS $LIBS"
11396 GTK_COMPILES=no
11398 for ac_func in gtk_main
11400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define $ac_func innocuous_$ac_func
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11427 #undef $ac_func
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char $ac_func ();
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11440 choke me
11441 #endif
11444 main ()
11446 return $ac_func ();
11448 return 0;
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11469 eval "$as_ac_var=yes"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 _ACEOF
11487 GTK_COMPILES=yes
11489 done
11491 if test "${GTK_COMPILES}" != "yes"; then
11492 if test "$USE_X_TOOLKIT" != "maybe"; then
11493 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11494 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11495 { (exit 1); exit 1; }; };
11497 else
11498 HAVE_GTK=yes
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_GTK 1
11502 _ACEOF
11504 USE_X_TOOLKIT=none
11510 if test "${HAVE_GTK}" = "yes"; then
11512 if test "$with_toolkit_scroll_bars" != no; then
11513 with_toolkit_scroll_bars=yes
11516 HAVE_GTK_MULTIDISPLAY=no
11518 for ac_func in gdk_display_open
11520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11534 #define $ac_func innocuous_$ac_func
11536 /* System header to define __stub macros and hopefully few prototypes,
11537 which can conflict with char $ac_func (); below.
11538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11539 <limits.h> exists even on freestanding compilers. */
11541 #ifdef __STDC__
11542 # include <limits.h>
11543 #else
11544 # include <assert.h>
11545 #endif
11547 #undef $ac_func
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char $ac_func ();
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined __stub_$ac_func || defined __stub___$ac_func
11560 choke me
11561 #endif
11564 main ()
11566 return $ac_func ();
11568 return 0;
11570 _ACEOF
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (ac_try="$ac_link"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_link") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest$ac_exeext &&
11588 $as_test_x conftest$ac_exeext; then
11589 eval "$as_ac_var=yes"
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 eval "$as_ac_var=no"
11597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11598 conftest$ac_exeext conftest.$ac_ext
11600 ac_res=`eval echo '${'$as_ac_var'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11604 cat >>confdefs.h <<_ACEOF
11605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11606 _ACEOF
11607 HAVE_GTK_MULTIDISPLAY=yes
11609 done
11611 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_GTK_MULTIDISPLAY 1
11615 _ACEOF
11619 HAVE_GTK_FILE_SELECTION=no
11621 for ac_func in gtk_file_selection_new
11623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h. */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11637 #define $ac_func innocuous_$ac_func
11639 /* System header to define __stub macros and hopefully few prototypes,
11640 which can conflict with char $ac_func (); below.
11641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642 <limits.h> exists even on freestanding compilers. */
11644 #ifdef __STDC__
11645 # include <limits.h>
11646 #else
11647 # include <assert.h>
11648 #endif
11650 #undef $ac_func
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 char $ac_func ();
11659 /* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662 #if defined __stub_$ac_func || defined __stub___$ac_func
11663 choke me
11664 #endif
11667 main ()
11669 return $ac_func ();
11671 return 0;
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest$ac_exeext &&
11691 $as_test_x conftest$ac_exeext; then
11692 eval "$as_ac_var=yes"
11693 else
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 eval "$as_ac_var=no"
11700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11701 conftest$ac_exeext conftest.$ac_ext
11703 ac_res=`eval echo '${'$as_ac_var'}'`
11704 { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11706 if test `eval echo '${'$as_ac_var'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 _ACEOF
11710 HAVE_GTK_FILE_SELECTION=yes
11712 done
11715 HAVE_GTK_FILE_CHOOSER=no
11717 for ac_func in gtk_file_chooser_dialog_new
11719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11733 #define $ac_func innocuous_$ac_func
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below.
11737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738 <limits.h> exists even on freestanding compilers. */
11740 #ifdef __STDC__
11741 # include <limits.h>
11742 #else
11743 # include <assert.h>
11744 #endif
11746 #undef $ac_func
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char $ac_func ();
11755 /* The GNU C library defines this for functions which it implements
11756 to always fail with ENOSYS. Some functions are actually named
11757 something starting with __ and the normal name is an alias. */
11758 #if defined __stub_$ac_func || defined __stub___$ac_func
11759 choke me
11760 #endif
11763 main ()
11765 return $ac_func ();
11767 return 0;
11769 _ACEOF
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext &&
11787 $as_test_x conftest$ac_exeext; then
11788 eval "$as_ac_var=yes"
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 eval "$as_ac_var=no"
11796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11797 conftest$ac_exeext conftest.$ac_ext
11799 ac_res=`eval echo '${'$as_ac_var'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 _ACEOF
11806 HAVE_GTK_FILE_CHOOSER=yes
11808 done
11811 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11812 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_GTK_FILE_BOTH 1
11816 _ACEOF
11820 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11821 HAVE_GTK_AND_PTHREAD=no
11823 for ac_header in pthread.h
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 ac_res=`eval echo '${'$as_ac_Header'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11835 else
11836 # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 #include <$ac_header>
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_header_compiler=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_compiler=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <$ac_header>
11887 _ACEOF
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null && {
11901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 }; then
11904 ac_header_preproc=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_header_preproc=no
11912 rm -f conftest.err conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11916 # So? What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 yes:no: )
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc=yes
11925 no:yes:* )
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11940 esac
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 eval "$as_ac_Header=\$ac_header_preproc"
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11960 done
11962 if test "$ac_cv_header_pthread_h"; then
11963 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11964 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11965 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lpthread $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11980 #ifdef __cplusplus
11981 extern "C"
11982 #endif
11983 char pthread_self ();
11985 main ()
11987 return pthread_self ();
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest$ac_exeext &&
12009 $as_test_x conftest$ac_exeext; then
12010 ac_cv_lib_pthread_pthread_self=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_lib_pthread_pthread_self=no
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12023 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12024 if test $ac_cv_lib_pthread_pthread_self = yes; then
12025 HAVE_GTK_AND_PTHREAD=yes
12029 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12030 GTK_LIBS="$GTK_LIBS -lpthread"
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_GTK_AND_PTHREAD 1
12034 _ACEOF
12040 ### Link with -lXft if available to work around a bug.
12041 HAVE_XFT=maybe
12042 if test "${HAVE_GTK}" = "yes"; then
12043 if test "X${with_pkg_config_prog}" != X; then
12044 PKG_CONFIG="${with_pkg_config_prog}"
12048 succeeded=no
12050 if test -z "$PKG_CONFIG"; then
12051 # Extract the first word of "pkg-config", so it can be a program name with args.
12052 set dummy pkg-config; ac_word=$2
12053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 case $PKG_CONFIG in
12059 [\\/]* | ?:[\\/]*)
12060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12074 done
12075 done
12076 IFS=$as_save_IFS
12078 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12080 esac
12082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12083 if test -n "$PKG_CONFIG"; then
12084 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12085 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12086 else
12087 { echo "$as_me:$LINENO: result: no" >&5
12088 echo "${ECHO_T}no" >&6; }
12094 if test "$PKG_CONFIG" = "no" ; then
12095 HAVE_XFT=no
12096 else
12097 PKG_CONFIG_MIN_VERSION=0.9.0
12098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12099 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12100 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12102 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12103 { echo "$as_me:$LINENO: result: yes" >&5
12104 echo "${ECHO_T}yes" >&6; }
12105 succeeded=yes
12107 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12108 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12109 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12110 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12111 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12113 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12114 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12115 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12116 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12117 echo "${ECHO_T}$XFT_LIBS" >&6; }
12118 else
12119 { echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6; }
12121 XFT_CFLAGS=""
12122 XFT_LIBS=""
12123 ## If we have a custom action on failure, don't print errors, but
12124 ## do set a variable so people can do so.
12125 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12131 else
12132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12137 if test $succeeded = yes; then
12139 else
12140 HAVE_XFT=no
12143 if test "$HAVE_XFT" != no; then
12144 OLD_CFLAGS="$CPPFLAGS"
12145 OLD_CPPFLAGS="$CFLAGS"
12146 OLD_LIBS="$LIBS"
12147 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12148 CFLAGS="$CFLAGS $XFT_CFLAGS"
12149 LIBS="$XFT_LIBS $LIBS"
12150 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12151 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12152 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12153 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12157 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12158 else
12159 # Is the header compilable?
12160 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12161 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h. */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12168 $ac_includes_default
12169 #include <X11/Xft/Xft.h>
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && {
12185 test -z "$ac_c_werror_flag" ||
12186 test ! -s conftest.err
12187 } && test -s conftest.$ac_objext; then
12188 ac_header_compiler=yes
12189 else
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_header_compiler=no
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198 echo "${ECHO_T}$ac_header_compiler" >&6; }
12200 # Is the header present?
12201 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12202 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 #include <X11/Xft/Xft.h>
12210 _ACEOF
12211 if { (ac_try="$ac_cpp conftest.$ac_ext"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null && {
12224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 }; then
12227 ac_header_preproc=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_header_preproc=no
12235 rm -f conftest.err conftest.$ac_ext
12236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12237 echo "${ECHO_T}$ac_header_preproc" >&6; }
12239 # So? What about this header?
12240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12241 yes:no: )
12242 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12243 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12245 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12246 ac_header_preproc=yes
12248 no:yes:* )
12249 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12250 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12252 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12254 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12256 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12258 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12260 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12263 esac
12264 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12265 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12266 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12271 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12272 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12275 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12276 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12277 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12278 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lXft $XFT_LIBS $LIBS"
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293 #ifdef __cplusplus
12294 extern "C"
12295 #endif
12296 char XftFontOpen ();
12298 main ()
12300 return XftFontOpen ();
12302 return 0;
12304 _ACEOF
12305 rm -f conftest.$ac_objext conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && {
12319 test -z "$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12321 } && test -s conftest$ac_exeext &&
12322 $as_test_x conftest$ac_exeext; then
12323 ac_cv_lib_Xft_XftFontOpen=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_cv_lib_Xft_XftFontOpen=no
12331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12335 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12336 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12337 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12338 HAVE_XFT=yes
12345 if test "${HAVE_XFT}" = "yes"; then
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_XFT 1
12349 _ACEOF
12352 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12353 else
12354 CFLAGS="$OLD_CPPFLAGS"
12355 CFLAGS="$OLD_CFLAGS"
12356 LIBS="$OLD_LIBS"
12361 HAVE_XAW3D=no
12362 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12363 if test x"${HAVE_X11R5}" != xyes; then
12364 USE_X_TOOLKIT=none
12365 else
12366 if test "$with_xaw3d" != no; then
12367 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12368 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12369 if test "${emacs_cv_xaw3d+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include <X11/Intrinsic.h>
12380 #include <X11/Xaw3d/Simple.h>
12382 main ()
12386 return 0;
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_link") 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest$ac_exeext &&
12406 $as_test_x conftest$ac_exeext; then
12407 emacs_cv_xaw3d=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 emacs_cv_xaw3d=no
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12419 else
12420 emacs_cv_xaw3d=no
12422 if test $emacs_cv_xaw3d = yes; then
12423 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12424 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12425 USE_X_TOOLKIT=LUCID
12426 HAVE_XAW3D=yes
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_XAW3D 1
12430 _ACEOF
12432 else
12433 { echo "$as_me:$LINENO: result: no" >&5
12434 echo "${ECHO_T}no" >&6; }
12435 { echo "$as_me:$LINENO: checking for libXaw" >&5
12436 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12437 if test "${emacs_cv_xaw+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12447 #include <X11/Intrinsic.h>
12448 #include <X11/Xaw/Simple.h>
12450 main ()
12454 return 0;
12456 _ACEOF
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (ac_try="$ac_link"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_link") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest$ac_exeext &&
12474 $as_test_x conftest$ac_exeext; then
12475 emacs_cv_xaw=yes
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 emacs_cv_xaw=no
12483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12484 conftest$ac_exeext conftest.$ac_ext
12487 if test $emacs_cv_xaw = yes; then
12488 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12489 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12490 USE_X_TOOLKIT=LUCID
12491 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12492 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12493 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12494 { (exit 1); exit 1; }; }
12495 else
12496 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12497 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12498 USE_X_TOOLKIT=none
12504 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12506 if test "${USE_X_TOOLKIT}" != "none"; then
12507 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12508 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12509 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <X11/Intrinsic.h>
12520 main ()
12522 #if XtSpecificationRelease < 6
12523 fail;
12524 #endif
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (ac_try="$ac_link"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest$ac_exeext &&
12547 $as_test_x conftest$ac_exeext; then
12548 emacs_cv_x11_toolkit_version_6=yes
12549 else
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 emacs_cv_x11_toolkit_version_6=no
12556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557 conftest$ac_exeext conftest.$ac_ext
12560 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12561 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12562 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12563 echo "${ECHO_T}6 or newer" >&6; }
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_X11XTR6 1
12567 _ACEOF
12569 else
12570 { echo "$as_me:$LINENO: result: before 6" >&5
12571 echo "${ECHO_T}before 6" >&6; }
12574 OLDLIBS="$LIBS"
12575 if test x$HAVE_X11XTR6 = xyes; then
12576 LIBS="-lXt -lSM -lICE $LIBS"
12577 else
12578 LIBS="-lXt $LIBS"
12581 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12582 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lXmu $LIBS"
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char XmuConvertStandardSelection ();
12603 main ()
12605 return XmuConvertStandardSelection ();
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext &&
12627 $as_test_x conftest$ac_exeext; then
12628 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12629 else
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12641 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12642 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12643 cat >>confdefs.h <<_ACEOF
12644 #define HAVE_LIBXMU 1
12645 _ACEOF
12647 LIBS="-lXmu $LIBS"
12651 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12654 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12655 if test "${HAVE_X11}" = "yes"; then
12656 if test "${USE_X_TOOLKIT}" != "none"; then
12658 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12659 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lXext $LIBS"
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 char XShapeQueryExtension ();
12680 main ()
12682 return XShapeQueryExtension ();
12684 return 0;
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest$ac_exeext &&
12704 $as_test_x conftest$ac_exeext; then
12705 ac_cv_lib_Xext_XShapeQueryExtension=yes
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 ac_cv_lib_Xext_XShapeQueryExtension=no
12713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LIBS=$ac_check_lib_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12718 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12719 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_LIBXEXT 1
12722 _ACEOF
12724 LIBS="-lXext $LIBS"
12731 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12732 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12733 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12734 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 #include <Xm/Xm.h>
12745 main ()
12747 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12748 int x = 5;
12749 #else
12750 Motif version prior to 2.1.
12751 #endif
12753 return 0;
12755 _ACEOF
12756 rm -f conftest.$ac_objext
12757 if { (ac_try="$ac_compile"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_compile") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && {
12770 test -z "$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12772 } && test -s conftest.$ac_objext; then
12773 emacs_cv_motif_version_2_1=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 emacs_cv_motif_version_2_1=no
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12784 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12785 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12786 if test $emacs_cv_motif_version_2_1 = yes; then
12787 HAVE_LIBXP=no
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_MOTIF_2_1 1
12791 _ACEOF
12793 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12794 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12795 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 ac_check_lib_save_LIBS=$LIBS
12799 LIBS="-lXp $LIBS"
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12807 /* Override any GCC internal prototype to avoid an error.
12808 Use char because int might match the return type of a GCC
12809 builtin and then its argument prototype would still apply. */
12810 #ifdef __cplusplus
12811 extern "C"
12812 #endif
12813 char XpCreateContext ();
12815 main ()
12817 return XpCreateContext ();
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest$ac_exeext &&
12839 $as_test_x conftest$ac_exeext; then
12840 ac_cv_lib_Xp_XpCreateContext=yes
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_cv_lib_Xp_XpCreateContext=no
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12853 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12854 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12855 HAVE_LIBXP=yes
12858 if test ${HAVE_LIBXP} = yes; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_LIBXP 1
12862 _ACEOF
12865 else
12866 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12867 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12868 if test "${emacs_cv_lesstif+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871 # We put this in CFLAGS temporarily to precede other -I options
12872 # that might be in CFLAGS temporarily.
12873 # We put this in CPPFLAGS where it precedes the other -I options.
12874 OLD_CPPFLAGS=$CPPFLAGS
12875 OLD_CFLAGS=$CFLAGS
12876 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12877 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12886 main ()
12888 int x = 5;
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
12910 emacs_cv_lesstif=yes
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 emacs_cv_lesstif=no
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12921 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12922 if test $emacs_cv_lesstif = yes; then
12923 # Make sure this -I option remains in CPPFLAGS after it is set
12924 # back to REAL_CPPFLAGS.
12925 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12926 # have those other -I options anyway. Ultimately, having this
12927 # directory ultimately in CPPFLAGS will be enough.
12928 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12929 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12930 else
12931 CFLAGS=$OLD_CFLAGS
12932 CPPFLAGS=$OLD_CPPFLAGS
12939 USE_TOOLKIT_SCROLL_BARS=no
12940 if test "${with_toolkit_scroll_bars}" != "no"; then
12941 if test "${USE_X_TOOLKIT}" != "none"; then
12942 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12943 cat >>confdefs.h <<\_ACEOF
12944 #define USE_TOOLKIT_SCROLL_BARS 1
12945 _ACEOF
12947 HAVE_XAW3D=no
12948 USE_TOOLKIT_SCROLL_BARS=yes
12949 elif test "${HAVE_XAW3D}" = "yes"; then
12950 cat >>confdefs.h <<\_ACEOF
12951 #define USE_TOOLKIT_SCROLL_BARS 1
12952 _ACEOF
12954 USE_TOOLKIT_SCROLL_BARS=yes
12956 elif test "${HAVE_GTK}" = "yes"; then
12957 cat >>confdefs.h <<\_ACEOF
12958 #define USE_TOOLKIT_SCROLL_BARS 1
12959 _ACEOF
12961 USE_TOOLKIT_SCROLL_BARS=yes
12962 elif test "${HAVE_CARBON}" = "yes"; then
12963 cat >>confdefs.h <<\_ACEOF
12964 #define USE_TOOLKIT_SCROLL_BARS 1
12965 _ACEOF
12967 USE_TOOLKIT_SCROLL_BARS=yes
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 #include <X11/Xlib.h>
12979 #include <X11/Xresource.h>
12981 main ()
12983 XIMProc callback;
12985 return 0;
12987 _ACEOF
12988 rm -f conftest.$ac_objext
12989 if { (ac_try="$ac_compile"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_compile") 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest.$ac_objext; then
13005 HAVE_XIM=yes
13007 cat >>confdefs.h <<\_ACEOF
13008 #define HAVE_XIM 1
13009 _ACEOF
13011 else
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 HAVE_XIM=no
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 if test "${with_xim}" != "no"; then
13023 cat >>confdefs.h <<\_ACEOF
13024 #define USE_XIM 1
13025 _ACEOF
13030 if test "${HAVE_XIM}" != "no"; then
13031 late_CFLAGS=$CFLAGS
13032 if test "$GCC" = yes; then
13033 CFLAGS="$CFLAGS --pedantic-errors"
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 #include <X11/Xlib.h>
13043 #include <X11/Xresource.h>
13045 main ()
13047 Display *display;
13048 XrmDatabase db;
13049 char *res_name;
13050 char *res_class;
13051 XIMProc callback;
13052 XPointer *client_data;
13053 #ifndef __GNUC__
13054 /* If we're not using GCC, it's probably not XFree86, and this is
13055 probably right, but we can't use something like --pedantic-errors. */
13056 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13057 char*, XIMProc, XPointer*);
13058 #endif
13059 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13060 client_data);
13062 return 0;
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (ac_try="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13082 emacs_cv_arg6_star=yes
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 if test "$emacs_cv_arg6_star" = yes; then
13093 cat >>confdefs.h <<\_ACEOF
13094 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13095 _ACEOF
13097 else
13098 cat >>confdefs.h <<\_ACEOF
13099 #define XRegisterIMInstantiateCallback_arg6 XPointer
13100 _ACEOF
13103 CFLAGS=$late_CFLAGS
13106 ### Use -lXpm if available, unless `--with-xpm=no'.
13107 HAVE_XPM=no
13108 if test "${HAVE_X11}" = "yes"; then
13109 if test "${with_xpm}" != "no"; then
13110 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13111 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13113 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13117 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13118 else
13119 # Is the header compilable?
13120 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13121 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 $ac_includes_default
13129 #include <X11/xpm.h>
13130 _ACEOF
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest.$ac_objext; then
13148 ac_header_compiler=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_header_compiler=no
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13158 echo "${ECHO_T}$ac_header_compiler" >&6; }
13160 # Is the header present?
13161 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13162 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13163 cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h. */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 #include <X11/xpm.h>
13170 _ACEOF
13171 if { (ac_try="$ac_cpp conftest.$ac_ext"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } >/dev/null && {
13184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 }; then
13187 ac_header_preproc=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_header_preproc=no
13195 rm -f conftest.err conftest.$ac_ext
13196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6; }
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 yes:no: )
13202 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13205 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc=yes
13208 no:yes:* )
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13214 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13216 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13220 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13223 esac
13224 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13225 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13226 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229 ac_cv_header_X11_xpm_h=$ac_header_preproc
13231 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13232 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13235 if test $ac_cv_header_X11_xpm_h = yes; then
13236 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13237 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13238 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 ac_check_lib_save_LIBS=$LIBS
13242 LIBS="-lXpm -lX11 $LIBS"
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char XpmReadFileToPixmap ();
13258 main ()
13260 return XpmReadFileToPixmap ();
13262 return 0;
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (ac_try="$ac_link"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_link") 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } && {
13279 test -z "$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13281 } && test -s conftest$ac_exeext &&
13282 $as_test_x conftest$ac_exeext; then
13283 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13284 else
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13296 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13297 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13298 HAVE_XPM=yes
13304 if test "${HAVE_XPM}" = "yes"; then
13305 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13306 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include "X11/xpm.h"
13314 #ifndef XpmReturnAllocPixels
13315 no_return_alloc_pixels
13316 #endif
13318 _ACEOF
13319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13320 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13321 HAVE_XPM=no
13322 else
13323 HAVE_XPM=yes
13325 rm -f conftest*
13328 if test "${HAVE_XPM}" = "yes"; then
13329 { echo "$as_me:$LINENO: result: yes" >&5
13330 echo "${ECHO_T}yes" >&6; }
13331 else
13332 { echo "$as_me:$LINENO: result: no" >&5
13333 echo "${ECHO_T}no" >&6; }
13338 if test "${HAVE_XPM}" = "yes"; then
13340 cat >>confdefs.h <<\_ACEOF
13341 #define HAVE_XPM 1
13342 _ACEOF
13347 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13348 HAVE_JPEG=no
13349 if test "${HAVE_X11}" = "yes"; then
13350 if test "${with_jpeg}" != "no"; then
13351 if test "${ac_cv_header_jerror_h+set}" = set; then
13352 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13353 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13354 if test "${ac_cv_header_jerror_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13359 else
13360 # Is the header compilable?
13361 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13362 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 #include <jerror.h>
13371 _ACEOF
13372 rm -f conftest.$ac_objext
13373 if { (ac_try="$ac_compile"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 ac_header_compiler=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_header_compiler=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13399 echo "${ECHO_T}$ac_header_compiler" >&6; }
13401 # Is the header present?
13402 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13403 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <jerror.h>
13411 _ACEOF
13412 if { (ac_try="$ac_cpp conftest.$ac_ext"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } >/dev/null && {
13425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 }; then
13428 ac_header_preproc=yes
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ac_header_preproc=no
13436 rm -f conftest.err conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438 echo "${ECHO_T}$ac_header_preproc" >&6; }
13440 # So? What about this header?
13441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13442 yes:no: )
13443 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13444 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13446 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13447 ac_header_preproc=yes
13449 no:yes:* )
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13451 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13453 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13455 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13457 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13459 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13461 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13464 esac
13465 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13466 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13467 if test "${ac_cv_header_jerror_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 ac_cv_header_jerror_h=$ac_header_preproc
13472 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13473 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13476 if test $ac_cv_header_jerror_h = yes; then
13477 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13478 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13479 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-ljpeg $LIBS"
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h. */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13494 #ifdef __cplusplus
13495 extern "C"
13496 #endif
13497 char jpeg_destroy_compress ();
13499 main ()
13501 return jpeg_destroy_compress ();
13503 return 0;
13505 _ACEOF
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (ac_try="$ac_link"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest$ac_exeext &&
13523 $as_test_x conftest$ac_exeext; then
13524 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13525 else
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LIBS=$ac_check_lib_save_LIBS
13536 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13537 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13538 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13539 HAVE_JPEG=yes
13548 if test "${HAVE_JPEG}" = "yes"; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_JPEG 1
13551 _ACEOF
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <jpeglib.h>
13560 version=JPEG_LIB_VERSION
13562 _ACEOF
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define HAVE_JPEG 1
13567 _ACEOF
13569 else
13570 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13571 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13572 HAVE_JPEG=no
13574 rm -f conftest*
13579 ### Use -lpng if available, unless `--with-png=no'.
13580 HAVE_PNG=no
13581 if test "${HAVE_X11}" = "yes"; then
13582 if test "${with_png}" != "no"; then
13583 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13584 # in /usr/include/libpng.
13587 for ac_header in png.h libpng/png.h
13589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 ac_res=`eval echo '${'$as_ac_Header'}'`
13597 { echo "$as_me:$LINENO: result: $ac_res" >&5
13598 echo "${ECHO_T}$ac_res" >&6; }
13599 else
13600 # Is the header compilable?
13601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 $ac_includes_default
13610 #include <$ac_header>
13611 _ACEOF
13612 rm -f conftest.$ac_objext
13613 if { (ac_try="$ac_compile"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_compile") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest.$ac_objext; then
13629 ac_header_compiler=yes
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_header_compiler=no
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6; }
13641 # Is the header present?
13642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <$ac_header>
13651 _ACEOF
13652 if { (ac_try="$ac_cpp conftest.$ac_ext"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } >/dev/null && {
13665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13666 test ! -s conftest.err
13667 }; then
13668 ac_header_preproc=yes
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 ac_header_preproc=no
13676 rm -f conftest.err conftest.$ac_ext
13677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678 echo "${ECHO_T}$ac_header_preproc" >&6; }
13680 # So? What about this header?
13681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13682 yes:no: )
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13687 ac_header_preproc=yes
13689 no:yes:* )
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13704 esac
13705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 eval "$as_ac_Header=\$ac_header_preproc"
13712 ac_res=`eval echo '${'$as_ac_Header'}'`
13713 { echo "$as_me:$LINENO: result: $ac_res" >&5
13714 echo "${ECHO_T}$ac_res" >&6; }
13717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13718 cat >>confdefs.h <<_ACEOF
13719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 _ACEOF
13724 done
13726 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13727 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13728 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13729 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732 ac_check_lib_save_LIBS=$LIBS
13733 LIBS="-lpng -lz -lm $LIBS"
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 char png_get_channels ();
13749 main ()
13751 return png_get_channels ();
13753 return 0;
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (ac_try="$ac_link"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_link") 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && {
13770 test -z "$ac_c_werror_flag" ||
13771 test ! -s conftest.err
13772 } && test -s conftest$ac_exeext &&
13773 $as_test_x conftest$ac_exeext; then
13774 ac_cv_lib_png_png_get_channels=yes
13775 else
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_lib_png_png_get_channels=no
13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS
13786 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13787 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13788 if test $ac_cv_lib_png_png_get_channels = yes; then
13789 HAVE_PNG=yes
13795 if test "${HAVE_PNG}" = "yes"; then
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_PNG 1
13799 _ACEOF
13804 ### Use -ltiff if available, unless `--with-tiff=no'.
13805 HAVE_TIFF=no
13806 if test "${HAVE_X11}" = "yes"; then
13807 if test "${with_tiff}" != "no"; then
13808 if test "${ac_cv_header_tiffio_h+set}" = set; then
13809 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13810 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13811 if test "${ac_cv_header_tiffio_h+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13815 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13816 else
13817 # Is the header compilable?
13818 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13819 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $ac_includes_default
13827 #include <tiffio.h>
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (ac_try="$ac_compile"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compile") 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } && {
13843 test -z "$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 } && test -s conftest.$ac_objext; then
13846 ac_header_compiler=yes
13847 else
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13851 ac_header_compiler=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856 echo "${ECHO_T}$ac_header_compiler" >&6; }
13858 # Is the header present?
13859 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13860 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <tiffio.h>
13868 _ACEOF
13869 if { (ac_try="$ac_cpp conftest.$ac_ext"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev/null && {
13882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 }; then
13885 ac_header_preproc=yes
13886 else
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_header_preproc=no
13893 rm -f conftest.err conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13895 echo "${ECHO_T}$ac_header_preproc" >&6; }
13897 # So? What about this header?
13898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13899 yes:no: )
13900 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13901 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13903 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13904 ac_header_preproc=yes
13906 no:yes:* )
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13908 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13910 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13912 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13914 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13915 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13916 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13918 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13921 esac
13922 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13923 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_tiffio_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 ac_cv_header_tiffio_h=$ac_header_preproc
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13933 if test $ac_cv_header_tiffio_h = yes; then
13934 tifflibs="-lz -lm"
13935 # At least one tiff package requires the jpeg library.
13936 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13937 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13938 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-ltiff $tifflibs $LIBS"
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 char TIFFGetVersion ();
13959 main ()
13961 return TIFFGetVersion ();
13963 return 0;
13965 _ACEOF
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_link") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest$ac_exeext &&
13983 $as_test_x conftest$ac_exeext; then
13984 ac_cv_lib_tiff_TIFFGetVersion=yes
13985 else
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_cv_lib_tiff_TIFFGetVersion=no
13992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13993 conftest$ac_exeext conftest.$ac_ext
13994 LIBS=$ac_check_lib_save_LIBS
13996 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13997 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13998 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13999 HAVE_TIFF=yes
14007 if test "${HAVE_TIFF}" = "yes"; then
14009 cat >>confdefs.h <<\_ACEOF
14010 #define HAVE_TIFF 1
14011 _ACEOF
14016 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14017 HAVE_GIF=no
14018 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14019 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14021 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14027 else
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14030 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <gif_lib.h>
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14071 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <gif_lib.h>
14079 _ACEOF
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev/null && {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 }; then
14096 ac_header_preproc=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110 yes:no: )
14111 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14117 no:yes:* )
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14132 esac
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138 ac_cv_header_gif_lib_h=$ac_header_preproc
14140 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14141 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14144 if test $ac_cv_header_gif_lib_h = yes; then
14145 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14146 # Earlier versions can crash Emacs.
14147 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14148 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-lgif $LIBS"
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14164 #ifdef __cplusplus
14165 extern "C"
14166 #endif
14167 char EGifPutExtensionLast ();
14169 main ()
14171 return EGifPutExtensionLast ();
14173 return 0;
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 ac_cv_lib_gif_EGifPutExtensionLast=yes
14195 else
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_lib_gif_EGifPutExtensionLast=no
14202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14207 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14208 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14209 HAVE_GIF=yes
14210 else
14211 try_libungif=yes
14218 if test "$HAVE_GIF" = yes; then
14219 ac_gif_lib_name="-lgif"
14222 # If gif_lib.h but no libgif, try libungif.
14223 if test x"$try_libungif" = xyes; then
14224 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14225 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14226 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229 ac_check_lib_save_LIBS=$LIBS
14230 LIBS="-lungif $LIBS"
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any GCC internal prototype to avoid an error.
14239 Use char because int might match the return type of a GCC
14240 builtin and then its argument prototype would still apply. */
14241 #ifdef __cplusplus
14242 extern "C"
14243 #endif
14244 char EGifPutExtensionLast ();
14246 main ()
14248 return EGifPutExtensionLast ();
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest$ac_exeext &&
14270 $as_test_x conftest$ac_exeext; then
14271 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_ungif_EGifPutExtensionLast=no
14279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14280 conftest$ac_exeext conftest.$ac_ext
14281 LIBS=$ac_check_lib_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14284 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14285 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14286 HAVE_GIF=yes
14290 if test "$HAVE_GIF" = yes; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define LIBGIF -lungif
14294 _ACEOF
14296 ac_gif_lib_name="-lungif"
14300 if test "${HAVE_GIF}" = "yes"; then
14302 cat >>confdefs.h <<\_ACEOF
14303 #define HAVE_GIF 1
14304 _ACEOF
14309 if test "${HAVE_X11}" = "yes"; then
14310 MISSING=""
14311 WITH_NO=""
14312 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14313 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14314 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14315 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14316 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14317 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14318 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14319 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14320 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14321 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14323 if test "X${MISSING}" != X; then
14324 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14325 $MISSING
14326 Maybe some development libraries/packages are missing?
14327 If you don't want to link with them give
14328 $WITH_NO
14329 as options to configure" >&5
14330 echo "$as_me: error: The following required libraries were not found:
14331 $MISSING
14332 Maybe some development libraries/packages are missing?
14333 If you don't want to link with them give
14334 $WITH_NO
14335 as options to configure" >&2;}
14336 { (exit 1); exit 1; }; }
14340 ### Use -lgpm if available, unless `--with-gpm=no'.
14341 HAVE_GPM=no
14342 if test "${with_gpm}" != "no"; then
14343 if test "${ac_cv_header_gpm_h+set}" = set; then
14344 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14345 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_gpm_h+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14350 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14351 else
14352 # Is the header compilable?
14353 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14354 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h. */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14362 #include <gpm.h>
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && {
14378 test -z "$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 } && test -s conftest.$ac_objext; then
14381 ac_header_compiler=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_header_compiler=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14391 echo "${ECHO_T}$ac_header_compiler" >&6; }
14393 # Is the header present?
14394 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14395 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14396 cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h. */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 #include <gpm.h>
14403 _ACEOF
14404 if { (ac_try="$ac_cpp conftest.$ac_ext"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } >/dev/null && {
14417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 }; then
14420 ac_header_preproc=yes
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_header_preproc=no
14428 rm -f conftest.err conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14430 echo "${ECHO_T}$ac_header_preproc" >&6; }
14432 # So? What about this header?
14433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14434 yes:no: )
14435 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14436 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14438 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14439 ac_header_preproc=yes
14441 no:yes:* )
14442 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14443 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14445 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14447 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14449 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14451 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14453 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14456 esac
14457 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14458 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_gpm_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462 ac_cv_header_gpm_h=$ac_header_preproc
14464 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14465 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14468 if test $ac_cv_header_gpm_h = yes; then
14469 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14470 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14471 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474 ac_check_lib_save_LIBS=$LIBS
14475 LIBS="-lgpm $LIBS"
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14486 #ifdef __cplusplus
14487 extern "C"
14488 #endif
14489 char Gpm_Open ();
14491 main ()
14493 return Gpm_Open ();
14495 return 0;
14497 _ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (ac_try="$ac_link"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503 esac
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_link") 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } && {
14512 test -z "$ac_c_werror_flag" ||
14513 test ! -s conftest.err
14514 } && test -s conftest$ac_exeext &&
14515 $as_test_x conftest$ac_exeext; then
14516 ac_cv_lib_gpm_Gpm_Open=yes
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_cv_lib_gpm_Gpm_Open=no
14524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14525 conftest$ac_exeext conftest.$ac_ext
14526 LIBS=$ac_check_lib_save_LIBS
14528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14529 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14530 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14531 HAVE_GPM=yes
14539 if test "${HAVE_GPM}" = "yes"; then
14541 cat >>confdefs.h <<\_ACEOF
14542 #define HAVE_GPM 1
14543 _ACEOF
14547 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14548 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14549 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14550 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14554 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14555 else
14556 # Is the header compilable?
14557 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14558 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 $ac_includes_default
14566 #include <malloc/malloc.h>
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (ac_try="$ac_compile"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_compile") 2>conftest.er1
14576 ac_status=$?
14577 grep -v '^ *+' conftest.er1 >conftest.err
14578 rm -f conftest.er1
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest.$ac_objext; then
14585 ac_header_compiler=yes
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_header_compiler=no
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
14597 # Is the header present?
14598 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14599 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <malloc/malloc.h>
14607 _ACEOF
14608 if { (ac_try="$ac_cpp conftest.$ac_ext"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } >/dev/null && {
14621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 }; then
14624 ac_header_preproc=yes
14625 else
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_header_preproc=no
14632 rm -f conftest.err conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14634 echo "${ECHO_T}$ac_header_preproc" >&6; }
14636 # So? What about this header?
14637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14638 yes:no: )
14639 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14640 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14642 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14643 ac_header_preproc=yes
14645 no:yes:* )
14646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14647 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14649 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14651 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14653 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14655 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14657 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14660 esac
14661 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14662 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14663 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14672 if test $ac_cv_header_malloc_malloc_h = yes; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_MALLOC_MALLOC_H 1
14676 _ACEOF
14682 ### Use Mac OS X Carbon API to implement GUI.
14683 if test "${HAVE_CARBON}" = "yes"; then
14685 cat >>confdefs.h <<\_ACEOF
14686 #define HAVE_CARBON 1
14687 _ACEOF
14689 ## Specify the install directory
14690 carbon_appdir=
14691 if test "${carbon_appdir_x}" != ""; then
14692 case ${carbon_appdir_x} in
14693 y | ye | yes) carbon_appdir=/Applications ;;
14694 * ) carbon_appdir=${carbon_appdir_x} ;;
14695 esac
14697 # We also have mouse menus.
14698 HAVE_MENUS=yes
14701 ### Use session management (-lSM -lICE) if available
14702 HAVE_X_SM=no
14703 if test "${HAVE_X11}" = "yes"; then
14704 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14705 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14706 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14711 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14712 else
14713 # Is the header compilable?
14714 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14715 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 $ac_includes_default
14723 #include <X11/SM/SMlib.h>
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_compile") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest.$ac_objext; then
14742 ac_header_compiler=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_header_compiler=no
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752 echo "${ECHO_T}$ac_header_compiler" >&6; }
14754 # Is the header present?
14755 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14756 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <X11/SM/SMlib.h>
14764 _ACEOF
14765 if { (ac_try="$ac_cpp conftest.$ac_ext"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null && {
14778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 }; then
14781 ac_header_preproc=yes
14782 else
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_header_preproc=no
14789 rm -f conftest.err conftest.$ac_ext
14790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14791 echo "${ECHO_T}$ac_header_preproc" >&6; }
14793 # So? What about this header?
14794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14795 yes:no: )
14796 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14797 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14799 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14800 ac_header_preproc=yes
14802 no:yes:* )
14803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14804 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14806 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14808 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14810 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14812 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14814 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14817 esac
14818 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14819 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14820 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14825 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14826 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14829 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14830 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14831 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14832 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835 ac_check_lib_save_LIBS=$LIBS
14836 LIBS="-lSM -lICE $LIBS"
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h. */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14844 /* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14847 #ifdef __cplusplus
14848 extern "C"
14849 #endif
14850 char SmcOpenConnection ();
14852 main ()
14854 return SmcOpenConnection ();
14856 return 0;
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } && {
14873 test -z "$ac_c_werror_flag" ||
14874 test ! -s conftest.err
14875 } && test -s conftest$ac_exeext &&
14876 $as_test_x conftest$ac_exeext; then
14877 ac_cv_lib_SM_SmcOpenConnection=yes
14878 else
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_cv_lib_SM_SmcOpenConnection=no
14885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14886 conftest$ac_exeext conftest.$ac_ext
14887 LIBS=$ac_check_lib_save_LIBS
14889 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14890 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14891 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14892 HAVE_X_SM=yes
14899 if test "${HAVE_X_SM}" = "yes"; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_X_SM 1
14903 _ACEOF
14905 case "$LIBS" in
14906 *-lSM*) ;;
14907 *) LIBS="-lSM -lICE $LIBS" ;;
14908 esac
14912 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14913 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14914 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14915 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <netdb.h>
14926 main ()
14928 return h_errno;
14930 return 0;
14932 _ACEOF
14933 rm -f conftest.$ac_objext conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest$ac_exeext &&
14950 $as_test_x conftest$ac_exeext; then
14951 emacs_cv_netdb_declares_h_errno=yes
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 emacs_cv_netdb_declares_h_errno=no
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14962 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14963 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14964 if test $emacs_cv_netdb_declares_h_errno = yes; then
14966 cat >>confdefs.h <<\_ACEOF
14967 #define HAVE_H_ERRNO 1
14968 _ACEOF
14972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14973 # for constant arguments. Useless!
14974 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14976 if test "${ac_cv_working_alloca_h+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h. */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <alloca.h>
14987 main ()
14989 char *p = (char *) alloca (2 * sizeof (int));
14990 if (p) return 0;
14992 return 0;
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15013 ac_cv_working_alloca_h=yes
15014 else
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 ac_cv_working_alloca_h=no
15021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15022 conftest$ac_exeext conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15025 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15026 if test $ac_cv_working_alloca_h = yes; then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_ALLOCA_H 1
15030 _ACEOF
15034 { echo "$as_me:$LINENO: checking for alloca" >&5
15035 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15036 if test "${ac_cv_func_alloca_works+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 #ifdef __GNUC__
15046 # define alloca __builtin_alloca
15047 #else
15048 # ifdef _MSC_VER
15049 # include <malloc.h>
15050 # define alloca _alloca
15051 # else
15052 # ifdef HAVE_ALLOCA_H
15053 # include <alloca.h>
15054 # else
15055 # ifdef _AIX
15056 #pragma alloca
15057 # else
15058 # ifndef alloca /* predefined by HP cc +Olibcalls */
15059 char *alloca ();
15060 # endif
15061 # endif
15062 # endif
15063 # endif
15064 #endif
15067 main ()
15069 char *p = (char *) alloca (1);
15070 if (p) return 0;
15072 return 0;
15074 _ACEOF
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (ac_try="$ac_link"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } && {
15089 test -z "$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15091 } && test -s conftest$ac_exeext &&
15092 $as_test_x conftest$ac_exeext; then
15093 ac_cv_func_alloca_works=yes
15094 else
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_cv_func_alloca_works=no
15101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15102 conftest$ac_exeext conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15107 if test $ac_cv_func_alloca_works = yes; then
15109 cat >>confdefs.h <<\_ACEOF
15110 #define HAVE_ALLOCA 1
15111 _ACEOF
15113 else
15114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15115 # that cause trouble. Some versions do not even contain alloca or
15116 # contain a buggy version. If you still want to use their alloca,
15117 # use ar to extract alloca.o from them instead of compiling alloca.c.
15119 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15121 cat >>confdefs.h <<\_ACEOF
15122 #define C_ALLOCA 1
15123 _ACEOF
15126 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15128 if test "${ac_cv_os_cray+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131 cat >conftest.$ac_ext <<_ACEOF
15132 /* confdefs.h. */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15137 #if defined CRAY && ! defined CRAY2
15138 webecray
15139 #else
15140 wenotbecray
15141 #endif
15143 _ACEOF
15144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "webecray" >/dev/null 2>&1; then
15146 ac_cv_os_cray=yes
15147 else
15148 ac_cv_os_cray=no
15150 rm -f conftest*
15153 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15154 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15155 if test $ac_cv_os_cray = yes; then
15156 for ac_func in _getb67 GETB67 getb67; do
15157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15171 #define $ac_func innocuous_$ac_func
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char $ac_func (); below.
15175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176 <limits.h> exists even on freestanding compilers. */
15178 #ifdef __STDC__
15179 # include <limits.h>
15180 #else
15181 # include <assert.h>
15182 #endif
15184 #undef $ac_func
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char $ac_func ();
15193 /* The GNU C library defines this for functions which it implements
15194 to always fail with ENOSYS. Some functions are actually named
15195 something starting with __ and the normal name is an alias. */
15196 #if defined __stub_$ac_func || defined __stub___$ac_func
15197 choke me
15198 #endif
15201 main ()
15203 return $ac_func ();
15205 return 0;
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext &&
15225 $as_test_x conftest$ac_exeext; then
15226 eval "$as_ac_var=yes"
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 eval "$as_ac_var=no"
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15237 ac_res=`eval echo '${'$as_ac_var'}'`
15238 { echo "$as_me:$LINENO: result: $ac_res" >&5
15239 echo "${ECHO_T}$ac_res" >&6; }
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define CRAY_STACKSEG_END $ac_func
15244 _ACEOF
15246 break
15249 done
15252 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15253 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15254 if test "${ac_cv_c_stack_direction+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 if test "$cross_compiling" = yes; then
15258 ac_cv_c_stack_direction=0
15259 else
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15268 find_stack_direction ()
15270 static char *addr = 0;
15271 auto char dummy;
15272 if (addr == 0)
15274 addr = &dummy;
15275 return find_stack_direction ();
15277 else
15278 return (&dummy > addr) ? 1 : -1;
15282 main ()
15284 return find_stack_direction () < 0;
15286 _ACEOF
15287 rm -f conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_c_stack_direction=1
15308 else
15309 echo "$as_me: program exited with status $ac_status" >&5
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ( exit $ac_status )
15314 ac_cv_c_stack_direction=-1
15316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15321 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15324 cat >>confdefs.h <<_ACEOF
15325 #define STACK_DIRECTION $ac_cv_c_stack_direction
15326 _ACEOF
15332 # fmod, logb, and frexp are found in -lm on most systems.
15333 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15335 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15336 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15337 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340 ac_check_lib_save_LIBS=$LIBS
15341 LIBS="-lm $LIBS"
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352 #ifdef __cplusplus
15353 extern "C"
15354 #endif
15355 char sqrt ();
15357 main ()
15359 return sqrt ();
15361 return 0;
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 ac_cv_lib_m_sqrt=yes
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_cv_lib_m_sqrt=no
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15392 LIBS=$ac_check_lib_save_LIBS
15394 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15395 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15396 if test $ac_cv_lib_m_sqrt = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define HAVE_LIBM 1
15399 _ACEOF
15401 LIBS="-lm $LIBS"
15406 # Check for mail-locking functions in a "mail" library. Probably this should
15407 # have the same check as for liblockfile below.
15409 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15410 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15411 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 ac_check_lib_save_LIBS=$LIBS
15415 LIBS="-lmail $LIBS"
15416 cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h. */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15423 /* Override any GCC internal prototype to avoid an error.
15424 Use char because int might match the return type of a GCC
15425 builtin and then its argument prototype would still apply. */
15426 #ifdef __cplusplus
15427 extern "C"
15428 #endif
15429 char maillock ();
15431 main ()
15433 return maillock ();
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 ac_cv_lib_mail_maillock=yes
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_cv_lib_mail_maillock=no
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15469 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15470 if test $ac_cv_lib_mail_maillock = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE_LIBMAIL 1
15473 _ACEOF
15475 LIBS="-lmail $LIBS"
15480 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15481 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15482 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485 ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-llockfile $LIBS"
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h. */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15494 /* Override any GCC internal prototype to avoid an error.
15495 Use char because int might match the return type of a GCC
15496 builtin and then its argument prototype would still apply. */
15497 #ifdef __cplusplus
15498 extern "C"
15499 #endif
15500 char maillock ();
15502 main ()
15504 return maillock ();
15506 return 0;
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_link") 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && {
15523 test -z "$ac_c_werror_flag" ||
15524 test ! -s conftest.err
15525 } && test -s conftest$ac_exeext &&
15526 $as_test_x conftest$ac_exeext; then
15527 ac_cv_lib_lockfile_maillock=yes
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_lib_lockfile_maillock=no
15535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15536 conftest$ac_exeext conftest.$ac_ext
15537 LIBS=$ac_check_lib_save_LIBS
15539 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15540 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15541 if test $ac_cv_lib_lockfile_maillock = yes; then
15542 cat >>confdefs.h <<_ACEOF
15543 #define HAVE_LIBLOCKFILE 1
15544 _ACEOF
15546 LIBS="-llockfile $LIBS"
15550 # If we have the shared liblockfile, assume we must use it for mail
15551 # locking (e.g. Debian). If we couldn't link against liblockfile
15552 # (no liblockfile.a installed), ensure that we don't need to.
15553 if test "$ac_cv_lib_lockfile_maillock" = no; then
15554 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15555 set dummy liblockfile.so; ac_word=$2
15556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15558 if test "${ac_cv_prog_liblockfile+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 if test -n "$liblockfile"; then
15562 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15563 else
15564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15565 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15566 for as_dir in $as_dummy
15568 IFS=$as_save_IFS
15569 test -z "$as_dir" && as_dir=.
15570 for ac_exec_ext in '' $ac_executable_extensions; do
15571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15572 ac_cv_prog_liblockfile="yes"
15573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15574 break 2
15576 done
15577 done
15578 IFS=$as_save_IFS
15580 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15583 liblockfile=$ac_cv_prog_liblockfile
15584 if test -n "$liblockfile"; then
15585 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15586 echo "${ECHO_T}$liblockfile" >&6; }
15587 else
15588 { echo "$as_me:$LINENO: result: no" >&5
15589 echo "${ECHO_T}no" >&6; }
15593 if test $ac_cv_prog_liblockfile = yes; then
15594 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15595 This probably means that movemail could lose mail.
15596 There may be a \`development' package to install containing liblockfile." >&5
15597 echo "$as_me: error: Shared liblockfile found but can't link against it.
15598 This probably means that movemail could lose mail.
15599 There may be a \`development' package to install containing liblockfile." >&2;}
15600 { (exit 1); exit 1; }; }
15601 else :
15605 for ac_func in touchlock
15607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15621 #define $ac_func innocuous_$ac_func
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func (); below.
15625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626 <limits.h> exists even on freestanding compilers. */
15628 #ifdef __STDC__
15629 # include <limits.h>
15630 #else
15631 # include <assert.h>
15632 #endif
15634 #undef $ac_func
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char $ac_func ();
15643 /* The GNU C library defines this for functions which it implements
15644 to always fail with ENOSYS. Some functions are actually named
15645 something starting with __ and the normal name is an alias. */
15646 #if defined __stub_$ac_func || defined __stub___$ac_func
15647 choke me
15648 #endif
15651 main ()
15653 return $ac_func ();
15655 return 0;
15657 _ACEOF
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (ac_try="$ac_link"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_link") 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest$ac_exeext &&
15675 $as_test_x conftest$ac_exeext; then
15676 eval "$as_ac_var=yes"
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 eval "$as_ac_var=no"
15684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15685 conftest$ac_exeext conftest.$ac_ext
15687 ac_res=`eval echo '${'$as_ac_var'}'`
15688 { echo "$as_me:$LINENO: result: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15690 if test `eval echo '${'$as_ac_var'}'` = yes; then
15691 cat >>confdefs.h <<_ACEOF
15692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15693 _ACEOF
15696 done
15699 for ac_header in maillock.h
15701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709 { echo "$as_me:$LINENO: result: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15711 else
15712 # Is the header compilable?
15713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
15722 #include <$ac_header>
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (ac_try="$ac_compile"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest.$ac_objext; then
15741 ac_header_compiler=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15751 echo "${ECHO_T}$ac_header_compiler" >&6; }
15753 # Is the header present?
15754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <$ac_header>
15763 _ACEOF
15764 if { (ac_try="$ac_cpp conftest.$ac_ext"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 }; then
15780 ac_header_preproc=yes
15781 else
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794 yes:no: )
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15801 no:yes:* )
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15816 esac
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822 eval "$as_ac_Header=\$ac_header_preproc"
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832 _ACEOF
15836 done
15908 for ac_func in gethostname getdomainname dup2 \
15909 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15910 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15911 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15912 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15913 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15914 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15915 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15916 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924 cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h. */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15932 #define $ac_func innocuous_$ac_func
15934 /* System header to define __stub macros and hopefully few prototypes,
15935 which can conflict with char $ac_func (); below.
15936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15937 <limits.h> exists even on freestanding compilers. */
15939 #ifdef __STDC__
15940 # include <limits.h>
15941 #else
15942 # include <assert.h>
15943 #endif
15945 #undef $ac_func
15947 /* Override any GCC internal prototype to avoid an error.
15948 Use char because int might match the return type of a GCC
15949 builtin and then its argument prototype would still apply. */
15950 #ifdef __cplusplus
15951 extern "C"
15952 #endif
15953 char $ac_func ();
15954 /* The GNU C library defines this for functions which it implements
15955 to always fail with ENOSYS. Some functions are actually named
15956 something starting with __ and the normal name is an alias. */
15957 #if defined __stub_$ac_func || defined __stub___$ac_func
15958 choke me
15959 #endif
15962 main ()
15964 return $ac_func ();
15966 return 0;
15968 _ACEOF
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_link") 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest$ac_exeext &&
15986 $as_test_x conftest$ac_exeext; then
15987 eval "$as_ac_var=yes"
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 eval "$as_ac_var=no"
15995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996 conftest$ac_exeext conftest.$ac_ext
15998 ac_res=`eval echo '${'$as_ac_var'}'`
15999 { echo "$as_me:$LINENO: result: $ac_res" >&5
16000 echo "${ECHO_T}$ac_res" >&6; }
16001 if test `eval echo '${'$as_ac_var'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16004 _ACEOF
16007 done
16011 for ac_header in sys/un.h
16013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 else
16024 # Is the header compilable?
16025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h. */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16033 $ac_includes_default
16034 #include <$ac_header>
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_compile") 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } && {
16050 test -z "$ac_c_werror_flag" ||
16051 test ! -s conftest.err
16052 } && test -s conftest.$ac_objext; then
16053 ac_header_compiler=yes
16054 else
16055 echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 ac_header_compiler=no
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16063 echo "${ECHO_T}$ac_header_compiler" >&6; }
16065 # Is the header present?
16066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <$ac_header>
16075 _ACEOF
16076 if { (ac_try="$ac_cpp conftest.$ac_ext"
16077 case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev/null && {
16089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16091 }; then
16092 ac_header_preproc=yes
16093 else
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_preproc=no
16100 rm -f conftest.err conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 echo "${ECHO_T}$ac_header_preproc" >&6; }
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16106 yes:no: )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16111 ac_header_preproc=yes
16113 no:yes:* )
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16128 esac
16129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134 eval "$as_ac_Header=\$ac_header_preproc"
16136 ac_res=`eval echo '${'$as_ac_Header'}'`
16137 { echo "$as_me:$LINENO: result: $ac_res" >&5
16138 echo "${ECHO_T}$ac_res" >&6; }
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 _ACEOF
16148 done
16155 for ac_header in $ac_header_list
16157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 else
16168 # Is the header compilable?
16169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 #include <$ac_header>
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest.$ac_objext; then
16197 ac_header_compiler=yes
16198 else
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ac_header_compiler=no
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16207 echo "${ECHO_T}$ac_header_compiler" >&6; }
16209 # Is the header present?
16210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <$ac_header>
16219 _ACEOF
16220 if { (ac_try="$ac_cpp conftest.$ac_ext"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } >/dev/null && {
16233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 }; then
16236 ac_header_preproc=yes
16237 else
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ac_header_preproc=no
16244 rm -f conftest.err conftest.$ac_ext
16245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16246 echo "${ECHO_T}$ac_header_preproc" >&6; }
16248 # So? What about this header?
16249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16250 yes:no: )
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16255 ac_header_preproc=yes
16257 no:yes:* )
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16272 esac
16273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278 eval "$as_ac_Header=\$ac_header_preproc"
16280 ac_res=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result: $ac_res" >&5
16282 echo "${ECHO_T}$ac_res" >&6; }
16285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16288 _ACEOF
16292 done
16302 for ac_func in $ac_func_list
16304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16318 #define $ac_func innocuous_$ac_func
16320 /* System header to define __stub macros and hopefully few prototypes,
16321 which can conflict with char $ac_func (); below.
16322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323 <limits.h> exists even on freestanding compilers. */
16325 #ifdef __STDC__
16326 # include <limits.h>
16327 #else
16328 # include <assert.h>
16329 #endif
16331 #undef $ac_func
16333 /* Override any GCC internal prototype to avoid an error.
16334 Use char because int might match the return type of a GCC
16335 builtin and then its argument prototype would still apply. */
16336 #ifdef __cplusplus
16337 extern "C"
16338 #endif
16339 char $ac_func ();
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined __stub_$ac_func || defined __stub___$ac_func
16344 choke me
16345 #endif
16348 main ()
16350 return $ac_func ();
16352 return 0;
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest$ac_exeext &&
16372 $as_test_x conftest$ac_exeext; then
16373 eval "$as_ac_var=yes"
16374 else
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 eval "$as_ac_var=no"
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 conftest$ac_exeext conftest.$ac_ext
16384 ac_res=`eval echo '${'$as_ac_var'}'`
16385 { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_var'}'` = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16390 _ACEOF
16393 done
16411 { echo "$as_me:$LINENO: checking for working mktime" >&5
16412 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16413 if test "${ac_cv_func_working_mktime+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 else
16416 if test "$cross_compiling" = yes; then
16417 ac_cv_func_working_mktime=no
16418 else
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 /* Test program from Paul Eggert and Tony Leneis. */
16426 #ifdef TIME_WITH_SYS_TIME
16427 # include <sys/time.h>
16428 # include <time.h>
16429 #else
16430 # ifdef HAVE_SYS_TIME_H
16431 # include <sys/time.h>
16432 # else
16433 # include <time.h>
16434 # endif
16435 #endif
16437 #include <stdlib.h>
16439 #ifdef HAVE_UNISTD_H
16440 # include <unistd.h>
16441 #endif
16443 #ifndef HAVE_ALARM
16444 # define alarm(X) /* empty */
16445 #endif
16447 /* Work around redefinition to rpl_putenv by other config tests. */
16448 #undef putenv
16450 static time_t time_t_max;
16451 static time_t time_t_min;
16453 /* Values we'll use to set the TZ environment variable. */
16454 static char *tz_strings[] = {
16455 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16456 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16458 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16460 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16461 Based on a problem report from Andreas Jaeger. */
16462 static int
16463 spring_forward_gap ()
16465 /* glibc (up to about 1998-10-07) failed this test. */
16466 struct tm tm;
16468 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16469 instead of "TZ=America/Vancouver" in order to detect the bug even
16470 on systems that don't support the Olson extension, or don't have the
16471 full zoneinfo tables installed. */
16472 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16474 tm.tm_year = 98;
16475 tm.tm_mon = 3;
16476 tm.tm_mday = 5;
16477 tm.tm_hour = 2;
16478 tm.tm_min = 0;
16479 tm.tm_sec = 0;
16480 tm.tm_isdst = -1;
16481 return mktime (&tm) != (time_t) -1;
16484 static int
16485 mktime_test1 (now)
16486 time_t now;
16488 struct tm *lt;
16489 return ! (lt = localtime (&now)) || mktime (lt) == now;
16492 static int
16493 mktime_test (now)
16494 time_t now;
16496 return (mktime_test1 (now)
16497 && mktime_test1 ((time_t) (time_t_max - now))
16498 && mktime_test1 ((time_t) (time_t_min + now)));
16501 static int
16502 irix_6_4_bug ()
16504 /* Based on code from Ariel Faigon. */
16505 struct tm tm;
16506 tm.tm_year = 96;
16507 tm.tm_mon = 3;
16508 tm.tm_mday = 0;
16509 tm.tm_hour = 0;
16510 tm.tm_min = 0;
16511 tm.tm_sec = 0;
16512 tm.tm_isdst = -1;
16513 mktime (&tm);
16514 return tm.tm_mon == 2 && tm.tm_mday == 31;
16517 static int
16518 bigtime_test (j)
16519 int j;
16521 struct tm tm;
16522 time_t now;
16523 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16524 now = mktime (&tm);
16525 if (now != (time_t) -1)
16527 struct tm *lt = localtime (&now);
16528 if (! (lt
16529 && lt->tm_year == tm.tm_year
16530 && lt->tm_mon == tm.tm_mon
16531 && lt->tm_mday == tm.tm_mday
16532 && lt->tm_hour == tm.tm_hour
16533 && lt->tm_min == tm.tm_min
16534 && lt->tm_sec == tm.tm_sec
16535 && lt->tm_yday == tm.tm_yday
16536 && lt->tm_wday == tm.tm_wday
16537 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16538 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16539 return 0;
16541 return 1;
16544 static int
16545 year_2050_test ()
16547 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16548 ignoring leap seconds. */
16549 unsigned long int answer = 2527315200UL;
16551 struct tm tm;
16552 time_t t;
16553 tm.tm_year = 2050 - 1900;
16554 tm.tm_mon = 2 - 1;
16555 tm.tm_mday = 1;
16556 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16557 tm.tm_isdst = -1;
16559 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16560 instead of "TZ=America/Vancouver" in order to detect the bug even
16561 on systems that don't support the Olson extension, or don't have the
16562 full zoneinfo tables installed. */
16563 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16565 t = mktime (&tm);
16567 /* Check that the result is either a failure, or close enough
16568 to the correct answer that we can assume the discrepancy is
16569 due to leap seconds. */
16570 return (t == (time_t) -1
16571 || (0 < t && answer - 120 <= t && t <= answer + 120));
16575 main ()
16577 time_t t, delta;
16578 int i, j;
16580 /* This test makes some buggy mktime implementations loop.
16581 Give up after 60 seconds; a mktime slower than that
16582 isn't worth using anyway. */
16583 alarm (60);
16585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16586 continue;
16587 time_t_max--;
16588 if ((time_t) -1 < 0)
16589 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16590 continue;
16591 delta = time_t_max / 997; /* a suitable prime number */
16592 for (i = 0; i < N_STRINGS; i++)
16594 if (tz_strings[i])
16595 putenv (tz_strings[i]);
16597 for (t = 0; t <= time_t_max - delta; t += delta)
16598 if (! mktime_test (t))
16599 return 1;
16600 if (! (mktime_test ((time_t) 1)
16601 && mktime_test ((time_t) (60 * 60))
16602 && mktime_test ((time_t) (60 * 60 * 24))))
16603 return 1;
16605 for (j = 1; 0 < j; j *= 2)
16606 if (! bigtime_test (j))
16607 return 1;
16608 if (! bigtime_test (j - 1))
16609 return 1;
16611 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16613 _ACEOF
16614 rm -f conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_working_mktime=yes
16635 else
16636 echo "$as_me: program exited with status $ac_status" >&5
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ( exit $ac_status )
16641 ac_cv_func_working_mktime=no
16643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16648 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16649 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16650 if test $ac_cv_func_working_mktime = no; then
16651 case " $LIBOBJS " in
16652 *" mktime.$ac_objext "* ) ;;
16653 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16655 esac
16659 if test "$ac_cv_func_working_mktime" = no; then
16661 cat >>confdefs.h <<\_ACEOF
16662 #define BROKEN_MKTIME 1
16663 _ACEOF
16667 ac_have_func=no # yes means we've found a way to get the load average.
16669 # Make sure getloadavg.c is where it belongs, at configure-time.
16670 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16671 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16672 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16673 { (exit 1); exit 1; }; }
16675 ac_save_LIBS=$LIBS
16677 # Check for getloadavg, but be sure not to touch the cache variable.
16678 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16679 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16680 if test "${ac_cv_func_getloadavg+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16691 #define getloadavg innocuous_getloadavg
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char getloadavg (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16698 #ifdef __STDC__
16699 # include <limits.h>
16700 #else
16701 # include <assert.h>
16702 #endif
16704 #undef getloadavg
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char getloadavg ();
16713 /* The GNU C library defines this for functions which it implements
16714 to always fail with ENOSYS. Some functions are actually named
16715 something starting with __ and the normal name is an alias. */
16716 #if defined __stub_getloadavg || defined __stub___getloadavg
16717 choke me
16718 #endif
16721 main ()
16723 return getloadavg ();
16725 return 0;
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest$ac_exeext &&
16745 $as_test_x conftest$ac_exeext; then
16746 ac_cv_func_getloadavg=yes
16747 else
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_func_getloadavg=no
16754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16755 conftest$ac_exeext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16758 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16759 if test $ac_cv_func_getloadavg = yes; then
16760 exit 0
16761 else
16762 exit 1
16764 ) && ac_have_func=yes
16766 # On HPUX9, an unprivileged user can get load averages through this function.
16768 for ac_func in pstat_getdynamic
16770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h. */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16784 #define $ac_func innocuous_$ac_func
16786 /* System header to define __stub macros and hopefully few prototypes,
16787 which can conflict with char $ac_func (); below.
16788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16789 <limits.h> exists even on freestanding compilers. */
16791 #ifdef __STDC__
16792 # include <limits.h>
16793 #else
16794 # include <assert.h>
16795 #endif
16797 #undef $ac_func
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802 #ifdef __cplusplus
16803 extern "C"
16804 #endif
16805 char $ac_func ();
16806 /* The GNU C library defines this for functions which it implements
16807 to always fail with ENOSYS. Some functions are actually named
16808 something starting with __ and the normal name is an alias. */
16809 #if defined __stub_$ac_func || defined __stub___$ac_func
16810 choke me
16811 #endif
16814 main ()
16816 return $ac_func ();
16818 return 0;
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext &&
16838 $as_test_x conftest$ac_exeext; then
16839 eval "$as_ac_var=yes"
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 eval "$as_ac_var=no"
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848 conftest$ac_exeext conftest.$ac_ext
16850 ac_res=`eval echo '${'$as_ac_var'}'`
16851 { echo "$as_me:$LINENO: result: $ac_res" >&5
16852 echo "${ECHO_T}$ac_res" >&6; }
16853 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856 _ACEOF
16859 done
16862 # Solaris has libkstat which does not require root.
16864 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16865 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16866 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lkstat $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16878 /* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
16881 #ifdef __cplusplus
16882 extern "C"
16883 #endif
16884 char kstat_open ();
16886 main ()
16888 return kstat_open ();
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_lib_kstat_kstat_open=yes
16912 else
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_lib_kstat_kstat_open=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16921 LIBS=$ac_check_lib_save_LIBS
16923 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16924 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16925 if test $ac_cv_lib_kstat_kstat_open = yes; then
16926 cat >>confdefs.h <<_ACEOF
16927 #define HAVE_LIBKSTAT 1
16928 _ACEOF
16930 LIBS="-lkstat $LIBS"
16934 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16936 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16937 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16938 # to get the right answer into the cache.
16939 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16940 if test $ac_have_func = no; then
16941 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16942 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16943 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946 ac_check_lib_save_LIBS=$LIBS
16947 LIBS="-lelf $LIBS"
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16955 /* Override any GCC internal prototype to avoid an error.
16956 Use char because int might match the return type of a GCC
16957 builtin and then its argument prototype would still apply. */
16958 #ifdef __cplusplus
16959 extern "C"
16960 #endif
16961 char elf_begin ();
16963 main ()
16965 return elf_begin ();
16967 return 0;
16969 _ACEOF
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (ac_try="$ac_link"
16972 case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_link") 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } && {
16984 test -z "$ac_c_werror_flag" ||
16985 test ! -s conftest.err
16986 } && test -s conftest$ac_exeext &&
16987 $as_test_x conftest$ac_exeext; then
16988 ac_cv_lib_elf_elf_begin=yes
16989 else
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 ac_cv_lib_elf_elf_begin=no
16996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16997 conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
17000 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17001 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17002 if test $ac_cv_lib_elf_elf_begin = yes; then
17003 LIBS="-lelf $LIBS"
17007 if test $ac_have_func = no; then
17008 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17009 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lkvm $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char kvm_open ();
17030 main ()
17032 return kvm_open ();
17034 return 0;
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest$ac_exeext &&
17054 $as_test_x conftest$ac_exeext; then
17055 ac_cv_lib_kvm_kvm_open=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_kvm_kvm_open=no
17063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17068 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17069 if test $ac_cv_lib_kvm_kvm_open = yes; then
17070 LIBS="-lkvm $LIBS"
17073 # Check for the 4.4BSD definition of getloadavg.
17074 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17075 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17076 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lutil $LIBS"
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char getloadavg ();
17096 main ()
17098 return getloadavg ();
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 ac_cv_lib_util_getloadavg=yes
17122 else
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_cv_lib_util_getloadavg=no
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17131 LIBS=$ac_check_lib_save_LIBS
17133 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17134 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17135 if test $ac_cv_lib_util_getloadavg = yes; then
17136 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17141 if test $ac_have_func = no; then
17142 # There is a commonly available library for RS/6000 AIX.
17143 # Since it is not a standard part of AIX, it might be installed locally.
17144 ac_getloadavg_LIBS=$LIBS
17145 LIBS="-L/usr/local/lib $LIBS"
17146 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17147 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lgetloadavg $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char getloadavg ();
17168 main ()
17170 return getloadavg ();
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 ac_cv_lib_getloadavg_getloadavg=yes
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_lib_getloadavg_getloadavg=no
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17206 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17207 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17208 LIBS="-lgetloadavg $LIBS"
17209 else
17210 LIBS=$ac_getloadavg_LIBS
17215 # Make sure it is really in the library, if we think we found it,
17216 # otherwise set up the replacement function.
17218 for ac_func in getloadavg
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17247 #undef $ac_func
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char $ac_func ();
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 choke me
17261 #endif
17264 main ()
17266 return $ac_func ();
17268 return 0;
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289 eval "$as_ac_var=yes"
17290 else
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no"
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 _ACEOF
17308 else
17309 case " $LIBOBJS " in
17310 *" getloadavg.$ac_objext "* ) ;;
17311 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17313 esac
17316 cat >>confdefs.h <<\_ACEOF
17317 #define C_GETLOADAVG 1
17318 _ACEOF
17320 # Figure out what our getloadavg.c needs.
17321 ac_have_func=no
17322 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17323 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17324 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17325 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17329 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17330 else
17331 # Is the header compilable?
17332 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17333 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17341 #include <sys/dg_sys_info.h>
17342 _ACEOF
17343 rm -f conftest.$ac_objext
17344 if { (ac_try="$ac_compile"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_compile") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest.$ac_objext; then
17360 ac_header_compiler=yes
17361 else
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ac_header_compiler=no
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17370 echo "${ECHO_T}$ac_header_compiler" >&6; }
17372 # Is the header present?
17373 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17374 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <sys/dg_sys_info.h>
17382 _ACEOF
17383 if { (ac_try="$ac_cpp conftest.$ac_ext"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } >/dev/null && {
17396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 }; then
17399 ac_header_preproc=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_header_preproc=no
17407 rm -f conftest.err conftest.$ac_ext
17408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17409 echo "${ECHO_T}$ac_header_preproc" >&6; }
17411 # So? What about this header?
17412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17413 yes:no: )
17414 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17415 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17416 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17417 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17418 ac_header_preproc=yes
17420 no:yes:* )
17421 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17422 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17424 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17426 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17427 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17428 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17430 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17432 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17435 esac
17436 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17437 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17438 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17443 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17444 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17447 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17448 ac_have_func=yes
17450 cat >>confdefs.h <<\_ACEOF
17451 #define DGUX 1
17452 _ACEOF
17455 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17456 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17457 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460 ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-ldgc $LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h. */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char dg_sys_info ();
17477 main ()
17479 return dg_sys_info ();
17481 return 0;
17483 _ACEOF
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_link") 2>conftest.er1
17492 ac_status=$?
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && {
17498 test -z "$ac_c_werror_flag" ||
17499 test ! -s conftest.err
17500 } && test -s conftest$ac_exeext &&
17501 $as_test_x conftest$ac_exeext; then
17502 ac_cv_lib_dgc_dg_sys_info=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_lib_dgc_dg_sys_info=no
17510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511 conftest$ac_exeext conftest.$ac_ext
17512 LIBS=$ac_check_lib_save_LIBS
17514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17515 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17516 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_LIBDGC 1
17519 _ACEOF
17521 LIBS="-ldgc $LIBS"
17529 if test "${ac_cv_header_locale_h+set}" = set; then
17530 { echo "$as_me:$LINENO: checking for locale.h" >&5
17531 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17532 if test "${ac_cv_header_locale_h+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17536 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17537 else
17538 # Is the header compilable?
17539 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17540 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17548 #include <locale.h>
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (ac_try="$ac_compile"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_compile") 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } && {
17564 test -z "$ac_c_werror_flag" ||
17565 test ! -s conftest.err
17566 } && test -s conftest.$ac_objext; then
17567 ac_header_compiler=yes
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_header_compiler=no
17575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17577 echo "${ECHO_T}$ac_header_compiler" >&6; }
17579 # Is the header present?
17580 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17581 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17582 cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h. */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 #include <locale.h>
17589 _ACEOF
17590 if { (ac_try="$ac_cpp conftest.$ac_ext"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } >/dev/null && {
17603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17604 test ! -s conftest.err
17605 }; then
17606 ac_header_preproc=yes
17607 else
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_header_preproc=no
17614 rm -f conftest.err conftest.$ac_ext
17615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17616 echo "${ECHO_T}$ac_header_preproc" >&6; }
17618 # So? What about this header?
17619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17620 yes:no: )
17621 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17622 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17624 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17625 ac_header_preproc=yes
17627 no:yes:* )
17628 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17629 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17631 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17633 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17635 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17637 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17639 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17642 esac
17643 { echo "$as_me:$LINENO: checking for locale.h" >&5
17644 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17645 if test "${ac_cv_header_locale_h+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648 ac_cv_header_locale_h=$ac_header_preproc
17650 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17651 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17657 for ac_func in setlocale
17659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 else
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17673 #define $ac_func innocuous_$ac_func
17675 /* System header to define __stub macros and hopefully few prototypes,
17676 which can conflict with char $ac_func (); below.
17677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17678 <limits.h> exists even on freestanding compilers. */
17680 #ifdef __STDC__
17681 # include <limits.h>
17682 #else
17683 # include <assert.h>
17684 #endif
17686 #undef $ac_func
17688 /* Override any GCC internal prototype to avoid an error.
17689 Use char because int might match the return type of a GCC
17690 builtin and then its argument prototype would still apply. */
17691 #ifdef __cplusplus
17692 extern "C"
17693 #endif
17694 char $ac_func ();
17695 /* The GNU C library defines this for functions which it implements
17696 to always fail with ENOSYS. Some functions are actually named
17697 something starting with __ and the normal name is an alias. */
17698 #if defined __stub_$ac_func || defined __stub___$ac_func
17699 choke me
17700 #endif
17703 main ()
17705 return $ac_func ();
17707 return 0;
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>conftest.er1
17718 ac_status=$?
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest$ac_exeext &&
17727 $as_test_x conftest$ac_exeext; then
17728 eval "$as_ac_var=yes"
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 eval "$as_ac_var=no"
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737 conftest$ac_exeext conftest.$ac_ext
17739 ac_res=`eval echo '${'$as_ac_var'}'`
17740 { echo "$as_me:$LINENO: result: $ac_res" >&5
17741 echo "${ECHO_T}$ac_res" >&6; }
17742 if test `eval echo '${'$as_ac_var'}'` = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17745 _ACEOF
17748 done
17751 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17752 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17753 # Irix 4.0.5F has the header but not the library.
17754 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17755 ac_have_func=yes
17757 cat >>confdefs.h <<\_ACEOF
17758 #define SVR4 1
17759 _ACEOF
17763 if test $ac_have_func = no; then
17764 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17765 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17766 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17767 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17771 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17772 else
17773 # Is the header compilable?
17774 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17775 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17776 cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 $ac_includes_default
17783 #include <inq_stats/cpustats.h>
17784 _ACEOF
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest.$ac_objext; then
17802 ac_header_compiler=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 ac_header_compiler=no
17810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17812 echo "${ECHO_T}$ac_header_compiler" >&6; }
17814 # Is the header present?
17815 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17816 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 #include <inq_stats/cpustats.h>
17824 _ACEOF
17825 if { (ac_try="$ac_cpp conftest.$ac_ext"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } >/dev/null && {
17838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 }; then
17841 ac_header_preproc=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_header_preproc=no
17849 rm -f conftest.err conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17851 echo "${ECHO_T}$ac_header_preproc" >&6; }
17853 # So? What about this header?
17854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17855 yes:no: )
17856 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17857 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17859 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17860 ac_header_preproc=yes
17862 no:yes:* )
17863 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17864 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17866 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17868 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17870 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17872 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17874 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17877 esac
17878 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17879 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17880 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17885 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17889 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17890 ac_have_func=yes
17892 cat >>confdefs.h <<\_ACEOF
17893 #define UMAX 1
17894 _ACEOF
17897 cat >>confdefs.h <<\_ACEOF
17898 #define UMAX4_3 1
17899 _ACEOF
17906 if test $ac_have_func = no; then
17907 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17908 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17909 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17910 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17914 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17915 else
17916 # Is the header compilable?
17917 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17918 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 $ac_includes_default
17926 #include <sys/cpustats.h>
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (ac_try="$ac_compile"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_compile") 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest.$ac_objext; then
17945 ac_header_compiler=yes
17946 else
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_header_compiler=no
17953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17955 echo "${ECHO_T}$ac_header_compiler" >&6; }
17957 # Is the header present?
17958 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17959 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17960 cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h. */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #include <sys/cpustats.h>
17967 _ACEOF
17968 if { (ac_try="$ac_cpp conftest.$ac_ext"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } >/dev/null && {
17981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 }; then
17984 ac_header_preproc=yes
17985 else
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 ac_header_preproc=no
17992 rm -f conftest.err conftest.$ac_ext
17993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17994 echo "${ECHO_T}$ac_header_preproc" >&6; }
17996 # So? What about this header?
17997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17998 yes:no: )
17999 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18000 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18001 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18002 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18003 ac_header_preproc=yes
18005 no:yes:* )
18006 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18007 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18009 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18011 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18013 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18015 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18017 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18020 esac
18021 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18022 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18023 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18029 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18032 if test $ac_cv_header_sys_cpustats_h = yes; then
18033 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18034 #define UMAX 1
18035 _ACEOF
18042 if test $ac_have_func = no; then
18044 for ac_header in mach/mach.h
18046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 ac_res=`eval echo '${'$as_ac_Header'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 else
18057 # Is the header compilable?
18058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h. */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 #include <$ac_header>
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 ac_header_compiler=yes
18087 else
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_header_compiler=no
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18096 echo "${ECHO_T}$ac_header_compiler" >&6; }
18098 # Is the header present?
18099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h. */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <$ac_header>
18108 _ACEOF
18109 if { (ac_try="$ac_cpp conftest.$ac_ext"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } >/dev/null && {
18122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18124 }; then
18125 ac_header_preproc=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_header_preproc=no
18133 rm -f conftest.err conftest.$ac_ext
18134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18135 echo "${ECHO_T}$ac_header_preproc" >&6; }
18137 # So? What about this header?
18138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18139 yes:no: )
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18144 ac_header_preproc=yes
18146 no:yes:* )
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18161 esac
18162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167 eval "$as_ac_Header=\$ac_header_preproc"
18169 ac_res=`eval echo '${'$as_ac_Header'}'`
18170 { echo "$as_me:$LINENO: result: $ac_res" >&5
18171 echo "${ECHO_T}$ac_res" >&6; }
18174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18177 _ACEOF
18181 done
18186 for ac_header in nlist.h
18188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 ac_res=`eval echo '${'$as_ac_Header'}'`
18196 { echo "$as_me:$LINENO: result: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18198 else
18199 # Is the header compilable?
18200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 $ac_includes_default
18209 #include <$ac_header>
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (ac_try="$ac_compile"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_compile") 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest.$ac_objext; then
18228 ac_header_compiler=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18233 ac_header_compiler=no
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18238 echo "${ECHO_T}$ac_header_compiler" >&6; }
18240 # Is the header present?
18241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h. */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 #include <$ac_header>
18250 _ACEOF
18251 if { (ac_try="$ac_cpp conftest.$ac_ext"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } >/dev/null && {
18264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 }; then
18267 ac_header_preproc=yes
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_header_preproc=no
18275 rm -f conftest.err conftest.$ac_ext
18276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18277 echo "${ECHO_T}$ac_header_preproc" >&6; }
18279 # So? What about this header?
18280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18281 yes:no: )
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18286 ac_header_preproc=yes
18288 no:yes:* )
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18303 esac
18304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 eval "$as_ac_Header=\$ac_header_preproc"
18311 ac_res=`eval echo '${'$as_ac_Header'}'`
18312 { echo "$as_me:$LINENO: result: $ac_res" >&5
18313 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18319 _ACEOF
18320 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18321 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18322 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <nlist.h>
18334 main ()
18336 static struct nlist ac_aggr;
18337 if (ac_aggr.n_un.n_name)
18338 return 0;
18340 return 0;
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_compile") 2>conftest.er1
18351 ac_status=$?
18352 grep -v '^ *+' conftest.er1 >conftest.err
18353 rm -f conftest.er1
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && {
18357 test -z "$ac_c_werror_flag" ||
18358 test ! -s conftest.err
18359 } && test -s conftest.$ac_objext; then
18360 ac_cv_member_struct_nlist_n_un_n_name=yes
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <nlist.h>
18374 main ()
18376 static struct nlist ac_aggr;
18377 if (sizeof ac_aggr.n_un.n_name)
18378 return 0;
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18400 ac_cv_member_struct_nlist_n_un_n_name=yes
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_cv_member_struct_nlist_n_un_n_name=no
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18414 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18415 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18417 cat >>confdefs.h <<_ACEOF
18418 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18419 _ACEOF
18422 cat >>confdefs.h <<\_ACEOF
18423 #define NLIST_NAME_UNION 1
18424 _ACEOF
18431 done
18434 done
18437 # Some definitions of getloadavg require that the program be installed setgid.
18438 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18439 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18440 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18450 #ifdef LDAV_PRIVILEGED
18451 Yowza Am I SETGID yet
18452 #endif
18453 _ACEOF
18454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18455 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18456 ac_cv_func_getloadavg_setgid=yes
18457 else
18458 ac_cv_func_getloadavg_setgid=no
18460 rm -f conftest*
18463 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18464 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18465 if test $ac_cv_func_getloadavg_setgid = yes; then
18466 NEED_SETGID=true
18468 cat >>confdefs.h <<\_ACEOF
18469 #define GETLOADAVG_PRIVILEGED 1
18470 _ACEOF
18472 else
18473 NEED_SETGID=false
18476 if test $ac_cv_func_getloadavg_setgid = yes; then
18477 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18478 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18479 if test "${ac_cv_group_kmem+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18483 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18484 # If we got an error (system does not support symlinks), try without -L.
18485 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18486 ac_cv_group_kmem=`echo $ac_ls_output \
18487 | sed -ne 's/[ ][ ]*/ /g;
18488 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18489 / /s/.* //;p;'`
18492 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18493 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18494 KMEM_GROUP=$ac_cv_group_kmem
18496 if test "x$ac_save_LIBS" = x; then
18497 GETLOADAVG_LIBS=$LIBS
18498 else
18499 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18501 LIBS=$ac_save_LIBS
18505 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18506 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18507 if test "${ac_cv_sys_largefile_source+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510 while :; do
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include <stdio.h>
18519 main ()
18521 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 ac_cv_sys_largefile_source=no; break
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #define _LARGEFILE_SOURCE 1
18561 #include <stdio.h>
18563 main ()
18565 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18567 return 0;
18569 _ACEOF
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18578 ac_status=$?
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest$ac_exeext &&
18587 $as_test_x conftest$ac_exeext; then
18588 ac_cv_sys_largefile_source=1; break
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18597 conftest$ac_exeext conftest.$ac_ext
18598 ac_cv_sys_largefile_source=unknown
18599 break
18600 done
18602 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18603 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18604 case $ac_cv_sys_largefile_source in #(
18605 no | unknown) ;;
18607 cat >>confdefs.h <<_ACEOF
18608 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18609 _ACEOF
18611 esac
18612 rm -f conftest*
18614 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18615 # in glibc 2.1.3, but that breaks too many other things.
18616 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18617 if test $ac_cv_sys_largefile_source != unknown; then
18619 cat >>confdefs.h <<\_ACEOF
18620 #define HAVE_FSEEKO 1
18621 _ACEOF
18626 # Configure getopt.
18627 # getopt.m4 serial 10
18629 # The getopt module assume you want GNU getopt, with getopt_long etc,
18630 # rather than vanilla POSIX getopt. This means your your code should
18631 # always include <getopt.h> for the getopt prototypes.
18643 # Prerequisites of lib/getopt*.
18648 GETOPT_H=
18650 for ac_header in getopt.h
18652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_res=`eval echo '${'$as_ac_Header'}'`
18660 { echo "$as_me:$LINENO: result: $ac_res" >&5
18661 echo "${ECHO_T}$ac_res" >&6; }
18662 else
18663 # Is the header compilable?
18664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <$ac_header>
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_compile") 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest.$ac_objext; then
18692 ac_header_compiler=yes
18693 else
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_header_compiler=no
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18702 echo "${ECHO_T}$ac_header_compiler" >&6; }
18704 # Is the header present?
18705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include <$ac_header>
18714 _ACEOF
18715 if { (ac_try="$ac_cpp conftest.$ac_ext"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } >/dev/null && {
18728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18730 }; then
18731 ac_header_preproc=yes
18732 else
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_header_preproc=no
18739 rm -f conftest.err conftest.$ac_ext
18740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18741 echo "${ECHO_T}$ac_header_preproc" >&6; }
18743 # So? What about this header?
18744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18745 yes:no: )
18746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18750 ac_header_preproc=yes
18752 no:yes:* )
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18767 esac
18768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773 eval "$as_ac_Header=\$ac_header_preproc"
18775 ac_res=`eval echo '${'$as_ac_Header'}'`
18776 { echo "$as_me:$LINENO: result: $ac_res" >&5
18777 echo "${ECHO_T}$ac_res" >&6; }
18780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18783 _ACEOF
18785 else
18786 GETOPT_H=getopt.h
18789 done
18791 if test -z "$GETOPT_H"; then
18793 for ac_func in getopt_long_only
18795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18809 #define $ac_func innocuous_$ac_func
18811 /* System header to define __stub macros and hopefully few prototypes,
18812 which can conflict with char $ac_func (); below.
18813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18814 <limits.h> exists even on freestanding compilers. */
18816 #ifdef __STDC__
18817 # include <limits.h>
18818 #else
18819 # include <assert.h>
18820 #endif
18822 #undef $ac_func
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char $ac_func ();
18831 /* The GNU C library defines this for functions which it implements
18832 to always fail with ENOSYS. Some functions are actually named
18833 something starting with __ and the normal name is an alias. */
18834 #if defined __stub_$ac_func || defined __stub___$ac_func
18835 choke me
18836 #endif
18839 main ()
18841 return $ac_func ();
18843 return 0;
18845 _ACEOF
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (ac_try="$ac_link"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest$ac_exeext &&
18863 $as_test_x conftest$ac_exeext; then
18864 eval "$as_ac_var=yes"
18865 else
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 eval "$as_ac_var=no"
18872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18873 conftest$ac_exeext conftest.$ac_ext
18875 ac_res=`eval echo '${'$as_ac_var'}'`
18876 { echo "$as_me:$LINENO: result: $ac_res" >&5
18877 echo "${ECHO_T}$ac_res" >&6; }
18878 if test `eval echo '${'$as_ac_var'}'` = yes; then
18879 cat >>confdefs.h <<_ACEOF
18880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 _ACEOF
18883 else
18884 GETOPT_H=getopt.h
18886 done
18890 if test -z "$GETOPT_H"; then
18891 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18892 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18893 if test "${ac_cv_have_decl_optreset+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <getopt.h>
18905 main ()
18907 #ifndef optreset
18908 (void) optreset;
18909 #endif
18912 return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_compile") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest.$ac_objext; then
18932 ac_cv_have_decl_optreset=yes
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 ac_cv_have_decl_optreset=no
18940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18943 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18944 if test $ac_cv_have_decl_optreset = yes; then
18945 GETOPT_H=getopt.h
18950 if test -z "$GETOPT_H"; then
18951 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18952 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18953 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956 if test "$cross_compiling" = yes; then
18957 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18958 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18959 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962 cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h. */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <getopt.h>
18971 main ()
18973 #ifndef getopt_clip
18974 (void) getopt_clip;
18975 #endif
18978 return 0;
18980 _ACEOF
18981 rm -f conftest.$ac_objext
18982 if { (ac_try="$ac_compile"
18983 case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_compile") 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } && {
18995 test -z "$ac_c_werror_flag" ||
18996 test ! -s conftest.err
18997 } && test -s conftest.$ac_objext; then
18998 ac_cv_have_decl_getopt_clip=yes
18999 else
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19003 ac_cv_have_decl_getopt_clip=no
19006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19009 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19010 if test $ac_cv_have_decl_getopt_clip = yes; then
19011 gl_cv_func_gnu_getopt=no
19012 else
19013 gl_cv_func_gnu_getopt=yes
19016 else
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h. */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <getopt.h>
19025 main ()
19028 char *myargv[3];
19029 myargv[0] = "conftest";
19030 myargv[1] = "-+";
19031 myargv[2] = 0;
19032 return getopt (2, myargv, "+a") != '?';
19035 return 0;
19037 _ACEOF
19038 rm -f conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 gl_cv_func_gnu_getopt=yes
19059 else
19060 echo "$as_me: program exited with status $ac_status" >&5
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ( exit $ac_status )
19065 gl_cv_func_gnu_getopt=no
19067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19072 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19073 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19074 if test "$gl_cv_func_gnu_getopt" = "no"; then
19075 GETOPT_H=getopt.h
19081 if test -n "$GETOPT_H"; then
19084 GETOPT_H=getopt.h
19086 cat >>confdefs.h <<\_ACEOF
19087 #define __GETOPT_PREFIX rpl_
19088 _ACEOF
19093 GETOPTOBJS='getopt.o getopt1.o'
19100 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19101 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19102 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105 # Use it with a single arg.
19106 cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h. */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 $ac_includes_default
19114 main ()
19116 getpgrp (0);
19118 return 0;
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (ac_try="$ac_compile"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_compile") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest.$ac_objext; then
19138 ac_cv_func_getpgrp_void=no
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_cv_func_getpgrp_void=yes
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19150 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19151 if test $ac_cv_func_getpgrp_void = yes; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define GETPGRP_VOID 1
19155 _ACEOF
19161 for ac_func in strftime
19163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define $ac_func innocuous_$ac_func
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char $ac_func (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19184 #ifdef __STDC__
19185 # include <limits.h>
19186 #else
19187 # include <assert.h>
19188 #endif
19190 #undef $ac_func
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char $ac_func ();
19199 /* The GNU C library defines this for functions which it implements
19200 to always fail with ENOSYS. Some functions are actually named
19201 something starting with __ and the normal name is an alias. */
19202 #if defined __stub_$ac_func || defined __stub___$ac_func
19203 choke me
19204 #endif
19207 main ()
19209 return $ac_func ();
19211 return 0;
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19222 ac_status=$?
19223 grep -v '^ *+' conftest.er1 >conftest.err
19224 rm -f conftest.er1
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest$ac_exeext &&
19231 $as_test_x conftest$ac_exeext; then
19232 eval "$as_ac_var=yes"
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 eval "$as_ac_var=no"
19240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19241 conftest$ac_exeext conftest.$ac_ext
19243 ac_res=`eval echo '${'$as_ac_var'}'`
19244 { echo "$as_me:$LINENO: result: $ac_res" >&5
19245 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_var'}'` = yes; then
19247 cat >>confdefs.h <<_ACEOF
19248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19249 _ACEOF
19251 else
19252 # strftime is in -lintl on SCO UNIX.
19253 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19254 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19255 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258 ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-lintl $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 char strftime ();
19275 main ()
19277 return strftime ();
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 ac_cv_lib_intl_strftime=yes
19301 else
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_lib_intl_strftime=no
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19310 LIBS=$ac_check_lib_save_LIBS
19312 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19313 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19314 if test $ac_cv_lib_intl_strftime = yes; then
19315 cat >>confdefs.h <<\_ACEOF
19316 #define HAVE_STRFTIME 1
19317 _ACEOF
19319 LIBS="-lintl $LIBS"
19323 done
19326 # UNIX98 PTYs.
19328 for ac_func in grantpt
19330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19344 #define $ac_func innocuous_$ac_func
19346 /* System header to define __stub macros and hopefully few prototypes,
19347 which can conflict with char $ac_func (); below.
19348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19349 <limits.h> exists even on freestanding compilers. */
19351 #ifdef __STDC__
19352 # include <limits.h>
19353 #else
19354 # include <assert.h>
19355 #endif
19357 #undef $ac_func
19359 /* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19362 #ifdef __cplusplus
19363 extern "C"
19364 #endif
19365 char $ac_func ();
19366 /* The GNU C library defines this for functions which it implements
19367 to always fail with ENOSYS. Some functions are actually named
19368 something starting with __ and the normal name is an alias. */
19369 #if defined __stub_$ac_func || defined __stub___$ac_func
19370 choke me
19371 #endif
19374 main ()
19376 return $ac_func ();
19378 return 0;
19380 _ACEOF
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_link") 2>conftest.er1
19389 ac_status=$?
19390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } && {
19395 test -z "$ac_c_werror_flag" ||
19396 test ! -s conftest.err
19397 } && test -s conftest$ac_exeext &&
19398 $as_test_x conftest$ac_exeext; then
19399 eval "$as_ac_var=yes"
19400 else
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19404 eval "$as_ac_var=no"
19407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19408 conftest$ac_exeext conftest.$ac_ext
19410 ac_res=`eval echo '${'$as_ac_var'}'`
19411 { echo "$as_me:$LINENO: result: $ac_res" >&5
19412 echo "${ECHO_T}$ac_res" >&6; }
19413 if test `eval echo '${'$as_ac_var'}'` = yes; then
19414 cat >>confdefs.h <<_ACEOF
19415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19416 _ACEOF
19419 done
19422 # PTY-related GNU extensions.
19424 for ac_func in getpt
19426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h. */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19440 #define $ac_func innocuous_$ac_func
19442 /* System header to define __stub macros and hopefully few prototypes,
19443 which can conflict with char $ac_func (); below.
19444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19445 <limits.h> exists even on freestanding compilers. */
19447 #ifdef __STDC__
19448 # include <limits.h>
19449 #else
19450 # include <assert.h>
19451 #endif
19453 #undef $ac_func
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char $ac_func ();
19462 /* The GNU C library defines this for functions which it implements
19463 to always fail with ENOSYS. Some functions are actually named
19464 something starting with __ and the normal name is an alias. */
19465 #if defined __stub_$ac_func || defined __stub___$ac_func
19466 choke me
19467 #endif
19470 main ()
19472 return $ac_func ();
19474 return 0;
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 eval "$as_ac_var=yes"
19496 else
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 eval "$as_ac_var=no"
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504 conftest$ac_exeext conftest.$ac_ext
19506 ac_res=`eval echo '${'$as_ac_var'}'`
19507 { echo "$as_me:$LINENO: result: $ac_res" >&5
19508 echo "${ECHO_T}$ac_res" >&6; }
19509 if test `eval echo '${'$as_ac_var'}'` = yes; then
19510 cat >>confdefs.h <<_ACEOF
19511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19512 _ACEOF
19515 done
19518 # Check this now, so that we will NOT find the above functions in ncurses.
19519 # That is because we have not set up to link ncurses in lib-src.
19520 # It's better to believe a function is not available
19521 # than to expect to find it in ncurses.
19523 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19524 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19525 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 ac_check_lib_save_LIBS=$LIBS
19529 LIBS="-lncurses $LIBS"
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19540 #ifdef __cplusplus
19541 extern "C"
19542 #endif
19543 char tparm ();
19545 main ()
19547 return tparm ();
19549 return 0;
19551 _ACEOF
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext &&
19569 $as_test_x conftest$ac_exeext; then
19570 ac_cv_lib_ncurses_tparm=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_ncurses_tparm=no
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19583 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19584 if test $ac_cv_lib_ncurses_tparm = yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_LIBNCURSES 1
19587 _ACEOF
19589 LIBS="-lncurses $LIBS"
19594 # Do we need the Hesiod library to provide the support routines?
19595 if test "$with_hesiod" = yes ; then
19596 # Don't set $LIBS here -- see comments above.
19597 resolv=no
19598 { echo "$as_me:$LINENO: checking for res_send" >&5
19599 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19600 if test "${ac_cv_func_res_send+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19611 #define res_send innocuous_res_send
19613 /* System header to define __stub macros and hopefully few prototypes,
19614 which can conflict with char res_send (); below.
19615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19616 <limits.h> exists even on freestanding compilers. */
19618 #ifdef __STDC__
19619 # include <limits.h>
19620 #else
19621 # include <assert.h>
19622 #endif
19624 #undef res_send
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char res_send ();
19633 /* The GNU C library defines this for functions which it implements
19634 to always fail with ENOSYS. Some functions are actually named
19635 something starting with __ and the normal name is an alias. */
19636 #if defined __stub_res_send || defined __stub___res_send
19637 choke me
19638 #endif
19641 main ()
19643 return res_send ();
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext &&
19665 $as_test_x conftest$ac_exeext; then
19666 ac_cv_func_res_send=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_func_res_send=no
19674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19675 conftest$ac_exeext conftest.$ac_ext
19677 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19678 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19679 if test $ac_cv_func_res_send = yes; then
19681 else
19682 { echo "$as_me:$LINENO: checking for __res_send" >&5
19683 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19684 if test "${ac_cv_func___res_send+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19695 #define __res_send innocuous___res_send
19697 /* System header to define __stub macros and hopefully few prototypes,
19698 which can conflict with char __res_send (); below.
19699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19700 <limits.h> exists even on freestanding compilers. */
19702 #ifdef __STDC__
19703 # include <limits.h>
19704 #else
19705 # include <assert.h>
19706 #endif
19708 #undef __res_send
19710 /* Override any GCC internal prototype to avoid an error.
19711 Use char because int might match the return type of a GCC
19712 builtin and then its argument prototype would still apply. */
19713 #ifdef __cplusplus
19714 extern "C"
19715 #endif
19716 char __res_send ();
19717 /* The GNU C library defines this for functions which it implements
19718 to always fail with ENOSYS. Some functions are actually named
19719 something starting with __ and the normal name is an alias. */
19720 #if defined __stub___res_send || defined __stub_____res_send
19721 choke me
19722 #endif
19725 main ()
19727 return __res_send ();
19729 return 0;
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 ac_cv_func___res_send=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_cv_func___res_send=no
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19761 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19762 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19763 if test $ac_cv_func___res_send = yes; then
19765 else
19766 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19767 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lresolv $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char res_send ();
19788 main ()
19790 return res_send ();
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_resolv_res_send=yes
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_resolv_res_send=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19826 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19827 if test $ac_cv_lib_resolv_res_send = yes; then
19828 resolv=yes
19829 else
19830 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19831 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19832 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835 ac_check_lib_save_LIBS=$LIBS
19836 LIBS="-lresolv $LIBS"
19837 cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h. */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19844 /* Override any GCC internal prototype to avoid an error.
19845 Use char because int might match the return type of a GCC
19846 builtin and then its argument prototype would still apply. */
19847 #ifdef __cplusplus
19848 extern "C"
19849 #endif
19850 char __res_send ();
19852 main ()
19854 return __res_send ();
19856 return 0;
19858 _ACEOF
19859 rm -f conftest.$ac_objext conftest$ac_exeext
19860 if { (ac_try="$ac_link"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_link") 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest$ac_exeext &&
19876 $as_test_x conftest$ac_exeext; then
19877 ac_cv_lib_resolv___res_send=yes
19878 else
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_lib_resolv___res_send=no
19885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19886 conftest$ac_exeext conftest.$ac_ext
19887 LIBS=$ac_check_lib_save_LIBS
19889 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19890 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19891 if test $ac_cv_lib_resolv___res_send = yes; then
19892 resolv=yes
19901 if test "$resolv" = yes ; then
19902 RESOLVLIB=-lresolv
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_LIBRESOLV 1
19906 _ACEOF
19908 else
19909 RESOLVLIB=
19911 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19912 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19913 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h. */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19924 #define hes_getmailhost innocuous_hes_getmailhost
19926 /* System header to define __stub macros and hopefully few prototypes,
19927 which can conflict with char hes_getmailhost (); below.
19928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19929 <limits.h> exists even on freestanding compilers. */
19931 #ifdef __STDC__
19932 # include <limits.h>
19933 #else
19934 # include <assert.h>
19935 #endif
19937 #undef hes_getmailhost
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19942 #ifdef __cplusplus
19943 extern "C"
19944 #endif
19945 char hes_getmailhost ();
19946 /* The GNU C library defines this for functions which it implements
19947 to always fail with ENOSYS. Some functions are actually named
19948 something starting with __ and the normal name is an alias. */
19949 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19950 choke me
19951 #endif
19954 main ()
19956 return hes_getmailhost ();
19958 return 0;
19960 _ACEOF
19961 rm -f conftest.$ac_objext conftest$ac_exeext
19962 if { (ac_try="$ac_link"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_link") 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } && {
19975 test -z "$ac_c_werror_flag" ||
19976 test ! -s conftest.err
19977 } && test -s conftest$ac_exeext &&
19978 $as_test_x conftest$ac_exeext; then
19979 ac_cv_func_hes_getmailhost=yes
19980 else
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_func_hes_getmailhost=no
19987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19988 conftest$ac_exeext conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19991 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19992 if test $ac_cv_func_hes_getmailhost = yes; then
19994 else
19995 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19996 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19997 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 else
20000 ac_check_lib_save_LIBS=$LIBS
20001 LIBS="-lhesiod $RESOLVLIB $LIBS"
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char hes_getmailhost ();
20017 main ()
20019 return hes_getmailhost ();
20021 return 0;
20023 _ACEOF
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (ac_try="$ac_link"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_link") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest$ac_exeext &&
20041 $as_test_x conftest$ac_exeext; then
20042 ac_cv_lib_hesiod_hes_getmailhost=yes
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_cv_lib_hesiod_hes_getmailhost=no
20050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20051 conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS
20054 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20055 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20056 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define HAVE_LIBHESIOD 1
20060 _ACEOF
20062 else
20070 # These tell us which Kerberos-related libraries to use.
20071 if test "${with_kerberos+set}" = set; then
20073 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20074 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lcom_err $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char com_err ();
20095 main ()
20097 return com_err ();
20099 return 0;
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_com_err_com_err=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_lib_com_err_com_err=no
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20133 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20134 if test $ac_cv_lib_com_err_com_err = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LIBCOM_ERR 1
20137 _ACEOF
20139 LIBS="-lcom_err $LIBS"
20144 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20145 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20146 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149 ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lk5crypto $LIBS"
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20161 #ifdef __cplusplus
20162 extern "C"
20163 #endif
20164 char mit_des_cbc_encrypt ();
20166 main ()
20168 return mit_des_cbc_encrypt ();
20170 return 0;
20172 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest$ac_exeext &&
20190 $as_test_x conftest$ac_exeext; then
20191 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20192 else
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200 conftest$ac_exeext conftest.$ac_ext
20201 LIBS=$ac_check_lib_save_LIBS
20203 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20204 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20205 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_LIBK5CRYPTO 1
20208 _ACEOF
20210 LIBS="-lk5crypto $LIBS"
20215 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20216 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20217 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220 ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-lcrypto $LIBS"
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232 #ifdef __cplusplus
20233 extern "C"
20234 #endif
20235 char mit_des_cbc_encrypt ();
20237 main ()
20239 return mit_des_cbc_encrypt ();
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20275 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20276 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LIBCRYPTO 1
20279 _ACEOF
20281 LIBS="-lcrypto $LIBS"
20286 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20287 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20288 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 ac_check_lib_save_LIBS=$LIBS
20292 LIBS="-lkrb5 $LIBS"
20293 cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h. */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20303 #ifdef __cplusplus
20304 extern "C"
20305 #endif
20306 char krb5_init_context ();
20308 main ()
20310 return krb5_init_context ();
20312 return 0;
20314 _ACEOF
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (ac_try="$ac_link"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_link") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest$ac_exeext &&
20332 $as_test_x conftest$ac_exeext; then
20333 ac_cv_lib_krb5_krb5_init_context=yes
20334 else
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_lib_krb5_krb5_init_context=no
20341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20342 conftest$ac_exeext conftest.$ac_ext
20343 LIBS=$ac_check_lib_save_LIBS
20345 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20346 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20347 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_LIBKRB5 1
20350 _ACEOF
20352 LIBS="-lkrb5 $LIBS"
20356 if test "${with_kerberos5+set}" != set; then
20358 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20359 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20360 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-ldes425 $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char des_cbc_encrypt ();
20380 main ()
20382 return des_cbc_encrypt ();
20384 return 0;
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_des425_des_cbc_encrypt=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_lib_des425_des_cbc_encrypt=no
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20417 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20418 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20419 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_LIBDES425 1
20422 _ACEOF
20424 LIBS="-ldes425 $LIBS"
20426 else
20428 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20429 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20430 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433 ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-ldes $LIBS"
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h. */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20442 /* Override any GCC internal prototype to avoid an error.
20443 Use char because int might match the return type of a GCC
20444 builtin and then its argument prototype would still apply. */
20445 #ifdef __cplusplus
20446 extern "C"
20447 #endif
20448 char des_cbc_encrypt ();
20450 main ()
20452 return des_cbc_encrypt ();
20454 return 0;
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext &&
20474 $as_test_x conftest$ac_exeext; then
20475 ac_cv_lib_des_des_cbc_encrypt=yes
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_lib_des_des_cbc_encrypt=no
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20487 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20488 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20489 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_LIBDES 1
20492 _ACEOF
20494 LIBS="-ldes $LIBS"
20501 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20502 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20503 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lkrb4 $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20518 #ifdef __cplusplus
20519 extern "C"
20520 #endif
20521 char krb_get_cred ();
20523 main ()
20525 return krb_get_cred ();
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest$ac_exeext &&
20547 $as_test_x conftest$ac_exeext; then
20548 ac_cv_lib_krb4_krb_get_cred=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_lib_krb4_krb_get_cred=no
20556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20557 conftest$ac_exeext conftest.$ac_ext
20558 LIBS=$ac_check_lib_save_LIBS
20560 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20561 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20562 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_LIBKRB4 1
20565 _ACEOF
20567 LIBS="-lkrb4 $LIBS"
20569 else
20571 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20572 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20573 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lkrb $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20588 #ifdef __cplusplus
20589 extern "C"
20590 #endif
20591 char krb_get_cred ();
20593 main ()
20595 return krb_get_cred ();
20597 return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_krb_krb_get_cred=yes
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_krb_krb_get_cred=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20631 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20632 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBKRB 1
20635 _ACEOF
20637 LIBS="-lkrb $LIBS"
20645 if test "${with_kerberos5+set}" = set; then
20647 for ac_header in krb5.h
20649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657 { echo "$as_me:$LINENO: result: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20659 else
20660 # Is the header compilable?
20661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20670 #include <$ac_header>
20671 _ACEOF
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_compile") 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && {
20686 test -z "$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20688 } && test -s conftest.$ac_objext; then
20689 ac_header_compiler=yes
20690 else
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_compiler=no
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20699 echo "${ECHO_T}$ac_header_compiler" >&6; }
20701 # Is the header present?
20702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <$ac_header>
20711 _ACEOF
20712 if { (ac_try="$ac_cpp conftest.$ac_ext"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20719 ac_status=$?
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } >/dev/null && {
20725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 }; then
20728 ac_header_preproc=yes
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_header_preproc=no
20736 rm -f conftest.err conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6; }
20740 # So? What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20742 yes:no: )
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20747 ac_header_preproc=yes
20749 no:yes:* )
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20764 esac
20765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770 eval "$as_ac_Header=\$ac_header_preproc"
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20784 done
20786 else
20788 for ac_header in des.h
20790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 ac_res=`eval echo '${'$as_ac_Header'}'`
20798 { echo "$as_me:$LINENO: result: $ac_res" >&5
20799 echo "${ECHO_T}$ac_res" >&6; }
20800 else
20801 # Is the header compilable?
20802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 $ac_includes_default
20811 #include <$ac_header>
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20830 ac_header_compiler=yes
20831 else
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_header_compiler=no
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20840 echo "${ECHO_T}$ac_header_compiler" >&6; }
20842 # Is the header present?
20843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <$ac_header>
20852 _ACEOF
20853 if { (ac_try="$ac_cpp conftest.$ac_ext"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } >/dev/null && {
20866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 }; then
20869 ac_header_preproc=yes
20870 else
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_header_preproc=no
20877 rm -f conftest.err conftest.$ac_ext
20878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20879 echo "${ECHO_T}$ac_header_preproc" >&6; }
20881 # So? What about this header?
20882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20883 yes:no: )
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20888 ac_header_preproc=yes
20890 no:yes:* )
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20905 esac
20906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 eval "$as_ac_Header=\$ac_header_preproc"
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914 { echo "$as_me:$LINENO: result: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20921 _ACEOF
20923 else
20925 for ac_header in kerberosIV/des.h
20927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 ac_res=`eval echo '${'$as_ac_Header'}'`
20935 { echo "$as_me:$LINENO: result: $ac_res" >&5
20936 echo "${ECHO_T}$ac_res" >&6; }
20937 else
20938 # Is the header compilable?
20939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h. */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 $ac_includes_default
20948 #include <$ac_header>
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20967 ac_header_compiler=yes
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_header_compiler=no
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20977 echo "${ECHO_T}$ac_header_compiler" >&6; }
20979 # Is the header present?
20980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <$ac_header>
20989 _ACEOF
20990 if { (ac_try="$ac_cpp conftest.$ac_ext"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } >/dev/null && {
21003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 }; then
21006 ac_header_preproc=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_header_preproc=no
21014 rm -f conftest.err conftest.$ac_ext
21015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21016 echo "${ECHO_T}$ac_header_preproc" >&6; }
21018 # So? What about this header?
21019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21020 yes:no: )
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21025 ac_header_preproc=yes
21027 no:yes:* )
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21042 esac
21043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048 eval "$as_ac_Header=\$ac_header_preproc"
21050 ac_res=`eval echo '${'$as_ac_Header'}'`
21051 { echo "$as_me:$LINENO: result: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21058 _ACEOF
21060 else
21062 for ac_header in kerberos/des.h
21064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21069 echo $ECHO_N "(cached) $ECHO_C" >&6
21071 ac_res=`eval echo '${'$as_ac_Header'}'`
21072 { echo "$as_me:$LINENO: result: $ac_res" >&5
21073 echo "${ECHO_T}$ac_res" >&6; }
21074 else
21075 # Is the header compilable?
21076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 $ac_includes_default
21085 #include <$ac_header>
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_compile") 2>conftest.er1
21095 ac_status=$?
21096 grep -v '^ *+' conftest.er1 >conftest.err
21097 rm -f conftest.er1
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && {
21101 test -z "$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21103 } && test -s conftest.$ac_objext; then
21104 ac_header_compiler=yes
21105 else
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_header_compiler=no
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21114 echo "${ECHO_T}$ac_header_compiler" >&6; }
21116 # Is the header present?
21117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 #include <$ac_header>
21126 _ACEOF
21127 if { (ac_try="$ac_cpp conftest.$ac_ext"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } >/dev/null && {
21140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 }; then
21143 ac_header_preproc=yes
21144 else
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_header_preproc=no
21151 rm -f conftest.err conftest.$ac_ext
21152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21153 echo "${ECHO_T}$ac_header_preproc" >&6; }
21155 # So? What about this header?
21156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21157 yes:no: )
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21162 ac_header_preproc=yes
21164 no:yes:* )
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21179 esac
21180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185 eval "$as_ac_Header=\$ac_header_preproc"
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188 { echo "$as_me:$LINENO: result: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 _ACEOF
21199 done
21203 done
21207 done
21210 for ac_header in krb.h
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21222 else
21223 # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <$ac_header>
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_header_compiler=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_header_compiler=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21262 echo "${ECHO_T}$ac_header_compiler" >&6; }
21264 # Is the header present?
21265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <$ac_header>
21274 _ACEOF
21275 if { (ac_try="$ac_cpp conftest.$ac_ext"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null && {
21288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 }; then
21291 ac_header_preproc=yes
21292 else
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_header_preproc=no
21299 rm -f conftest.err conftest.$ac_ext
21300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21301 echo "${ECHO_T}$ac_header_preproc" >&6; }
21303 # So? What about this header?
21304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21305 yes:no: )
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21310 ac_header_preproc=yes
21312 no:yes:* )
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21327 esac
21328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 eval "$as_ac_Header=\$ac_header_preproc"
21335 ac_res=`eval echo '${'$as_ac_Header'}'`
21336 { echo "$as_me:$LINENO: result: $ac_res" >&5
21337 echo "${ECHO_T}$ac_res" >&6; }
21340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21341 cat >>confdefs.h <<_ACEOF
21342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21343 _ACEOF
21345 else
21347 for ac_header in kerberosIV/krb.h
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result: $ac_res" >&5
21358 echo "${ECHO_T}$ac_res" >&6; }
21359 else
21360 # Is the header compilable?
21361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <$ac_header>
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_header_compiler=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_header_compiler=no
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21399 echo "${ECHO_T}$ac_header_compiler" >&6; }
21401 # Is the header present?
21402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h. */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 #include <$ac_header>
21411 _ACEOF
21412 if { (ac_try="$ac_cpp conftest.$ac_ext"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } >/dev/null && {
21425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 }; then
21428 ac_header_preproc=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_header_preproc=no
21436 rm -f conftest.err conftest.$ac_ext
21437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21438 echo "${ECHO_T}$ac_header_preproc" >&6; }
21440 # So? What about this header?
21441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21442 yes:no: )
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21447 ac_header_preproc=yes
21449 no:yes:* )
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21464 esac
21465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470 eval "$as_ac_Header=\$ac_header_preproc"
21472 ac_res=`eval echo '${'$as_ac_Header'}'`
21473 { echo "$as_me:$LINENO: result: $ac_res" >&5
21474 echo "${ECHO_T}$ac_res" >&6; }
21477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21478 cat >>confdefs.h <<_ACEOF
21479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21480 _ACEOF
21482 else
21484 for ac_header in kerberos/krb.h
21486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 ac_res=`eval echo '${'$as_ac_Header'}'`
21494 { echo "$as_me:$LINENO: result: $ac_res" >&5
21495 echo "${ECHO_T}$ac_res" >&6; }
21496 else
21497 # Is the header compilable?
21498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 $ac_includes_default
21507 #include <$ac_header>
21508 _ACEOF
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21514 esac
21515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_compile") 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest.$ac_objext; then
21526 ac_header_compiler=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_header_compiler=no
21534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21536 echo "${ECHO_T}$ac_header_compiler" >&6; }
21538 # Is the header present?
21539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21541 cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h. */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 #include <$ac_header>
21548 _ACEOF
21549 if { (ac_try="$ac_cpp conftest.$ac_ext"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } >/dev/null && {
21562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 }; then
21565 ac_header_preproc=yes
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_header_preproc=no
21573 rm -f conftest.err conftest.$ac_ext
21574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21575 echo "${ECHO_T}$ac_header_preproc" >&6; }
21577 # So? What about this header?
21578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21579 yes:no: )
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21584 ac_header_preproc=yes
21586 no:yes:* )
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21601 esac
21602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607 eval "$as_ac_Header=\$ac_header_preproc"
21609 ac_res=`eval echo '${'$as_ac_Header'}'`
21610 { echo "$as_me:$LINENO: result: $ac_res" >&5
21611 echo "${ECHO_T}$ac_res" >&6; }
21614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21615 cat >>confdefs.h <<_ACEOF
21616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21617 _ACEOF
21621 done
21625 done
21629 done
21633 for ac_header in com_err.h
21635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21645 else
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <$ac_header>
21697 _ACEOF
21698 if { (ac_try="$ac_cpp conftest.$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 }; then
21714 ac_header_preproc=yes
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21728 yes:no: )
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21733 ac_header_preproc=yes
21735 no:yes:* )
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21750 esac
21751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756 eval "$as_ac_Header=\$ac_header_preproc"
21758 ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21766 _ACEOF
21770 done
21774 # Solaris requires -lintl if you want strerror (which calls dgettext)
21775 # to return localized messages.
21777 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21778 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21779 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lintl $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char dgettext ();
21799 main ()
21801 return dgettext ();
21803 return 0;
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_lib_intl_dgettext=yes
21825 else
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_lib_intl_dgettext=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21836 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21837 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21838 if test $ac_cv_lib_intl_dgettext = yes; then
21839 cat >>confdefs.h <<_ACEOF
21840 #define HAVE_LIBINTL 1
21841 _ACEOF
21843 LIBS="-lintl $LIBS"
21848 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21849 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21850 if test "${emacs_cv_localtime_cache+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 if test x$ac_cv_func_tzset = xyes; then
21854 if test "$cross_compiling" = yes; then
21855 # If we have tzset, assume the worst when cross-compiling.
21856 emacs_cv_localtime_cache=yes
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 #include <time.h>
21865 extern char **environ;
21866 unset_TZ ()
21868 char **from, **to;
21869 for (to = from = environ; (*to = *from); from++)
21870 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21871 to++;
21873 char TZ_GMT0[] = "TZ=GMT0";
21874 char TZ_PST8[] = "TZ=PST8";
21875 main()
21877 time_t now = time ((time_t *) 0);
21878 int hour_GMT0, hour_unset;
21879 if (putenv (TZ_GMT0) != 0)
21880 exit (1);
21881 hour_GMT0 = localtime (&now)->tm_hour;
21882 unset_TZ ();
21883 hour_unset = localtime (&now)->tm_hour;
21884 if (putenv (TZ_PST8) != 0)
21885 exit (1);
21886 if (localtime (&now)->tm_hour == hour_GMT0)
21887 exit (1);
21888 unset_TZ ();
21889 if (localtime (&now)->tm_hour != hour_unset)
21890 exit (1);
21891 exit (0);
21893 _ACEOF
21894 rm -f conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_link") 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 emacs_cv_localtime_cache=no
21915 else
21916 echo "$as_me: program exited with status $ac_status" >&5
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ( exit $ac_status )
21921 emacs_cv_localtime_cache=yes
21923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 else
21928 # If we lack tzset, report that localtime does not cache TZ,
21929 # since we can't invalidate the cache if we don't have tzset.
21930 emacs_cv_localtime_cache=no
21933 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21934 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21935 if test $emacs_cv_localtime_cache = yes; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define LOCALTIME_CACHE 1
21939 _ACEOF
21943 if test "x$HAVE_TIMEVAL" = xyes; then
21945 for ac_func in gettimeofday
21947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h. */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21961 #define $ac_func innocuous_$ac_func
21963 /* System header to define __stub macros and hopefully few prototypes,
21964 which can conflict with char $ac_func (); below.
21965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966 <limits.h> exists even on freestanding compilers. */
21968 #ifdef __STDC__
21969 # include <limits.h>
21970 #else
21971 # include <assert.h>
21972 #endif
21974 #undef $ac_func
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 char $ac_func ();
21983 /* The GNU C library defines this for functions which it implements
21984 to always fail with ENOSYS. Some functions are actually named
21985 something starting with __ and the normal name is an alias. */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21987 choke me
21988 #endif
21991 main ()
21993 return $ac_func ();
21995 return 0;
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext &&
22015 $as_test_x conftest$ac_exeext; then
22016 eval "$as_ac_var=yes"
22017 else
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 eval "$as_ac_var=no"
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025 conftest$ac_exeext conftest.$ac_ext
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028 { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22033 _ACEOF
22036 done
22038 if test $ac_cv_func_gettimeofday = yes; then
22039 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22040 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22041 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h. */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22051 #ifdef TIME_WITH_SYS_TIME
22052 #include <sys/time.h>
22053 #include <time.h>
22054 #else
22055 #ifdef HAVE_SYS_TIME_H
22056 #include <sys/time.h>
22057 #else
22058 #include <time.h>
22059 #endif
22060 #endif
22062 main ()
22064 struct timeval time;
22065 gettimeofday (&time, 0);
22067 return 0;
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest.$ac_objext; then
22087 emacs_cv_gettimeofday_two_arguments=yes
22088 else
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 emacs_cv_gettimeofday_two_arguments=no
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22098 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22099 if test $emacs_cv_gettimeofday_two_arguments = no; then
22101 cat >>confdefs.h <<\_ACEOF
22102 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22103 _ACEOF
22109 ok_so_far=yes
22110 { echo "$as_me:$LINENO: checking for socket" >&5
22111 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22112 if test "${ac_cv_func_socket+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114 else
22115 cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h. */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22123 #define socket innocuous_socket
22125 /* System header to define __stub macros and hopefully few prototypes,
22126 which can conflict with char socket (); below.
22127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22128 <limits.h> exists even on freestanding compilers. */
22130 #ifdef __STDC__
22131 # include <limits.h>
22132 #else
22133 # include <assert.h>
22134 #endif
22136 #undef socket
22138 /* Override any GCC internal prototype to avoid an error.
22139 Use char because int might match the return type of a GCC
22140 builtin and then its argument prototype would still apply. */
22141 #ifdef __cplusplus
22142 extern "C"
22143 #endif
22144 char socket ();
22145 /* The GNU C library defines this for functions which it implements
22146 to always fail with ENOSYS. Some functions are actually named
22147 something starting with __ and the normal name is an alias. */
22148 #if defined __stub_socket || defined __stub___socket
22149 choke me
22150 #endif
22153 main ()
22155 return socket ();
22157 return 0;
22159 _ACEOF
22160 rm -f conftest.$ac_objext conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_link") 2>conftest.er1
22168 ac_status=$?
22169 grep -v '^ *+' conftest.er1 >conftest.err
22170 rm -f conftest.er1
22171 cat conftest.err >&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && {
22174 test -z "$ac_c_werror_flag" ||
22175 test ! -s conftest.err
22176 } && test -s conftest$ac_exeext &&
22177 $as_test_x conftest$ac_exeext; then
22178 ac_cv_func_socket=yes
22179 else
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_cv_func_socket=no
22186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22187 conftest$ac_exeext conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22190 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22191 if test $ac_cv_func_socket = yes; then
22193 else
22194 ok_so_far=no
22197 if test $ok_so_far = yes; then
22198 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22199 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22200 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22201 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22205 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22206 else
22207 # Is the header compilable?
22208 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22209 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h. */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 $ac_includes_default
22217 #include <netinet/in.h>
22218 _ACEOF
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22227 ac_status=$?
22228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 ac_header_compiler=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_header_compiler=no
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22246 echo "${ECHO_T}$ac_header_compiler" >&6; }
22248 # Is the header present?
22249 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22250 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 #include <netinet/in.h>
22258 _ACEOF
22259 if { (ac_try="$ac_cpp conftest.$ac_ext"
22260 case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22266 ac_status=$?
22267 grep -v '^ *+' conftest.er1 >conftest.err
22268 rm -f conftest.er1
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } >/dev/null && {
22272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22274 }; then
22275 ac_header_preproc=yes
22276 else
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_header_preproc=no
22283 rm -f conftest.err conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6; }
22287 # So? What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22289 yes:no: )
22290 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22291 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22293 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22294 ac_header_preproc=yes
22296 no:yes:* )
22297 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22298 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22300 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22302 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22304 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22306 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22308 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22311 esac
22312 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22313 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22314 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317 ac_cv_header_netinet_in_h=$ac_header_preproc
22319 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22320 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22323 if test $ac_cv_header_netinet_in_h = yes; then
22325 else
22326 ok_so_far=no
22331 if test $ok_so_far = yes; then
22332 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22333 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22334 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22335 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22339 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22340 else
22341 # Is the header compilable?
22342 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22343 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 $ac_includes_default
22351 #include <arpa/inet.h>
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22358 esac
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_compile") 2>conftest.er1
22361 ac_status=$?
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest.$ac_objext; then
22370 ac_header_compiler=yes
22371 else
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_header_compiler=no
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22380 echo "${ECHO_T}$ac_header_compiler" >&6; }
22382 # Is the header present?
22383 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22384 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h. */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391 #include <arpa/inet.h>
22392 _ACEOF
22393 if { (ac_try="$ac_cpp conftest.$ac_ext"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22400 ac_status=$?
22401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } >/dev/null && {
22406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 }; then
22409 ac_header_preproc=yes
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_header_preproc=no
22417 rm -f conftest.err conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22419 echo "${ECHO_T}$ac_header_preproc" >&6; }
22421 # So? What about this header?
22422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22423 yes:no: )
22424 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22425 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22427 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22428 ac_header_preproc=yes
22430 no:yes:* )
22431 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22432 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22434 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22436 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22437 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22438 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22439 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22440 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22441 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22442 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22445 esac
22446 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22447 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22448 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451 ac_cv_header_arpa_inet_h=$ac_header_preproc
22453 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22454 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22457 if test $ac_cv_header_arpa_inet_h = yes; then
22459 else
22460 ok_so_far=no
22465 if test $ok_so_far = yes; then
22467 cat >>confdefs.h <<\_ACEOF
22468 #define HAVE_INET_SOCKETS 1
22469 _ACEOF
22474 for ac_header in sys/ioctl.h
22476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 ac_res=`eval echo '${'$as_ac_Header'}'`
22484 { echo "$as_me:$LINENO: result: $ac_res" >&5
22485 echo "${ECHO_T}$ac_res" >&6; }
22486 else
22487 # Is the header compilable?
22488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h. */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 $ac_includes_default
22497 #include <$ac_header>
22498 _ACEOF
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_compile") 2>conftest.er1
22507 ac_status=$?
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && {
22513 test -z "$ac_c_werror_flag" ||
22514 test ! -s conftest.err
22515 } && test -s conftest.$ac_objext; then
22516 ac_header_compiler=yes
22517 else
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_header_compiler=no
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22526 echo "${ECHO_T}$ac_header_compiler" >&6; }
22528 # Is the header present?
22529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22531 cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h. */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 #include <$ac_header>
22538 _ACEOF
22539 if { (ac_try="$ac_cpp conftest.$ac_ext"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } >/dev/null && {
22552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 }; then
22555 ac_header_preproc=yes
22556 else
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_header_preproc=no
22563 rm -f conftest.err conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22565 echo "${ECHO_T}$ac_header_preproc" >&6; }
22567 # So? What about this header?
22568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22569 yes:no: )
22570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22574 ac_header_preproc=yes
22576 no:yes:* )
22577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22591 esac
22592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597 eval "$as_ac_Header=\$ac_header_preproc"
22599 ac_res=`eval echo '${'$as_ac_Header'}'`
22600 { echo "$as_me:$LINENO: result: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22607 _ACEOF
22611 done
22614 if test -f /usr/lpp/X11/bin/smt.exp; then
22616 cat >>confdefs.h <<\_ACEOF
22617 #define HAVE_AIX_SMT_EXP 1
22618 _ACEOF
22622 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22623 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22624 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22625 { echo "$as_me:$LINENO: result: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22628 cat >>confdefs.h <<\_ACEOF
22629 #define HAVE_DEV_PTMX 1
22630 _ACEOF
22632 else
22633 { echo "$as_me:$LINENO: result: no" >&5
22634 echo "${ECHO_T}no" >&6; }
22637 { echo "$as_me:$LINENO: checking for pid_t" >&5
22638 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22639 if test "${ac_cv_type_pid_t+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22642 cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h. */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 $ac_includes_default
22649 typedef pid_t ac__type_new_;
22651 main ()
22653 if ((ac__type_new_ *) 0)
22654 return 0;
22655 if (sizeof (ac__type_new_))
22656 return 0;
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 ac_cv_type_pid_t=yes
22679 else
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_type_pid_t=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22690 if test $ac_cv_type_pid_t = yes; then
22692 else
22694 cat >>confdefs.h <<_ACEOF
22695 #define pid_t int
22696 _ACEOF
22701 for ac_header in vfork.h
22703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 ac_res=`eval echo '${'$as_ac_Header'}'`
22711 { echo "$as_me:$LINENO: result: $ac_res" >&5
22712 echo "${ECHO_T}$ac_res" >&6; }
22713 else
22714 # Is the header compilable?
22715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22717 cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h. */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 $ac_includes_default
22724 #include <$ac_header>
22725 _ACEOF
22726 rm -f conftest.$ac_objext
22727 if { (ac_try="$ac_compile"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731 esac
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_header_compiler=yes
22744 else
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_header_compiler=no
22751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22753 echo "${ECHO_T}$ac_header_compiler" >&6; }
22755 # Is the header present?
22756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22758 cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h. */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 #include <$ac_header>
22765 _ACEOF
22766 if { (ac_try="$ac_cpp conftest.$ac_ext"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } >/dev/null && {
22779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 }; then
22782 ac_header_preproc=yes
22783 else
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ac_header_preproc=no
22790 rm -f conftest.err conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22792 echo "${ECHO_T}$ac_header_preproc" >&6; }
22794 # So? What about this header?
22795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22796 yes:no: )
22797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22801 ac_header_preproc=yes
22803 no:yes:* )
22804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22818 esac
22819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824 eval "$as_ac_Header=\$ac_header_preproc"
22826 ac_res=`eval echo '${'$as_ac_Header'}'`
22827 { echo "$as_me:$LINENO: result: $ac_res" >&5
22828 echo "${ECHO_T}$ac_res" >&6; }
22831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22832 cat >>confdefs.h <<_ACEOF
22833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22834 _ACEOF
22838 done
22842 for ac_func in fork vfork
22844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850 cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h. */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22858 #define $ac_func innocuous_$ac_func
22860 /* System header to define __stub macros and hopefully few prototypes,
22861 which can conflict with char $ac_func (); below.
22862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22863 <limits.h> exists even on freestanding compilers. */
22865 #ifdef __STDC__
22866 # include <limits.h>
22867 #else
22868 # include <assert.h>
22869 #endif
22871 #undef $ac_func
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22876 #ifdef __cplusplus
22877 extern "C"
22878 #endif
22879 char $ac_func ();
22880 /* The GNU C library defines this for functions which it implements
22881 to always fail with ENOSYS. Some functions are actually named
22882 something starting with __ and the normal name is an alias. */
22883 #if defined __stub_$ac_func || defined __stub___$ac_func
22884 choke me
22885 #endif
22888 main ()
22890 return $ac_func ();
22892 return 0;
22894 _ACEOF
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_link") 2>conftest.er1
22903 ac_status=$?
22904 grep -v '^ *+' conftest.er1 >conftest.err
22905 rm -f conftest.er1
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest$ac_exeext &&
22912 $as_test_x conftest$ac_exeext; then
22913 eval "$as_ac_var=yes"
22914 else
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 eval "$as_ac_var=no"
22921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22922 conftest$ac_exeext conftest.$ac_ext
22924 ac_res=`eval echo '${'$as_ac_var'}'`
22925 { echo "$as_me:$LINENO: result: $ac_res" >&5
22926 echo "${ECHO_T}$ac_res" >&6; }
22927 if test `eval echo '${'$as_ac_var'}'` = yes; then
22928 cat >>confdefs.h <<_ACEOF
22929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22930 _ACEOF
22933 done
22935 if test "x$ac_cv_func_fork" = xyes; then
22936 { echo "$as_me:$LINENO: checking for working fork" >&5
22937 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22938 if test "${ac_cv_func_fork_works+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 else
22941 if test "$cross_compiling" = yes; then
22942 ac_cv_func_fork_works=cross
22943 else
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 $ac_includes_default
22952 main ()
22955 /* By Ruediger Kuhlmann. */
22956 return fork () < 0;
22959 return 0;
22961 _ACEOF
22962 rm -f conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_link") 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982 ac_cv_func_fork_works=yes
22983 else
22984 echo "$as_me: program exited with status $ac_status" >&5
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ( exit $ac_status )
22989 ac_cv_func_fork_works=no
22991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22996 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22997 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22999 else
23000 ac_cv_func_fork_works=$ac_cv_func_fork
23002 if test "x$ac_cv_func_fork_works" = xcross; then
23003 case $host in
23004 *-*-amigaos* | *-*-msdosdjgpp*)
23005 # Override, as these systems have only a dummy fork() stub
23006 ac_cv_func_fork_works=no
23009 ac_cv_func_fork_works=yes
23011 esac
23012 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23013 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23015 ac_cv_func_vfork_works=$ac_cv_func_vfork
23016 if test "x$ac_cv_func_vfork" = xyes; then
23017 { echo "$as_me:$LINENO: checking for working vfork" >&5
23018 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23019 if test "${ac_cv_func_vfork_works+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022 if test "$cross_compiling" = yes; then
23023 ac_cv_func_vfork_works=cross
23024 else
23025 cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 /* Thanks to Paul Eggert for this test. */
23032 $ac_includes_default
23033 #include <sys/wait.h>
23034 #ifdef HAVE_VFORK_H
23035 # include <vfork.h>
23036 #endif
23037 /* On some sparc systems, changes by the child to local and incoming
23038 argument registers are propagated back to the parent. The compiler
23039 is told about this with #include <vfork.h>, but some compilers
23040 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23041 static variable whose address is put into a register that is
23042 clobbered by the vfork. */
23043 static void
23044 #ifdef __cplusplus
23045 sparc_address_test (int arg)
23046 # else
23047 sparc_address_test (arg) int arg;
23048 #endif
23050 static pid_t child;
23051 if (!child) {
23052 child = vfork ();
23053 if (child < 0) {
23054 perror ("vfork");
23055 _exit(2);
23057 if (!child) {
23058 arg = getpid();
23059 write(-1, "", 0);
23060 _exit (arg);
23066 main ()
23068 pid_t parent = getpid ();
23069 pid_t child;
23071 sparc_address_test (0);
23073 child = vfork ();
23075 if (child == 0) {
23076 /* Here is another test for sparc vfork register problems. This
23077 test uses lots of local variables, at least as many local
23078 variables as main has allocated so far including compiler
23079 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23080 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23081 reuse the register of parent for one of the local variables,
23082 since it will think that parent can't possibly be used any more
23083 in this routine. Assigning to the local variable will thus
23084 munge parent in the parent process. */
23085 pid_t
23086 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23087 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23088 /* Convince the compiler that p..p7 are live; otherwise, it might
23089 use the same hardware register for all 8 local variables. */
23090 if (p != p1 || p != p2 || p != p3 || p != p4
23091 || p != p5 || p != p6 || p != p7)
23092 _exit(1);
23094 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23095 from child file descriptors. If the child closes a descriptor
23096 before it execs or exits, this munges the parent's descriptor
23097 as well. Test for this by closing stdout in the child. */
23098 _exit(close(fileno(stdout)) != 0);
23099 } else {
23100 int status;
23101 struct stat st;
23103 while (wait(&status) != child)
23105 return (
23106 /* Was there some problem with vforking? */
23107 child < 0
23109 /* Did the child fail? (This shouldn't happen.) */
23110 || status
23112 /* Did the vfork/compiler bug occur? */
23113 || parent != getpid()
23115 /* Did the file descriptor bug occur? */
23116 || fstat(fileno(stdout), &st) != 0
23120 _ACEOF
23121 rm -f conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_link") 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23138 ac_status=$?
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ac_cv_func_vfork_works=yes
23142 else
23143 echo "$as_me: program exited with status $ac_status" >&5
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ( exit $ac_status )
23148 ac_cv_func_vfork_works=no
23150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23155 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23156 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23159 if test "x$ac_cv_func_fork_works" = xcross; then
23160 ac_cv_func_vfork_works=$ac_cv_func_vfork
23161 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23162 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23165 if test "x$ac_cv_func_vfork_works" = xyes; then
23167 cat >>confdefs.h <<\_ACEOF
23168 #define HAVE_WORKING_VFORK 1
23169 _ACEOF
23171 else
23173 cat >>confdefs.h <<\_ACEOF
23174 #define vfork fork
23175 _ACEOF
23178 if test "x$ac_cv_func_fork_works" = xyes; then
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_WORKING_FORK 1
23182 _ACEOF
23187 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23188 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23189 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192 cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h. */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <langinfo.h>
23200 main ()
23202 char* cs = nl_langinfo(CODESET);
23204 return 0;
23206 _ACEOF
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_link") 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest$ac_exeext &&
23224 $as_test_x conftest$ac_exeext; then
23225 emacs_cv_langinfo_codeset=yes
23226 else
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 emacs_cv_langinfo_codeset=no
23233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23234 conftest$ac_exeext conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23238 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23239 if test $emacs_cv_langinfo_codeset = yes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_LANGINFO_CODESET 1
23243 _ACEOF
23247 { echo "$as_me:$LINENO: checking for size_t" >&5
23248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23249 if test "${ac_cv_type_size_t+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h. */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 $ac_includes_default
23259 typedef size_t ac__type_new_;
23261 main ()
23263 if ((ac__type_new_ *) 0)
23264 return 0;
23265 if (sizeof (ac__type_new_))
23266 return 0;
23268 return 0;
23270 _ACEOF
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278 (eval "$ac_compile") 2>conftest.er1
23279 ac_status=$?
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest.$ac_objext; then
23288 ac_cv_type_size_t=yes
23289 else
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ac_cv_type_size_t=no
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23298 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23299 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23300 if test $ac_cv_type_size_t = yes; then
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_SIZE_T 1
23304 _ACEOF
23310 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23311 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23312 if test "${ac_cv_type_mbstate_t+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 else
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 $ac_includes_default
23322 # include <wchar.h>
23324 main ()
23326 mbstate_t x; return sizeof x;
23328 return 0;
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23336 esac
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23339 ac_status=$?
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 ac_cv_type_mbstate_t=yes
23349 else
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_type_mbstate_t=no
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23359 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23360 if test $ac_cv_type_mbstate_t = yes; then
23362 cat >>confdefs.h <<\_ACEOF
23363 #define HAVE_MBSTATE_T 1
23364 _ACEOF
23366 else
23368 cat >>confdefs.h <<\_ACEOF
23369 #define mbstate_t int
23370 _ACEOF
23374 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23375 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23376 if test "${emacs_cv_c_restrict+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 else
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 void fred (int *restrict x);
23387 main ()
23391 return 0;
23393 _ACEOF
23394 rm -f conftest.$ac_objext
23395 if { (ac_try="$ac_compile"
23396 case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23399 esac
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_compile") 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } && {
23408 test -z "$ac_c_werror_flag" ||
23409 test ! -s conftest.err
23410 } && test -s conftest.$ac_objext; then
23411 emacs_cv_c_restrict=yes
23412 else
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h. */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 void fred (int *__restrict x);
23424 main ()
23428 return 0;
23430 _ACEOF
23431 rm -f conftest.$ac_objext
23432 if { (ac_try="$ac_compile"
23433 case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23436 esac
23437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23439 ac_status=$?
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 emacs_cv_c_restrict=__restrict
23449 else
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 emacs_cv_c_restrict=no
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23462 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23463 case "$emacs_cv_c_restrict" in
23464 yes) emacs_restrict=restrict;;
23465 no) emacs_restrict="";;
23466 *) emacs_restrict="$emacs_cv_c_restrict";;
23467 esac
23468 if test "$emacs_restrict" != __restrict; then
23470 cat >>confdefs.h <<_ACEOF
23471 #define __restrict $emacs_restrict
23472 _ACEOF
23476 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23477 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23478 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h. */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 void fred (int x[__restrict]);
23489 main ()
23493 return 0;
23495 _ACEOF
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23501 esac
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_compile") 2>conftest.er1
23504 ac_status=$?
23505 grep -v '^ *+' conftest.er1 >conftest.err
23506 rm -f conftest.er1
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && {
23510 test -z "$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 } && test -s conftest.$ac_objext; then
23513 emacs_cv_c_restrict_arr=yes
23514 else
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 emacs_cv_c_restrict_arr=no
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23524 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23525 if test "$emacs_cv_c_restrict_arr" = yes; then
23527 cat >>confdefs.h <<\_ACEOF
23528 #define __restrict_arr __restrict
23529 _ACEOF
23535 # Set up the CFLAGS for real compilation, so we can substitute it.
23536 CFLAGS="$REAL_CFLAGS"
23537 CPPFLAGS="$REAL_CPPFLAGS"
23539 #### Find out which version of Emacs this is.
23540 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23541 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23542 if test x"${version}" = x; then
23543 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23544 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23545 { (exit 1); exit 1; }; }
23548 ### Specify what sort of things we'll be editing into Makefile and config.h.
23549 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23585 cat >>confdefs.h <<_ACEOF
23586 #define EMACS_CONFIGURATION "${canonical}"
23587 _ACEOF
23590 cat >>confdefs.h <<_ACEOF
23591 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23592 _ACEOF
23595 cat >>confdefs.h <<_ACEOF
23596 #define config_machfile "${machfile}"
23597 _ACEOF
23600 cat >>confdefs.h <<_ACEOF
23601 #define config_opsysfile "${opsysfile}"
23602 _ACEOF
23605 cat >>confdefs.h <<_ACEOF
23606 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23607 _ACEOF
23610 cat >>confdefs.h <<_ACEOF
23611 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23612 _ACEOF
23615 cat >>confdefs.h <<_ACEOF
23616 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23617 _ACEOF
23620 cat >>confdefs.h <<_ACEOF
23621 #define UNEXEC_SRC ${UNEXEC_SRC}
23622 _ACEOF
23625 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23627 cat >>confdefs.h <<\_ACEOF
23628 #define HAVE_X_WINDOWS 1
23629 _ACEOF
23632 if test "${USE_X_TOOLKIT}" != "none" ; then
23634 cat >>confdefs.h <<\_ACEOF
23635 #define USE_X_TOOLKIT 1
23636 _ACEOF
23639 if test "${HAVE_X11}" = "yes" ; then
23641 cat >>confdefs.h <<\_ACEOF
23642 #define HAVE_X11 1
23643 _ACEOF
23646 if test "${HAVE_XFREE386}" = "yes" ; then
23648 cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_XFREE386 1
23650 _ACEOF
23653 if test "${HAVE_MENUS}" = "yes" ; then
23655 cat >>confdefs.h <<\_ACEOF
23656 #define HAVE_MENUS 1
23657 _ACEOF
23660 if test "${GNU_MALLOC}" = "yes" ; then
23662 cat >>confdefs.h <<\_ACEOF
23663 #define GNU_MALLOC 1
23664 _ACEOF
23667 if test "${REL_ALLOC}" = "yes" ; then
23669 cat >>confdefs.h <<\_ACEOF
23670 #define REL_ALLOC 1
23671 _ACEOF
23680 #### Report on what we decided to do.
23681 #### Report GTK as a toolkit, even if it doesn't use Xt.
23682 #### It makes printing result more understandable as using GTK sets
23683 #### toolkit_scroll_bars to yes by default.
23684 if test "${HAVE_GTK}" = "yes"; then
23685 USE_X_TOOLKIT=GTK
23688 echo "
23689 Configured for \`${canonical}'.
23691 Where should the build process find the source code? ${srcdir}
23692 What operating system and machine description files should Emacs use?
23693 \`${opsysfile}' and \`${machfile}'
23694 What compiler should emacs be built with? ${CC} ${CFLAGS}
23695 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23696 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23697 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23698 What window system should Emacs use? ${window_system}
23699 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23701 if test -n "${x_includes}"; then
23702 echo " Where do we find X Windows header files? ${x_includes}"
23703 else
23704 echo " Where do we find X Windows header files? Standard dirs"
23706 if test -n "${x_libraries}"; then
23707 echo " Where do we find X Windows libraries? ${x_libraries}"
23708 else
23709 echo " Where do we find X Windows libraries? Standard dirs"
23712 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23713 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23714 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23715 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23716 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23717 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23718 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23719 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23720 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23721 echo
23723 if test $USE_XASSERTS = yes; then
23724 echo " Compiling with asserts turned on."
23725 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23726 echo
23729 if test "$USE_X_TOOLKIT" = GTK; then
23730 case "$canonical" in
23731 *cygwin*)
23732 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23733 will probably get a crash on startup. If this happens, please use another
23734 toolkit for Emacs. See etc/PROBLEMS for more information."
23736 esac
23741 # Remove any trailing slashes in these variables.
23742 test "${prefix}" != NONE &&
23743 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23744 test "${exec_prefix}" != NONE &&
23745 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23747 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23748 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23749 ## from Makefile.c can correctly provide the arg `-traditional' to the
23750 ## C preprocessor.
23752 cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h. */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23758 yes..yes
23759 _ACEOF
23760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23761 $EGREP "yes..yes" >/dev/null 2>&1; then
23762 CPP_NEED_TRADITIONAL=no
23763 else
23764 CPP_NEED_TRADITIONAL=yes
23766 rm -f conftest*
23769 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23771 ac_config_commands="$ac_config_commands default"
23773 cat >confcache <<\_ACEOF
23774 # This file is a shell script that caches the results of configure
23775 # tests run on this system so they can be shared between configure
23776 # scripts and configure runs, see configure's option --config-cache.
23777 # It is not useful on other systems. If it contains results you don't
23778 # want to keep, you may remove or edit it.
23780 # config.status only pays attention to the cache file if you give it
23781 # the --recheck option to rerun configure.
23783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23785 # following values.
23787 _ACEOF
23789 # The following way of writing the cache mishandles newlines in values,
23790 # but we know of no workaround that is simple, portable, and efficient.
23791 # So, we kill variables containing newlines.
23792 # Ultrix sh set writes to stderr and can't be redirected directly,
23793 # and sets the high bit in the cache file unless we assign to the vars.
23795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23796 eval ac_val=\$$ac_var
23797 case $ac_val in #(
23798 *${as_nl}*)
23799 case $ac_var in #(
23800 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23801 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23802 esac
23803 case $ac_var in #(
23804 _ | IFS | as_nl) ;; #(
23805 *) $as_unset $ac_var ;;
23806 esac ;;
23807 esac
23808 done
23810 (set) 2>&1 |
23811 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23812 *${as_nl}ac_space=\ *)
23813 # `set' does not quote correctly, so add quotes (double-quote
23814 # substitution turns \\\\ into \\, and sed turns \\ into \).
23815 sed -n \
23816 "s/'/'\\\\''/g;
23817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23818 ;; #(
23820 # `set' quotes correctly as required by POSIX, so do not add quotes.
23821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23823 esac |
23824 sort
23826 sed '
23827 /^ac_cv_env_/b end
23828 t clear
23829 :clear
23830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23831 t end
23832 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23833 :end' >>confcache
23834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23835 if test -w "$cache_file"; then
23836 test "x$cache_file" != "x/dev/null" &&
23837 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23838 echo "$as_me: updating cache $cache_file" >&6;}
23839 cat confcache >$cache_file
23840 else
23841 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23842 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23845 rm -f confcache
23847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23848 # Let make expand exec_prefix.
23849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23851 DEFS=-DHAVE_CONFIG_H
23853 ac_libobjs=
23854 ac_ltlibobjs=
23855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23856 # 1. Remove the extension, and $U if already installed.
23857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23858 ac_i=`echo "$ac_i" | sed "$ac_script"`
23859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23860 # will be set to the directory where LIBOBJS objects are built.
23861 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23862 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23863 done
23864 LIBOBJS=$ac_libobjs
23866 LTLIBOBJS=$ac_ltlibobjs
23870 : ${CONFIG_STATUS=./config.status}
23871 ac_clean_files_save=$ac_clean_files
23872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23873 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23874 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23875 cat >$CONFIG_STATUS <<_ACEOF
23876 #! $SHELL
23877 # Generated by $as_me.
23878 # Run this file to recreate the current configuration.
23879 # Compiler output produced by configure, useful for debugging
23880 # configure, is in config.log if it exists.
23882 debug=false
23883 ac_cs_recheck=false
23884 ac_cs_silent=false
23885 SHELL=\${CONFIG_SHELL-$SHELL}
23886 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 ## --------------------- ##
23890 ## M4sh Initialization. ##
23891 ## --------------------- ##
23893 # Be more Bourne compatible
23894 DUALCASE=1; export DUALCASE # for MKS sh
23895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23896 emulate sh
23897 NULLCMD=:
23898 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23899 # is contrary to our usage. Disable this feature.
23900 alias -g '${1+"$@"}'='"$@"'
23901 setopt NO_GLOB_SUBST
23902 else
23903 case `(set -o) 2>/dev/null` in
23904 *posix*) set -o posix ;;
23905 esac
23912 # PATH needs CR
23913 # Avoid depending upon Character Ranges.
23914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23917 as_cr_digits='0123456789'
23918 as_cr_alnum=$as_cr_Letters$as_cr_digits
23920 # The user is always right.
23921 if test "${PATH_SEPARATOR+set}" != set; then
23922 echo "#! /bin/sh" >conf$$.sh
23923 echo "exit 0" >>conf$$.sh
23924 chmod +x conf$$.sh
23925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23926 PATH_SEPARATOR=';'
23927 else
23928 PATH_SEPARATOR=:
23930 rm -f conf$$.sh
23933 # Support unset when possible.
23934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23935 as_unset=unset
23936 else
23937 as_unset=false
23941 # IFS
23942 # We need space, tab and new line, in precisely that order. Quoting is
23943 # there to prevent editors from complaining about space-tab.
23944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23945 # splitting by setting IFS to empty value.)
23946 as_nl='
23948 IFS=" "" $as_nl"
23950 # Find who we are. Look in the path if we contain no directory separator.
23951 case $0 in
23952 *[\\/]* ) as_myself=$0 ;;
23953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23954 for as_dir in $PATH
23956 IFS=$as_save_IFS
23957 test -z "$as_dir" && as_dir=.
23958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23959 done
23960 IFS=$as_save_IFS
23963 esac
23964 # We did not find ourselves, most probably we were run as `sh COMMAND'
23965 # in which case we are not to be found in the path.
23966 if test "x$as_myself" = x; then
23967 as_myself=$0
23969 if test ! -f "$as_myself"; then
23970 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23971 { (exit 1); exit 1; }
23974 # Work around bugs in pre-3.0 UWIN ksh.
23975 for as_var in ENV MAIL MAILPATH
23976 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23977 done
23978 PS1='$ '
23979 PS2='> '
23980 PS4='+ '
23982 # NLS nuisances.
23983 for as_var in \
23984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23986 LC_TELEPHONE LC_TIME
23988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23989 eval $as_var=C; export $as_var
23990 else
23991 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23993 done
23995 # Required to use basename.
23996 if expr a : '\(a\)' >/dev/null 2>&1 &&
23997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23998 as_expr=expr
23999 else
24000 as_expr=false
24003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24004 as_basename=basename
24005 else
24006 as_basename=false
24010 # Name of the executable.
24011 as_me=`$as_basename -- "$0" ||
24012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24013 X"$0" : 'X\(//\)$' \| \
24014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24015 echo X/"$0" |
24016 sed '/^.*\/\([^/][^/]*\)\/*$/{
24017 s//\1/
24020 /^X\/\(\/\/\)$/{
24021 s//\1/
24024 /^X\/\(\/\).*/{
24025 s//\1/
24028 s/.*/./; q'`
24030 # CDPATH.
24031 $as_unset CDPATH
24035 as_lineno_1=$LINENO
24036 as_lineno_2=$LINENO
24037 test "x$as_lineno_1" != "x$as_lineno_2" &&
24038 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24040 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24041 # uniformly replaced by the line number. The first 'sed' inserts a
24042 # line-number line after each line using $LINENO; the second 'sed'
24043 # does the real work. The second script uses 'N' to pair each
24044 # line-number line with the line containing $LINENO, and appends
24045 # trailing '-' during substitution so that $LINENO is not a special
24046 # case at line end.
24047 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24048 # scripts with optimization help from Paolo Bonzini. Blame Lee
24049 # E. McMahon (1931-1989) for sed's syntax. :-)
24050 sed -n '
24052 /[$]LINENO/=
24053 ' <$as_myself |
24054 sed '
24055 s/[$]LINENO.*/&-/
24056 t lineno
24058 :lineno
24060 :loop
24061 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24062 t loop
24063 s/-\n.*//
24064 ' >$as_me.lineno &&
24065 chmod +x "$as_me.lineno" ||
24066 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24067 { (exit 1); exit 1; }; }
24069 # Don't try to exec as it changes $[0], causing all sort of problems
24070 # (the dirname of $[0] is not the place where we might find the
24071 # original and so on. Autoconf is especially sensitive to this).
24072 . "./$as_me.lineno"
24073 # Exit status is that of the last command.
24074 exit
24078 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24079 as_dirname=dirname
24080 else
24081 as_dirname=false
24084 ECHO_C= ECHO_N= ECHO_T=
24085 case `echo -n x` in
24086 -n*)
24087 case `echo 'x\c'` in
24088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24089 *) ECHO_C='\c';;
24090 esac;;
24092 ECHO_N='-n';;
24093 esac
24095 if expr a : '\(a\)' >/dev/null 2>&1 &&
24096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24097 as_expr=expr
24098 else
24099 as_expr=false
24102 rm -f conf$$ conf$$.exe conf$$.file
24103 if test -d conf$$.dir; then
24104 rm -f conf$$.dir/conf$$.file
24105 else
24106 rm -f conf$$.dir
24107 mkdir conf$$.dir
24109 echo >conf$$.file
24110 if ln -s conf$$.file conf$$ 2>/dev/null; then
24111 as_ln_s='ln -s'
24112 # ... but there are two gotchas:
24113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24115 # In both cases, we have to default to `cp -p'.
24116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24117 as_ln_s='cp -p'
24118 elif ln conf$$.file conf$$ 2>/dev/null; then
24119 as_ln_s=ln
24120 else
24121 as_ln_s='cp -p'
24123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24124 rmdir conf$$.dir 2>/dev/null
24126 if mkdir -p . 2>/dev/null; then
24127 as_mkdir_p=:
24128 else
24129 test -d ./-p && rmdir ./-p
24130 as_mkdir_p=false
24133 if test -x / >/dev/null 2>&1; then
24134 as_test_x='test -x'
24135 else
24136 if ls -dL / >/dev/null 2>&1; then
24137 as_ls_L_option=L
24138 else
24139 as_ls_L_option=
24141 as_test_x='
24142 eval sh -c '\''
24143 if test -d "$1"; then
24144 test -d "$1/.";
24145 else
24146 case $1 in
24147 -*)set "./$1";;
24148 esac;
24149 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24150 ???[sx]*):;;*)false;;esac;fi
24151 '\'' sh
24154 as_executable_p=$as_test_x
24156 # Sed expression to map a string onto a valid CPP name.
24157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24159 # Sed expression to map a string onto a valid variable name.
24160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24163 exec 6>&1
24165 # Save the log message, to keep $[0] and so on meaningful, and to
24166 # report actual input values of CONFIG_FILES etc. instead of their
24167 # values after options handling.
24168 ac_log="
24169 This file was extended by $as_me, which was
24170 generated by GNU Autoconf 2.61. Invocation command line was
24172 CONFIG_FILES = $CONFIG_FILES
24173 CONFIG_HEADERS = $CONFIG_HEADERS
24174 CONFIG_LINKS = $CONFIG_LINKS
24175 CONFIG_COMMANDS = $CONFIG_COMMANDS
24176 $ $0 $@
24178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24181 _ACEOF
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 # Files that config.status was made for.
24185 config_files="$ac_config_files"
24186 config_headers="$ac_config_headers"
24187 config_commands="$ac_config_commands"
24189 _ACEOF
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 ac_cs_usage="\
24193 \`$as_me' instantiates files from templates according to the
24194 current configuration.
24196 Usage: $0 [OPTIONS] [FILE]...
24198 -h, --help print this help, then exit
24199 -V, --version print version number and configuration settings, then exit
24200 -q, --quiet do not print progress messages
24201 -d, --debug don't remove temporary files
24202 --recheck update $as_me by reconfiguring in the same conditions
24203 --file=FILE[:TEMPLATE]
24204 instantiate the configuration file FILE
24205 --header=FILE[:TEMPLATE]
24206 instantiate the configuration header FILE
24208 Configuration files:
24209 $config_files
24211 Configuration headers:
24212 $config_headers
24214 Configuration commands:
24215 $config_commands
24217 Report bugs to <bug-autoconf@gnu.org>."
24219 _ACEOF
24220 cat >>$CONFIG_STATUS <<_ACEOF
24221 ac_cs_version="\\
24222 config.status
24223 configured by $0, generated by GNU Autoconf 2.61,
24224 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24226 Copyright (C) 2006 Free Software Foundation, Inc.
24227 This config.status script is free software; the Free Software Foundation
24228 gives unlimited permission to copy, distribute and modify it."
24230 ac_pwd='$ac_pwd'
24231 srcdir='$srcdir'
24232 INSTALL='$INSTALL'
24233 _ACEOF
24235 cat >>$CONFIG_STATUS <<\_ACEOF
24236 # If no file are specified by the user, then we need to provide default
24237 # value. By we need to know if files were specified by the user.
24238 ac_need_defaults=:
24239 while test $# != 0
24241 case $1 in
24242 --*=*)
24243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24245 ac_shift=:
24248 ac_option=$1
24249 ac_optarg=$2
24250 ac_shift=shift
24252 esac
24254 case $ac_option in
24255 # Handling of the options.
24256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24257 ac_cs_recheck=: ;;
24258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24259 echo "$ac_cs_version"; exit ;;
24260 --debug | --debu | --deb | --de | --d | -d )
24261 debug=: ;;
24262 --file | --fil | --fi | --f )
24263 $ac_shift
24264 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24265 ac_need_defaults=false;;
24266 --header | --heade | --head | --hea )
24267 $ac_shift
24268 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24269 ac_need_defaults=false;;
24270 --he | --h)
24271 # Conflict between --help and --header
24272 { echo "$as_me: error: ambiguous option: $1
24273 Try \`$0 --help' for more information." >&2
24274 { (exit 1); exit 1; }; };;
24275 --help | --hel | -h )
24276 echo "$ac_cs_usage"; exit ;;
24277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24279 ac_cs_silent=: ;;
24281 # This is an error.
24282 -*) { echo "$as_me: error: unrecognized option: $1
24283 Try \`$0 --help' for more information." >&2
24284 { (exit 1); exit 1; }; } ;;
24286 *) ac_config_targets="$ac_config_targets $1"
24287 ac_need_defaults=false ;;
24289 esac
24290 shift
24291 done
24293 ac_configure_extra_args=
24295 if $ac_cs_silent; then
24296 exec 6>/dev/null
24297 ac_configure_extra_args="$ac_configure_extra_args --silent"
24300 _ACEOF
24301 cat >>$CONFIG_STATUS <<_ACEOF
24302 if \$ac_cs_recheck; then
24303 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24304 CONFIG_SHELL=$SHELL
24305 export CONFIG_SHELL
24306 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24309 _ACEOF
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24311 exec 5>>config.log
24313 echo
24314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24315 ## Running $as_me. ##
24316 _ASBOX
24317 echo "$ac_log"
24318 } >&5
24320 _ACEOF
24321 cat >>$CONFIG_STATUS <<_ACEOF
24323 # INIT-COMMANDS
24325 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24327 _ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24331 # Handling of arguments.
24332 for ac_config_target in $ac_config_targets
24334 case $ac_config_target in
24335 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24337 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24338 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24339 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24340 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24341 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24342 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24343 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24344 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24345 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24346 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24348 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24349 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24350 { (exit 1); exit 1; }; };;
24351 esac
24352 done
24355 # If the user did not use the arguments to specify the items to instantiate,
24356 # then the envvar interface is used. Set only those that are not.
24357 # We use the long form for the default assignment because of an extremely
24358 # bizarre bug on SunOS 4.1.3.
24359 if $ac_need_defaults; then
24360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24365 # Have a temporary directory for convenience. Make it in the build tree
24366 # simply because there is no reason against having it here, and in addition,
24367 # creating and moving files from /tmp can sometimes cause problems.
24368 # Hook for its removal unless debugging.
24369 # Note that there is a small window in which the directory will not be cleaned:
24370 # after its creation but before its name has been assigned to `$tmp'.
24371 $debug ||
24373 tmp=
24374 trap 'exit_status=$?
24375 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24377 trap '{ (exit 1); exit 1; }' 1 2 13 15
24379 # Create a (secure) tmp directory for tmp files.
24382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24383 test -n "$tmp" && test -d "$tmp"
24384 } ||
24386 tmp=./conf$$-$RANDOM
24387 (umask 077 && mkdir "$tmp")
24388 } ||
24390 echo "$me: cannot create a temporary directory in ." >&2
24391 { (exit 1); exit 1; }
24395 # Set up the sed scripts for CONFIG_FILES section.
24398 # No need to generate the scripts if there are no CONFIG_FILES.
24399 # This happens for instance when ./config.status config.h
24400 if test -n "$CONFIG_FILES"; then
24402 _ACEOF
24406 ac_delim='%!_!# '
24407 for ac_last_try in false false false false false :; do
24408 cat >conf$$subs.sed <<_ACEOF
24409 SHELL!$SHELL$ac_delim
24410 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24411 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24412 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24413 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24414 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24415 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24416 exec_prefix!$exec_prefix$ac_delim
24417 prefix!$prefix$ac_delim
24418 program_transform_name!$program_transform_name$ac_delim
24419 bindir!$bindir$ac_delim
24420 sbindir!$sbindir$ac_delim
24421 libexecdir!$libexecdir$ac_delim
24422 datarootdir!$datarootdir$ac_delim
24423 datadir!$datadir$ac_delim
24424 sysconfdir!$sysconfdir$ac_delim
24425 sharedstatedir!$sharedstatedir$ac_delim
24426 localstatedir!$localstatedir$ac_delim
24427 includedir!$includedir$ac_delim
24428 oldincludedir!$oldincludedir$ac_delim
24429 docdir!$docdir$ac_delim
24430 infodir!$infodir$ac_delim
24431 htmldir!$htmldir$ac_delim
24432 dvidir!$dvidir$ac_delim
24433 pdfdir!$pdfdir$ac_delim
24434 psdir!$psdir$ac_delim
24435 libdir!$libdir$ac_delim
24436 localedir!$localedir$ac_delim
24437 mandir!$mandir$ac_delim
24438 DEFS!$DEFS$ac_delim
24439 ECHO_C!$ECHO_C$ac_delim
24440 ECHO_N!$ECHO_N$ac_delim
24441 ECHO_T!$ECHO_T$ac_delim
24442 LIBS!$LIBS$ac_delim
24443 build_alias!$build_alias$ac_delim
24444 host_alias!$host_alias$ac_delim
24445 target_alias!$target_alias$ac_delim
24446 MAINT!$MAINT$ac_delim
24447 build!$build$ac_delim
24448 build_cpu!$build_cpu$ac_delim
24449 build_vendor!$build_vendor$ac_delim
24450 build_os!$build_os$ac_delim
24451 host!$host$ac_delim
24452 host_cpu!$host_cpu$ac_delim
24453 host_vendor!$host_vendor$ac_delim
24454 host_os!$host_os$ac_delim
24455 CC!$CC$ac_delim
24456 CFLAGS!$CFLAGS$ac_delim
24457 LDFLAGS!$LDFLAGS$ac_delim
24458 CPPFLAGS!$CPPFLAGS$ac_delim
24459 ac_ct_CC!$ac_ct_CC$ac_delim
24460 EXEEXT!$EXEEXT$ac_delim
24461 OBJEXT!$OBJEXT$ac_delim
24462 CPP!$CPP$ac_delim
24463 GREP!$GREP$ac_delim
24464 EGREP!$EGREP$ac_delim
24465 LN_S!$LN_S$ac_delim
24466 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24467 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24468 INSTALL_DATA!$INSTALL_DATA$ac_delim
24469 RANLIB!$RANLIB$ac_delim
24470 INSTALL_INFO!$INSTALL_INFO$ac_delim
24471 GZIP_PROG!$GZIP_PROG$ac_delim
24472 MAKEINFO!$MAKEINFO$ac_delim
24473 LIBSOUND!$LIBSOUND$ac_delim
24474 PKG_CONFIG!$PKG_CONFIG$ac_delim
24475 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24476 ALSA_LIBS!$ALSA_LIBS$ac_delim
24477 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24478 SET_MAKE!$SET_MAKE$ac_delim
24479 XMKMF!$XMKMF$ac_delim
24480 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24481 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24482 RSVG_LIBS!$RSVG_LIBS$ac_delim
24483 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24484 GTK_LIBS!$GTK_LIBS$ac_delim
24485 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24486 XFT_LIBS!$XFT_LIBS$ac_delim
24487 ALLOCA!$ALLOCA$ac_delim
24488 liblockfile!$liblockfile$ac_delim
24489 LIBOBJS!$LIBOBJS$ac_delim
24490 NEED_SETGID!$NEED_SETGID$ac_delim
24491 KMEM_GROUP!$KMEM_GROUP$ac_delim
24492 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24493 GETOPT_H!$GETOPT_H$ac_delim
24494 GETOPTOBJS!$GETOPTOBJS$ac_delim
24495 version!$version$ac_delim
24496 configuration!$configuration$ac_delim
24497 canonical!$canonical$ac_delim
24498 srcdir!$srcdir$ac_delim
24499 lispdir!$lispdir$ac_delim
24500 locallisppath!$locallisppath$ac_delim
24501 lisppath!$lisppath$ac_delim
24502 x_default_search_path!$x_default_search_path$ac_delim
24503 etcdir!$etcdir$ac_delim
24504 archlibdir!$archlibdir$ac_delim
24505 bitmapdir!$bitmapdir$ac_delim
24506 _ACEOF
24508 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24509 break
24510 elif $ac_last_try; then
24511 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24513 { (exit 1); exit 1; }; }
24514 else
24515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24517 done
24519 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24520 if test -n "$ac_eof"; then
24521 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24522 ac_eof=`expr $ac_eof + 1`
24525 cat >>$CONFIG_STATUS <<_ACEOF
24526 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24528 _ACEOF
24529 sed '
24530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24531 s/^/s,@/; s/!/@,|#_!!_#|/
24534 s/'"$ac_delim"'$/,g/; t
24535 s/$/\\/; p
24536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24537 ' >>$CONFIG_STATUS <conf$$subs.sed
24538 rm -f conf$$subs.sed
24539 cat >>$CONFIG_STATUS <<_ACEOF
24540 CEOF$ac_eof
24541 _ACEOF
24544 ac_delim='%!_!# '
24545 for ac_last_try in false false false false false :; do
24546 cat >conf$$subs.sed <<_ACEOF
24547 gamedir!$gamedir$ac_delim
24548 gameuser!$gameuser$ac_delim
24549 c_switch_system!$c_switch_system$ac_delim
24550 c_switch_machine!$c_switch_machine$ac_delim
24551 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24552 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24553 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24554 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24555 machfile!$machfile$ac_delim
24556 opsysfile!$opsysfile$ac_delim
24557 carbon_appdir!$carbon_appdir$ac_delim
24558 LTLIBOBJS!$LTLIBOBJS$ac_delim
24559 _ACEOF
24561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24562 break
24563 elif $ac_last_try; then
24564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24566 { (exit 1); exit 1; }; }
24567 else
24568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24570 done
24572 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24573 if test -n "$ac_eof"; then
24574 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24575 ac_eof=`expr $ac_eof + 1`
24578 cat >>$CONFIG_STATUS <<_ACEOF
24579 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24581 _ACEOF
24582 sed '
24583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24584 s/^/s,@/; s/!/@,|#_!!_#|/
24587 s/'"$ac_delim"'$/,g/; t
24588 s/$/\\/; p
24589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24590 ' >>$CONFIG_STATUS <conf$$subs.sed
24591 rm -f conf$$subs.sed
24592 cat >>$CONFIG_STATUS <<_ACEOF
24593 :end
24594 s/|#_!!_#|//g
24595 CEOF$ac_eof
24596 _ACEOF
24599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24601 # trailing colons and then remove the whole line if VPATH becomes empty
24602 # (actually we leave an empty line to preserve line numbers).
24603 if test "x$srcdir" = x.; then
24604 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24605 s/:*\$(srcdir):*/:/
24606 s/:*\${srcdir}:*/:/
24607 s/:*@srcdir@:*/:/
24608 s/^\([^=]*=[ ]*\):*/\1/
24609 s/:*$//
24610 s/^[^=]*=[ ]*$//
24614 cat >>$CONFIG_STATUS <<\_ACEOF
24615 fi # test -n "$CONFIG_FILES"
24618 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24620 case $ac_tag in
24621 :[FHLC]) ac_mode=$ac_tag; continue;;
24622 esac
24623 case $ac_mode$ac_tag in
24624 :[FHL]*:*);;
24625 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24626 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24627 { (exit 1); exit 1; }; };;
24628 :[FH]-) ac_tag=-:-;;
24629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24630 esac
24631 ac_save_IFS=$IFS
24632 IFS=:
24633 set x $ac_tag
24634 IFS=$ac_save_IFS
24635 shift
24636 ac_file=$1
24637 shift
24639 case $ac_mode in
24640 :L) ac_source=$1;;
24641 :[FH])
24642 ac_file_inputs=
24643 for ac_f
24645 case $ac_f in
24646 -) ac_f="$tmp/stdin";;
24647 *) # Look for the file first in the build tree, then in the source tree
24648 # (if the path is not absolute). The absolute path cannot be DOS-style,
24649 # because $ac_f cannot contain `:'.
24650 test -f "$ac_f" ||
24651 case $ac_f in
24652 [\\/$]*) false;;
24653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24654 esac ||
24655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24656 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24657 { (exit 1); exit 1; }; };;
24658 esac
24659 ac_file_inputs="$ac_file_inputs $ac_f"
24660 done
24662 # Let's still pretend it is `configure' which instantiates (i.e., don't
24663 # use $as_me), people would be surprised to read:
24664 # /* config.h. Generated by config.status. */
24665 configure_input="Generated from "`IFS=:
24666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24667 if test x"$ac_file" != x-; then
24668 configure_input="$ac_file. $configure_input"
24669 { echo "$as_me:$LINENO: creating $ac_file" >&5
24670 echo "$as_me: creating $ac_file" >&6;}
24673 case $ac_tag in
24674 *:-:* | *:-) cat >"$tmp/stdin";;
24675 esac
24677 esac
24679 ac_dir=`$as_dirname -- "$ac_file" ||
24680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24681 X"$ac_file" : 'X\(//\)[^/]' \| \
24682 X"$ac_file" : 'X\(//\)$' \| \
24683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24684 echo X"$ac_file" |
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24686 s//\1/
24689 /^X\(\/\/\)[^/].*/{
24690 s//\1/
24693 /^X\(\/\/\)$/{
24694 s//\1/
24697 /^X\(\/\).*/{
24698 s//\1/
24701 s/.*/./; q'`
24702 { as_dir="$ac_dir"
24703 case $as_dir in #(
24704 -*) as_dir=./$as_dir;;
24705 esac
24706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24707 as_dirs=
24708 while :; do
24709 case $as_dir in #(
24710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24711 *) as_qdir=$as_dir;;
24712 esac
24713 as_dirs="'$as_qdir' $as_dirs"
24714 as_dir=`$as_dirname -- "$as_dir" ||
24715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$as_dir" : 'X\(//\)[^/]' \| \
24717 X"$as_dir" : 'X\(//\)$' \| \
24718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24719 echo X"$as_dir" |
24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24721 s//\1/
24724 /^X\(\/\/\)[^/].*/{
24725 s//\1/
24728 /^X\(\/\/\)$/{
24729 s//\1/
24732 /^X\(\/\).*/{
24733 s//\1/
24736 s/.*/./; q'`
24737 test -d "$as_dir" && break
24738 done
24739 test -z "$as_dirs" || eval "mkdir $as_dirs"
24740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24742 { (exit 1); exit 1; }; }; }
24743 ac_builddir=.
24745 case "$ac_dir" in
24746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24749 # A ".." for each directory in $ac_dir_suffix.
24750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24751 case $ac_top_builddir_sub in
24752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24754 esac ;;
24755 esac
24756 ac_abs_top_builddir=$ac_pwd
24757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24758 # for backward compatibility:
24759 ac_top_builddir=$ac_top_build_prefix
24761 case $srcdir in
24762 .) # We are building in place.
24763 ac_srcdir=.
24764 ac_top_srcdir=$ac_top_builddir_sub
24765 ac_abs_top_srcdir=$ac_pwd ;;
24766 [\\/]* | ?:[\\/]* ) # Absolute name.
24767 ac_srcdir=$srcdir$ac_dir_suffix;
24768 ac_top_srcdir=$srcdir
24769 ac_abs_top_srcdir=$srcdir ;;
24770 *) # Relative name.
24771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24772 ac_top_srcdir=$ac_top_build_prefix$srcdir
24773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24774 esac
24775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24778 case $ac_mode in
24781 # CONFIG_FILE
24784 case $INSTALL in
24785 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24786 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24787 esac
24788 _ACEOF
24790 cat >>$CONFIG_STATUS <<\_ACEOF
24791 # If the template does not know about datarootdir, expand it.
24792 # FIXME: This hack should be removed a few years after 2.60.
24793 ac_datarootdir_hack=; ac_datarootdir_seen=
24795 case `sed -n '/datarootdir/ {
24799 /@datadir@/p
24800 /@docdir@/p
24801 /@infodir@/p
24802 /@localedir@/p
24803 /@mandir@/p
24804 ' $ac_file_inputs` in
24805 *datarootdir*) ac_datarootdir_seen=yes;;
24806 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24807 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24808 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24809 _ACEOF
24810 cat >>$CONFIG_STATUS <<_ACEOF
24811 ac_datarootdir_hack='
24812 s&@datadir@&$datadir&g
24813 s&@docdir@&$docdir&g
24814 s&@infodir@&$infodir&g
24815 s&@localedir@&$localedir&g
24816 s&@mandir@&$mandir&g
24817 s&\\\${datarootdir}&$datarootdir&g' ;;
24818 esac
24819 _ACEOF
24821 # Neutralize VPATH when `$srcdir' = `.'.
24822 # Shell code in configure.ac might set extrasub.
24823 # FIXME: do we really want to maintain this feature?
24824 cat >>$CONFIG_STATUS <<_ACEOF
24825 sed "$ac_vpsub
24826 $extrasub
24827 _ACEOF
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24831 s&@configure_input@&$configure_input&;t t
24832 s&@top_builddir@&$ac_top_builddir_sub&;t t
24833 s&@srcdir@&$ac_srcdir&;t t
24834 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24835 s&@top_srcdir@&$ac_top_srcdir&;t t
24836 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24837 s&@builddir@&$ac_builddir&;t t
24838 s&@abs_builddir@&$ac_abs_builddir&;t t
24839 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24840 s&@INSTALL@&$ac_INSTALL&;t t
24841 $ac_datarootdir_hack
24842 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24847 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24848 which seems to be undefined. Please make sure it is defined." >&5
24849 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24850 which seems to be undefined. Please make sure it is defined." >&2;}
24852 rm -f "$tmp/stdin"
24853 case $ac_file in
24854 -) cat "$tmp/out"; rm -f "$tmp/out";;
24855 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24856 esac
24860 # CONFIG_HEADER
24862 _ACEOF
24864 # Transform confdefs.h into a sed script `conftest.defines', that
24865 # substitutes the proper values into config.h.in to produce config.h.
24866 rm -f conftest.defines conftest.tail
24867 # First, append a space to every undef/define line, to ease matching.
24868 echo 's/$/ /' >conftest.defines
24869 # Then, protect against being on the right side of a sed subst, or in
24870 # an unquoted here document, in config.status. If some macros were
24871 # called several times there might be several #defines for the same
24872 # symbol, which is useless. But do not sort them, since the last
24873 # AC_DEFINE must be honored.
24874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24875 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24876 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24877 # PARAMS is the parameter list in the macro definition--in most cases, it's
24878 # just an empty string.
24879 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24880 ac_dB='\\)[ (].*,\\1define\\2'
24881 ac_dC=' '
24882 ac_dD=' ,'
24884 uniq confdefs.h |
24885 sed -n '
24886 t rset
24887 :rset
24888 s/^[ ]*#[ ]*define[ ][ ]*//
24889 t ok
24892 s/[\\&,]/\\&/g
24893 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24894 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24895 ' >>conftest.defines
24897 # Remove the space that was appended to ease matching.
24898 # Then replace #undef with comments. This is necessary, for
24899 # example, in the case of _POSIX_SOURCE, which is predefined and required
24900 # on some systems where configure will not decide to define it.
24901 # (The regexp can be short, since the line contains either #define or #undef.)
24902 echo 's/ $//
24903 s,^[ #]*u.*,/* & */,' >>conftest.defines
24905 # Break up conftest.defines:
24906 ac_max_sed_lines=50
24908 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24909 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24910 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24911 # et cetera.
24912 ac_in='$ac_file_inputs'
24913 ac_out='"$tmp/out1"'
24914 ac_nxt='"$tmp/out2"'
24916 while :
24918 # Write a here document:
24919 cat >>$CONFIG_STATUS <<_ACEOF
24920 # First, check the format of the line:
24921 cat >"\$tmp/defines.sed" <<\\CEOF
24922 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24923 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24925 :def
24926 _ACEOF
24927 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24928 echo 'CEOF
24929 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24930 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24931 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24932 grep . conftest.tail >/dev/null || break
24933 rm -f conftest.defines
24934 mv conftest.tail conftest.defines
24935 done
24936 rm -f conftest.defines conftest.tail
24938 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24939 cat >>$CONFIG_STATUS <<\_ACEOF
24940 if test x"$ac_file" != x-; then
24941 echo "/* $configure_input */" >"$tmp/config.h"
24942 cat "$ac_result" >>"$tmp/config.h"
24943 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24945 echo "$as_me: $ac_file is unchanged" >&6;}
24946 else
24947 rm -f $ac_file
24948 mv "$tmp/config.h" $ac_file
24950 else
24951 echo "/* $configure_input */"
24952 cat "$ac_result"
24954 rm -f "$tmp/out12"
24957 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24958 echo "$as_me: executing $ac_file commands" >&6;}
24960 esac
24963 case $ac_file$ac_mode in
24964 "default":C)
24966 ### Make the necessary directories, if they don't exist.
24967 for dir in etc lisp ; do
24968 test -d ${dir} || mkdir ${dir}
24969 done
24971 # Build src/Makefile from ${srcdir}/src/Makefile.c
24972 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24973 # This must be done after src/config.h is built, since we rely on that file.
24975 # Now get this: Some word that is part of the ${srcdir} directory name
24976 # or the ${configuration} value might, just might, happen to be an
24977 # identifier like `sun4' or `i386' or something, and be predefined by
24978 # the C preprocessor to some helpful value like 1, or maybe the empty
24979 # string. Needless to say consequent macro substitutions are less
24980 # than conducive to the makefile finding the correct directory.
24981 undefs="`echo $top_srcdir $configuration $canonical |
24982 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24983 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24986 echo creating src/epaths.h
24987 ${MAKE-make} epaths-force
24989 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24990 # `..' to `. .' unless invoked with -traditional
24992 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24993 CPPFLAGS="$CPPFLAGS -traditional"
24996 echo creating lib-src/Makefile
24997 ( cd lib-src
24998 rm -f junk.c junk1.c junk2.c
24999 sed -e '/start of cpp stuff/q' \
25000 < Makefile.c > junk1.c
25001 sed -e '1,/start of cpp stuff/d'\
25002 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25003 < Makefile.c > junk.c
25004 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c > Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25012 echo creating src/Makefile
25013 ( cd src
25014 rm -f junk.c junk1.c junk2.c
25015 sed -e '/start of cpp stuff/q' \
25016 < Makefile.c > junk1.c
25017 sed -e '1,/start of cpp stuff/d'\
25018 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25019 < Makefile.c > junk.c
25020 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25021 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25022 cat junk1.c junk2.c > Makefile.new
25023 rm -f junk.c junk1.c junk2.c
25024 chmod 444 Makefile.new
25025 mv -f Makefile.new Makefile
25028 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25029 echo creating src/.gdbinit
25030 echo source $srcdir/src/.gdbinit > src/.gdbinit
25033 # This is how we know whether to re-run configure in certain cases.
25034 touch src/config.stamp
25038 esac
25039 done # for ac_tag
25042 { (exit 0); exit 0; }
25043 _ACEOF
25044 chmod +x $CONFIG_STATUS
25045 ac_clean_files=$ac_clean_files_save
25048 # configure is writing to config.log, and then calls config.status.
25049 # config.status does its own redirection, appending to config.log.
25050 # Unfortunately, on DOS this fails, as config.log is still kept open
25051 # by configure, so config.status won't be able to write to it; its
25052 # output is simply discarded. So we exec the FD to /dev/null,
25053 # effectively closing config.log, so it can be properly (re)opened and
25054 # appended to by config.status. When coming back to configure, we
25055 # need to make the FD available again.
25056 if test "$no_create" != yes; then
25057 ac_cs_success=:
25058 ac_config_status_args=
25059 test "$silent" = yes &&
25060 ac_config_status_args="$ac_config_status_args --quiet"
25061 exec 5>/dev/null
25062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25063 exec 5>>config.log
25064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25065 # would make configure fail if this is the last instruction.
25066 $ac_cs_success || { (exit 1); exit 1; }