(all): Use correct group name for members of mode-line group.
[emacs.git] / configure
blob4d8d153ba5575113db95f5888444132f2b073683
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
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 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 ALLOCA
700 liblockfile
701 LIBOBJS
702 NEED_SETGID
703 KMEM_GROUP
704 GETLOADAVG_LIBS
705 GETOPT_H
706 GETOPTOBJS
707 version
708 configuration
709 canonical
710 srcdir
711 lispdir
712 locallisppath
713 lisppath
714 x_default_search_path
715 etcdir
716 archlibdir
717 bitmapdir
718 gamedir
719 gameuser
720 c_switch_system
721 c_switch_machine
722 LD_SWITCH_X_SITE
723 LD_SWITCH_X_SITE_AUX
724 C_SWITCH_X_SITE
725 X_TOOLKIT_TYPE
726 machfile
727 opsysfile
728 carbon_appdir
729 LTLIBOBJS'
730 ac_subst_files=''
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
740 XMKMF'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
789 ac_prev=
790 ac_dashdash=
791 for ac_option
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
796 ac_prev=
797 continue
800 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 *) ac_optarg=yes ;;
803 esac
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
809 ac_dashdash=yes ;;
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
828 --config-cache | -C)
829 cache_file=config.cache ;;
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1059 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 esac
1118 done
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val=\$$ac_var
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1139 done
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162 test "$silent" = yes && exec 6>/dev/null
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1193 /^X\(\/\/\)$/{
1194 s//\1/
1197 /^X\(\/\).*/{
1198 s//\1/
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1206 else
1207 ac_srcdir_defaulted=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1218 pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1252 Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296 _ACEOF
1298 cat <<\_ACEOF
1300 Program names:
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305 X features:
1306 --x-includes=DIR X include files are in DIR
1307 --x-libraries=DIR X library files are in DIR
1309 System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 _ACEOF
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1318 esac
1319 cat <<\_ACEOF
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR]
1325 specify install directory for Emacs.app on Mac OS X
1326 [DIR=/Application]
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful (and
1330 sometimes confusing) to the casual installer
1331 --enable-locallisppath=PATH
1332 directories Emacs should search for lisp files
1333 specific to this site
1334 --disable-largefile omit support for large files
1336 Optional Packages:
1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1339 --without-gcc don't use GCC to compile Emacs if GCC is found
1340 --without-pop don't support POP mail retrieval with movemail
1341 --with-kerberos support Kerberos-authenticated POP
1342 --with-kerberos5 support Kerberos version 5 authenticated POP
1343 --with-hesiod support Hesiod to get the POP server host
1344 --without-sound don't compile with sound support
1345 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1346 motif, gtk, no)
1347 --with-xpm use -lXpm for displaying XPM images
1348 --with-jpeg use -ljpeg for displaying JPEG images
1349 --with-tiff use -ltiff for displaying TIFF images
1350 --with-gif use -lgif (or -lungif) for displaying GIF images
1351 --with-png use -lpng for displaying PNG images
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-rsvg use -lrsvg-2 for displaying SVG images
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1356 --without-toolkit-scroll-bars
1357 don't use Motif or Xaw3d scroll bars
1358 --without-xaw3d don't use Xaw3d
1359 --without-xim don't use X11 XIM
1360 --without-carbon don't use Carbon GUI on Mac OS X
1361 --with-dbus use D-Bus
1362 --with-x use the X Window System
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1373 XMKMF Path to xmkmf, Makefile generator for X Window System
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1386 ac_builddir=.
1388 case "$ac_dir" in
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 esac ;;
1398 esac
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1404 case $srcdir in
1405 .) # We are building in place.
1406 ac_srcdir=.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1413 *) # Relative name.
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 esac
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1428 else
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 fi || ac_status=$?
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1432 done
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1437 cat <<\_ACEOF
1438 emacs configure 23.0.50
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1445 _ACEOF
1446 exit
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by emacs $as_me 23.0.50, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1455 $ $0 $@
1457 _ACEOF
1458 exec 5>>config.log
1460 cat <<_ASUNAME
1461 ## --------- ##
1462 ## Platform. ##
1463 ## --------- ##
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482 _ASUNAME
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1490 done
1491 IFS=$as_save_IFS
1493 } >&5
1495 cat >&5 <<_ACEOF
1498 ## ----------- ##
1499 ## Core tests. ##
1500 ## ----------- ##
1502 _ACEOF
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_configure_args=
1511 ac_configure_args0=
1512 ac_configure_args1=
1513 ac_must_keep_next=false
1514 for ac_pass in 1 2
1516 for ac_arg
1518 case $ac_arg in
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 continue ;;
1523 *\'*)
1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 esac
1526 case $ac_pass in
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1532 else
1533 case $ac_arg in
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 esac
1542 -* ) ac_must_keep_next=true ;;
1543 esac
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 esac
1548 done
1549 done
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1561 echo
1563 cat <<\_ASBOX
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1567 _ASBOX
1568 echo
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in #(
1574 *${as_nl}*)
1575 case $ac_var in #(
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 esac
1579 case $ac_var in #(
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1582 esac ;;
1583 esac
1584 done
1585 (set) 2>&1 |
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1588 sed -n \
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 ;; #(
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 esac |
1596 sort
1598 echo
1600 cat <<\_ASBOX
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1604 _ASBOX
1605 echo
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1609 case $ac_val in
1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 esac
1612 echo "$ac_var='\''$ac_val'\''"
1613 done | sort
1614 echo
1616 if test -n "$ac_subst_files"; then
1617 cat <<\_ASBOX
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1621 _ASBOX
1622 echo
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
1629 echo "$ac_var='\''$ac_val'\''"
1630 done | sort
1631 echo
1634 if test -s confdefs.h; then
1635 cat <<\_ASBOX
1636 ## ----------- ##
1637 ## confdefs.h. ##
1638 ## ----------- ##
1639 _ASBOX
1640 echo
1641 cat confdefs.h
1642 echo
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1647 } >&5
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 exit $exit_status
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 done
1655 ac_signal=0
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 _ACEOF
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 _ACEOF
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 else
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1697 shift
1698 for ac_site_file
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file"
1706 done
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1714 case $cache_file in
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1717 esac
1719 else
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1722 >$cache_file
1725 ac_header_list="$ac_header_list sys/time.h"
1726 ac_header_list="$ac_header_list unistd.h"
1727 ac_func_list="$ac_func_list alarm"
1728 # Check that the precious variables saved in the cache have kept the same
1729 # value.
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1768 done
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm -f conftest.sed
1826 lispdir='${datadir}/emacs/${version}/lisp'
1827 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1828 '${datadir}/emacs/site-lisp'
1829 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1830 etcdir='${datadir}/emacs/${version}/etc'
1831 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1832 docdir='${datadir}/emacs/${version}/etc'
1833 gamedir='${localstatedir}/games/emacs'
1835 gameuser=games
1839 # Check whether --with-gcc was given.
1840 if test "${with_gcc+set}" = set; then
1841 withval=$with_gcc;
1846 # Check whether --with-pop was given.
1847 if test "${with_pop+set}" = set; then
1848 withval=$with_pop; if test "$withval" = yes; then
1849 cat >>confdefs.h <<\_ACEOF
1850 #define MAIL_USE_POP 1
1851 _ACEOF
1853 else :
1855 else
1856 cat >>confdefs.h <<\_ACEOF
1857 #define MAIL_USE_POP 1
1858 _ACEOF
1865 # Check whether --with-kerberos was given.
1866 if test "${with_kerberos+set}" = set; then
1867 withval=$with_kerberos; if test "$withval" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define KERBEROS 1
1870 _ACEOF
1878 # Check whether --with-kerberos5 was given.
1879 if test "${with_kerberos5+set}" = set; then
1880 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1881 if test "${with_kerberos+set}" != set; then
1882 with_kerberos=yes
1883 cat >>confdefs.h <<\_ACEOF
1884 #define KERBEROS 1
1885 _ACEOF
1889 cat >>confdefs.h <<\_ACEOF
1890 #define KERBEROS5 1
1891 _ACEOF
1898 # Check whether --with-hesiod was given.
1899 if test "${with_hesiod+set}" = set; then
1900 withval=$with_hesiod; if test "$withval" = yes; then
1902 cat >>confdefs.h <<\_ACEOF
1903 #define HESIOD 1
1904 _ACEOF
1911 # Check whether --with-sound was given.
1912 if test "${with_sound+set}" = set; then
1913 withval=$with_sound;
1918 # Check whether --with-x-toolkit was given.
1919 if test "${with_x_toolkit+set}" = set; then
1920 withval=$with_x_toolkit; case "${withval}" in
1921 y | ye | yes ) val=gtk ;;
1922 n | no ) val=no ;;
1923 l | lu | luc | luci | lucid ) val=lucid ;;
1924 a | at | ath | athe | athen | athena ) val=athena ;;
1925 m | mo | mot | moti | motif ) val=motif ;;
1926 g | gt | gtk ) val=gtk ;;
1928 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1929 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1930 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1931 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1932 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1933 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1934 { (exit 1); exit 1; }; }
1936 esac
1937 with_x_toolkit=$val
1943 # Check whether --with-xpm was given.
1944 if test "${with_xpm+set}" = set; then
1945 withval=$with_xpm;
1949 # Check whether --with-jpeg was given.
1950 if test "${with_jpeg+set}" = set; then
1951 withval=$with_jpeg;
1955 # Check whether --with-tiff was given.
1956 if test "${with_tiff+set}" = set; then
1957 withval=$with_tiff;
1961 # Check whether --with-gif was given.
1962 if test "${with_gif+set}" = set; then
1963 withval=$with_gif;
1967 # Check whether --with-png was given.
1968 if test "${with_png+set}" = set; then
1969 withval=$with_png;
1973 # Check whether --with-gpm was given.
1974 if test "${with_gpm+set}" = set; then
1975 withval=$with_gpm;
1979 # Check whether --with-rsvg was given.
1980 if test "${with_rsvg+set}" = set; then
1981 withval=$with_rsvg;
1985 # Check whether --with-gtk was given.
1986 if test "${with_gtk+set}" = set; then
1987 withval=$with_gtk;
1991 # Check whether --with-pkg-config-prog was given.
1992 if test "${with_pkg_config_prog+set}" = set; then
1993 withval=$with_pkg_config_prog;
1997 # Check whether --with-toolkit-scroll-bars was given.
1998 if test "${with_toolkit_scroll_bars+set}" = set; then
1999 withval=$with_toolkit_scroll_bars;
2003 # Check whether --with-xaw3d was given.
2004 if test "${with_xaw3d+set}" = set; then
2005 withval=$with_xaw3d;
2009 # Check whether --with-xim was given.
2010 if test "${with_xim+set}" = set; then
2011 withval=$with_xim;
2015 # Check whether --with-carbon was given.
2016 if test "${with_carbon+set}" = set; then
2017 withval=$with_carbon;
2021 # Check whether --with-dbus was given.
2022 if test "${with_dbus+set}" = set; then
2023 withval=$with_dbus;
2027 # Check whether --enable-carbon-app was given.
2028 if test "${enable_carbon_app+set}" = set; then
2029 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2033 # Check whether --enable-asserts was given.
2034 if test "${enable_asserts+set}" = set; then
2035 enableval=$enable_asserts; USE_XASSERTS=$enableval
2036 else
2037 USE_XASSERTS=no
2041 # Check whether --enable-maintainer-mode was given.
2042 if test "${enable_maintainer_mode+set}" = set; then
2043 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2044 else
2045 USE_MAINTAINER_MODE=no
2048 if test $USE_MAINTAINER_MODE = yes; then
2049 MAINT=
2050 else
2051 MAINT=#
2055 # Check whether --enable-locallisppath was given.
2056 if test "${enable_locallisppath+set}" = set; then
2057 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2058 locallisppath=
2059 elif test "${enableval}" != "yes"; then
2060 locallisppath=${enableval}
2065 #### Make srcdir absolute, if it isn't already. It's important to
2066 #### avoid running the path through pwd unnecessarily, since pwd can
2067 #### give you automounter prefixes, which can go away. We do all this
2068 #### so Emacs can find its files when run uninstalled.
2069 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2070 unset CDPATH
2071 case "${srcdir}" in
2072 /* ) ;;
2074 ## We may be able to use the $PWD environment variable to make this
2075 ## absolute. But sometimes PWD is inaccurate.
2076 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2077 ## but that tested only for a well-formed and valid PWD,
2078 ## it did not object when PWD was well-formed and valid but just wrong.
2079 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2080 then
2081 srcdir="$PWD"
2082 else
2083 srcdir="`(cd ${srcdir}; pwd)`"
2086 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2087 esac
2089 #### Check if the source directory already has a configured system in it.
2090 if test `pwd` != `(cd ${srcdir} && pwd)` \
2091 && test -f "${srcdir}/src/config.h" ; then
2092 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2093 as a build directory right now; it has been configured in its own
2094 right. To configure in another directory as well, you MUST
2095 use GNU make. If you do not have GNU make, then you must
2096 now do \`make distclean' in ${srcdir},
2097 and then run $0 again." >&5
2098 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2099 as a build directory right now; it has been configured in its own
2100 right. To configure in another directory as well, you MUST
2101 use GNU make. If you do not have GNU make, then you must
2102 now do \`make distclean' in ${srcdir},
2103 and then run $0 again." >&2;}
2106 #### Given the configuration name, set machfile and opsysfile to the
2107 #### names of the m/*.h and s/*.h files we should use.
2109 ### Canonicalize the configuration name.
2111 ac_aux_dir=
2112 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2113 if test -f "$ac_dir/install-sh"; then
2114 ac_aux_dir=$ac_dir
2115 ac_install_sh="$ac_aux_dir/install-sh -c"
2116 break
2117 elif test -f "$ac_dir/install.sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install.sh -c"
2120 break
2121 elif test -f "$ac_dir/shtool"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/shtool install -c"
2124 break
2126 done
2127 if test -z "$ac_aux_dir"; then
2128 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2129 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2130 { (exit 1); exit 1; }; }
2133 # These three variables are undocumented and unsupported,
2134 # and are intended to be withdrawn in a future Autoconf release.
2135 # They can cause serious problems if a builder's source tree is in a directory
2136 # whose full name contains unusual characters.
2137 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2138 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2139 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 build=$ac_cv_build
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_build
2177 shift
2178 build_cpu=$1
2179 build_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 build_os=$*
2184 IFS=$ac_save_IFS
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195 else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 case $ac_cv_host in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 host=$ac_cv_host
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_host
2214 shift
2215 host_cpu=$1
2216 host_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 host_os=$*
2221 IFS=$ac_save_IFS
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 canonical=$host
2226 configuration=${host_alias-${build_alias-$host}}
2230 ### If you add support for a new configuration, add code to this
2231 ### switch statement to recognize your configuration name and select
2232 ### the appropriate operating system and machine description files.
2234 ### You would hope that you could choose an m/*.h file pretty much
2235 ### based on the machine portion of the configuration name, and an s-
2236 ### file based on the operating system portion. However, it turns out
2237 ### that each m/*.h file is pretty manufacturer-specific - for
2238 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2239 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2240 ### machines. So we basically have to have a special case for each
2241 ### configuration name.
2243 ### As far as handling version numbers on operating systems is
2244 ### concerned, make sure things will fail in a fixable way. If
2245 ### /etc/MACHINES doesn't say anything about version numbers, be
2246 ### prepared to handle anything reasonably. If version numbers
2247 ### matter, be sure /etc/MACHINES says something about it.
2249 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2250 ### "System V Release 4"; he writes, "The old convention encouraged
2251 ### confusion between `system' and `release' levels'."
2253 machine='' opsys='' unported=no
2254 case "${canonical}" in
2256 ## FreeBSD ports
2257 *-*-freebsd* )
2258 opsys=freebsd
2259 case "${canonical}" in
2260 alpha*-*-freebsd*) machine=alpha ;;
2261 ia64-*-freebsd*) machine=ia64 ;;
2262 sparc64-*-freebsd*) machine=sparc ;;
2263 powerpc-*-freebsd*) machine=macppc ;;
2264 i[3456]86-*-freebsd*) machine=intel386 ;;
2265 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2266 esac
2269 ## FreeBSD kernel + glibc based userland
2270 *-*-kfreebsd*gnu* )
2271 opsys=gnu-kfreebsd
2272 case "${canonical}" in
2273 alpha*-*-kfreebsd*) machine=alpha ;;
2274 ia64-*-kfreebsd*) machine=ia64 ;;
2275 sparc64-*-kfreebsd*) machine=sparc ;;
2276 powerpc-*-kfreebsd*) machine=macppc ;;
2277 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2278 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2279 esac
2282 ## NetBSD ports
2283 *-*-netbsd* )
2284 opsys=netbsd
2285 if test -f /usr/lib/crti.o; then
2287 cat >>confdefs.h <<\_ACEOF
2288 #define HAVE_CRTIN
2289 _ACEOF
2293 case "${canonical}" in
2294 alpha*-*-netbsd*) machine=alpha ;;
2295 i[3456]86-*-netbsd*) machine=intel386 ;;
2296 m68k-*-netbsd*)
2297 # This is somewhat bogus.
2298 machine=hp9000s300 ;;
2299 mips-*-netbsd*) machine=pmax ;;
2300 mipsel-*-netbsd*) machine=pmax ;;
2301 mipseb-*-netbsd*) machine=pmax ;;
2302 ns32k-*-netbsd*) machine=ns32000 ;;
2303 powerpc-*-netbsd*) machine=macppc ;;
2304 sparc*-*-netbsd*) machine=sparc ;;
2305 vax-*-netbsd*) machine=vax ;;
2306 arm-*-netbsd*) machine=arm ;;
2307 x86_64-*-netbsd*) machine=amdx86-64 ;;
2308 hppa-*-netbsd*) machine=hp800 ;;
2309 shle-*-netbsd*) machine=sh3el ;;
2310 esac
2313 ## OpenBSD ports
2314 *-*-openbsd* )
2315 opsys=openbsd
2316 case "${canonical}" in
2317 alpha*-*-openbsd*) machine=alpha ;;
2318 arm-*-openbsd*) machine=arm ;;
2319 hppa-*-openbsd*) machine=hp9000s300 ;;
2320 i386-*-openbsd*) machine=intel386 ;;
2321 m68k-*-openbsd*) machine=hp9000s300 ;;
2322 m88k-*-openbsd*) machine=aviion ;;
2323 mips64-*-openbsd*) machine=mips64 ;;
2324 powerpc-*-openbsd*) machine=macppc ;;
2325 sh-*-openbsd*) machine=sh3el ;;
2326 sparc*-*-openbsd*) machine=sparc ;;
2327 vax-*-openbsd*) machine=vax ;;
2328 x86_64-*-openbsd*) machine=amdx86-64 ;;
2329 esac
2332 ## LynxOS ports
2333 *-*-lynxos* )
2334 opsys=lynxos
2335 case "${canonical}" in
2336 i[3456]86-*-lynxos*) machine=intel386 ;;
2337 powerpc-*-lynxos*) machine=powerpc ;;
2338 esac
2341 ## Acorn RISCiX:
2342 arm-acorn-riscix1.1* )
2343 machine=acorn opsys=riscix1-1
2345 arm-acorn-riscix1.2* | arm-acorn-riscix )
2346 ## This name is riscix12 instead of riscix1.2
2347 ## to avoid a file name conflict on MSDOS.
2348 machine=acorn opsys=riscix12
2351 ## BSDI ports
2352 *-*-bsdi* )
2353 opsys=bsdi
2354 case "${canonical}" in
2355 i[345]86-*-bsdi*) machine=intel386 ;;
2356 sparc-*-bsdi*) machine=sparc ;;
2357 powerpc-*-bsdi*) machine=macppc ;;
2358 esac
2359 case "${canonical}" in
2360 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2361 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2362 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2363 *-*-bsdi3* ) opsys=bsdos3 ;;
2364 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2365 esac
2368 ## Alliant machines
2369 ## Strictly speaking, we need the version of the alliant operating
2370 ## system to choose the right machine file, but currently the
2371 ## configuration name doesn't tell us enough to choose the right
2372 ## one; we need to give alliants their own operating system name to
2373 ## do this right. When someone cares, they can help us.
2374 fx80-alliant-* )
2375 machine=alliant4 opsys=bsd4-2
2377 i860-alliant-* )
2378 machine=alliant-2800 opsys=bsd4-3
2381 ## Alpha (DEC) machines.
2382 alpha*-dec-osf* )
2383 machine=alpha opsys=osf1
2384 # This is needed to find X11R6.1 libraries for certain tests.
2385 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2386 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2387 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2388 # due to non-traditional preprocessing with the current compiler
2389 # defaults. OSF 4 can also have that compiler version, and there
2390 # seems always to have been a usable /usr/bin/cpp.
2391 NON_GNU_CPP=/usr/bin/cpp
2392 case "${canonical}" in
2393 alpha*-dec-osf[5-9]*)
2394 opsys=osf5-0 ;;
2395 esac
2398 alpha*-*-linux-gnu* )
2399 machine=alpha opsys=gnu-linux
2402 arm*-*-linux-gnu* )
2403 machine=arm opsys=gnu-linux
2406 ## Altos 3068
2407 m68*-altos-sysv* )
2408 machine=altos opsys=usg5-2
2411 ## Amdahl UTS
2412 580-amdahl-sysv* )
2413 machine=amdahl opsys=usg5-2-2
2416 ## Apollo, Domain/OS
2417 m68*-apollo-* )
2418 machine=apollo opsys=bsd4-3
2421 ## Apple Darwin / Mac OS X
2422 *-apple-darwin* )
2423 case "${canonical}" in
2424 i[3456]86-* ) machine=intel386 ;;
2425 powerpc-* ) machine=powermac ;;
2426 * ) unported=yes ;;
2427 esac
2428 opsys=darwin
2429 # Define CPP as follows to make autoconf work correctly.
2430 CPP="${CC-cc} -E -no-cpp-precomp"
2431 # Use fink packages if available.
2432 if test -d /sw/include && test -d /sw/lib; then
2433 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2434 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2435 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2439 ## AT&T 3b2, 3b5, 3b15, 3b20
2440 we32k-att-sysv* )
2441 machine=att3b opsys=usg5-2-2
2444 ## AT&T 3b1 - The Mighty Unix PC!
2445 m68*-att-sysv* )
2446 machine=7300 opsys=usg5-2-2
2449 ## Bull dpx20
2450 rs6000-bull-bosx* )
2451 machine=ibmrs6000 opsys=aix3-2
2454 ## Bull dpx2
2455 m68*-bull-sysv3* )
2456 machine=dpx2 opsys=usg5-3
2459 ## Bull sps7
2460 m68*-bull-sysv2* )
2461 machine=sps7 opsys=usg5-2
2464 ## CCI 5/32, 6/32 -- see "Tahoe".
2466 ## Celerity
2467 ## I don't know what configuration name to use for this; config.sub
2468 ## doesn't seem to know anything about it. Hey, Celerity users, get
2469 ## in touch with us!
2470 celerity-celerity-bsd* )
2471 machine=celerity opsys=bsd4-2
2474 ## Clipper
2475 ## What operating systems does this chip run that Emacs has been
2476 ## tested on?
2477 clipper-* )
2478 machine=clipper
2479 ## We'll use the catch-all code at the bottom to guess the
2480 ## operating system.
2483 ## Compaq Nonstop
2484 mips-compaq-nonstopux* )
2485 machine=nonstopux opsys=nonstopux
2488 ## Convex
2489 *-convex-bsd* | *-convex-convexos* )
2490 machine=convex opsys=bsd4-3
2491 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2492 NON_GNU_CPP="cc -E -P"
2495 ## Cubix QBx/386
2496 i[3456]86-cubix-sysv* )
2497 machine=intel386 opsys=usg5-3
2500 ## Cydra 5
2501 cydra*-cydrome-sysv* )
2502 machine=cydra5 opsys=usg5-3
2505 ## Data General AViiON Machines
2506 ## DG changed naming conventions with the release of 5.4.4.10, they
2507 ## dropped the initial 5.4 but left the intervening R. Because of the
2508 ## R this shouldn't conflict with older versions of the OS (which I
2509 ## think were named like dgux4.*). In addition, DG new AViiONs series
2510 ## uses either Motorola M88k or Intel Pentium CPUs.
2511 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2512 machine=aviion opsys=dgux4
2514 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2515 ## This name is dgux5-4-3 instead of dgux5-4r3
2516 ## to avoid a file name conflict on MSDOS.
2517 machine=aviion opsys=dgux5-4-3
2519 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2520 machine=aviion opsys=dgux5-4r2
2522 m88k-dg-dgux* )
2523 machine=aviion opsys=dgux
2526 ## Data General AViiON Intel (x86) Machines
2527 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2528 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2529 i[345]86-dg-dguxR4* )
2530 machine=aviion-intel opsys=dgux4
2533 ## DECstations
2534 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2535 machine=pmax opsys=bsd4-2
2537 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2538 machine=pmax opsys=bsd4-3
2540 mips-dec-ultrix* )
2541 machine=pmax opsys=ultrix4-3
2543 mips-dec-osf* )
2544 machine=pmax opsys=osf1
2546 mips-dec-mach_bsd4.3* )
2547 machine=pmax opsys=mach-bsd4-3
2550 ## Motorola Delta machines
2551 m68k-motorola-sysv* | m68000-motorola-sysv* )
2552 machine=delta opsys=usg5-3
2553 if test -z "`type gnucc | grep 'not found'`"
2554 then
2555 if test -s /etc/167config
2556 then CC="gnucc -m68040"
2557 else CC="gnucc -m68881"
2559 else
2560 if test -z "`type gcc | grep 'not found'`"
2561 then CC=gcc
2562 else CC=cc
2566 m88k-motorola-sysv4* )
2567 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2568 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2569 # I hope there are not other 4.0 versions for this machine
2570 # which really need usg5-4 instead.
2571 machine=delta88k opsys=usg5-4-2
2573 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2574 machine=delta88k opsys=usg5-3
2577 ## Dual machines
2578 m68*-dual-sysv* )
2579 machine=dual opsys=usg5-2
2581 m68*-dual-uniplus* )
2582 machine=dual opsys=unipl5-2
2585 ## Elxsi 6400
2586 elxsi-elxsi-sysv* )
2587 machine=elxsi opsys=usg5-2
2590 ## Encore machines
2591 ns16k-encore-bsd* )
2592 machine=ns16000 opsys=umax
2595 ## The GEC 63 - apparently, this port isn't really finished yet.
2596 # I'm sure we finished off the last of the machines, though. -- fx
2598 ## Gould Power Node and NP1
2599 pn-gould-bsd4.2* )
2600 machine=gould opsys=bsd4-2
2602 pn-gould-bsd4.3* )
2603 machine=gould opsys=bsd4-3
2605 np1-gould-bsd* )
2606 machine=gould-np1 opsys=bsd4-3
2609 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2610 ## as far as Emacs is concerned).
2611 m88k-harris-cxux* )
2612 # Build needs to be different on 7.0 and later releases
2613 case "`uname -r`" in
2614 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2615 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2616 esac
2617 NON_GNU_CPP="/lib/cpp"
2619 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2620 m68k-harris-cxux* )
2621 machine=nh3000 opsys=cxux
2623 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2624 powerpc-harris-powerunix )
2625 machine=nh6000 opsys=powerunix
2626 NON_GNU_CPP="cc -Xo -E -P"
2628 ## SR2001/SR2201 running HI-UX/MPP
2629 hppa1.1-hitachi-hiuxmpp* )
2630 machine=sr2k opsys=hiuxmpp
2632 hppa1.1-hitachi-hiuxwe2* )
2633 machine=sr2k opsys=hiuxwe2
2635 ## Honeywell XPS100
2636 xps*-honeywell-sysv* )
2637 machine=xps100 opsys=usg5-2
2640 ## HP 9000 series 200 or 300
2641 m68*-hp-bsd* )
2642 machine=hp9000s300 opsys=bsd4-3
2644 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2645 m68*-hp-hpux* )
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=hp9000s300 opsys=hpux8 ;;
2650 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2651 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2652 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2653 *) machine=hp9000s300 opsys=hpux ;;
2654 esac
2657 ## HP 9000 series 700 and 800, running HP/UX
2658 hppa*-hp-hpux7* )
2659 machine=hp800 opsys=hpux
2661 hppa*-hp-hpux8* )
2662 machine=hp800 opsys=hpux8
2664 hppa*-hp-hpux9shr* )
2665 machine=hp800 opsys=hpux9shr
2667 hppa*-hp-hpux9* )
2668 machine=hp800 opsys=hpux9
2670 hppa*-hp-hpux10.2* )
2671 machine=hp800 opsys=hpux10-20
2673 hppa*-hp-hpux10* )
2674 machine=hp800 opsys=hpux10
2676 hppa*-hp-hpux1[1-9]* )
2677 machine=hp800 opsys=hpux11
2678 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2681 hppa*-*-linux-gnu* )
2682 machine=hp800 opsys=gnu-linux
2685 ## HP 9000 series 700 and 800, running HP/UX
2686 hppa*-hp-hpux* )
2687 ## Cross-compilation? Nah!
2688 case "`uname -r`" in
2689 ## Someone's system reports A.B8.05 for this.
2690 ## I wonder what other possibilities there are.
2691 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2692 *.08.* ) machine=hp800 opsys=hpux8 ;;
2693 *.09.* ) machine=hp800 opsys=hpux9 ;;
2694 *) machine=hp800 opsys=hpux10 ;;
2695 esac
2697 hppa*-*-nextstep* )
2698 machine=hp800 opsys=nextstep
2701 ## Orion machines
2702 orion-orion-bsd* )
2703 machine=orion opsys=bsd4-2
2705 clipper-orion-bsd* )
2706 machine=orion105 opsys=bsd4-2
2709 ## IBM machines
2710 i[3456]86-ibm-aix1.1* )
2711 machine=ibmps2-aix opsys=usg5-2-2
2713 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2714 machine=ibmps2-aix opsys=usg5-3
2716 i370-ibm-aix*)
2717 machine=ibm370aix opsys=usg5-3
2719 s390-*-linux-gnu* )
2720 machine=ibms390 opsys=gnu-linux
2722 s390x-*-linux-gnu* )
2723 machine=ibms390x opsys=gnu-linux
2725 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2726 machine=ibmrs6000 opsys=aix3-1
2728 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2729 machine=ibmrs6000 opsys=aix3-2-5
2731 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2732 machine=ibmrs6000 opsys=aix4-1
2734 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2735 machine=ibmrs6000 opsys=aix4-2
2737 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2738 machine=ibmrs6000 opsys=aix4-2
2740 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2741 machine=ibmrs6000 opsys=aix4-2
2743 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2744 machine=ibmrs6000 opsys=aix4
2746 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2747 machine=ibmrs6000 opsys=aix4-1
2749 rs6000-ibm-aix* | powerpc-ibm-aix* )
2750 machine=ibmrs6000 opsys=aix3-2
2752 romp-ibm-bsd4.3* )
2753 machine=ibmrt opsys=bsd4-3
2755 romp-ibm-bsd4.2* )
2756 machine=ibmrt opsys=bsd4-2
2758 romp-ibm-aos4.3* )
2759 machine=ibmrt opsys=bsd4-3
2761 romp-ibm-aos4.2* )
2762 machine=ibmrt opsys=bsd4-2
2764 romp-ibm-aos* )
2765 machine=ibmrt opsys=bsd4-3
2767 romp-ibm-bsd* )
2768 machine=ibmrt opsys=bsd4-3
2770 romp-ibm-aix* )
2771 machine=ibmrt-aix opsys=usg5-2-2
2774 ## Integrated Solutions `Optimum V'
2775 m68*-isi-bsd4.2* )
2776 machine=isi-ov opsys=bsd4-2
2778 m68*-isi-bsd4.3* )
2779 machine=isi-ov opsys=bsd4-3
2782 ## Intel 386 machines where we do care about the manufacturer
2783 i[3456]86-intsys-sysv* )
2784 machine=is386 opsys=usg5-2-2
2787 ## Prime EXL
2788 i[3456]86-prime-sysv* )
2789 machine=i386 opsys=usg5-3
2792 ## Sequent Symmetry running Dynix
2793 i[3456]86-sequent-bsd* )
2794 machine=symmetry opsys=bsd4-3
2797 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2798 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2799 machine=sequent-ptx opsys=ptx4
2800 NON_GNU_CPP=/lib/cpp
2803 ## Sequent Symmetry running DYNIX/ptx
2804 ## Use the old cpp rather than the newer ANSI one.
2805 i[3456]86-sequent-ptx* )
2806 machine=sequent-ptx opsys=ptx
2807 NON_GNU_CPP="/lib/cpp"
2810 ## ncr machine running svr4.3.
2811 i[3456]86-ncr-sysv4.3 )
2812 machine=ncr386 opsys=usg5-4-3
2815 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2816 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2817 i[3456]86-ncr-sysv* )
2818 machine=ncr386 opsys=usg5-4-2
2821 ## Intel Paragon OSF/1
2822 i860-intel-osf1* )
2823 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2826 ## Intel 860
2827 i860-*-sysv4* )
2828 machine=i860 opsys=usg5-4
2829 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2830 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2833 ## Macintosh PowerPC
2834 powerpc*-*-linux-gnu* )
2835 machine=macppc opsys=gnu-linux
2838 ## Masscomp machines
2839 m68*-masscomp-rtu* )
2840 machine=masscomp opsys=rtu
2843 ## Megatest machines
2844 m68*-megatest-bsd* )
2845 machine=mega68 opsys=bsd4-2
2848 ## Workstations sold by MIPS
2849 ## This is not necessarily all workstations using the MIPS processor -
2850 ## Irises are produced by SGI, and DECstations by DEC.
2852 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2853 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2854 ## it gives for choosing between the alternatives seems to be "Use
2855 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2856 ## the BSD world." I'll assume that these are instructions for
2857 ## handling two odd situations, and that every other situation
2858 ## should use mips.h and usg5-2-2, they being listed first.
2859 mips-mips-usg* )
2860 machine=mips4
2861 ## Fall through to the general code at the bottom to decide on the OS.
2863 mips-mips-riscos4* )
2864 machine=mips4 opsys=bsd4-3
2865 NON_GNU_CC="cc -systype bsd43"
2866 NON_GNU_CPP="cc -systype bsd43 -E"
2868 mips-mips-riscos5* )
2869 machine=mips4 opsys=riscos5
2870 NON_GNU_CC="cc -systype bsd43"
2871 NON_GNU_CPP="cc -systype bsd43 -E"
2873 mips-mips-bsd* )
2874 machine=mips opsys=bsd4-3
2876 mips-mips-* )
2877 machine=mips opsys=usg5-2-2
2880 ## NeXT
2881 m68*-next-* | m68k-*-nextstep* )
2882 machine=m68k opsys=nextstep
2885 ## The complete machine from National Semiconductor
2886 ns32k-ns-genix* )
2887 machine=ns32000 opsys=usg5-2
2890 ## NCR machines
2891 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2892 machine=tower32 opsys=usg5-2-2
2894 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2895 machine=tower32v3 opsys=usg5-3
2898 ## NEC EWS4800
2899 mips-nec-sysv4*)
2900 machine=ews4800 opsys=ux4800
2903 ## Nixdorf Targon 31
2904 m68*-nixdorf-sysv* )
2905 machine=targon31 opsys=usg5-2-2
2908 ## Nu (TI or LMI)
2909 m68*-nu-sysv* )
2910 machine=nu opsys=usg5-2
2913 ## Plexus
2914 m68*-plexus-sysv* )
2915 machine=plexus opsys=usg5-2
2918 ## Pyramid machines
2919 ## I don't really have any idea what sort of processor the Pyramid has,
2920 ## so I'm assuming it is its own architecture.
2921 pyramid-pyramid-bsd* )
2922 machine=pyramid opsys=bsd4-2
2925 ## Sequent Balance
2926 ns32k-sequent-bsd4.2* )
2927 machine=sequent opsys=bsd4-2
2929 ns32k-sequent-bsd4.3* )
2930 machine=sequent opsys=bsd4-3
2933 ## Siemens Nixdorf
2934 mips-siemens-sysv* | mips-sni-sysv*)
2935 machine=mips-siemens opsys=usg5-4
2936 NON_GNU_CC=/usr/ccs/bin/cc
2937 NON_GNU_CPP=/usr/ccs/lib/cpp
2940 ## Silicon Graphics machines
2941 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2942 m68*-sgi-iris3.5* )
2943 machine=irist opsys=iris3-5
2945 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2946 machine=irist opsys=iris3-6
2948 ## Iris 4D
2949 mips-sgi-irix3* )
2950 machine=iris4d opsys=irix3-3
2952 mips-sgi-irix4* )
2953 machine=iris4d opsys=irix4-0
2955 mips-sgi-irix6.5 )
2956 machine=iris4d opsys=irix6-5
2957 # Without defining _LANGUAGE_C, things get masked out in the headers
2958 # so that, for instance, grepping for `free' in stdlib.h fails and
2959 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2960 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2961 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2963 mips-sgi-irix6* )
2964 machine=iris4d opsys=irix6-0
2965 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2966 # but presumably it does no harm.
2967 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2968 # -32 probably isn't necessary in later v.6s -- anyone know which?
2969 NON_GCC_TEST_OPTIONS=-32
2971 mips-sgi-irix5.[01]* )
2972 machine=iris4d opsys=irix5-0
2974 mips-sgi-irix5* | mips-sgi-irix* )
2975 machine=iris4d opsys=irix5-2
2978 ## SONY machines
2979 m68*-sony-bsd4.2* )
2980 machine=news opsys=bsd4-2
2982 m68*-sony-bsd4.3* )
2983 machine=news opsys=bsd4-3
2985 m68*-sony-newsos3* | m68*-sony-news3*)
2986 machine=news opsys=bsd4-3
2988 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2989 machine=news-risc opsys=bsd4-3
2991 mips-sony-newsos6* )
2992 machine=news-r6 opsys=newsos6
2994 mips-sony-news* )
2995 machine=news-risc opsys=newsos5
2998 ## Stride
2999 m68*-stride-sysv* )
3000 machine=stride opsys=usg5-2
3003 ## Suns
3004 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3005 machine=sparc opsys=gnu-linux
3008 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
3009 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3010 | rs6000-*-solaris2*)
3011 case "${canonical}" in
3012 m68*-sunos1* ) machine=sun1 ;;
3013 m68*-sunos2* ) machine=sun2 ;;
3014 m68* ) machine=sun3 ;;
3015 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3016 i[3456]86-*-* ) machine=intel386 ;;
3017 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3018 powerpcle* ) machine=powerpcle ;;
3019 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3020 sparc* ) machine=sparc ;;
3021 * ) unported=yes ;;
3022 esac
3023 case "${canonical}" in
3024 ## The Sun386 didn't get past 4.0.
3025 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3026 *-sunos4.0* ) opsys=sunos4-0 ;;
3027 *-sunos4.1.[3-9]*noshare )
3028 ## This name is sunos413 instead of sunos4-1-3
3029 ## to avoid a file name conflict on MSDOS.
3030 opsys=sunos413
3031 NON_GNU_CPP=/usr/lib/cpp
3032 NON_GCC_TEST_OPTIONS=-Bstatic
3033 GCC_TEST_OPTIONS=-static
3035 *-sunos4.1.[3-9]* | *-sunos4shr*)
3036 opsys=sunos4shr
3037 NON_GNU_CPP=/usr/lib/cpp
3039 *-sunos4* | *-sunos )
3040 opsys=sunos4-1
3041 NON_GCC_TEST_OPTIONS=-Bstatic
3042 GCC_TEST_OPTIONS=-static
3044 *-sunos5.3* | *-solaris2.3* )
3045 opsys=sol2-3
3046 NON_GNU_CPP=/usr/ccs/lib/cpp
3048 *-sunos5.4* | *-solaris2.4* )
3049 opsys=sol2-4
3050 NON_GNU_CPP=/usr/ccs/lib/cpp
3051 RANLIB="ar -ts"
3053 *-sunos5.5* | *-solaris2.5* )
3054 opsys=sol2-5
3055 NON_GNU_CPP=/usr/ccs/lib/cpp
3056 RANLIB="ar -ts"
3058 *-sunos5.6* | *-solaris2.6* )
3059 opsys=sol2-6
3060 NON_GNU_CPP=/usr/ccs/lib/cpp
3061 RANLIB="ar -ts"
3063 *-sunos5* | *-solaris* )
3064 opsys=sol2-6
3065 emacs_check_sunpro_c=yes
3066 NON_GNU_CPP=/usr/ccs/lib/cpp
3068 * ) opsys=bsd4-2 ;;
3069 esac
3070 ## Watch out for a compiler that we know will not work.
3071 case "${canonical}" in
3072 *-solaris* | *-sunos5* )
3073 if [ "x$CC" = x/usr/ucb/cc ]; then
3074 ## /usr/ucb/cc doesn't work;
3075 ## we should find some other compiler that does work.
3076 unset CC
3079 *) ;;
3080 esac
3082 sparc-*-nextstep* )
3083 machine=sparc opsys=nextstep
3086 ## Tadpole 68k
3087 m68*-tadpole-sysv* )
3088 machine=tad68k opsys=usg5-3
3091 ## Tahoe machines
3092 tahoe-tahoe-bsd4.2* )
3093 machine=tahoe opsys=bsd4-2
3095 tahoe-tahoe-bsd4.3* )
3096 machine=tahoe opsys=bsd4-3
3099 ## Tandem Integrity S2
3100 mips-tandem-sysv* )
3101 machine=tandem-s2 opsys=usg5-3
3104 ## Tektronix XD88
3105 m88k-tektronix-sysv3* )
3106 machine=tekxd88 opsys=usg5-3
3109 ## Tektronix 16000 box (6130?)
3110 ns16k-tektronix-bsd* )
3111 machine=ns16000 opsys=bsd4-2
3113 ## Tektronix 4300
3114 ## src/m/tek4300.h hints that this is a m68k machine.
3115 m68*-tektronix-bsd* )
3116 machine=tek4300 opsys=bsd4-3
3119 ## Titan P2 or P3
3120 ## We seem to have lost the machine-description file titan.h!
3121 titan-titan-sysv* )
3122 machine=titan opsys=usg5-3
3125 ## Ustation E30 (SS5E)
3126 m68*-unisys-uniplus* )
3127 machine=ustation opsystem=unipl5-2
3130 ## Vaxen.
3131 vax-dec-* )
3132 machine=vax
3133 case "${canonical}" in
3134 *-bsd4.1* ) opsys=bsd4-1 ;;
3135 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3136 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3137 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3138 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3139 *-vms* ) opsys=vms ;;
3140 * ) unported=yes
3141 esac
3144 ## Whitechapel MG1
3145 ns16k-whitechapel-* )
3146 machine=mg1
3147 ## We don't know what sort of OS runs on these; we'll let the
3148 ## operating system guessing code below try.
3151 ## Wicat
3152 m68*-wicat-sysv* )
3153 machine=wicat opsys=usg5-2
3156 ## IA-64
3157 ia64*-*-linux* )
3158 machine=ia64 opsys=gnu-linux
3161 ## Intel 386 machines where we don't care about the manufacturer
3162 i[3456]86-*-* )
3163 machine=intel386
3164 case "${canonical}" in
3165 *-cygwin ) opsys=cygwin ;;
3166 *-darwin* ) opsys=darwin
3167 CPP="${CC-cc} -E -no-cpp-precomp"
3169 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3170 *-isc2.2* ) opsys=isc2-2 ;;
3171 *-isc4.0* ) opsys=isc4-0 ;;
3172 *-isc4.* ) opsys=isc4-1
3173 GCC_TEST_OPTIONS=-posix
3174 NON_GCC_TEST_OPTIONS=-Xp
3176 *-isc* ) opsys=isc3-0 ;;
3177 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3178 *-esix* ) opsys=esix ;;
3179 *-xenix* ) opsys=xenix ;;
3180 *-linux-gnu* ) opsys=gnu-linux ;;
3181 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3182 *-sco3.2v5* ) opsys=sco5
3183 NON_GNU_CPP=/lib/cpp
3184 # Prevent -belf from being passed to $CPP.
3185 # /lib/cpp does not accept it.
3186 OVERRIDE_CPPFLAGS=" "
3188 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3189 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3190 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3191 *-386bsd* ) opsys=386bsd ;;
3192 *-nextstep* ) opsys=nextstep ;;
3193 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3194 esac
3197 ## m68k Linux-based GNU system
3198 m68k-*-linux-gnu* )
3199 machine=m68k opsys=gnu-linux
3202 ## Mips Linux-based GNU system
3203 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3204 machine=mips opsys=gnu-linux
3207 ## UXP/DS
3208 sparc-fujitsu-sysv4* )
3209 machine=sparc opsys=uxpds
3210 NON_GNU_CPP=/usr/ccs/lib/cpp
3211 RANLIB="ar -ts"
3214 ## UXP/V
3215 f301-fujitsu-uxpv4.1)
3216 machine=f301 opsys=uxpv
3219 ## AMD x86-64 Linux-based GNU system
3220 x86_64-*-linux-gnu* )
3221 machine=amdx86-64 opsys=gnu-linux
3224 ## Tensilica Xtensa Linux-based GNU system
3225 xtensa-*-linux-gnu* )
3226 machine=xtensa opsys=gnu-linux
3230 unported=yes
3232 esac
3234 ### If the code above didn't choose an operating system, just choose
3235 ### an operating system based on the configuration name. You really
3236 ### only want to use this when you have no idea what the right
3237 ### operating system is; if you know what operating systems a machine
3238 ### runs, it's cleaner to make it explicit in the case statement
3239 ### above.
3240 if test x"${opsys}" = x; then
3241 case "${canonical}" in
3242 *-gnu* ) opsys=gnu ;;
3243 *-bsd4.[01] ) opsys=bsd4-1 ;;
3244 *-bsd4.2 ) opsys=bsd4-2 ;;
3245 *-bsd4.3 ) opsys=bsd4-3 ;;
3246 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3247 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3248 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3249 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3250 *-sysv4.2uw* ) opsys=unixware ;;
3251 *-sysv5uw* ) opsys=unixware ;;
3252 *-sysv5OpenUNIX* ) opsys=unixware ;;
3253 *-sysv4.1* | *-sysvr4.1* )
3254 NON_GNU_CPP=/usr/lib/cpp
3255 opsys=usg5-4 ;;
3256 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3257 if [ x$NON_GNU_CPP = x ]; then
3258 if [ -f /usr/ccs/lib/cpp ]; then
3259 NON_GNU_CPP=/usr/ccs/lib/cpp
3260 else
3261 NON_GNU_CPP=/lib/cpp
3264 opsys=usg5-4-2 ;;
3265 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3267 unported=yes
3269 esac
3274 if test $unported = yes; then
3275 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3276 Check \`etc/MACHINES' for recognized configuration names." >&5
3277 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3278 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3279 { (exit 1); exit 1; }; }
3282 machfile="m/${machine}.h"
3283 opsysfile="s/${opsys}.h"
3286 #### Choose a compiler.
3287 test -n "$CC" && cc_specified=yes
3289 # Save the value of CFLAGS that the user specified.
3290 SPECIFIED_CFLAGS="$CFLAGS"
3292 case ${with_gcc} in
3293 "yes" ) CC="gcc" GCC=yes ;;
3294 "no" ) : ${CC=cc} ;;
3296 esac
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3307 if test "${ac_cv_prog_CC+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3324 done
3325 done
3326 IFS=$as_save_IFS
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332 { echo "$as_me:$LINENO: result: $CC" >&5
3333 echo "${ECHO_T}$CC" >&6; }
3334 else
3335 { echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3342 ac_ct_CC=$CC
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3373 echo "${ECHO_T}$ac_ct_CC" >&6; }
3374 else
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3385 whose name does not start with the host triplet. If you think this
3386 configuration is useful to you, please write to autoconf@gnu.org." >&5
3387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3388 whose name does not start with the host triplet. If you think this
3389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392 CC=$ac_ct_CC
3394 else
3395 CC="$ac_cv_prog_CC"
3398 if test -z "$CC"; then
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}cc; ac_word=$2
3402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_CC="${ac_tool_prefix}cc"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3421 done
3422 done
3423 IFS=$as_save_IFS
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429 { echo "$as_me:$LINENO: result: $CC" >&5
3430 echo "${ECHO_T}$CC" >&6; }
3431 else
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3439 if test -z "$CC"; then
3440 # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc; ac_word=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 ac_prog_rejected=no
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3459 ac_prog_rejected=yes
3460 continue
3462 ac_cv_prog_CC="cc"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3470 if test $ac_prog_rejected = yes; then
3471 # We found a bogon in the path, so make sure we never use it.
3472 set dummy $ac_cv_prog_CC
3473 shift
3474 if test $# != 0; then
3475 # We chose a different compiler from the bogus one.
3476 # However, it has the same basename, so the bogon will be chosen
3477 # first if we set CC to just the basename; use the full file name.
3478 shift
3479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3495 if test -z "$CC"; then
3496 if test -n "$ac_tool_prefix"; then
3497 for ac_prog in cl.exe
3499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_CC+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { echo "$as_me:$LINENO: result: $CC" >&5
3529 echo "${ECHO_T}$CC" >&6; }
3530 else
3531 { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3536 test -n "$CC" && break
3537 done
3539 if test -z "$CC"; then
3540 ac_ct_CC=$CC
3541 for ac_prog in cl.exe
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3573 echo "${ECHO_T}$ac_ct_CC" >&6; }
3574 else
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3580 test -n "$ac_ct_CC" && break
3581 done
3583 if test "x$ac_ct_CC" = x; then
3584 CC=""
3585 else
3586 case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3589 whose name does not start with the host triplet. If you think this
3590 configuration is useful to you, please write to autoconf@gnu.org." >&5
3591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3592 whose name does not start with the host triplet. If you think this
3593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596 CC=$ac_ct_CC
3603 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3609 # Provide some information about the compiler.
3610 echo "$as_me:$LINENO: checking for C compiler version" >&5
3611 ac_compiler=`set X $ac_compile; echo $2`
3612 { (ac_try="$ac_compiler --version >&5"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler --version >&5") 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3622 { (ac_try="$ac_compiler -v >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compiler -v >&5") 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3632 { (ac_try="$ac_compiler -V >&5"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_compiler -V >&5") 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3651 main ()
3655 return 0;
3657 _ACEOF
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3662 # of exeext.
3663 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3664 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3665 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667 # List of possible output files, starting from the most likely.
3668 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3669 # only as a last resort. b.out is created by i960 compilers.
3670 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3672 # The IRIX 6 linker writes into existing files which may not be
3673 # executable, retaining their permissions. Remove them first so a
3674 # subsequent execution test works.
3675 ac_rmfiles=
3676 for ac_file in $ac_files
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3680 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3681 esac
3682 done
3683 rm -f $ac_rmfiles
3685 if { (ac_try="$ac_link_default"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_link_default") 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; then
3695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3699 # Autoconf.
3700 for ac_file in $ac_files ''
3702 test -f "$ac_file" || continue
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3706 [ab].out )
3707 # We found the default executable, but exeext='' is most
3708 # certainly right.
3709 break;;
3710 *.* )
3711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3712 then :; else
3713 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 # We set ac_cv_exeext here because the later test for it is not
3716 # safe: cross compilers may not add the suffix if given an `-o'
3717 # argument, so we may need to know it at that point already.
3718 # Even if this section looks crufty: it has the advantage of
3719 # actually working.
3720 break;;
3722 break;;
3723 esac
3724 done
3725 test "$ac_cv_exeext" = no && ac_cv_exeext=
3727 else
3728 ac_file=''
3731 { echo "$as_me:$LINENO: result: $ac_file" >&5
3732 echo "${ECHO_T}$ac_file" >&6; }
3733 if test -z "$ac_file"; then
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: C compiler cannot create executables
3740 See \`config.log' for more details." >&2;}
3741 { (exit 77); exit 77; }; }
3744 ac_exeext=$ac_cv_exeext
3746 # Check that the compiler produces executables we can run. If not, either
3747 # the compiler is broken, or we cross compile.
3748 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3749 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3750 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3751 # If not cross compiling, check that we can run a simple program.
3752 if test "$cross_compiling" != yes; then
3753 if { ac_try='./$ac_file'
3754 { (case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 cross_compiling=no
3764 else
3765 if test "$cross_compiling" = maybe; then
3766 cross_compiling=yes
3767 else
3768 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: cannot run C compiled programs.
3772 If you meant to cross compile, use \`--host'.
3773 See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3778 { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3781 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3782 ac_clean_files=$ac_clean_files_save
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3786 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3787 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3788 echo "${ECHO_T}$cross_compiling" >&6; }
3790 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3791 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3792 if { (ac_try="$ac_link"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_link") 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3803 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3804 # work properly (i.e., refer to `conftest.exe'), while it won't with
3805 # `rm'.
3806 for ac_file in conftest.exe conftest conftest.*; do
3807 test -f "$ac_file" || continue
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811 break;;
3812 * ) break;;
3813 esac
3814 done
3815 else
3816 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3823 rm -f conftest$ac_cv_exeext
3824 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3825 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3829 ac_exeext=$EXEEXT
3830 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3831 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3832 if test "${ac_cv_objext+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 main ()
3847 return 0;
3849 _ACEOF
3850 rm -f conftest.o conftest.obj
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; then
3861 for ac_file in conftest.o conftest.obj conftest.*; do
3862 test -f "$ac_file" || continue;
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3866 break;;
3867 esac
3868 done
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3874 See \`config.log' for more details." >&5
3875 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3876 See \`config.log' for more details." >&2;}
3877 { (exit 1); exit 1; }; }
3880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3882 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3883 echo "${ECHO_T}$ac_cv_objext" >&6; }
3884 OBJEXT=$ac_cv_objext
3885 ac_objext=$OBJEXT
3886 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 main ()
3901 #ifndef __GNUC__
3902 choke me
3903 #endif
3906 return 0;
3908 _ACEOF
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 ac_compiler_gnu=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_compiler_gnu=no
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3938 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3940 GCC=`test $ac_compiler_gnu = yes && echo yes`
3941 ac_test_CFLAGS=${CFLAGS+set}
3942 ac_save_CFLAGS=$CFLAGS
3943 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3945 if test "${ac_cv_prog_cc_g+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 ac_save_c_werror_flag=$ac_c_werror_flag
3949 ac_c_werror_flag=yes
3950 ac_cv_prog_cc_g=no
3951 CFLAGS="-g"
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 main ()
3964 return 0;
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3984 ac_cv_prog_cc_g=yes
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 CFLAGS=""
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3998 main ()
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4028 CFLAGS="-g"
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h. */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4061 ac_cv_prog_cc_g=yes
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4084 CFLAGS="-g -O2"
4085 else
4086 CFLAGS="-g"
4088 else
4089 if test "$GCC" = yes; then
4090 CFLAGS="-O2"
4091 else
4092 CFLAGS=
4095 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4096 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4097 if test "${ac_cv_prog_cc_c89+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 ac_cv_prog_cc_c89=no
4101 ac_save_CC=$CC
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <stdarg.h>
4109 #include <stdio.h>
4110 #include <sys/types.h>
4111 #include <sys/stat.h>
4112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4113 struct buf { int x; };
4114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4115 static char *e (p, i)
4116 char **p;
4117 int i;
4119 return p[i];
4121 static char *f (char * (*g) (char **, int), char **p, ...)
4123 char *s;
4124 va_list v;
4125 va_start (v,p);
4126 s = g (p, va_arg (v,int));
4127 va_end (v);
4128 return s;
4131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4132 function prototypes and stuff, but not '\xHH' hex character constants.
4133 These don't provoke an error unfortunately, instead are silently treated
4134 as 'x'. The following induces an error, until -std is added to get
4135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4136 array size at least. It's necessary to write '\x00'==0 to get something
4137 that's true only with -std. */
4138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4141 inside strings and character constants. */
4142 #define FOO(x) 'x'
4143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4145 int test (int i, double x);
4146 struct s1 {int (*f) (int a);};
4147 struct s2 {int (*f) (double a);};
4148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4149 int argc;
4150 char **argv;
4152 main ()
4154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 return 0;
4158 _ACEOF
4159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162 CC="$ac_save_CC $ac_arg"
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4165 case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest.$ac_objext; then
4180 ac_cv_prog_cc_c89=$ac_arg
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4188 rm -f core conftest.err conftest.$ac_objext
4189 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 done
4191 rm -f conftest.$ac_ext
4192 CC=$ac_save_CC
4195 # AC_CACHE_VAL
4196 case "x$ac_cv_prog_cc_c89" in
4198 { echo "$as_me:$LINENO: result: none needed" >&5
4199 echo "${ECHO_T}none needed" >&6; } ;;
4200 xno)
4201 { echo "$as_me:$LINENO: result: unsupported" >&5
4202 echo "${ECHO_T}unsupported" >&6; } ;;
4204 CC="$CC $ac_cv_prog_cc_c89"
4205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4207 esac
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4219 CPP=
4222 ## If not using gcc, and on Solaris, and no CPP specified, see if
4223 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4224 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4225 test x"$CPP" = x; then
4226 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4227 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4229 if test "${emacs_cv_sunpro_c+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4240 main ()
4242 #ifndef __SUNPRO_C
4243 fail;
4244 #endif
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest$ac_exeext &&
4267 $as_test_x conftest$ac_exeext; then
4268 emacs_cv_sunpro_c=yes
4269 else
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 emacs_cv_sunpro_c=no
4276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4277 conftest$ac_exeext conftest.$ac_ext
4280 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4281 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4283 if test x"$emacs_cv_sunpro_c" = xyes; then
4284 NON_GNU_CPP="$CC -E -Xs"
4288 #### Some systems specify a CPP to use unless we are using GCC.
4289 #### Now that we know whether we are using GCC, we can decide whether
4290 #### to use that one.
4291 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4292 then
4293 CPP="$NON_GNU_CPP"
4296 #### Some systems specify a CC to use unless we are using GCC.
4297 #### Now that we know whether we are using GCC, we can decide whether
4298 #### to use that one.
4299 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4300 test x$cc_specified != xyes
4301 then
4302 CC="$NON_GNU_CC"
4305 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4306 then
4307 CC="$CC $GCC_TEST_OPTIONS"
4310 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4311 then
4312 CC="$CC $NON_GCC_TEST_OPTIONS"
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4321 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4322 # On Suns, sometimes $CPP names a directory.
4323 if test -n "$CPP" && test -d "$CPP"; then
4324 CPP=
4326 if test -z "$CPP"; then
4327 if test "${ac_cv_prog_CPP+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 # Double quotes because CPP needs to be expanded
4331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4333 ac_preproc_ok=false
4334 for ac_c_preproc_warn_flag in '' yes
4336 # Use a header file that comes with gcc, so configuring glibc
4337 # with a fresh cross-compiler works.
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339 # <limits.h> exists even on freestanding compilers.
4340 # On the NeXT, cc -E runs the code through the compiler's parser,
4341 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4349 # include <limits.h>
4350 #else
4351 # include <assert.h>
4352 #endif
4353 Syntax error
4354 _ACEOF
4355 if { (ac_try="$ac_cpp conftest.$ac_ext"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 }; then
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 # Broken: fails on valid input.
4377 continue
4380 rm -f conftest.err conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4391 _ACEOF
4392 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } >/dev/null && {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 }; then
4408 # Broken: success on invalid input.
4409 continue
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4419 rm -f conftest.err conftest.$ac_ext
4421 done
4422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4423 rm -f conftest.err conftest.$ac_ext
4424 if $ac_preproc_ok; then
4425 break
4428 done
4429 ac_cv_prog_CPP=$CPP
4432 CPP=$ac_cv_prog_CPP
4433 else
4434 ac_cv_prog_CPP=$CPP
4436 { echo "$as_me:$LINENO: result: $CPP" >&5
4437 echo "${ECHO_T}$CPP" >&6; }
4438 ac_preproc_ok=false
4439 for ac_c_preproc_warn_flag in '' yes
4441 # Use a header file that comes with gcc, so configuring glibc
4442 # with a fresh cross-compiler works.
4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 # <limits.h> exists even on freestanding compilers.
4445 # On the NeXT, cc -E runs the code through the compiler's parser,
4446 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4454 # include <limits.h>
4455 #else
4456 # include <assert.h>
4457 #endif
4458 Syntax error
4459 _ACEOF
4460 if { (ac_try="$ac_cpp conftest.$ac_ext"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null && {
4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 }; then
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 # Broken: fails on valid input.
4482 continue
4485 rm -f conftest.err conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <ac_nonexistent.h>
4496 _ACEOF
4497 if { (ac_try="$ac_cpp conftest.$ac_ext"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 }; then
4513 # Broken: success on invalid input.
4514 continue
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # Passes both tests.
4520 ac_preproc_ok=:
4521 break
4524 rm -f conftest.err conftest.$ac_ext
4526 done
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.err conftest.$ac_ext
4529 if $ac_preproc_ok; then
4531 else
4532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4548 if test "${ac_cv_path_GREP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 # Extract the first word of "grep ggrep" to use in msg output
4552 if test -z "$GREP"; then
4553 set dummy grep ggrep; ac_prog_name=$2
4554 if test "${ac_cv_path_GREP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 ac_path_GREP_found=false
4558 # Loop through the user's path and test for each of PROGNAME-LIST
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_prog in grep ggrep; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4568 # Check for GNU ac_path_GREP and select it if it is found.
4569 # Check for GNU $ac_path_GREP
4570 case `"$ac_path_GREP" --version 2>&1` in
4571 *GNU*)
4572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4574 ac_count=0
4575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4576 while :
4578 cat "conftest.in" "conftest.in" >"conftest.tmp"
4579 mv "conftest.tmp" "conftest.in"
4580 cp "conftest.in" "conftest.nl"
4581 echo 'GREP' >> "conftest.nl"
4582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584 ac_count=`expr $ac_count + 1`
4585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4587 ac_cv_path_GREP="$ac_path_GREP"
4588 ac_path_GREP_max=$ac_count
4590 # 10*(2^10) chars as input seems more than enough
4591 test $ac_count -gt 10 && break
4592 done
4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 esac
4597 $ac_path_GREP_found && break 3
4598 done
4599 done
4601 done
4602 IFS=$as_save_IFS
4607 GREP="$ac_cv_path_GREP"
4608 if test -z "$GREP"; then
4609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4611 { (exit 1); exit 1; }; }
4614 else
4615 ac_cv_path_GREP=$GREP
4620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4622 GREP="$ac_cv_path_GREP"
4625 { echo "$as_me:$LINENO: checking for egrep" >&5
4626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_EGREP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4631 then ac_cv_path_EGREP="$GREP -E"
4632 else
4633 # Extract the first word of "egrep" to use in msg output
4634 if test -z "$EGREP"; then
4635 set dummy egrep; ac_prog_name=$2
4636 if test "${ac_cv_path_EGREP+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 ac_path_EGREP_found=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_prog in egrep; do
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651 # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4653 *GNU*)
4654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656 ac_count=0
4657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4658 while :
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 echo 'EGREP' >> "conftest.nl"
4664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666 ac_count=`expr $ac_count + 1`
4667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_EGREP="$ac_path_EGREP"
4670 ac_path_EGREP_max=$ac_count
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4674 done
4675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4679 $ac_path_EGREP_found && break 3
4680 done
4681 done
4683 done
4684 IFS=$as_save_IFS
4689 EGREP="$ac_cv_path_EGREP"
4690 if test -z "$EGREP"; then
4691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4693 { (exit 1); exit 1; }; }
4696 else
4697 ac_cv_path_EGREP=$EGREP
4703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4705 EGREP="$ac_cv_path_EGREP"
4709 { echo "$as_me:$LINENO: checking for AIX" >&5
4710 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #ifdef _AIX
4719 #endif
4721 _ACEOF
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723 $EGREP "yes" >/dev/null 2>&1; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _ALL_SOURCE 1
4728 _ACEOF
4730 else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4734 rm -f conftest*
4738 cat >>confdefs.h <<\_ACEOF
4739 #define _GNU_SOURCE 1
4740 _ACEOF
4744 ### Use -Wno-pointer-sign if the compiler supports it
4745 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4746 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4747 SAVE_CFLAGS="$CFLAGS"
4748 CFLAGS="$CFLAGS -Wno-pointer-sign"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4757 main ()
4761 return 0;
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (ac_try="$ac_compile"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_compile") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && {
4778 test -z "$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 } && test -s conftest.$ac_objext; then
4781 has_option=yes
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 has_option=no
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 if test $has_option = yes; then
4791 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4793 { echo "$as_me:$LINENO: result: $has_option" >&5
4794 echo "${ECHO_T}$has_option" >&6; }
4795 CFLAGS="$SAVE_CFLAGS"
4796 unset has_option
4797 unset SAVE_CFLAGS
4799 #### Some other nice autoconf tests.
4801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4803 LN_S=$as_ln_s
4804 if test "$LN_S" = "ln -s"; then
4805 { echo "$as_me:$LINENO: result: yes" >&5
4806 echo "${ECHO_T}yes" >&6; }
4807 else
4808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4809 echo "${ECHO_T}no, using $LN_S" >&6; }
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4819 # On Suns, sometimes $CPP names a directory.
4820 if test -n "$CPP" && test -d "$CPP"; then
4821 CPP=
4823 if test -z "$CPP"; then
4824 if test "${ac_cv_prog_CPP+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 # Double quotes because CPP needs to be expanded
4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4830 ac_preproc_ok=false
4831 for ac_c_preproc_warn_flag in '' yes
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
4837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4846 # include <limits.h>
4847 #else
4848 # include <assert.h>
4849 #endif
4850 Syntax error
4851 _ACEOF
4852 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null && {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 }; then
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 # Broken: fails on valid input.
4874 continue
4877 rm -f conftest.err conftest.$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4888 _ACEOF
4889 if { (ac_try="$ac_cpp conftest.$ac_ext"
4890 case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893 esac
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null && {
4902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4904 }; then
4905 # Broken: success on invalid input.
4906 continue
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4916 rm -f conftest.err conftest.$ac_ext
4918 done
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.$ac_ext
4921 if $ac_preproc_ok; then
4922 break
4925 done
4926 ac_cv_prog_CPP=$CPP
4929 CPP=$ac_cv_prog_CPP
4930 else
4931 ac_cv_prog_CPP=$CPP
4933 { echo "$as_me:$LINENO: result: $CPP" >&5
4934 echo "${ECHO_T}$CPP" >&6; }
4935 ac_preproc_ok=false
4936 for ac_c_preproc_warn_flag in '' yes
4938 # Use a header file that comes with gcc, so configuring glibc
4939 # with a fresh cross-compiler works.
4940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4941 # <limits.h> exists even on freestanding compilers.
4942 # On the NeXT, cc -E runs the code through the compiler's parser,
4943 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if { (ac_try="$ac_cpp conftest.$ac_ext"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null && {
4970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 }; then
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4979 continue
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if { (ac_try="$ac_cpp conftest.$ac_ext"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev/null && {
5007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 }; then
5010 # Broken: success on invalid input.
5011 continue
5012 else
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5021 rm -f conftest.err conftest.$ac_ext
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then
5028 else
5029 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; }
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042 # Find a good install program. We prefer a C program (faster),
5043 # so one script is as good as another. But avoid the broken or
5044 # incompatible versions:
5045 # SysV /etc/install, /usr/sbin/install
5046 # SunOS /usr/etc/install
5047 # IRIX /sbin/install
5048 # AIX /bin/install
5049 # AmigaOS /C/install, which installs bootblocks on floppy discs
5050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5053 # OS/2's system install, which has a completely different semantic
5054 # ./install, which can be erroneously created by make from ./install.sh.
5055 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5056 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5057 if test -z "$INSTALL"; then
5058 if test "${ac_cv_path_install+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 # Account for people who put trailing slashes in PATH elements.
5067 case $as_dir/ in
5068 ./ | .// | /cC/* | \
5069 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5070 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5071 /usr/ucb/* ) ;;
5073 # OSF1 and SCO ODT 3.0 have their own names for install.
5074 # Don't use installbsd from OSF since it installs stuff as root
5075 # by default.
5076 for ac_prog in ginstall scoinst install; do
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5079 if test $ac_prog = install &&
5080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5081 # AIX install. It has an incompatible calling convention.
5083 elif test $ac_prog = install &&
5084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085 # program-specific install script used by HP pwplus--don't use.
5087 else
5088 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5089 break 3
5092 done
5093 done
5095 esac
5096 done
5097 IFS=$as_save_IFS
5101 if test "${ac_cv_path_install+set}" = set; then
5102 INSTALL=$ac_cv_path_install
5103 else
5104 # As a last resort, use the slow shell script. Don't cache a
5105 # value for INSTALL within a source directory, because that will
5106 # break other packages using the cache if that directory is
5107 # removed, or if the value is a relative name.
5108 INSTALL=$ac_install_sh
5111 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5112 echo "${ECHO_T}$INSTALL" >&6; }
5114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5115 # It thinks the first close brace ends the variable substitution.
5116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5122 if test "x$RANLIB" = x; then
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 RANLIB=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6; }
5155 else
5156 { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5162 if test -z "$ac_cv_prog_RANLIB"; then
5163 ac_ct_RANLIB=$RANLIB
5164 # Extract the first word of "ranlib", so it can be a program name with args.
5165 set dummy ranlib; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 if test -n "$ac_ct_RANLIB"; then
5172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_RANLIB="ranlib"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5192 if test -n "$ac_ct_RANLIB"; then
5193 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5194 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5195 else
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5200 if test "x$ac_ct_RANLIB" = x; then
5201 RANLIB=":"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5206 whose name does not start with the host triplet. If you think this
5207 configuration is useful to you, please write to autoconf@gnu.org." >&5
5208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5209 whose name does not start with the host triplet. If you think this
5210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5211 ac_tool_warned=yes ;;
5212 esac
5213 RANLIB=$ac_ct_RANLIB
5215 else
5216 RANLIB="$ac_cv_prog_RANLIB"
5220 # Extract the first word of "install-info", so it can be a program name with args.
5221 set dummy install-info; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 case $INSTALL_INFO in
5228 [\\/]* | ?:[\\/]*)
5229 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5248 esac
5250 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5251 if test -n "$INSTALL_INFO"; then
5252 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5253 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5260 # Extract the first word of "install-info", so it can be a program name with args.
5261 set dummy install-info; ac_word=$2
5262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5264 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 case $INSTALL_INFO in
5268 [\\/]* | ?:[\\/]*)
5269 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in /usr/sbin
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5288 esac
5290 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5291 if test -n "$INSTALL_INFO"; then
5292 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5293 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5294 else
5295 { echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6; }
5300 # Extract the first word of "install-info", so it can be a program name with args.
5301 set dummy install-info; ac_word=$2
5302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 case $INSTALL_INFO in
5308 [\\/]* | ?:[\\/]*)
5309 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in /sbin
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5323 done
5324 done
5325 IFS=$as_save_IFS
5327 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5329 esac
5331 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5332 if test -n "$INSTALL_INFO"; then
5333 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5334 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5335 else
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5341 # Extract the first word of "gzip", so it can be a program name with args.
5342 set dummy gzip; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 case $GZIP_PROG in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5369 esac
5371 GZIP_PROG=$ac_cv_path_GZIP_PROG
5372 if test -n "$GZIP_PROG"; then
5373 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5374 echo "${ECHO_T}$GZIP_PROG" >&6; }
5375 else
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5383 ## Need makeinfo >= 4.6 (?) to build the manuals.
5384 # Extract the first word of "makeinfo", so it can be a program name with args.
5385 set dummy makeinfo; ac_word=$2
5386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5388 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 case $MAKEINFO in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5411 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5413 esac
5415 MAKEINFO=$ac_cv_path_MAKEINFO
5416 if test -n "$MAKEINFO"; then
5417 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5418 echo "${ECHO_T}$MAKEINFO" >&6; }
5419 else
5420 { echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6; }
5425 if test "$MAKEINFO" != "no" && \
5426 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5427 MAKEINFO=no
5430 if test "$MAKEINFO" = "no"; then
5431 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5432 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5433 { (exit 1); exit 1; }; }
5438 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5439 then
5440 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5443 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5444 then
5445 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5449 late_LDFLAGS=$LDFLAGS
5450 if test "$GCC" = yes; then
5451 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5452 else
5453 LDFLAGS="$LDFLAGS -znocombreloc"
5456 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5457 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5458 cat >conftest.$ac_ext <<_ACEOF
5459 main(){return 0;}
5460 _ACEOF
5461 rm -f conftest.$ac_objext conftest$ac_exeext
5462 if { (ac_try="$ac_link"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_link") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest$ac_exeext &&
5478 $as_test_x conftest$ac_exeext; then
5479 { echo "$as_me:$LINENO: result: yes" >&5
5480 echo "${ECHO_T}yes" >&6; }
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 LDFLAGS=$late_LDFLAGS
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5491 conftest$ac_exeext conftest.$ac_ext
5493 #### Extract some information from the operating system and machine files.
5495 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5496 - which libraries the lib-src programs will want, and
5497 - whether the GNU malloc routines are usable..." >&5
5498 echo "$as_me: checking the machine- and system-dependent files to find out
5499 - which libraries the lib-src programs will want, and
5500 - whether the GNU malloc routines are usable..." >&6;}
5502 ### First figure out CFLAGS (which we use for running the compiler here)
5503 ### and REAL_CFLAGS (which we use for real compilation).
5504 ### The two are the same except on a few systems, where they are made
5505 ### different to work around various lossages. For example,
5506 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5507 ### as implying static linking.
5509 ### If the CFLAGS env var is specified, we use that value
5510 ### instead of the default.
5512 ### It's not important that this name contain the PID; you can't run
5513 ### two configures in the same directory and have anything work
5514 ### anyway.
5515 tempcname="conftest.c"
5517 echo '
5518 #include "'${srcdir}'/src/'${opsysfile}'"
5519 #include "'${srcdir}'/src/'${machfile}'"
5520 #ifndef LIBS_MACHINE
5521 #define LIBS_MACHINE
5522 #endif
5523 #ifndef LIBS_SYSTEM
5524 #define LIBS_SYSTEM
5525 #endif
5526 #ifndef C_SWITCH_SYSTEM
5527 #define C_SWITCH_SYSTEM
5528 #endif
5529 #ifndef C_SWITCH_MACHINE
5530 #define C_SWITCH_MACHINE
5531 #endif
5532 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5533 configure___ c_switch_system=C_SWITCH_SYSTEM
5534 configure___ c_switch_machine=C_SWITCH_MACHINE
5536 #ifndef LIB_X11_LIB
5537 #define LIB_X11_LIB -lX11
5538 #endif
5540 #ifndef LIBX11_MACHINE
5541 #define LIBX11_MACHINE
5542 #endif
5544 #ifndef LIBX11_SYSTEM
5545 #define LIBX11_SYSTEM
5546 #endif
5547 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5549 #ifdef UNEXEC
5550 configure___ unexec=UNEXEC
5551 #else
5552 configure___ unexec=unexec.o
5553 #endif
5555 #ifdef SYSTEM_MALLOC
5556 configure___ system_malloc=yes
5557 #else
5558 configure___ system_malloc=no
5559 #endif
5561 #ifdef USE_MMAP_FOR_BUFFERS
5562 configure___ use_mmap_for_buffers=yes
5563 #else
5564 configure___ use_mmap_for_buffers=no
5565 #endif
5567 #ifndef C_DEBUG_SWITCH
5568 #define C_DEBUG_SWITCH -g
5569 #endif
5571 #ifndef C_OPTIMIZE_SWITCH
5572 #ifdef __GNUC__
5573 #define C_OPTIMIZE_SWITCH -O2
5574 #else
5575 #define C_OPTIMIZE_SWITCH -O
5576 #endif
5577 #endif
5579 #ifndef C_WARNINGS_SWITCH
5580 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5581 #endif
5583 #ifndef LD_SWITCH_MACHINE
5584 #define LD_SWITCH_MACHINE
5585 #endif
5587 #ifndef LD_SWITCH_SYSTEM
5588 #define LD_SWITCH_SYSTEM
5589 #endif
5591 #ifndef LD_SWITCH_X_SITE_AUX
5592 #define LD_SWITCH_X_SITE_AUX
5593 #endif
5595 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5596 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5598 #ifdef THIS_IS_CONFIGURE
5600 /* Get the CFLAGS for tests in configure. */
5601 #ifdef __GNUC__
5602 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5603 #else
5604 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5605 #endif
5607 #else /* not THIS_IS_CONFIGURE */
5609 /* Get the CFLAGS for real compilation. */
5610 #ifdef __GNUC__
5611 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5612 #else
5613 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5614 #endif
5616 #endif /* not THIS_IS_CONFIGURE */
5617 ' > ${tempcname}
5619 # The value of CPP is a quoted variable reference, so we need to do this
5620 # to get its actual value...
5621 CPP=`eval "echo $CPP"`
5622 eval `${CPP} -Isrc ${tempcname} \
5623 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5624 if test "x$SPECIFIED_CFLAGS" = x; then
5625 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5626 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5627 else
5628 REAL_CFLAGS="$CFLAGS"
5630 rm ${tempcname}
5632 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5634 ### Make sure subsequent tests use flags consistent with the build flags.
5636 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5637 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5638 else
5639 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5644 # Check whether --enable-largefile was given.
5645 if test "${enable_largefile+set}" = set; then
5646 enableval=$enable_largefile;
5649 if test "$enable_largefile" != no; then
5651 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5652 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5653 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 ac_cv_sys_largefile_CC=no
5657 if test "$GCC" != yes; then
5658 ac_save_CC=$CC
5659 while :; do
5660 # IRIX 6.2 and later do not support large files by default,
5661 # so use the C compiler's -n32 option if that helps.
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5678 main ()
5682 return 0;
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.$ac_objext; then
5702 break
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5710 rm -f core conftest.err conftest.$ac_objext
5711 CC="$CC -n32"
5712 rm -f conftest.$ac_objext
5713 if { (ac_try="$ac_compile"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5729 ac_cv_sys_largefile_CC=' -n32'; break
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5737 rm -f core conftest.err conftest.$ac_objext
5738 break
5739 done
5740 CC=$ac_save_CC
5741 rm -f conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5745 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5746 if test "$ac_cv_sys_largefile_CC" != no; then
5747 CC=$CC$ac_cv_sys_largefile_CC
5750 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5751 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5752 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 while :; do
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5770 ? 1 : -1];
5772 main ()
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest.$ac_objext; then
5796 ac_cv_sys_file_offset_bits=no; break
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #define _FILE_OFFSET_BITS 64
5812 #include <sys/types.h>
5813 /* Check that off_t can represent 2**63 - 1 correctly.
5814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5815 since some C++ compilers masquerading as C compilers
5816 incorrectly reject 9223372036854775807. */
5817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5819 && LARGE_OFF_T % 2147483647 == 1)
5820 ? 1 : -1];
5822 main ()
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (ac_try="$ac_compile"
5831 case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5846 ac_cv_sys_file_offset_bits=64; break
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_sys_file_offset_bits=unknown
5856 break
5857 done
5859 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5860 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5861 case $ac_cv_sys_file_offset_bits in #(
5862 no | unknown) ;;
5864 cat >>confdefs.h <<_ACEOF
5865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5866 _ACEOF
5868 esac
5869 rm -f conftest*
5870 if test $ac_cv_sys_file_offset_bits = unknown; then
5871 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5872 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5873 if test "${ac_cv_sys_large_files+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 while :; do
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 /* Check that off_t can represent 2**63 - 1 correctly.
5885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5886 since some C++ compilers masquerading as C compilers
5887 incorrectly reject 9223372036854775807. */
5888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5890 && LARGE_OFF_T % 2147483647 == 1)
5891 ? 1 : -1];
5893 main ()
5897 return 0;
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
5917 ac_cv_sys_large_files=no; break
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #define _LARGE_FILES 1
5933 #include <sys/types.h>
5934 /* Check that off_t can represent 2**63 - 1 correctly.
5935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5936 since some C++ compilers masquerading as C compilers
5937 incorrectly reject 9223372036854775807. */
5938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5940 && LARGE_OFF_T % 2147483647 == 1)
5941 ? 1 : -1];
5943 main ()
5947 return 0;
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 ac_cv_sys_large_files=1; break
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_cv_sys_large_files=unknown
5977 break
5978 done
5980 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5981 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5982 case $ac_cv_sys_large_files in #(
5983 no | unknown) ;;
5985 cat >>confdefs.h <<_ACEOF
5986 #define _LARGE_FILES $ac_cv_sys_large_files
5987 _ACEOF
5989 esac
5990 rm -f conftest*
5996 ### The standard library on x86-64 GNU/Linux distributions can
5997 ### be located in either /usr/lib64 or /usr/lib.
5998 case "${canonical}" in
5999 x86_64-*-linux-gnu* )
6000 if test -d /usr/lib64; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_X86_64_LIB64_DIR 1
6004 _ACEOF
6007 esac
6012 if test "${with_sound}" != "no"; then
6013 # Sound support for GNU/Linux and the free BSDs.
6014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6016 if test "${ac_cv_header_stdc+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #include <stdlib.h>
6026 #include <stdarg.h>
6027 #include <string.h>
6028 #include <float.h>
6031 main ()
6035 return 0;
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 ac_cv_header_stdc=yes
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_header_stdc=no
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 if test $ac_cv_header_stdc = yes; then
6066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <string.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev/null 2>&1; then
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <stdlib.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "free" >/dev/null 2>&1; then
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f conftest*
6107 if test $ac_cv_header_stdc = yes; then
6108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6109 if test "$cross_compiling" = yes; then
6111 else
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <ctype.h>
6119 #include <stdlib.h>
6120 #if ((' ' & 0x0FF) == 0x020)
6121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6123 #else
6124 # define ISLOWER(c) \
6125 (('a' <= (c) && (c) <= 'i') \
6126 || ('j' <= (c) && (c) <= 'r') \
6127 || ('s' <= (c) && (c) <= 'z'))
6128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6129 #endif
6131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6133 main ()
6135 int i;
6136 for (i = 0; i < 256; i++)
6137 if (XOR (islower (i), ISLOWER (i))
6138 || toupper (i) != TOUPPER (i))
6139 return 2;
6140 return 0;
6142 _ACEOF
6143 rm -f conftest$ac_exeext
6144 if { (ac_try="$ac_link"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_link") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6164 else
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ( exit $ac_status )
6170 ac_cv_header_stdc=no
6172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6179 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6180 if test $ac_cv_header_stdc = yes; then
6182 cat >>confdefs.h <<\_ACEOF
6183 #define STDC_HEADERS 1
6184 _ACEOF
6188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6198 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6199 inttypes.h stdint.h unistd.h
6201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 #include <$ac_header>
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (ac_try="$ac_compile"
6219 case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest.$ac_objext; then
6234 eval "$as_ac_Header=yes"
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 eval "$as_ac_Header=no"
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6250 _ACEOF
6254 done
6260 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_res=`eval echo '${'$as_ac_Header'}'`
6270 { echo "$as_me:$LINENO: result: $ac_res" >&5
6271 echo "${ECHO_T}$ac_res" >&6; }
6272 else
6273 # Is the header compilable?
6274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 #include <$ac_header>
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest.$ac_objext; then
6302 ac_header_compiler=yes
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_compiler=no
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6312 echo "${ECHO_T}$ac_header_compiler" >&6; }
6314 # Is the header present?
6315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <$ac_header>
6324 _ACEOF
6325 if { (ac_try="$ac_cpp conftest.$ac_ext"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null && {
6338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 }; then
6341 ac_header_preproc=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_header_preproc=no
6349 rm -f conftest.err conftest.$ac_ext
6350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6351 echo "${ECHO_T}$ac_header_preproc" >&6; }
6353 # So? What about this header?
6354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6355 yes:no: )
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6360 ac_header_preproc=yes
6362 no:yes:* )
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6377 esac
6378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 eval "$as_ac_Header=\$ac_header_preproc"
6385 ac_res=`eval echo '${'$as_ac_Header'}'`
6386 { echo "$as_me:$LINENO: result: $ac_res" >&5
6387 echo "${ECHO_T}$ac_res" >&6; }
6390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393 _ACEOF
6397 done
6399 # Emulation library used on NetBSD.
6400 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6401 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6402 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-lossaudio $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 char _oss_ioctl ();
6422 main ()
6424 return _oss_ioctl ();
6426 return 0;
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_link") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest$ac_exeext &&
6446 $as_test_x conftest$ac_exeext; then
6447 ac_cv_lib_ossaudio__oss_ioctl=yes
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cv_lib_ossaudio__oss_ioctl=no
6455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6456 conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6460 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6461 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6462 LIBSOUND=-lossaudio
6463 else
6464 LIBSOUND=
6469 ALSA_REQUIRED=1.0.0
6470 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6471 if test "X${with_pkg_config_prog}" != X; then
6472 PKG_CONFIG="${with_pkg_config_prog}"
6475 succeeded=no
6477 if test -z "$PKG_CONFIG"; then
6478 # Extract the first word of "pkg-config", so it can be a program name with args.
6479 set dummy pkg-config; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 case $PKG_CONFIG in
6486 [\\/]* | ?:[\\/]*)
6487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6501 done
6502 done
6503 IFS=$as_save_IFS
6505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6507 esac
6509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6510 if test -n "$PKG_CONFIG"; then
6511 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6512 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6513 else
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6521 if test "$PKG_CONFIG" = "no" ; then
6522 HAVE_ALSA=no
6523 else
6524 PKG_CONFIG_MIN_VERSION=0.9.0
6525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6526 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6527 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6529 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6530 { echo "$as_me:$LINENO: result: yes" >&5
6531 echo "${ECHO_T}yes" >&6; }
6532 succeeded=yes
6534 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6535 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6536 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6538 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6540 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6541 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6542 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6543 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6544 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6548 ALSA_CFLAGS=""
6549 ALSA_LIBS=""
6550 ## If we have a custom action on failure, don't print errors, but
6551 ## do set a variable so people can do so.
6552 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6558 else
6559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6564 if test $succeeded = yes; then
6565 HAVE_ALSA=yes
6566 else
6567 HAVE_ALSA=no
6570 if test $HAVE_ALSA = yes; then
6571 SAVE_CFLAGS="$CFLAGS"
6572 SAVE_LDFLAGS="$LDFLAGS"
6573 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6574 LDFLAGS="$ALSA_LIBS $LDFLAGS"
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 <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_normal=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 emacs_alsa_normal=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test "$emacs_alsa_normal" != yes; then
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h. */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <alsa/asoundlib.h>
6625 main ()
6627 snd_lib_error_set_handler (0);
6629 return 0;
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 emacs_alsa_subdir=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 emacs_alsa_subdir=no
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 if test "$emacs_alsa_subdir" != yes; then
6659 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6660 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6661 { (exit 1); exit 1; }; }
6663 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6666 CFLAGS="$SAVE_CFLAGS"
6667 LDFLAGS="$SAVE_LDFLAGS"
6668 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6669 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6671 cat >>confdefs.h <<\_ACEOF
6672 #define HAVE_ALSA 1
6673 _ACEOF
6704 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6705 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6706 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6707 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6708 sys/utsname.h pwd.h
6710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_res=`eval echo '${'$as_ac_Header'}'`
6718 { echo "$as_me:$LINENO: result: $ac_res" >&5
6719 echo "${ECHO_T}$ac_res" >&6; }
6720 else
6721 # Is the header compilable?
6722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_includes_default
6731 #include <$ac_header>
6732 _ACEOF
6733 rm -f conftest.$ac_objext
6734 if { (ac_try="$ac_compile"
6735 case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738 esac
6739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 ac_header_compiler=yes
6751 else
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_header_compiler=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760 echo "${ECHO_T}$ac_header_compiler" >&6; }
6762 # Is the header present?
6763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <$ac_header>
6772 _ACEOF
6773 if { (ac_try="$ac_cpp conftest.$ac_ext"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } >/dev/null && {
6786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 }; then
6789 ac_header_preproc=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_header_preproc=no
6797 rm -f conftest.err conftest.$ac_ext
6798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799 echo "${ECHO_T}$ac_header_preproc" >&6; }
6801 # So? What about this header?
6802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6803 yes:no: )
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6808 ac_header_preproc=yes
6810 no:yes:* )
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6825 esac
6826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 eval "$as_ac_Header=\$ac_header_preproc"
6833 ac_res=`eval echo '${'$as_ac_Header'}'`
6834 { echo "$as_me:$LINENO: result: $ac_res" >&5
6835 echo "${ECHO_T}$ac_res" >&6; }
6838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839 cat >>confdefs.h <<_ACEOF
6840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6841 _ACEOF
6845 done
6848 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6849 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <sys/personality.h>
6858 main ()
6860 personality (PER_LINUX32)
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (ac_try="$ac_compile"
6867 case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870 esac
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.$ac_objext; then
6882 emacs_cv_personality_linux32=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 emacs_cv_personality_linux32=no
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6892 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6894 if test $emacs_cv_personality_linux32 = yes; then
6896 cat >>confdefs.h <<\_ACEOF
6897 #define HAVE_PERSONALITY_LINUX32 1
6898 _ACEOF
6903 for ac_header in term.h
6905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <$ac_header>
6918 _ACEOF
6919 if { (ac_try="$ac_cpp conftest.$ac_ext"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null && {
6932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 }; then
6935 eval "$as_ac_Header=yes"
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 eval "$as_ac_Header=no"
6943 rm -f conftest.err conftest.$ac_ext
6945 ac_res=`eval echo '${'$as_ac_Header'}'`
6946 { echo "$as_me:$LINENO: result: $ac_res" >&5
6947 echo "${ECHO_T}$ac_res" >&6; }
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6955 done
6957 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <stdlib.h>
6969 #include <stdarg.h>
6970 #include <string.h>
6971 #include <float.h>
6974 main ()
6978 return 0;
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.$ac_objext; then
6998 ac_cv_header_stdc=yes
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_header_stdc=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 if test $ac_cv_header_stdc = yes; then
7009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 #include <string.h>
7018 _ACEOF
7019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "memchr" >/dev/null 2>&1; then
7022 else
7023 ac_cv_header_stdc=no
7025 rm -f conftest*
7029 if test $ac_cv_header_stdc = yes; then
7030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <stdlib.h>
7039 _ACEOF
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "free" >/dev/null 2>&1; then
7043 else
7044 ac_cv_header_stdc=no
7046 rm -f conftest*
7050 if test $ac_cv_header_stdc = yes; then
7051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052 if test "$cross_compiling" = yes; then
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <ctype.h>
7062 #include <stdlib.h>
7063 #if ((' ' & 0x0FF) == 0x020)
7064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7066 #else
7067 # define ISLOWER(c) \
7068 (('a' <= (c) && (c) <= 'i') \
7069 || ('j' <= (c) && (c) <= 'r') \
7070 || ('s' <= (c) && (c) <= 'z'))
7071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7072 #endif
7074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7076 main ()
7078 int i;
7079 for (i = 0; i < 256; i++)
7080 if (XOR (islower (i), ISLOWER (i))
7081 || toupper (i) != TOUPPER (i))
7082 return 2;
7083 return 0;
7085 _ACEOF
7086 rm -f conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7097 { (case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_try") 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7107 else
7108 echo "$as_me: program exited with status $ac_status" >&5
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ( exit $ac_status )
7113 ac_cv_header_stdc=no
7115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7121 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7122 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7123 if test $ac_cv_header_stdc = yes; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define STDC_HEADERS 1
7127 _ACEOF
7131 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7132 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7133 if test "${ac_cv_header_time+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <sys/time.h>
7144 #include <time.h>
7147 main ()
7149 if ((struct tm *) 0)
7150 return 0;
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext
7156 if { (ac_try="$ac_compile"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.$ac_objext; then
7172 ac_cv_header_time=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_cv_header_time=no
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7183 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7184 if test $ac_cv_header_time = yes; then
7186 cat >>confdefs.h <<\_ACEOF
7187 #define TIME_WITH_SYS_TIME 1
7188 _ACEOF
7192 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7193 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7194 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7205 main ()
7207 #ifndef sys_siglist
7208 (void) sys_siglist;
7209 #endif
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_have_decl_sys_siglist=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_have_decl_sys_siglist=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7243 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7244 if test $ac_cv_have_decl_sys_siglist = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 #define HAVE_DECL_SYS_SIGLIST 1
7248 _ACEOF
7251 else
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DECL_SYS_SIGLIST 0
7254 _ACEOF
7260 if test $ac_cv_have_decl_sys_siglist != yes; then
7261 # For Tru64, at least:
7262 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7263 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7264 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 $ac_includes_default
7275 main ()
7277 #ifndef __sys_siglist
7278 (void) __sys_siglist;
7279 #endif
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 ac_cv_have_decl___sys_siglist=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_cv_have_decl___sys_siglist=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7313 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7314 if test $ac_cv_have_decl___sys_siglist = yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define HAVE_DECL___SYS_SIGLIST 1
7318 _ACEOF
7321 else
7322 cat >>confdefs.h <<_ACEOF
7323 #define HAVE_DECL___SYS_SIGLIST 0
7324 _ACEOF
7330 if test $ac_cv_have_decl___sys_siglist = yes; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define sys_siglist __sys_siglist
7334 _ACEOF
7338 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <sys/types.h>
7350 #include <sys/wait.h>
7351 #ifndef WEXITSTATUS
7352 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7353 #endif
7354 #ifndef WIFEXITED
7355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7356 #endif
7359 main ()
7361 int s;
7362 wait (&s);
7363 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7365 return 0;
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (ac_try="$ac_compile"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.$ac_objext; then
7385 ac_cv_header_sys_wait_h=yes
7386 else
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 ac_cv_header_sys_wait_h=no
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7397 if test $ac_cv_header_sys_wait_h = yes; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_SYS_WAIT_H 1
7401 _ACEOF
7406 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7407 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7408 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #ifdef TIME_WITH_SYS_TIME
7418 #include <sys/time.h>
7419 #include <time.h>
7420 #else
7421 #ifdef HAVE_SYS_TIME_H
7422 #include <sys/time.h>
7423 #else
7424 #include <time.h>
7425 #endif
7426 #endif
7427 #ifdef HAVE_UTIME_H
7428 #include <utime.h>
7429 #endif
7431 main ()
7433 static struct utimbuf x; x.actime = x.modtime;
7435 return 0;
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_struct_utimbuf=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 emacs_cv_struct_utimbuf=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7467 if test $emacs_cv_struct_utimbuf = yes; then
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_STRUCT_UTIMBUF 1
7471 _ACEOF
7475 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7476 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7477 if test "${ac_cv_type_signal+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7487 #include <signal.h>
7490 main ()
7492 return *(signal (0, 0)) (0) == 1;
7494 return 0;
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_compile") 2>conftest.er1
7505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest.$ac_objext; then
7514 ac_cv_type_signal=int
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 ac_cv_type_signal=void
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7525 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7527 cat >>confdefs.h <<_ACEOF
7528 #define RETSIGTYPE $ac_cv_type_signal
7529 _ACEOF
7533 { echo "$as_me:$LINENO: checking for speed_t" >&5
7534 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7535 if test "${emacs_cv_speed_t+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 #include <termios.h>
7546 main ()
7548 speed_t x = 1;
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 emacs_cv_speed_t=yes
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 emacs_cv_speed_t=no
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7581 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7582 if test $emacs_cv_speed_t = yes; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_SPEED_T 1
7586 _ACEOF
7590 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7591 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7592 if test "${emacs_cv_struct_timeval+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #ifdef TIME_WITH_SYS_TIME
7602 #include <sys/time.h>
7603 #include <time.h>
7604 #else
7605 #ifdef HAVE_SYS_TIME_H
7606 #include <sys/time.h>
7607 #else
7608 #include <time.h>
7609 #endif
7610 #endif
7612 main ()
7614 static struct timeval x; x.tv_sec = x.tv_usec;
7616 return 0;
7618 _ACEOF
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7621 case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 emacs_cv_struct_timeval=yes
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 emacs_cv_struct_timeval=no
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7647 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7648 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7649 if test $emacs_cv_struct_timeval = yes; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TIMEVAL 1
7653 _ACEOF
7657 { echo "$as_me:$LINENO: checking for struct exception" >&5
7658 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7659 if test "${emacs_cv_struct_exception+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 #include <math.h>
7670 main ()
7672 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (ac_try="$ac_compile"
7679 case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
7694 emacs_cv_struct_exception=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 emacs_cv_struct_exception=no
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7705 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7706 HAVE_EXCEPTION=$emacs_cv_struct_exception
7707 if test $emacs_cv_struct_exception != yes; then
7709 cat >>confdefs.h <<\_ACEOF
7710 #define NO_MATHERR 1
7711 _ACEOF
7716 for ac_header in sys/socket.h
7718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_res=`eval echo '${'$as_ac_Header'}'`
7726 { echo "$as_me:$LINENO: result: $ac_res" >&5
7727 echo "${ECHO_T}$ac_res" >&6; }
7728 else
7729 # Is the header compilable?
7730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7739 #include <$ac_header>
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (ac_try="$ac_compile"
7743 case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746 esac
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
7758 ac_header_compiler=yes
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_header_compiler=no
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7768 echo "${ECHO_T}$ac_header_compiler" >&6; }
7770 # Is the header present?
7771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <$ac_header>
7780 _ACEOF
7781 if { (ac_try="$ac_cpp conftest.$ac_ext"
7782 case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } >/dev/null && {
7794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7796 }; then
7797 ac_header_preproc=yes
7798 else
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7802 ac_header_preproc=no
7805 rm -f conftest.err conftest.$ac_ext
7806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807 echo "${ECHO_T}$ac_header_preproc" >&6; }
7809 # So? What about this header?
7810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811 yes:no: )
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc=yes
7818 no:yes:* )
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7833 esac
7834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 eval "$as_ac_Header=\$ac_header_preproc"
7841 ac_res=`eval echo '${'$as_ac_Header'}'`
7842 { echo "$as_me:$LINENO: result: $ac_res" >&5
7843 echo "${ECHO_T}$ac_res" >&6; }
7846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847 cat >>confdefs.h <<_ACEOF
7848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849 _ACEOF
7853 done
7856 for ac_header in net/if.h
7858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7871 #if HAVE_SYS_SOCKET_H
7872 #include <sys/socket.h>
7873 #endif
7875 #include <$ac_header>
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (ac_try="$ac_compile"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 eval "$as_ac_Header=yes"
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 eval "$as_ac_Header=no"
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 ac_res=`eval echo '${'$as_ac_Header'}'`
7905 { echo "$as_me:$LINENO: result: $ac_res" >&5
7906 echo "${ECHO_T}$ac_res" >&6; }
7907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910 _ACEOF
7914 done
7917 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7918 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7919 if test "${ac_cv_struct_tm+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7929 #include <time.h>
7932 main ()
7934 struct tm tm;
7935 int *p = &tm.tm_sec;
7936 return !p;
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_cv_struct_tm=time.h
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_cv_struct_tm=sys/time.h
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7969 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7970 if test $ac_cv_struct_tm = sys/time.h; then
7972 cat >>confdefs.h <<\_ACEOF
7973 #define TM_IN_SYS_TIME 1
7974 _ACEOF
7978 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7979 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7980 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 #include <sys/types.h>
8032 #include <$ac_cv_struct_tm>
8036 main ()
8038 static struct tm ac_aggr;
8039 if (sizeof ac_aggr.tm_zone)
8040 return 0;
8042 return 0;
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8062 ac_cv_member_struct_tm_tm_zone=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_member_struct_tm_tm_zone=no
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8076 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8077 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_STRUCT_TM_TM_ZONE 1
8081 _ACEOF
8086 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_TM_ZONE 1
8090 _ACEOF
8092 else
8093 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8094 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8095 if test "${ac_cv_have_decl_tzname+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <time.h>
8107 main ()
8109 #ifndef tzname
8110 (void) tzname;
8111 #endif
8114 return 0;
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_have_decl_tzname=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_have_decl_tzname=no
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8145 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8146 if test $ac_cv_have_decl_tzname = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149 #define HAVE_DECL_TZNAME 1
8150 _ACEOF
8153 else
8154 cat >>confdefs.h <<_ACEOF
8155 #define HAVE_DECL_TZNAME 0
8156 _ACEOF
8162 { echo "$as_me:$LINENO: checking for tzname" >&5
8163 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8164 if test "${ac_cv_var_tzname+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 #include <time.h>
8174 #if !HAVE_DECL_TZNAME
8175 extern char *tzname[];
8176 #endif
8179 main ()
8181 return tzname[0][0];
8183 return 0;
8185 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (ac_try="$ac_link"
8188 case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest$ac_exeext &&
8203 $as_test_x conftest$ac_exeext; then
8204 ac_cv_var_tzname=yes
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 ac_cv_var_tzname=no
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213 conftest$ac_exeext conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8216 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8217 if test $ac_cv_var_tzname = yes; then
8219 cat >>confdefs.h <<\_ACEOF
8220 #define HAVE_TZNAME 1
8221 _ACEOF
8226 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8227 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8228 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <time.h>
8240 main ()
8242 static struct tm ac_aggr;
8243 if (ac_aggr.tm_gmtoff)
8244 return 0;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8251 case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.$ac_objext; then
8266 ac_cv_member_struct_tm_tm_gmtoff=yes
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <time.h>
8280 main ()
8282 static struct tm ac_aggr;
8283 if (sizeof ac_aggr.tm_gmtoff)
8284 return 0;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 ac_cv_member_struct_tm_tm_gmtoff=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_member_struct_tm_tm_gmtoff=no
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8320 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8321 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_TM_GMTOFF 1
8325 _ACEOF
8329 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8330 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8331 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 #if HAVE_SYS_SOCKET_H
8342 #include <sys/socket.h>
8343 #endif
8344 #if HAVE_NET_IF_H
8345 #include <net/if.h>
8346 #endif
8349 main ()
8351 static struct ifreq ac_aggr;
8352 if (ac_aggr.ifr_flags)
8353 return 0;
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_flags=yes
8376 else
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #if HAVE_SYS_SOCKET_H
8388 #include <sys/socket.h>
8389 #endif
8390 #if HAVE_NET_IF_H
8391 #include <net/if.h>
8392 #endif
8395 main ()
8397 static struct ifreq ac_aggr;
8398 if (sizeof ac_aggr.ifr_flags)
8399 return 0;
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_flags=yes
8422 else
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_cv_member_struct_ifreq_ifr_flags=no
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8435 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8436 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8440 _ACEOF
8444 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8445 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8446 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8458 #endif
8459 #if HAVE_NET_IF_H
8460 #include <net/if.h>
8461 #endif
8464 main ()
8466 static struct ifreq ac_aggr;
8467 if (ac_aggr.ifr_hwaddr)
8468 return 0;
8470 return 0;
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8475 case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 #if HAVE_SYS_SOCKET_H
8503 #include <sys/socket.h>
8504 #endif
8505 #if HAVE_NET_IF_H
8506 #include <net/if.h>
8507 #endif
8510 main ()
8512 static struct ifreq ac_aggr;
8513 if (sizeof ac_aggr.ifr_hwaddr)
8514 return 0;
8516 return 0;
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.$ac_objext; then
8536 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8550 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8551 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8555 _ACEOF
8559 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8560 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8561 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #if HAVE_SYS_SOCKET_H
8572 #include <sys/socket.h>
8573 #endif
8574 #if HAVE_NET_IF_H
8575 #include <net/if.h>
8576 #endif
8579 main ()
8581 static struct ifreq ac_aggr;
8582 if (ac_aggr.ifr_netmask)
8583 return 0;
8585 return 0;
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_netmask=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8619 #endif
8620 #if HAVE_NET_IF_H
8621 #include <net/if.h>
8622 #endif
8625 main ()
8627 static struct ifreq ac_aggr;
8628 if (sizeof ac_aggr.ifr_netmask)
8629 return 0;
8631 return 0;
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_netmask=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_member_struct_ifreq_ifr_netmask=no
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8665 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8666 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8670 _ACEOF
8674 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8675 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8676 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #if HAVE_SYS_SOCKET_H
8687 #include <sys/socket.h>
8688 #endif
8689 #if HAVE_NET_IF_H
8690 #include <net/if.h>
8691 #endif
8694 main ()
8696 static struct ifreq ac_aggr;
8697 if (ac_aggr.ifr_broadaddr)
8698 return 0;
8700 return 0;
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8705 case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8734 #endif
8735 #if HAVE_NET_IF_H
8736 #include <net/if.h>
8737 #endif
8740 main ()
8742 static struct ifreq ac_aggr;
8743 if (sizeof ac_aggr.ifr_broadaddr)
8744 return 0;
8746 return 0;
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8780 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8781 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8785 _ACEOF
8789 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8790 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8791 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8803 #endif
8804 #if HAVE_NET_IF_H
8805 #include <net/if.h>
8806 #endif
8809 main ()
8811 static struct ifreq ac_aggr;
8812 if (ac_aggr.ifr_addr)
8813 return 0;
8815 return 0;
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_cv_member_struct_ifreq_ifr_addr=yes
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 #if HAVE_SYS_SOCKET_H
8848 #include <sys/socket.h>
8849 #endif
8850 #if HAVE_NET_IF_H
8851 #include <net/if.h>
8852 #endif
8855 main ()
8857 static struct ifreq ac_aggr;
8858 if (sizeof ac_aggr.ifr_addr)
8859 return 0;
8861 return 0;
8863 _ACEOF
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8866 case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_compile") 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.$ac_objext; then
8881 ac_cv_member_struct_ifreq_ifr_addr=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_member_struct_ifreq_ifr_addr=no
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8895 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8896 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8900 _ACEOF
8907 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8908 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8909 if test "$ac_cv_prog_cc_c89" != no; then
8910 { echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6; }
8913 cat >>confdefs.h <<\_ACEOF
8914 #define PROTOTYPES 1
8915 _ACEOF
8918 cat >>confdefs.h <<\_ACEOF
8919 #define __PROTOTYPES 1
8920 _ACEOF
8922 else
8923 { echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6; }
8927 { echo "$as_me:$LINENO: checking for working volatile" >&5
8928 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8929 if test "${ac_cv_c_volatile+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8940 main ()
8943 volatile int x;
8944 int * volatile y = (int *) 0;
8945 return !x && !y;
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8952 case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_compile") 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest.$ac_objext; then
8967 ac_cv_c_volatile=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_c_volatile=no
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8978 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8979 if test $ac_cv_c_volatile = no; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define volatile
8983 _ACEOF
8987 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8988 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8989 if test "${ac_cv_c_const+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
9000 main ()
9002 /* FIXME: Include the comments suggested by Paul. */
9003 #ifndef __cplusplus
9004 /* Ultrix mips cc rejects this. */
9005 typedef int charset[2];
9006 const charset cs;
9007 /* SunOS 4.1.1 cc rejects this. */
9008 char const *const *pcpcc;
9009 char **ppc;
9010 /* NEC SVR4.0.2 mips cc rejects this. */
9011 struct point {int x, y;};
9012 static struct point const zero = {0,0};
9013 /* AIX XL C 1.02.0.0 rejects this.
9014 It does not let you subtract one const X* pointer from another in
9015 an arm of an if-expression whose if-part is not a constant
9016 expression */
9017 const char *g = "string";
9018 pcpcc = &g + (g ? g-g : 0);
9019 /* HPUX 7.0 cc rejects these. */
9020 ++pcpcc;
9021 ppc = (char**) pcpcc;
9022 pcpcc = (char const *const *) ppc;
9023 { /* SCO 3.2v4 cc rejects this. */
9024 char *t;
9025 char const *s = 0 ? (char *) 0 : (char const *) 0;
9027 *t++ = 0;
9028 if (s) return 0;
9030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9031 int x[] = {25, 17};
9032 const int *foo = &x[0];
9033 ++foo;
9035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9036 typedef const int *iptr;
9037 iptr p = 0;
9038 ++p;
9040 { /* AIX XL C 1.02.0.0 rejects this saying
9041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9042 struct s { int j; const int *ap[3]; };
9043 struct s *b; b->j = 5;
9045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9046 const int foo = 10;
9047 if (!foo) return 0;
9049 return !cs[0] && !zero.x;
9050 #endif
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.$ac_objext; then
9073 ac_cv_c_const=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_c_const=no
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9084 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9085 if test $ac_cv_c_const = no; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define const
9089 _ACEOF
9093 { echo "$as_me:$LINENO: checking for void * support" >&5
9094 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9095 if test "${emacs_cv_void_star+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9106 main ()
9108 void * foo;
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (ac_try="$ac_compile"
9115 case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.$ac_objext; then
9130 emacs_cv_void_star=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 emacs_cv_void_star=no
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9141 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9142 if test $emacs_cv_void_star = yes; then
9143 cat >>confdefs.h <<\_ACEOF
9144 #define POINTER_TYPE void
9145 _ACEOF
9147 else
9148 cat >>confdefs.h <<\_ACEOF
9149 #define POINTER_TYPE char
9150 _ACEOF
9158 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9159 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9160 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9161 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 cat >conftest.make <<\_ACEOF
9165 SHELL = /bin/sh
9166 all:
9167 @echo '@@@%%%=$(MAKE)=@@@%%%'
9168 _ACEOF
9169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9170 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9171 *@@@%%%=?*=@@@%%%*)
9172 eval ac_cv_prog_make_${ac_make}_set=yes;;
9174 eval ac_cv_prog_make_${ac_make}_set=no;;
9175 esac
9176 rm -f conftest.make
9178 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9179 { echo "$as_me:$LINENO: result: yes" >&5
9180 echo "${ECHO_T}yes" >&6; }
9181 SET_MAKE=
9182 else
9183 { echo "$as_me:$LINENO: result: no" >&5
9184 echo "${ECHO_T}no" >&6; }
9185 SET_MAKE="MAKE=${MAKE-make}"
9189 { echo "$as_me:$LINENO: checking for long file names" >&5
9190 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9191 if test "${ac_cv_sys_long_file_names+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 ac_cv_sys_long_file_names=yes
9195 # Test for long file names in all the places we know might matter:
9196 # . the current directory, where building will happen
9197 # $prefix/lib where we will be installing things
9198 # $exec_prefix/lib likewise
9199 # $TMPDIR if set, where it might want to write temporary files
9200 # /tmp where it might want to write temporary files
9201 # /var/tmp likewise
9202 # /usr/tmp likewise
9203 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9204 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9205 # in the usual case where exec_prefix is '${prefix}'.
9206 case $ac_dir in #(
9207 . | /* | ?:[\\/]*) ;; #(
9208 *) continue;;
9209 esac
9210 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9211 ac_xdir=$ac_dir/cf$$
9212 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9213 ac_tf1=$ac_xdir/conftest9012345
9214 ac_tf2=$ac_xdir/conftest9012346
9215 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9216 ac_cv_sys_long_file_names=no
9217 rm -f -r "$ac_xdir" 2>/dev/null
9218 test $ac_cv_sys_long_file_names = no && break
9219 done
9221 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9222 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9223 if test $ac_cv_sys_long_file_names = yes; then
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_LONG_FILE_NAMES 1
9227 _ACEOF
9232 #### Choose a window system.
9234 { echo "$as_me:$LINENO: checking for X" >&5
9235 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9238 # Check whether --with-x was given.
9239 if test "${with_x+set}" = set; then
9240 withval=$with_x;
9243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9244 if test "x$with_x" = xno; then
9245 # The user explicitly disabled X.
9246 have_x=disabled
9247 else
9248 case $x_includes,$x_libraries in #(
9249 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9250 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9251 { (exit 1); exit 1; }; };; #(
9252 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 # One or both of the vars are not set, and there is no cached value.
9256 ac_x_includes=no ac_x_libraries=no
9257 rm -f -r conftest.dir
9258 if mkdir conftest.dir; then
9259 cd conftest.dir
9260 cat >Imakefile <<'_ACEOF'
9261 incroot:
9262 @echo incroot='${INCROOT}'
9263 usrlibdir:
9264 @echo usrlibdir='${USRLIBDIR}'
9265 libdir:
9266 @echo libdir='${LIBDIR}'
9267 _ACEOF
9268 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9270 for ac_var in incroot usrlibdir libdir; do
9271 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9272 done
9273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9274 for ac_extension in a so sl; do
9275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9277 ac_im_usrlibdir=$ac_im_libdir; break
9279 done
9280 # Screen out bogus values from the imake configuration. They are
9281 # bogus both because they are the default anyway, and because
9282 # using them would break gcc on systems where it needs fixed includes.
9283 case $ac_im_incroot in
9284 /usr/include) ac_x_includes= ;;
9285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9286 esac
9287 case $ac_im_usrlibdir in
9288 /usr/lib | /lib) ;;
9289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9290 esac
9292 cd ..
9293 rm -f -r conftest.dir
9296 # Standard set of common directories for X headers.
9297 # Check X11 before X11Rn because it is often a symlink to the current release.
9298 ac_x_header_dirs='
9299 /usr/X11/include
9300 /usr/X11R6/include
9301 /usr/X11R5/include
9302 /usr/X11R4/include
9304 /usr/include/X11
9305 /usr/include/X11R6
9306 /usr/include/X11R5
9307 /usr/include/X11R4
9309 /usr/local/X11/include
9310 /usr/local/X11R6/include
9311 /usr/local/X11R5/include
9312 /usr/local/X11R4/include
9314 /usr/local/include/X11
9315 /usr/local/include/X11R6
9316 /usr/local/include/X11R5
9317 /usr/local/include/X11R4
9319 /usr/X386/include
9320 /usr/x386/include
9321 /usr/XFree86/include/X11
9323 /usr/include
9324 /usr/local/include
9325 /usr/unsupported/include
9326 /usr/athena/include
9327 /usr/local/x11r5/include
9328 /usr/lpp/Xamples/include
9330 /usr/openwin/include
9331 /usr/openwin/share/include'
9333 if test "$ac_x_includes" = no; then
9334 # Guess where to find include files, by looking for Xlib.h.
9335 # First, try using that file with no special directory specified.
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <X11/Xlib.h>
9343 _ACEOF
9344 if { (ac_try="$ac_cpp conftest.$ac_ext"
9345 case "(($ac_try" in
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } >/dev/null && {
9357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 }; then
9360 # We can compile using X headers with no special include directory.
9361 ac_x_includes=
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 for ac_dir in $ac_x_header_dirs; do
9367 if test -r "$ac_dir/X11/Xlib.h"; then
9368 ac_x_includes=$ac_dir
9369 break
9371 done
9374 rm -f conftest.err conftest.$ac_ext
9375 fi # $ac_x_includes = no
9377 if test "$ac_x_libraries" = no; then
9378 # Check for the libraries.
9379 # See if we find them without any special options.
9380 # Don't add to $LIBS permanently.
9381 ac_save_LIBS=$LIBS
9382 LIBS="-lX11 $LIBS"
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <X11/Xlib.h>
9391 main ()
9393 XrmInitialize ()
9395 return 0;
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (ac_try="$ac_link"
9400 case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest$ac_exeext &&
9415 $as_test_x conftest$ac_exeext; then
9416 LIBS=$ac_save_LIBS
9417 # We can link X programs with no special library path.
9418 ac_x_libraries=
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 LIBS=$ac_save_LIBS
9424 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9426 # Don't even attempt the hair of trying to link an X program!
9427 for ac_extension in a so sl; do
9428 if test -r "$ac_dir/libX11.$ac_extension"; then
9429 ac_x_libraries=$ac_dir
9430 break 2
9432 done
9433 done
9436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9438 fi # $ac_x_libraries = no
9440 case $ac_x_includes,$ac_x_libraries in #(
9441 no,* | *,no | *\'*)
9442 # Didn't find X, or a directory has "'" in its name.
9443 ac_cv_have_x="have_x=no";; #(
9445 # Record where we found X for the cache.
9446 ac_cv_have_x="have_x=yes\
9447 ac_x_includes='$ac_x_includes'\
9448 ac_x_libraries='$ac_x_libraries'"
9449 esac
9451 ;; #(
9452 *) have_x=yes;;
9453 esac
9454 eval "$ac_cv_have_x"
9455 fi # $with_x != no
9457 if test "$have_x" != yes; then
9458 { echo "$as_me:$LINENO: result: $have_x" >&5
9459 echo "${ECHO_T}$have_x" >&6; }
9460 no_x=yes
9461 else
9462 # If each of the values was on the command line, it overrides each guess.
9463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9465 # Update the cache value to reflect the command line values.
9466 ac_cv_have_x="have_x=yes\
9467 ac_x_includes='$x_includes'\
9468 ac_x_libraries='$x_libraries'"
9469 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9470 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9473 if test "$no_x" = yes; then
9474 window_system=none
9475 else
9476 window_system=x11
9479 if test "${x_libraries}" != NONE; then
9480 if test -n "${x_libraries}"; then
9481 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9482 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9484 x_default_search_path=""
9485 x_search_path=${x_libraries}
9486 if test -z "${x_search_path}"; then
9487 x_search_path=/usr/lib
9489 for x_library in `echo ${x_search_path}: | \
9490 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9491 x_search_path="\
9492 ${x_library}/X11/%L/%T/%N%C%S:\
9493 ${x_library}/X11/%l/%T/%N%C%S:\
9494 ${x_library}/X11/%T/%N%C%S:\
9495 ${x_library}/X11/%L/%T/%N%S:\
9496 ${x_library}/X11/%l/%T/%N%S:\
9497 ${x_library}/X11/%T/%N%S"
9498 if test x"${x_default_search_path}" = x; then
9499 x_default_search_path=${x_search_path}
9500 else
9501 x_default_search_path="${x_search_path}:${x_default_search_path}"
9503 done
9505 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9506 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9509 if test x"${x_includes}" = x; then
9510 bitmapdir=/usr/include/X11/bitmaps
9511 else
9512 # accumulate include directories that have X11 bitmap subdirectories
9513 bmd_acc="dummyval"
9514 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9515 if test -d "${bmd}/X11/bitmaps"; then
9516 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9518 if test -d "${bmd}/bitmaps"; then
9519 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9521 done
9522 if test ${bmd_acc} != "dummyval"; then
9523 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9527 HAVE_CARBON=no
9528 if test "${with_carbon}" != no; then
9529 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9530 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9531 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9532 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9537 else
9538 # Is the header compilable?
9539 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9540 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 #include <Carbon/Carbon.h>
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9552 case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_compile") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest.$ac_objext; then
9567 ac_header_compiler=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_header_compiler=no
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9577 echo "${ECHO_T}$ac_header_compiler" >&6; }
9579 # Is the header present?
9580 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9581 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 #include <Carbon/Carbon.h>
9589 _ACEOF
9590 if { (ac_try="$ac_cpp conftest.$ac_ext"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } >/dev/null && {
9603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 }; then
9606 ac_header_preproc=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_preproc=no
9614 rm -f conftest.err conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6; }
9618 # So? What about this header?
9619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9620 yes:no: )
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9624 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9625 ac_header_preproc=yes
9627 no:yes:* )
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9633 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9635 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9639 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9642 esac
9643 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9644 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9645 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9650 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9651 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9654 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9655 HAVE_CARBON=yes
9660 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9661 if test "${with_carbon+set}" != set \
9662 && test "${carbon_appdir_x+set}" != set; then
9663 for var in with_x with_x_toolkit with_gtk with_xim \
9664 with_xpm with_jpeg with_tiff with_gif with_png; do
9665 if eval test \"\${$var+set}\" = set; then
9666 HAVE_CARBON=no
9667 break
9669 done
9672 if test "${HAVE_CARBON}" = yes; then
9673 window_system=mac
9676 case "${window_system}" in
9677 x11 )
9678 HAVE_X_WINDOWS=yes
9679 HAVE_X11=yes
9680 case "${with_x_toolkit}" in
9681 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9682 motif ) USE_X_TOOLKIT=MOTIF ;;
9683 gtk ) with_gtk=yes
9684 USE_X_TOOLKIT=none ;;
9685 no ) USE_X_TOOLKIT=none ;;
9687 if test x"$with_gtk" = xyes; then
9688 USE_X_TOOLKIT=none
9689 else
9690 USE_X_TOOLKIT=maybe
9693 esac
9695 mac | none )
9696 HAVE_X_WINDOWS=no
9697 HAVE_X11=no
9698 USE_X_TOOLKIT=none
9700 esac
9702 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9703 # Extract the first word of "X", so it can be a program name with args.
9704 set dummy X; ac_word=$2
9705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9707 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 if test -n "$HAVE_XSERVER"; then
9711 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_HAVE_XSERVER="true"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9728 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9731 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9732 if test -n "$HAVE_XSERVER"; then
9733 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9734 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9735 else
9736 { echo "$as_me:$LINENO: result: no" >&5
9737 echo "${ECHO_T}no" >&6; }
9741 if test "$HAVE_XSERVER" = true ||
9742 test -n "$DISPLAY" ||
9743 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9744 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9745 were found. You should install the relevant development files for X
9746 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9747 sure you have development files for image handling, i.e.
9748 tiff, gif, jpeg, png and xpm.
9749 If you are sure you want Emacs compiled without X window support, pass
9750 --without-x
9751 to configure." >&5
9752 echo "$as_me: error: You seem to be running X, but no X development libraries
9753 were found. You should install the relevant development files for X
9754 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9755 sure you have development files for image handling, i.e.
9756 tiff, gif, jpeg, png and xpm.
9757 If you are sure you want Emacs compiled without X window support, pass
9758 --without-x
9759 to configure." >&2;}
9760 { (exit 1); exit 1; }; }
9764 ### If we're using X11, we should use the X menu package.
9765 HAVE_MENUS=no
9766 case ${HAVE_X11} in
9767 yes ) HAVE_MENUS=yes ;;
9768 esac
9770 if test "${opsys}" = "hpux9"; then
9771 case "${x_libraries}" in
9772 *X11R4* )
9773 opsysfile="s/hpux9-x11r4.h"
9775 esac
9778 if test "${opsys}" = "hpux9shr"; then
9779 case "${x_libraries}" in
9780 *X11R4* )
9781 opsysfile="s/hpux9shxr4.h"
9783 esac
9786 ### Compute the unexec source name from the object name.
9787 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9789 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9790 # Assume not, until told otherwise.
9791 GNU_MALLOC=yes
9792 doug_lea_malloc=yes
9793 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9794 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9795 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define malloc_get_state innocuous_malloc_get_state
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char malloc_get_state (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9819 #undef malloc_get_state
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char malloc_get_state ();
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9832 choke me
9833 #endif
9836 main ()
9838 return malloc_get_state ();
9840 return 0;
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
9861 ac_cv_func_malloc_get_state=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_func_malloc_get_state=no
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870 conftest$ac_exeext conftest.$ac_ext
9872 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9873 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9874 if test $ac_cv_func_malloc_get_state = yes; then
9876 else
9877 doug_lea_malloc=no
9880 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9881 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define malloc_set_state innocuous_malloc_set_state
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char malloc_set_state (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9906 #undef malloc_set_state
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char malloc_set_state ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9919 choke me
9920 #endif
9923 main ()
9925 return malloc_set_state ();
9927 return 0;
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 ac_cv_func_malloc_set_state=yes
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_func_malloc_set_state=no
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9960 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9961 if test $ac_cv_func_malloc_set_state = yes; then
9963 else
9964 doug_lea_malloc=no
9967 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9968 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9969 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 extern void (* __after_morecore_hook)();
9980 main ()
9982 __after_morecore_hook = 0
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest$ac_exeext &&
10004 $as_test_x conftest$ac_exeext; then
10005 emacs_cv_var___after_morecore_hook=yes
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 emacs_cv_var___after_morecore_hook=no
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext conftest.$ac_ext
10016 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10017 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10018 if test $emacs_cv_var___after_morecore_hook = no; then
10019 doug_lea_malloc=no
10021 if test "${system_malloc}" = "yes"; then
10022 GNU_MALLOC=no
10023 GNU_MALLOC_reason="
10024 (The GNU allocators don't work with this system configuration.)"
10026 if test "$doug_lea_malloc" = "yes" ; then
10027 if test "$GNU_MALLOC" = yes ; then
10028 GNU_MALLOC_reason="
10029 (Using Doug Lea's new malloc from the GNU C Library.)"
10032 cat >>confdefs.h <<\_ACEOF
10033 #define DOUG_LEA_MALLOC 1
10034 _ACEOF
10038 if test x"${REL_ALLOC}" = x; then
10039 REL_ALLOC=${GNU_MALLOC}
10045 for ac_header in stdlib.h unistd.h
10047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_res=`eval echo '${'$as_ac_Header'}'`
10055 { echo "$as_me:$LINENO: result: $ac_res" >&5
10056 echo "${ECHO_T}$ac_res" >&6; }
10057 else
10058 # Is the header compilable?
10059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 $ac_includes_default
10068 #include <$ac_header>
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (ac_try="$ac_compile"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_compile") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_c_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest.$ac_objext; then
10087 ac_header_compiler=yes
10088 else
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_header_compiler=no
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10097 echo "${ECHO_T}$ac_header_compiler" >&6; }
10099 # Is the header present?
10100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <$ac_header>
10109 _ACEOF
10110 if { (ac_try="$ac_cpp conftest.$ac_ext"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } >/dev/null && {
10123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 }; then
10126 ac_header_preproc=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_preproc=no
10134 rm -f conftest.err conftest.$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10136 echo "${ECHO_T}$ac_header_preproc" >&6; }
10138 # So? What about this header?
10139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10140 yes:no: )
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10145 ac_header_preproc=yes
10147 no:yes:* )
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10162 esac
10163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 eval "$as_ac_Header=\$ac_header_preproc"
10170 ac_res=`eval echo '${'$as_ac_Header'}'`
10171 { echo "$as_me:$LINENO: result: $ac_res" >&5
10172 echo "${ECHO_T}$ac_res" >&6; }
10175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10176 cat >>confdefs.h <<_ACEOF
10177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10178 _ACEOF
10182 done
10185 for ac_func in getpagesize
10187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10201 #define $ac_func innocuous_$ac_func
10203 /* System header to define __stub macros and hopefully few prototypes,
10204 which can conflict with char $ac_func (); below.
10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206 <limits.h> exists even on freestanding compilers. */
10208 #ifdef __STDC__
10209 # include <limits.h>
10210 #else
10211 # include <assert.h>
10212 #endif
10214 #undef $ac_func
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 char $ac_func ();
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined __stub_$ac_func || defined __stub___$ac_func
10227 choke me
10228 #endif
10231 main ()
10233 return $ac_func ();
10235 return 0;
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext &&
10255 $as_test_x conftest$ac_exeext; then
10256 eval "$as_ac_var=yes"
10257 else
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 eval "$as_ac_var=no"
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265 conftest$ac_exeext conftest.$ac_ext
10267 ac_res=`eval echo '${'$as_ac_var'}'`
10268 { echo "$as_me:$LINENO: result: $ac_res" >&5
10269 echo "${ECHO_T}$ac_res" >&6; }
10270 if test `eval echo '${'$as_ac_var'}'` = yes; then
10271 cat >>confdefs.h <<_ACEOF
10272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10273 _ACEOF
10276 done
10278 { echo "$as_me:$LINENO: checking for working mmap" >&5
10279 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 if test "$cross_compiling" = yes; then
10284 ac_cv_func_mmap_fixed_mapped=no
10285 else
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 /* malloc might have been renamed as rpl_malloc. */
10294 #undef malloc
10296 /* Thanks to Mike Haertel and Jim Avera for this test.
10297 Here is a matrix of mmap possibilities:
10298 mmap private not fixed
10299 mmap private fixed at somewhere currently unmapped
10300 mmap private fixed at somewhere already mapped
10301 mmap shared not fixed
10302 mmap shared fixed at somewhere currently unmapped
10303 mmap shared fixed at somewhere already mapped
10304 For private mappings, we should verify that changes cannot be read()
10305 back from the file, nor mmap's back from the file at a different
10306 address. (There have been systems where private was not correctly
10307 implemented like the infamous i386 svr4.0, and systems where the
10308 VM page cache was not coherent with the file system buffer cache
10309 like early versions of FreeBSD and possibly contemporary NetBSD.)
10310 For shared mappings, we should conversely verify that changes get
10311 propagated back to all the places they're supposed to be.
10313 Grep wants private fixed already mapped.
10314 The main things grep needs to know about mmap are:
10315 * does it exist and is it safe to write into the mmap'd area
10316 * how to use it (BSD variants) */
10318 #include <fcntl.h>
10319 #include <sys/mman.h>
10321 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10322 char *malloc ();
10323 #endif
10325 /* This mess was copied from the GNU getpagesize.h. */
10326 #ifndef HAVE_GETPAGESIZE
10327 /* Assume that all systems that can run configure have sys/param.h. */
10328 # ifndef HAVE_SYS_PARAM_H
10329 # define HAVE_SYS_PARAM_H 1
10330 # endif
10332 # ifdef _SC_PAGESIZE
10333 # define getpagesize() sysconf(_SC_PAGESIZE)
10334 # else /* no _SC_PAGESIZE */
10335 # ifdef HAVE_SYS_PARAM_H
10336 # include <sys/param.h>
10337 # ifdef EXEC_PAGESIZE
10338 # define getpagesize() EXEC_PAGESIZE
10339 # else /* no EXEC_PAGESIZE */
10340 # ifdef NBPG
10341 # define getpagesize() NBPG * CLSIZE
10342 # ifndef CLSIZE
10343 # define CLSIZE 1
10344 # endif /* no CLSIZE */
10345 # else /* no NBPG */
10346 # ifdef NBPC
10347 # define getpagesize() NBPC
10348 # else /* no NBPC */
10349 # ifdef PAGESIZE
10350 # define getpagesize() PAGESIZE
10351 # endif /* PAGESIZE */
10352 # endif /* no NBPC */
10353 # endif /* no NBPG */
10354 # endif /* no EXEC_PAGESIZE */
10355 # else /* no HAVE_SYS_PARAM_H */
10356 # define getpagesize() 8192 /* punt totally */
10357 # endif /* no HAVE_SYS_PARAM_H */
10358 # endif /* no _SC_PAGESIZE */
10360 #endif /* no HAVE_GETPAGESIZE */
10363 main ()
10365 char *data, *data2, *data3;
10366 int i, pagesize;
10367 int fd;
10369 pagesize = getpagesize ();
10371 /* First, make a file with some known garbage in it. */
10372 data = (char *) malloc (pagesize);
10373 if (!data)
10374 return 1;
10375 for (i = 0; i < pagesize; ++i)
10376 *(data + i) = rand ();
10377 umask (0);
10378 fd = creat ("conftest.mmap", 0600);
10379 if (fd < 0)
10380 return 1;
10381 if (write (fd, data, pagesize) != pagesize)
10382 return 1;
10383 close (fd);
10385 /* Next, try to mmap the file at a fixed address which already has
10386 something else allocated at it. If we can, also make sure that
10387 we see the same garbage. */
10388 fd = open ("conftest.mmap", O_RDWR);
10389 if (fd < 0)
10390 return 1;
10391 data2 = (char *) malloc (2 * pagesize);
10392 if (!data2)
10393 return 1;
10394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10397 return 1;
10398 for (i = 0; i < pagesize; ++i)
10399 if (*(data + i) != *(data2 + i))
10400 return 1;
10402 /* Finally, make sure that changes to the mapped area do not
10403 percolate back to the file as seen by read(). (This is a bug on
10404 some variants of i386 svr4.0.) */
10405 for (i = 0; i < pagesize; ++i)
10406 *(data2 + i) = *(data2 + i) + 1;
10407 data3 = (char *) malloc (pagesize);
10408 if (!data3)
10409 return 1;
10410 if (read (fd, data3, pagesize) != pagesize)
10411 return 1;
10412 for (i = 0; i < pagesize; ++i)
10413 if (*(data + i) != *(data3 + i))
10414 return 1;
10415 close (fd);
10416 return 0;
10418 _ACEOF
10419 rm -f conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10430 { (case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433 esac
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_try") 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_func_mmap_fixed_mapped=yes
10440 else
10441 echo "$as_me: program exited with status $ac_status" >&5
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ( exit $ac_status )
10446 ac_cv_func_mmap_fixed_mapped=no
10448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_MMAP 1
10459 _ACEOF
10462 rm -f conftest.mmap
10464 if test $use_mmap_for_buffers = yes; then
10465 REL_ALLOC=no
10468 LIBS="$libsrc_libs $LIBS"
10471 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10472 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10473 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 ac_check_lib_save_LIBS=$LIBS
10477 LIBS="-ldnet $LIBS"
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 char dnet_ntoa ();
10493 main ()
10495 return dnet_ntoa ();
10497 return 0;
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (ac_try="$ac_link"
10502 case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_link") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext &&
10517 $as_test_x conftest$ac_exeext; then
10518 ac_cv_lib_dnet_dnet_ntoa=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 ac_cv_lib_dnet_dnet_ntoa=no
10526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10531 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10532 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10533 cat >>confdefs.h <<_ACEOF
10534 #define HAVE_LIBDNET 1
10535 _ACEOF
10537 LIBS="-ldnet $LIBS"
10542 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10543 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10544 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-lXbsd $LIBS"
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10558 main ()
10560 return main ();
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext &&
10582 $as_test_x conftest$ac_exeext; then
10583 ac_cv_lib_Xbsd_main=yes
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_cv_lib_Xbsd_main=no
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10596 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10597 if test $ac_cv_lib_Xbsd_main = yes; then
10598 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10603 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10604 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10605 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lpthreads $LIBS"
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 char cma_open ();
10625 main ()
10627 return cma_open ();
10629 return 0;
10631 _ACEOF
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext &&
10649 $as_test_x conftest$ac_exeext; then
10650 ac_cv_lib_pthreads_cma_open=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_lib_pthreads_cma_open=no
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10662 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10663 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10664 if test $ac_cv_lib_pthreads_cma_open = yes; then
10665 cat >>confdefs.h <<_ACEOF
10666 #define HAVE_LIBPTHREADS 1
10667 _ACEOF
10669 LIBS="-lpthreads $LIBS"
10674 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10675 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10676 if test -d /usr/X386/include; then
10677 HAVE_XFREE386=yes
10678 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10679 else
10680 HAVE_XFREE386=no
10682 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10683 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10686 case ${host_os} in
10687 aix*)
10688 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10689 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10690 if test "${gdb_cv_bigtoc+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10694 case $GCC in
10695 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10696 *) gdb_cv_bigtoc=-bbigtoc ;;
10697 esac
10699 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10708 main ()
10710 int i;
10712 return 0;
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10734 else
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 gdb_cv_bigtoc=
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10745 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10746 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10748 esac
10750 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10751 # used for the tests that follow. We set them back to REAL_CFLAGS and
10752 # REAL_CPPFLAGS later on.
10754 REAL_CPPFLAGS="$CPPFLAGS"
10756 if test "${HAVE_X11}" = "yes"; then
10757 DEFS="$C_SWITCH_X_SITE $DEFS"
10758 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10759 LIBS="$LIBX $LIBS"
10760 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10761 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10763 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10764 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10765 # but it's more convenient here to set LD_RUN_PATH
10766 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10767 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10768 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10769 export LD_RUN_PATH
10772 if test "${opsys}" = "gnu-linux"; then
10773 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10774 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10783 main ()
10785 XOpenDisplay ("foo");
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext &&
10807 $as_test_x conftest$ac_exeext; then
10808 xlinux_first_failure=no
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 xlinux_first_failure=yes
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 if test "${xlinux_first_failure}" = "yes"; then
10819 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10820 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10821 OLD_CPPFLAGS="$CPPFLAGS"
10822 OLD_LIBS="$LIBS"
10823 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10824 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10825 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10826 LIBS="$LIBS -b i486-linuxaout"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10835 main ()
10837 XOpenDisplay ("foo");
10839 return 0;
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 xlinux_second_failure=no
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 xlinux_second_failure=yes
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 if test "${xlinux_second_failure}" = "yes"; then
10871 # If we get the same failure with -b, there is no use adding -b.
10872 # So take it out. This plays safe.
10873 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10874 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10875 CPPFLAGS="$OLD_CPPFLAGS"
10876 LIBS="$OLD_LIBS"
10877 { echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6; }
10879 else
10880 { echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6; }
10883 else
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10889 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10890 # header files included from there.
10891 { echo "$as_me:$LINENO: checking for Xkb" >&5
10892 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #include <X11/Xlib.h>
10900 #include <X11/XKBlib.h>
10902 main ()
10904 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10906 return 0;
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext &&
10926 $as_test_x conftest$ac_exeext; then
10927 emacs_xkb=yes
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 emacs_xkb=no
10935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10936 conftest$ac_exeext conftest.$ac_ext
10937 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10938 echo "${ECHO_T}$emacs_xkb" >&6; }
10939 if test $emacs_xkb = yes; then
10941 cat >>confdefs.h <<\_ACEOF
10942 #define HAVE_XKBGETKEYBOARD 1
10943 _ACEOF
10951 for ac_func in XrmSetDatabase XScreenResourceString \
10952 XScreenNumberOfScreen XSetWMProtocols
10954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h. */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968 #define $ac_func innocuous_$ac_func
10970 /* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10975 #ifdef __STDC__
10976 # include <limits.h>
10977 #else
10978 # include <assert.h>
10979 #endif
10981 #undef $ac_func
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char $ac_func ();
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined __stub_$ac_func || defined __stub___$ac_func
10994 choke me
10995 #endif
10998 main ()
11000 return $ac_func ();
11002 return 0;
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11023 eval "$as_ac_var=yes"
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 eval "$as_ac_var=no"
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11034 ac_res=`eval echo '${'$as_ac_var'}'`
11035 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036 echo "${ECHO_T}$ac_res" >&6; }
11037 if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 _ACEOF
11043 done
11047 if test "${window_system}" = "x11"; then
11048 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11049 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11050 if test "${emacs_cv_x11_version_6+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <X11/Xlib.h>
11061 main ()
11063 #if XlibSpecificationRelease < 6
11064 fail;
11065 #endif
11068 return 0;
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext &&
11088 $as_test_x conftest$ac_exeext; then
11089 emacs_cv_x11_version_6=yes
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 emacs_cv_x11_version_6=no
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11101 if test $emacs_cv_x11_version_6 = yes; then
11102 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11103 echo "${ECHO_T}6 or newer" >&6; }
11105 cat >>confdefs.h <<\_ACEOF
11106 #define HAVE_X11R6 1
11107 _ACEOF
11109 else
11110 { echo "$as_me:$LINENO: result: before 6" >&5
11111 echo "${ECHO_T}before 6" >&6; }
11116 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11117 HAVE_RSVG=no
11118 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11119 if test "${with_rsvg}" != "no"; then
11120 if test "X${with_pkg_config_prog}" != X; then
11121 PKG_CONFIG="${with_pkg_config_prog}"
11124 RSVG_REQUIRED=2.0.0
11125 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11128 succeeded=no
11130 if test -z "$PKG_CONFIG"; then
11131 # Extract the first word of "pkg-config", so it can be a program name with args.
11132 set dummy pkg-config; ac_word=$2
11133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 case $PKG_CONFIG in
11139 [\\/]* | ?:[\\/]*)
11140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11154 done
11155 done
11156 IFS=$as_save_IFS
11158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11160 esac
11162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11163 if test -n "$PKG_CONFIG"; then
11164 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11165 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11166 else
11167 { echo "$as_me:$LINENO: result: no" >&5
11168 echo "${ECHO_T}no" >&6; }
11174 if test "$PKG_CONFIG" = "no" ; then
11176 else
11177 PKG_CONFIG_MIN_VERSION=0.9.0
11178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11179 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11180 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11182 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11183 { echo "$as_me:$LINENO: result: yes" >&5
11184 echo "${ECHO_T}yes" >&6; }
11185 succeeded=yes
11187 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11188 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11189 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11190 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11191 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11193 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11194 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11195 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11196 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11197 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11198 else
11199 { echo "$as_me:$LINENO: result: no" >&5
11200 echo "${ECHO_T}no" >&6; }
11201 RSVG_CFLAGS=""
11202 RSVG_LIBS=""
11203 ## If we have a custom action on failure, don't print errors, but
11204 ## do set a variable so people can do so.
11205 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11211 else
11212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11217 if test $succeeded = yes; then
11219 else
11226 if test ".${RSVG_CFLAGS}" != "."; then
11227 HAVE_RSVG=yes
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_RSVG 1
11231 _ACEOF
11233 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11234 LIBS="$RSVG_LIBS $LIBS"
11240 HAVE_GTK=no
11241 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11242 USE_X_TOOLKIT=none
11244 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11245 test "$USE_X_TOOLKIT" = "maybe"; then
11246 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11247 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11248 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11249 { (exit 1); exit 1; }; };
11251 GLIB_REQUIRED=2.6
11252 GTK_REQUIRED=2.6
11253 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11255 if test "X${with_pkg_config_prog}" != X; then
11256 PKG_CONFIG="${with_pkg_config_prog}"
11259 succeeded=no
11261 if test -z "$PKG_CONFIG"; then
11262 # Extract the first word of "pkg-config", so it can be a program name with args.
11263 set dummy pkg-config; ac_word=$2
11264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 case $PKG_CONFIG in
11270 [\\/]* | ?:[\\/]*)
11271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11285 done
11286 done
11287 IFS=$as_save_IFS
11289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11291 esac
11293 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11294 if test -n "$PKG_CONFIG"; then
11295 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11296 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11297 else
11298 { echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6; }
11305 if test "$PKG_CONFIG" = "no" ; then
11306 pkg_check_gtk=no
11307 else
11308 PKG_CONFIG_MIN_VERSION=0.9.0
11309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11310 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11311 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11313 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11314 { echo "$as_me:$LINENO: result: yes" >&5
11315 echo "${ECHO_T}yes" >&6; }
11316 succeeded=yes
11318 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11319 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11320 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11321 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11322 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11324 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11325 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11326 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11327 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11328 echo "${ECHO_T}$GTK_LIBS" >&6; }
11329 else
11330 { echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6; }
11332 GTK_CFLAGS=""
11333 GTK_LIBS=""
11334 ## If we have a custom action on failure, don't print errors, but
11335 ## do set a variable so people can do so.
11336 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11342 else
11343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11348 if test $succeeded = yes; then
11349 pkg_check_gtk=yes
11350 else
11351 pkg_check_gtk=no
11354 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11355 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11356 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11357 { (exit 1); exit 1; }; }
11362 if test x"$pkg_check_gtk" = xyes; then
11366 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11367 CFLAGS="$CFLAGS $GTK_CFLAGS"
11368 LIBS="$GTK_LIBS $LIBS"
11369 GTK_COMPILES=no
11371 for ac_func in gtk_main
11373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11387 #define $ac_func innocuous_$ac_func
11389 /* System header to define __stub macros and hopefully few prototypes,
11390 which can conflict with char $ac_func (); below.
11391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11392 <limits.h> exists even on freestanding compilers. */
11394 #ifdef __STDC__
11395 # include <limits.h>
11396 #else
11397 # include <assert.h>
11398 #endif
11400 #undef $ac_func
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char $ac_func ();
11409 /* The GNU C library defines this for functions which it implements
11410 to always fail with ENOSYS. Some functions are actually named
11411 something starting with __ and the normal name is an alias. */
11412 #if defined __stub_$ac_func || defined __stub___$ac_func
11413 choke me
11414 #endif
11417 main ()
11419 return $ac_func ();
11421 return 0;
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (ac_try="$ac_link"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_link") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest$ac_exeext &&
11441 $as_test_x conftest$ac_exeext; then
11442 eval "$as_ac_var=yes"
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 eval "$as_ac_var=no"
11450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11451 conftest$ac_exeext conftest.$ac_ext
11453 ac_res=`eval echo '${'$as_ac_var'}'`
11454 { echo "$as_me:$LINENO: result: $ac_res" >&5
11455 echo "${ECHO_T}$ac_res" >&6; }
11456 if test `eval echo '${'$as_ac_var'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 _ACEOF
11460 GTK_COMPILES=yes
11462 done
11464 if test "${GTK_COMPILES}" != "yes"; then
11465 if test "$USE_X_TOOLKIT" != "maybe"; then
11466 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11467 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11468 { (exit 1); exit 1; }; };
11470 else
11471 HAVE_GTK=yes
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_GTK 1
11475 _ACEOF
11477 USE_X_TOOLKIT=none
11483 if test "${HAVE_GTK}" = "yes"; then
11485 if test "$with_toolkit_scroll_bars" != no; then
11486 with_toolkit_scroll_bars=yes
11489 HAVE_GTK_MULTIDISPLAY=no
11491 for ac_func in gdk_display_open
11493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11507 #define $ac_func innocuous_$ac_func
11509 /* System header to define __stub macros and hopefully few prototypes,
11510 which can conflict with char $ac_func (); below.
11511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 <limits.h> exists even on freestanding compilers. */
11514 #ifdef __STDC__
11515 # include <limits.h>
11516 #else
11517 # include <assert.h>
11518 #endif
11520 #undef $ac_func
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char $ac_func ();
11529 /* The GNU C library defines this for functions which it implements
11530 to always fail with ENOSYS. Some functions are actually named
11531 something starting with __ and the normal name is an alias. */
11532 #if defined __stub_$ac_func || defined __stub___$ac_func
11533 choke me
11534 #endif
11537 main ()
11539 return $ac_func ();
11541 return 0;
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest$ac_exeext &&
11561 $as_test_x conftest$ac_exeext; then
11562 eval "$as_ac_var=yes"
11563 else
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 eval "$as_ac_var=no"
11570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11571 conftest$ac_exeext conftest.$ac_ext
11573 ac_res=`eval echo '${'$as_ac_var'}'`
11574 { echo "$as_me:$LINENO: result: $ac_res" >&5
11575 echo "${ECHO_T}$ac_res" >&6; }
11576 if test `eval echo '${'$as_ac_var'}'` = yes; then
11577 cat >>confdefs.h <<_ACEOF
11578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11579 _ACEOF
11580 HAVE_GTK_MULTIDISPLAY=yes
11582 done
11584 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_GTK_MULTIDISPLAY 1
11588 _ACEOF
11592 HAVE_GTK_FILE_SELECTION=no
11594 for ac_func in gtk_file_selection_new
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11610 #define $ac_func innocuous_$ac_func
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below.
11614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615 <limits.h> exists even on freestanding compilers. */
11617 #ifdef __STDC__
11618 # include <limits.h>
11619 #else
11620 # include <assert.h>
11621 #endif
11623 #undef $ac_func
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char $ac_func ();
11632 /* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635 #if defined __stub_$ac_func || defined __stub___$ac_func
11636 choke me
11637 #endif
11640 main ()
11642 return $ac_func ();
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext &&
11664 $as_test_x conftest$ac_exeext; then
11665 eval "$as_ac_var=yes"
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 eval "$as_ac_var=no"
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11676 ac_res=`eval echo '${'$as_ac_var'}'`
11677 { echo "$as_me:$LINENO: result: $ac_res" >&5
11678 echo "${ECHO_T}$ac_res" >&6; }
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 _ACEOF
11683 HAVE_GTK_FILE_SELECTION=yes
11685 done
11688 HAVE_GTK_FILE_CHOOSER=no
11690 for ac_func in gtk_file_chooser_dialog_new
11692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11706 #define $ac_func innocuous_$ac_func
11708 /* System header to define __stub macros and hopefully few prototypes,
11709 which can conflict with char $ac_func (); below.
11710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 <limits.h> exists even on freestanding compilers. */
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11719 #undef $ac_func
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char $ac_func ();
11728 /* The GNU C library defines this for functions which it implements
11729 to always fail with ENOSYS. Some functions are actually named
11730 something starting with __ and the normal name is an alias. */
11731 #if defined __stub_$ac_func || defined __stub___$ac_func
11732 choke me
11733 #endif
11736 main ()
11738 return $ac_func ();
11740 return 0;
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_link") 2>conftest.er1
11751 ac_status=$?
11752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_c_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest$ac_exeext &&
11760 $as_test_x conftest$ac_exeext; then
11761 eval "$as_ac_var=yes"
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770 conftest$ac_exeext conftest.$ac_ext
11772 ac_res=`eval echo '${'$as_ac_var'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776 cat >>confdefs.h <<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 _ACEOF
11779 HAVE_GTK_FILE_CHOOSER=yes
11781 done
11784 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11785 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11787 cat >>confdefs.h <<\_ACEOF
11788 #define HAVE_GTK_FILE_BOTH 1
11789 _ACEOF
11793 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11794 HAVE_GTK_AND_PTHREAD=no
11796 for ac_header in pthread.h
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 else
11809 # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11819 #include <$ac_header>
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_header_compiler=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_compiler=no
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11848 echo "${ECHO_T}$ac_header_compiler" >&6; }
11850 # Is the header present?
11851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h. */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <$ac_header>
11860 _ACEOF
11861 if { (ac_try="$ac_cpp conftest.$ac_ext"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } >/dev/null && {
11874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 }; then
11877 ac_header_preproc=yes
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_header_preproc=no
11885 rm -f conftest.err conftest.$ac_ext
11886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11887 echo "${ECHO_T}$ac_header_preproc" >&6; }
11889 # So? What about this header?
11890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11891 yes:no: )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11896 ac_header_preproc=yes
11898 no:yes:* )
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11913 esac
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 eval "$as_ac_Header=\$ac_header_preproc"
11921 ac_res=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11927 cat >>confdefs.h <<_ACEOF
11928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11929 _ACEOF
11933 done
11935 if test "$ac_cv_header_pthread_h"; then
11936 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11937 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lpthread $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char pthread_self ();
11958 main ()
11960 return pthread_self ();
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_pthread_pthread_self=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_pthread_pthread_self=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11996 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11997 if test $ac_cv_lib_pthread_pthread_self = yes; then
11998 HAVE_GTK_AND_PTHREAD=yes
12002 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12003 case "${canonical}" in
12004 *-hpux*) ;;
12005 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12006 esac
12008 cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_GTK_AND_PTHREAD 1
12010 _ACEOF
12016 HAVE_DBUS=no
12017 if test "${with_dbus}" = "yes"; then
12019 succeeded=no
12021 if test -z "$PKG_CONFIG"; then
12022 # Extract the first word of "pkg-config", so it can be a program name with args.
12023 set dummy pkg-config; ac_word=$2
12024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 case $PKG_CONFIG in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12051 esac
12053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12054 if test -n "$PKG_CONFIG"; then
12055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12057 else
12058 { echo "$as_me:$LINENO: result: no" >&5
12059 echo "${ECHO_T}no" >&6; }
12065 if test "$PKG_CONFIG" = "no" ; then
12066 HAVE_DBUS=no
12067 else
12068 PKG_CONFIG_MIN_VERSION=0.9.0
12069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12070 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12071 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12073 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12074 { echo "$as_me:$LINENO: result: yes" >&5
12075 echo "${ECHO_T}yes" >&6; }
12076 succeeded=yes
12078 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12079 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12080 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12081 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12082 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12084 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12085 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12086 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12087 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12088 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12089 else
12090 { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12092 DBUS_CFLAGS=""
12093 DBUS_LIBS=""
12094 ## If we have a custom action on failure, don't print errors, but
12095 ## do set a variable so people can do so.
12096 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12102 else
12103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12108 if test $succeeded = yes; then
12109 HAVE_DBUS=yes
12110 else
12111 HAVE_DBUS=no
12114 if test "$HAVE_DBUS" = yes; then
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_DBUS 1
12118 _ACEOF
12123 ### Link with -lXft if available to work around a bug.
12124 HAVE_XFT=maybe
12125 if test "${HAVE_GTK}" = "yes"; then
12126 if test "X${with_pkg_config_prog}" != X; then
12127 PKG_CONFIG="${with_pkg_config_prog}"
12131 succeeded=no
12133 if test -z "$PKG_CONFIG"; then
12134 # Extract the first word of "pkg-config", so it can be a program name with args.
12135 set dummy pkg-config; ac_word=$2
12136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12138 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 case $PKG_CONFIG in
12142 [\\/]* | ?:[\\/]*)
12143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12157 done
12158 done
12159 IFS=$as_save_IFS
12161 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12163 esac
12165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12166 if test -n "$PKG_CONFIG"; then
12167 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12168 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12169 else
12170 { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12177 if test "$PKG_CONFIG" = "no" ; then
12178 HAVE_XFT=no
12179 else
12180 PKG_CONFIG_MIN_VERSION=0.9.0
12181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12182 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12183 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12185 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12186 { echo "$as_me:$LINENO: result: yes" >&5
12187 echo "${ECHO_T}yes" >&6; }
12188 succeeded=yes
12190 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12191 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12192 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12193 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12194 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12196 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12197 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12198 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12199 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12200 echo "${ECHO_T}$XFT_LIBS" >&6; }
12201 else
12202 { echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6; }
12204 XFT_CFLAGS=""
12205 XFT_LIBS=""
12206 ## If we have a custom action on failure, don't print errors, but
12207 ## do set a variable so people can do so.
12208 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12214 else
12215 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12216 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12220 if test $succeeded = yes; then
12222 else
12223 HAVE_XFT=no
12226 if test "$HAVE_XFT" != no; then
12227 OLD_CFLAGS="$CPPFLAGS"
12228 OLD_CPPFLAGS="$CFLAGS"
12229 OLD_LIBS="$LIBS"
12230 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12231 CFLAGS="$CFLAGS $XFT_CFLAGS"
12232 LIBS="$XFT_LIBS $LIBS"
12233 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12234 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12235 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12240 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12241 else
12242 # Is the header compilable?
12243 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12244 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 #include <X11/Xft/Xft.h>
12253 _ACEOF
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.$ac_objext; then
12271 ac_header_compiler=yes
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_header_compiler=no
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12281 echo "${ECHO_T}$ac_header_compiler" >&6; }
12283 # Is the header present?
12284 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12285 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <X11/Xft/Xft.h>
12293 _ACEOF
12294 if { (ac_try="$ac_cpp conftest.$ac_ext"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } >/dev/null && {
12307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 }; then
12310 ac_header_preproc=yes
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_header_preproc=no
12318 rm -f conftest.err conftest.$ac_ext
12319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12320 echo "${ECHO_T}$ac_header_preproc" >&6; }
12322 # So? What about this header?
12323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12324 yes:no: )
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12328 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12329 ac_header_preproc=yes
12331 no:yes:* )
12332 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12333 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12335 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12337 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12339 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12341 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12343 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12346 esac
12347 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12348 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12349 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12354 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12355 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12358 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12359 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12360 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12361 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lXft $XFT_LIBS $LIBS"
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char XftFontOpen ();
12381 main ()
12383 return XftFontOpen ();
12385 return 0;
12387 _ACEOF
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest$ac_exeext &&
12405 $as_test_x conftest$ac_exeext; then
12406 ac_cv_lib_Xft_XftFontOpen=yes
12407 else
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_lib_Xft_XftFontOpen=no
12414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12418 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12419 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12420 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12421 HAVE_XFT=yes
12428 if test "${HAVE_XFT}" = "yes"; then
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_XFT 1
12432 _ACEOF
12435 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12436 else
12437 CFLAGS="$OLD_CPPFLAGS"
12438 CFLAGS="$OLD_CFLAGS"
12439 LIBS="$OLD_LIBS"
12444 HAVE_XAW3D=no
12445 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12446 if test "$with_xaw3d" != no; then
12447 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12448 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12449 if test "${emacs_cv_xaw3d+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #include <X11/Intrinsic.h>
12460 #include <X11/Xaw3d/Simple.h>
12462 main ()
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext &&
12486 $as_test_x conftest$ac_exeext; then
12487 emacs_cv_xaw3d=yes
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 emacs_cv_xaw3d=no
12495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12496 conftest$ac_exeext conftest.$ac_ext
12499 else
12500 emacs_cv_xaw3d=no
12502 if test $emacs_cv_xaw3d = yes; then
12503 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12504 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12505 USE_X_TOOLKIT=LUCID
12506 HAVE_XAW3D=yes
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_XAW3D 1
12510 _ACEOF
12512 else
12513 { echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6; }
12515 { echo "$as_me:$LINENO: checking for libXaw" >&5
12516 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12517 if test "${emacs_cv_xaw+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 #include <X11/Intrinsic.h>
12528 #include <X11/Xaw/Simple.h>
12530 main ()
12534 return 0;
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest$ac_exeext &&
12554 $as_test_x conftest$ac_exeext; then
12555 emacs_cv_xaw=yes
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 emacs_cv_xaw=no
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12567 if test $emacs_cv_xaw = yes; then
12568 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12569 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12570 USE_X_TOOLKIT=LUCID
12571 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12572 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12573 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12574 { (exit 1); exit 1; }; }
12575 else
12576 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12577 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12578 USE_X_TOOLKIT=none
12583 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12585 if test "${USE_X_TOOLKIT}" != "none"; then
12586 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12587 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12588 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <X11/Intrinsic.h>
12599 main ()
12601 #if XtSpecificationRelease < 6
12602 fail;
12603 #endif
12606 return 0;
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_link") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext &&
12626 $as_test_x conftest$ac_exeext; then
12627 emacs_cv_x11_toolkit_version_6=yes
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 emacs_cv_x11_toolkit_version_6=no
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12639 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12640 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12641 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12642 echo "${ECHO_T}6 or newer" >&6; }
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_X11XTR6 1
12646 _ACEOF
12648 else
12649 { echo "$as_me:$LINENO: result: before 6" >&5
12650 echo "${ECHO_T}before 6" >&6; }
12653 OLDLIBS="$LIBS"
12654 if test x$HAVE_X11XTR6 = xyes; then
12655 LIBS="-lXt -lSM -lICE $LIBS"
12656 else
12657 LIBS="-lXt $LIBS"
12660 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12661 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12662 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665 ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-lXmu $LIBS"
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char XmuConvertStandardSelection ();
12682 main ()
12684 return XmuConvertStandardSelection ();
12686 return 0;
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (ac_try="$ac_link"
12691 case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_link") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest$ac_exeext &&
12706 $as_test_x conftest$ac_exeext; then
12707 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12708 else
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12712 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12716 conftest$ac_exeext conftest.$ac_ext
12717 LIBS=$ac_check_lib_save_LIBS
12719 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12720 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12721 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_LIBXMU 1
12724 _ACEOF
12726 LIBS="-lXmu $LIBS"
12730 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12733 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12734 if test "${HAVE_X11}" = "yes"; then
12735 if test "${USE_X_TOOLKIT}" != "none"; then
12737 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12738 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12739 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742 ac_check_lib_save_LIBS=$LIBS
12743 LIBS="-lXext $LIBS"
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 char XShapeQueryExtension ();
12759 main ()
12761 return XShapeQueryExtension ();
12763 return 0;
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_link") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext &&
12783 $as_test_x conftest$ac_exeext; then
12784 ac_cv_lib_Xext_XShapeQueryExtension=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_lib_Xext_XShapeQueryExtension=no
12792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12796 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12797 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12798 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define HAVE_LIBXEXT 1
12801 _ACEOF
12803 LIBS="-lXext $LIBS"
12810 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12811 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12812 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12813 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 #include <Xm/Xm.h>
12824 main ()
12826 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12827 int x = 5;
12828 #else
12829 Motif version prior to 2.1.
12830 #endif
12832 return 0;
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12852 emacs_cv_motif_version_2_1=yes
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 emacs_cv_motif_version_2_1=no
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12863 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12864 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12865 if test $emacs_cv_motif_version_2_1 = yes; then
12866 HAVE_LIBXP=no
12868 cat >>confdefs.h <<\_ACEOF
12869 #define HAVE_MOTIF_2_1 1
12870 _ACEOF
12872 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12873 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12874 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 ac_check_lib_save_LIBS=$LIBS
12878 LIBS="-lXp $LIBS"
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char XpCreateContext ();
12894 main ()
12896 return XpCreateContext ();
12898 return 0;
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } && {
12915 test -z "$ac_c_werror_flag" ||
12916 test ! -s conftest.err
12917 } && test -s conftest$ac_exeext &&
12918 $as_test_x conftest$ac_exeext; then
12919 ac_cv_lib_Xp_XpCreateContext=yes
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_cv_lib_Xp_XpCreateContext=no
12927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12932 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12933 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12934 HAVE_LIBXP=yes
12937 if test ${HAVE_LIBXP} = yes; then
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_LIBXP 1
12941 _ACEOF
12944 else
12945 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12946 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12947 if test "${emacs_cv_lesstif+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 # We put this in CFLAGS temporarily to precede other -I options
12951 # that might be in CFLAGS temporarily.
12952 # We put this in CPPFLAGS where it precedes the other -I options.
12953 OLD_CPPFLAGS=$CPPFLAGS
12954 OLD_CFLAGS=$CFLAGS
12955 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12956 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12965 main ()
12967 int x = 5;
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 emacs_cv_lesstif=yes
12990 else
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 emacs_cv_lesstif=no
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13000 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13001 if test $emacs_cv_lesstif = yes; then
13002 # Make sure this -I option remains in CPPFLAGS after it is set
13003 # back to REAL_CPPFLAGS.
13004 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13005 # have those other -I options anyway. Ultimately, having this
13006 # directory ultimately in CPPFLAGS will be enough.
13007 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13008 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13009 else
13010 CFLAGS=$OLD_CFLAGS
13011 CPPFLAGS=$OLD_CPPFLAGS
13018 USE_TOOLKIT_SCROLL_BARS=no
13019 if test "${with_toolkit_scroll_bars}" != "no"; then
13020 if test "${USE_X_TOOLKIT}" != "none"; then
13021 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define USE_TOOLKIT_SCROLL_BARS 1
13024 _ACEOF
13026 HAVE_XAW3D=no
13027 USE_TOOLKIT_SCROLL_BARS=yes
13028 elif test "${HAVE_XAW3D}" = "yes"; then
13029 cat >>confdefs.h <<\_ACEOF
13030 #define USE_TOOLKIT_SCROLL_BARS 1
13031 _ACEOF
13033 USE_TOOLKIT_SCROLL_BARS=yes
13035 elif test "${HAVE_GTK}" = "yes"; then
13036 cat >>confdefs.h <<\_ACEOF
13037 #define USE_TOOLKIT_SCROLL_BARS 1
13038 _ACEOF
13040 USE_TOOLKIT_SCROLL_BARS=yes
13041 elif test "${HAVE_CARBON}" = "yes"; then
13042 cat >>confdefs.h <<\_ACEOF
13043 #define USE_TOOLKIT_SCROLL_BARS 1
13044 _ACEOF
13046 USE_TOOLKIT_SCROLL_BARS=yes
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 #include <X11/Xlib.h>
13058 #include <X11/Xresource.h>
13060 main ()
13062 XIMProc callback;
13064 return 0;
13066 _ACEOF
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
13084 HAVE_XIM=yes
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_XIM 1
13088 _ACEOF
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 HAVE_XIM=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 if test "${with_xim}" != "no"; then
13102 cat >>confdefs.h <<\_ACEOF
13103 #define USE_XIM 1
13104 _ACEOF
13109 if test "${HAVE_XIM}" != "no"; then
13110 late_CFLAGS=$CFLAGS
13111 if test "$GCC" = yes; then
13112 CFLAGS="$CFLAGS --pedantic-errors"
13114 cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13121 #include <X11/Xlib.h>
13122 #include <X11/Xresource.h>
13124 main ()
13126 Display *display;
13127 XrmDatabase db;
13128 char *res_name;
13129 char *res_class;
13130 XIMProc callback;
13131 XPointer *client_data;
13132 #ifndef __GNUC__
13133 /* If we're not using GCC, it's probably not XFree86, and this is
13134 probably right, but we can't use something like --pedantic-errors. */
13135 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13136 char*, XIMProc, XPointer*);
13137 #endif
13138 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13139 client_data);
13141 return 0;
13143 _ACEOF
13144 rm -f conftest.$ac_objext
13145 if { (ac_try="$ac_compile"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_compile") 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && {
13158 test -z "$ac_c_werror_flag" ||
13159 test ! -s conftest.err
13160 } && test -s conftest.$ac_objext; then
13161 emacs_cv_arg6_star=yes
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 if test "$emacs_cv_arg6_star" = yes; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13174 _ACEOF
13176 else
13177 cat >>confdefs.h <<\_ACEOF
13178 #define XRegisterIMInstantiateCallback_arg6 XPointer
13179 _ACEOF
13182 CFLAGS=$late_CFLAGS
13185 ### Use -lXpm if available, unless `--with-xpm=no'.
13186 HAVE_XPM=no
13187 if test "${HAVE_X11}" = "yes"; then
13188 if test "${with_xpm}" != "no"; then
13189 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13190 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13191 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13192 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13196 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13197 else
13198 # Is the header compilable?
13199 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13200 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h. */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13208 #include <X11/xpm.h>
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (ac_try="$ac_compile"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_compile") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } && {
13224 test -z "$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest.$ac_objext; then
13227 ac_header_compiler=yes
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_header_compiler=no
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13237 echo "${ECHO_T}$ac_header_compiler" >&6; }
13239 # Is the header present?
13240 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13241 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <X11/xpm.h>
13249 _ACEOF
13250 if { (ac_try="$ac_cpp conftest.$ac_ext"
13251 case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } >/dev/null && {
13263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 }; then
13266 ac_header_preproc=yes
13267 else
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_preproc=no
13274 rm -f conftest.err conftest.$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13276 echo "${ECHO_T}$ac_header_preproc" >&6; }
13278 # So? What about this header?
13279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13280 yes:no: )
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13285 ac_header_preproc=yes
13287 no:yes:* )
13288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13289 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13291 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13293 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13295 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13297 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13299 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13302 esac
13303 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13304 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13305 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308 ac_cv_header_X11_xpm_h=$ac_header_preproc
13310 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13311 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13314 if test $ac_cv_header_X11_xpm_h = yes; then
13315 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13316 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13317 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320 ac_check_lib_save_LIBS=$LIBS
13321 LIBS="-lXpm -lX11 $LIBS"
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h. */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13329 /* Override any GCC internal prototype to avoid an error.
13330 Use char because int might match the return type of a GCC
13331 builtin and then its argument prototype would still apply. */
13332 #ifdef __cplusplus
13333 extern "C"
13334 #endif
13335 char XpmReadFileToPixmap ();
13337 main ()
13339 return XpmReadFileToPixmap ();
13341 return 0;
13343 _ACEOF
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (ac_try="$ac_link"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_link") 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && {
13358 test -z "$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 } && test -s conftest$ac_exeext &&
13361 $as_test_x conftest$ac_exeext; then
13362 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13363 else
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13375 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13376 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13377 HAVE_XPM=yes
13383 if test "${HAVE_XPM}" = "yes"; then
13384 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13385 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 #include "X11/xpm.h"
13393 #ifndef XpmReturnAllocPixels
13394 no_return_alloc_pixels
13395 #endif
13397 _ACEOF
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13400 HAVE_XPM=no
13401 else
13402 HAVE_XPM=yes
13404 rm -f conftest*
13407 if test "${HAVE_XPM}" = "yes"; then
13408 { echo "$as_me:$LINENO: result: yes" >&5
13409 echo "${ECHO_T}yes" >&6; }
13410 else
13411 { echo "$as_me:$LINENO: result: no" >&5
13412 echo "${ECHO_T}no" >&6; }
13417 if test "${HAVE_XPM}" = "yes"; then
13419 cat >>confdefs.h <<\_ACEOF
13420 #define HAVE_XPM 1
13421 _ACEOF
13426 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13427 HAVE_JPEG=no
13428 if test "${HAVE_X11}" = "yes"; then
13429 if test "${with_jpeg}" != "no"; then
13430 if test "${ac_cv_header_jerror_h+set}" = set; then
13431 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13432 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13433 if test "${ac_cv_header_jerror_h+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13438 else
13439 # Is the header compilable?
13440 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13441 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h. */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 $ac_includes_default
13449 #include <jerror.h>
13450 _ACEOF
13451 rm -f conftest.$ac_objext
13452 if { (ac_try="$ac_compile"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest.$ac_objext; then
13468 ac_header_compiler=yes
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_header_compiler=no
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13478 echo "${ECHO_T}$ac_header_compiler" >&6; }
13480 # Is the header present?
13481 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13482 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h. */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 #include <jerror.h>
13490 _ACEOF
13491 if { (ac_try="$ac_cpp conftest.$ac_ext"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } >/dev/null && {
13504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 }; then
13507 ac_header_preproc=yes
13508 else
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_header_preproc=no
13515 rm -f conftest.err conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13517 echo "${ECHO_T}$ac_header_preproc" >&6; }
13519 # So? What about this header?
13520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13521 yes:no: )
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13523 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13525 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13526 ac_header_preproc=yes
13528 no:yes:* )
13529 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13530 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13532 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13534 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13536 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13538 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13540 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13543 esac
13544 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13545 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13546 if test "${ac_cv_header_jerror_h+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549 ac_cv_header_jerror_h=$ac_header_preproc
13551 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13552 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13555 if test $ac_cv_header_jerror_h = yes; then
13556 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13557 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13558 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ljpeg $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char jpeg_destroy_compress ();
13578 main ()
13580 return jpeg_destroy_compress ();
13582 return 0;
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13603 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13612 conftest$ac_exeext conftest.$ac_ext
13613 LIBS=$ac_check_lib_save_LIBS
13615 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13616 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13617 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13618 HAVE_JPEG=yes
13627 if test "${HAVE_JPEG}" = "yes"; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_JPEG 1
13630 _ACEOF
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #include <jpeglib.h>
13639 version=JPEG_LIB_VERSION
13641 _ACEOF
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13644 cat >>confdefs.h <<\_ACEOF
13645 #define HAVE_JPEG 1
13646 _ACEOF
13648 else
13649 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13650 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13651 HAVE_JPEG=no
13653 rm -f conftest*
13658 ### Use -lpng if available, unless `--with-png=no'.
13659 HAVE_PNG=no
13660 if test "${HAVE_X11}" = "yes"; then
13661 if test "${with_png}" != "no"; then
13662 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13663 # in /usr/include/libpng.
13666 for ac_header in png.h libpng/png.h
13668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 ac_res=`eval echo '${'$as_ac_Header'}'`
13676 { echo "$as_me:$LINENO: result: $ac_res" >&5
13677 echo "${ECHO_T}$ac_res" >&6; }
13678 else
13679 # Is the header compilable?
13680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13689 #include <$ac_header>
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_header_compiler=yes
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_header_compiler=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6; }
13720 # Is the header present?
13721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <$ac_header>
13730 _ACEOF
13731 if { (ac_try="$ac_cpp conftest.$ac_ext"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } >/dev/null && {
13744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 }; then
13747 ac_header_preproc=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_preproc=no
13755 rm -f conftest.err conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13757 echo "${ECHO_T}$ac_header_preproc" >&6; }
13759 # So? What about this header?
13760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13761 yes:no: )
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13766 ac_header_preproc=yes
13768 no:yes:* )
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13783 esac
13784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789 eval "$as_ac_Header=\$ac_header_preproc"
13791 ac_res=`eval echo '${'$as_ac_Header'}'`
13792 { echo "$as_me:$LINENO: result: $ac_res" >&5
13793 echo "${ECHO_T}$ac_res" >&6; }
13796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13799 _ACEOF
13803 done
13805 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13806 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13807 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13808 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-lpng -lz -lm $LIBS"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char png_get_channels ();
13828 main ()
13830 return png_get_channels ();
13832 return 0;
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && {
13849 test -z "$ac_c_werror_flag" ||
13850 test ! -s conftest.err
13851 } && test -s conftest$ac_exeext &&
13852 $as_test_x conftest$ac_exeext; then
13853 ac_cv_lib_png_png_get_channels=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_lib_png_png_get_channels=no
13861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13865 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13866 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13867 if test $ac_cv_lib_png_png_get_channels = yes; then
13868 HAVE_PNG=yes
13874 if test "${HAVE_PNG}" = "yes"; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_PNG 1
13878 _ACEOF
13883 ### Use -ltiff if available, unless `--with-tiff=no'.
13884 HAVE_TIFF=no
13885 if test "${HAVE_X11}" = "yes"; then
13886 if test "${with_tiff}" != "no"; then
13887 if test "${ac_cv_header_tiffio_h+set}" = set; then
13888 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13889 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13890 if test "${ac_cv_header_tiffio_h+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13894 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13895 else
13896 # Is the header compilable?
13897 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13898 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h. */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 $ac_includes_default
13906 #include <tiffio.h>
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (ac_try="$ac_compile"
13910 case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_compile") 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && {
13922 test -z "$ac_c_werror_flag" ||
13923 test ! -s conftest.err
13924 } && test -s conftest.$ac_objext; then
13925 ac_header_compiler=yes
13926 else
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13930 ac_header_compiler=no
13933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13935 echo "${ECHO_T}$ac_header_compiler" >&6; }
13937 # Is the header present?
13938 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13939 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h. */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 #include <tiffio.h>
13947 _ACEOF
13948 if { (ac_try="$ac_cpp conftest.$ac_ext"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } >/dev/null && {
13961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 }; then
13964 ac_header_preproc=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_preproc=no
13972 rm -f conftest.err conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13974 echo "${ECHO_T}$ac_header_preproc" >&6; }
13976 # So? What about this header?
13977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13978 yes:no: )
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13980 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13982 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13983 ac_header_preproc=yes
13985 no:yes:* )
13986 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13987 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13989 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13991 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13993 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13995 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13997 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14000 esac
14001 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14002 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_tiffio_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 ac_cv_header_tiffio_h=$ac_header_preproc
14008 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14009 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14012 if test $ac_cv_header_tiffio_h = yes; then
14013 tifflibs="-lz -lm"
14014 # At least one tiff package requires the jpeg library.
14015 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14016 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14017 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-ltiff $tifflibs $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char TIFFGetVersion ();
14038 main ()
14040 return TIFFGetVersion ();
14042 return 0;
14044 _ACEOF
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } && {
14059 test -z "$ac_c_werror_flag" ||
14060 test ! -s conftest.err
14061 } && test -s conftest$ac_exeext &&
14062 $as_test_x conftest$ac_exeext; then
14063 ac_cv_lib_tiff_TIFFGetVersion=yes
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_lib_tiff_TIFFGetVersion=no
14071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14076 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14077 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14078 HAVE_TIFF=yes
14086 if test "${HAVE_TIFF}" = "yes"; then
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_TIFF 1
14090 _ACEOF
14095 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14096 HAVE_GIF=no
14097 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14098 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14099 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14100 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14101 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14105 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14106 else
14107 # Is the header compilable?
14108 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14109 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h. */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 $ac_includes_default
14117 #include <gif_lib.h>
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest.$ac_objext; then
14136 ac_header_compiler=yes
14137 else
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_header_compiler=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6; }
14148 # Is the header present?
14149 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14150 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <gif_lib.h>
14158 _ACEOF
14159 if { (ac_try="$ac_cpp conftest.$ac_ext"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null && {
14172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 }; then
14175 ac_header_preproc=yes
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_header_preproc=no
14183 rm -f conftest.err conftest.$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14185 echo "${ECHO_T}$ac_header_preproc" >&6; }
14187 # So? What about this header?
14188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14189 yes:no: )
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14191 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14193 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14194 ac_header_preproc=yes
14196 no:yes:* )
14197 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14198 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14200 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14202 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14204 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14206 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14208 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14211 esac
14212 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14213 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14214 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 ac_cv_header_gif_lib_h=$ac_header_preproc
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14220 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14223 if test $ac_cv_header_gif_lib_h = yes; then
14224 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14225 # Earlier versions can crash Emacs.
14226 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14227 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14228 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231 ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-lgif $LIBS"
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char EGifPutExtensionLast ();
14248 main ()
14250 return EGifPutExtensionLast ();
14252 return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14260 esac
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_link") 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } && {
14269 test -z "$ac_c_werror_flag" ||
14270 test ! -s conftest.err
14271 } && test -s conftest$ac_exeext &&
14272 $as_test_x conftest$ac_exeext; then
14273 ac_cv_lib_gif_EGifPutExtensionLast=yes
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_cv_lib_gif_EGifPutExtensionLast=no
14281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14285 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14286 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14287 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14288 HAVE_GIF=yes
14289 else
14290 try_libungif=yes
14297 if test "$HAVE_GIF" = yes; then
14298 ac_gif_lib_name="-lgif"
14301 # If gif_lib.h but no libgif, try libungif.
14302 if test x"$try_libungif" = xyes; then
14303 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14304 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14305 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308 ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-lungif $LIBS"
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14320 #ifdef __cplusplus
14321 extern "C"
14322 #endif
14323 char EGifPutExtensionLast ();
14325 main ()
14327 return EGifPutExtensionLast ();
14329 return 0;
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest$ac_exeext &&
14349 $as_test_x conftest$ac_exeext; then
14350 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 ac_cv_lib_ungif_EGifPutExtensionLast=no
14358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14362 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14363 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14364 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14365 HAVE_GIF=yes
14369 if test "$HAVE_GIF" = yes; then
14371 cat >>confdefs.h <<\_ACEOF
14372 #define LIBGIF -lungif
14373 _ACEOF
14375 ac_gif_lib_name="-lungif"
14379 if test "${HAVE_GIF}" = "yes"; then
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_GIF 1
14383 _ACEOF
14388 if test "${HAVE_X11}" = "yes"; then
14389 MISSING=""
14390 WITH_NO=""
14391 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14392 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14393 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14394 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14395 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14396 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14397 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14398 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14399 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14400 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14402 if test "X${MISSING}" != X; then
14403 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14404 $MISSING
14405 Maybe some development libraries/packages are missing?
14406 If you don't want to link with them give
14407 $WITH_NO
14408 as options to configure" >&5
14409 echo "$as_me: error: The following required libraries were not found:
14410 $MISSING
14411 Maybe some development libraries/packages are missing?
14412 If you don't want to link with them give
14413 $WITH_NO
14414 as options to configure" >&2;}
14415 { (exit 1); exit 1; }; }
14419 ### Use -lgpm if available, unless `--with-gpm=no'.
14420 HAVE_GPM=no
14421 if test "${with_gpm}" != "no"; then
14422 if test "${ac_cv_header_gpm_h+set}" = set; then
14423 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14424 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_gpm_h+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14429 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14430 else
14431 # Is the header compilable?
14432 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14433 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14441 #include <gpm.h>
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_compile") 2>conftest.er1
14451 ac_status=$?
14452 grep -v '^ *+' conftest.er1 >conftest.err
14453 rm -f conftest.er1
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } && {
14457 test -z "$ac_c_werror_flag" ||
14458 test ! -s conftest.err
14459 } && test -s conftest.$ac_objext; then
14460 ac_header_compiler=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_header_compiler=no
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14470 echo "${ECHO_T}$ac_header_compiler" >&6; }
14472 # Is the header present?
14473 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14474 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 #include <gpm.h>
14482 _ACEOF
14483 if { (ac_try="$ac_cpp conftest.$ac_ext"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } >/dev/null && {
14496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 }; then
14499 ac_header_preproc=yes
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_header_preproc=no
14507 rm -f conftest.err conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14509 echo "${ECHO_T}$ac_header_preproc" >&6; }
14511 # So? What about this header?
14512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14513 yes:no: )
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14515 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14517 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14518 ac_header_preproc=yes
14520 no:yes:* )
14521 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14522 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14524 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14526 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14528 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14530 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14532 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14535 esac
14536 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14537 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14538 if test "${ac_cv_header_gpm_h+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 ac_cv_header_gpm_h=$ac_header_preproc
14543 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14544 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14547 if test $ac_cv_header_gpm_h = yes; then
14548 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14549 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14550 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553 ac_check_lib_save_LIBS=$LIBS
14554 LIBS="-lgpm $LIBS"
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14562 /* Override any GCC internal prototype to avoid an error.
14563 Use char because int might match the return type of a GCC
14564 builtin and then its argument prototype would still apply. */
14565 #ifdef __cplusplus
14566 extern "C"
14567 #endif
14568 char Gpm_Open ();
14570 main ()
14572 return Gpm_Open ();
14574 return 0;
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (ac_try="$ac_link"
14579 case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_link") 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } && {
14591 test -z "$ac_c_werror_flag" ||
14592 test ! -s conftest.err
14593 } && test -s conftest$ac_exeext &&
14594 $as_test_x conftest$ac_exeext; then
14595 ac_cv_lib_gpm_Gpm_Open=yes
14596 else
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 ac_cv_lib_gpm_Gpm_Open=no
14603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14604 conftest$ac_exeext conftest.$ac_ext
14605 LIBS=$ac_check_lib_save_LIBS
14607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14608 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14609 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14610 HAVE_GPM=yes
14618 if test "${HAVE_GPM}" = "yes"; then
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_GPM 1
14622 _ACEOF
14626 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14627 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14628 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14629 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14633 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14634 else
14635 # Is the header compilable?
14636 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14637 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14638 cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h. */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 $ac_includes_default
14645 #include <malloc/malloc.h>
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.$ac_objext; then
14664 ac_header_compiler=yes
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 ac_header_compiler=no
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14674 echo "${ECHO_T}$ac_header_compiler" >&6; }
14676 # Is the header present?
14677 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14678 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <malloc/malloc.h>
14686 _ACEOF
14687 if { (ac_try="$ac_cpp conftest.$ac_ext"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } >/dev/null && {
14700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14702 }; then
14703 ac_header_preproc=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_preproc=no
14711 rm -f conftest.err conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713 echo "${ECHO_T}$ac_header_preproc" >&6; }
14715 # So? What about this header?
14716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14717 yes:no: )
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14724 no:yes:* )
14725 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14726 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14728 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14730 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14732 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14734 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14736 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14739 esac
14740 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14741 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14742 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14747 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14751 if test $ac_cv_header_malloc_malloc_h = yes; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_MALLOC_MALLOC_H 1
14755 _ACEOF
14761 ### Use Mac OS X Carbon API to implement GUI.
14762 if test "${HAVE_CARBON}" = "yes"; then
14764 cat >>confdefs.h <<\_ACEOF
14765 #define HAVE_CARBON 1
14766 _ACEOF
14768 ## Specify the install directory
14769 carbon_appdir=
14770 if test "${carbon_appdir_x}" != ""; then
14771 case ${carbon_appdir_x} in
14772 y | ye | yes) carbon_appdir=/Applications ;;
14773 * ) carbon_appdir=${carbon_appdir_x} ;;
14774 esac
14776 # We also have mouse menus.
14777 HAVE_MENUS=yes
14780 ### Use session management (-lSM -lICE) if available
14781 HAVE_X_SM=no
14782 if test "${HAVE_X11}" = "yes"; then
14783 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14784 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14785 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14786 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14790 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14791 else
14792 # Is the header compilable?
14793 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14794 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14802 #include <X11/SM/SMlib.h>
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } && {
14818 test -z "$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 } && test -s conftest.$ac_objext; then
14821 ac_header_compiler=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_compiler=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14835 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <X11/SM/SMlib.h>
14843 _ACEOF
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null && {
14857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 }; then
14860 ac_header_preproc=yes
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_header_preproc=no
14868 rm -f conftest.err conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14870 echo "${ECHO_T}$ac_header_preproc" >&6; }
14872 # So? What about this header?
14873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14874 yes:no: )
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14879 ac_header_preproc=yes
14881 no:yes:* )
14882 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14883 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14885 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14887 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14889 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14891 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14893 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14896 esac
14897 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14898 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14899 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14904 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14905 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14908 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14909 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14910 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14911 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lSM -lICE $LIBS"
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14926 #ifdef __cplusplus
14927 extern "C"
14928 #endif
14929 char SmcOpenConnection ();
14931 main ()
14933 return SmcOpenConnection ();
14935 return 0;
14937 _ACEOF
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>conftest.er1
14946 ac_status=$?
14947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } && {
14952 test -z "$ac_c_werror_flag" ||
14953 test ! -s conftest.err
14954 } && test -s conftest$ac_exeext &&
14955 $as_test_x conftest$ac_exeext; then
14956 ac_cv_lib_SM_SmcOpenConnection=yes
14957 else
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_lib_SM_SmcOpenConnection=no
14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14968 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14969 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14970 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14971 HAVE_X_SM=yes
14978 if test "${HAVE_X_SM}" = "yes"; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_X_SM 1
14982 _ACEOF
14984 case "$LIBS" in
14985 *-lSM*) ;;
14986 *) LIBS="-lSM -lICE $LIBS" ;;
14987 esac
14991 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14992 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14993 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14994 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <netdb.h>
15005 main ()
15007 return h_errno;
15009 return 0;
15011 _ACEOF
15012 rm -f conftest.$ac_objext conftest$ac_exeext
15013 if { (ac_try="$ac_link"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_link") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && {
15026 test -z "$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 } && test -s conftest$ac_exeext &&
15029 $as_test_x conftest$ac_exeext; then
15030 emacs_cv_netdb_declares_h_errno=yes
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 emacs_cv_netdb_declares_h_errno=no
15038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15039 conftest$ac_exeext conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15042 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15043 if test $emacs_cv_netdb_declares_h_errno = yes; then
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_H_ERRNO 1
15047 _ACEOF
15051 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15052 # for constant arguments. Useless!
15053 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15054 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15055 if test "${ac_cv_working_alloca_h+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <alloca.h>
15066 main ()
15068 char *p = (char *) alloca (2 * sizeof (int));
15069 if (p) return 0;
15071 return 0;
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
15092 ac_cv_working_alloca_h=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_working_alloca_h=no
15100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15101 conftest$ac_exeext conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15104 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15105 if test $ac_cv_working_alloca_h = yes; then
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_ALLOCA_H 1
15109 _ACEOF
15113 { echo "$as_me:$LINENO: checking for alloca" >&5
15114 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15115 if test "${ac_cv_func_alloca_works+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h. */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 #ifdef __GNUC__
15125 # define alloca __builtin_alloca
15126 #else
15127 # ifdef _MSC_VER
15128 # include <malloc.h>
15129 # define alloca _alloca
15130 # else
15131 # ifdef HAVE_ALLOCA_H
15132 # include <alloca.h>
15133 # else
15134 # ifdef _AIX
15135 #pragma alloca
15136 # else
15137 # ifndef alloca /* predefined by HP cc +Olibcalls */
15138 char *alloca ();
15139 # endif
15140 # endif
15141 # endif
15142 # endif
15143 #endif
15146 main ()
15148 char *p = (char *) alloca (1);
15149 if (p) return 0;
15151 return 0;
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_func_alloca_works=yes
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_func_alloca_works=no
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15183 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15184 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15186 if test $ac_cv_func_alloca_works = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_ALLOCA 1
15190 _ACEOF
15192 else
15193 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15194 # that cause trouble. Some versions do not even contain alloca or
15195 # contain a buggy version. If you still want to use their alloca,
15196 # use ar to extract alloca.o from them instead of compiling alloca.c.
15198 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15200 cat >>confdefs.h <<\_ACEOF
15201 #define C_ALLOCA 1
15202 _ACEOF
15205 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15206 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15207 if test "${ac_cv_os_cray+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #if defined CRAY && ! defined CRAY2
15217 webecray
15218 #else
15219 wenotbecray
15220 #endif
15222 _ACEOF
15223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15224 $EGREP "webecray" >/dev/null 2>&1; then
15225 ac_cv_os_cray=yes
15226 else
15227 ac_cv_os_cray=no
15229 rm -f conftest*
15232 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15233 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15234 if test $ac_cv_os_cray = yes; then
15235 for ac_func in _getb67 GETB67 getb67; do
15236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15250 #define $ac_func innocuous_$ac_func
15252 /* System header to define __stub macros and hopefully few prototypes,
15253 which can conflict with char $ac_func (); below.
15254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255 <limits.h> exists even on freestanding compilers. */
15257 #ifdef __STDC__
15258 # include <limits.h>
15259 #else
15260 # include <assert.h>
15261 #endif
15263 #undef $ac_func
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char $ac_func ();
15272 /* The GNU C library defines this for functions which it implements
15273 to always fail with ENOSYS. Some functions are actually named
15274 something starting with __ and the normal name is an alias. */
15275 #if defined __stub_$ac_func || defined __stub___$ac_func
15276 choke me
15277 #endif
15280 main ()
15282 return $ac_func ();
15284 return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext 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>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 eval "$as_ac_var=yes"
15306 else
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15310 eval "$as_ac_var=no"
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15316 ac_res=`eval echo '${'$as_ac_var'}'`
15317 { echo "$as_me:$LINENO: result: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15319 if test `eval echo '${'$as_ac_var'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define CRAY_STACKSEG_END $ac_func
15323 _ACEOF
15325 break
15328 done
15331 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15332 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15333 if test "${ac_cv_c_stack_direction+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336 if test "$cross_compiling" = yes; then
15337 ac_cv_c_stack_direction=0
15338 else
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 $ac_includes_default
15347 find_stack_direction ()
15349 static char *addr = 0;
15350 auto char dummy;
15351 if (addr == 0)
15353 addr = &dummy;
15354 return find_stack_direction ();
15356 else
15357 return (&dummy > addr) ? 1 : -1;
15361 main ()
15363 return find_stack_direction () < 0;
15365 _ACEOF
15366 rm -f conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_link") 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15377 { (case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_try") 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_cv_c_stack_direction=1
15387 else
15388 echo "$as_me: program exited with status $ac_status" >&5
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ( exit $ac_status )
15393 ac_cv_c_stack_direction=-1
15395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15401 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15403 cat >>confdefs.h <<_ACEOF
15404 #define STACK_DIRECTION $ac_cv_c_stack_direction
15405 _ACEOF
15411 if test x"$ac_cv_func_alloca_works" != xyes; then
15412 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15413 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15414 { (exit 1); exit 1; }; }
15417 # fmod, logb, and frexp are found in -lm on most systems.
15418 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15420 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15421 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15422 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-lm $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char sqrt ();
15442 main ()
15444 return sqrt ();
15446 return 0;
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } && {
15463 test -z "$ac_c_werror_flag" ||
15464 test ! -s conftest.err
15465 } && test -s conftest$ac_exeext &&
15466 $as_test_x conftest$ac_exeext; then
15467 ac_cv_lib_m_sqrt=yes
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_lib_m_sqrt=no
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LIBS=$ac_check_lib_save_LIBS
15479 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15480 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15481 if test $ac_cv_lib_m_sqrt = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_LIBM 1
15484 _ACEOF
15486 LIBS="-lm $LIBS"
15491 # Check for mail-locking functions in a "mail" library. Probably this should
15492 # have the same check as for liblockfile below.
15494 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15495 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15496 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499 ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-lmail $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15508 /* Override any GCC internal prototype to avoid an error.
15509 Use char because int might match the return type of a GCC
15510 builtin and then its argument prototype would still apply. */
15511 #ifdef __cplusplus
15512 extern "C"
15513 #endif
15514 char maillock ();
15516 main ()
15518 return maillock ();
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (ac_try="$ac_link"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_link") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest$ac_exeext &&
15540 $as_test_x conftest$ac_exeext; then
15541 ac_cv_lib_mail_maillock=yes
15542 else
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_mail_maillock=no
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15550 conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_check_lib_save_LIBS
15553 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15554 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15555 if test $ac_cv_lib_mail_maillock = yes; then
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_LIBMAIL 1
15558 _ACEOF
15560 LIBS="-lmail $LIBS"
15565 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15566 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15567 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-llockfile $LIBS"
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char maillock ();
15587 main ()
15589 return maillock ();
15591 return 0;
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest$ac_exeext &&
15611 $as_test_x conftest$ac_exeext; then
15612 ac_cv_lib_lockfile_maillock=yes
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_lockfile_maillock=no
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15625 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15626 if test $ac_cv_lib_lockfile_maillock = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_LIBLOCKFILE 1
15629 _ACEOF
15631 LIBS="-llockfile $LIBS"
15635 # If we have the shared liblockfile, assume we must use it for mail
15636 # locking (e.g. Debian). If we couldn't link against liblockfile
15637 # (no liblockfile.a installed), ensure that we don't need to.
15638 if test "$ac_cv_lib_lockfile_maillock" = no; then
15639 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15640 set dummy liblockfile.so; ac_word=$2
15641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15643 if test "${ac_cv_prog_liblockfile+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646 if test -n "$liblockfile"; then
15647 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15648 else
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15651 for as_dir in $as_dummy
15653 IFS=$as_save_IFS
15654 test -z "$as_dir" && as_dir=.
15655 for ac_exec_ext in '' $ac_executable_extensions; do
15656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15657 ac_cv_prog_liblockfile="yes"
15658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15659 break 2
15661 done
15662 done
15663 IFS=$as_save_IFS
15665 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15668 liblockfile=$ac_cv_prog_liblockfile
15669 if test -n "$liblockfile"; then
15670 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15671 echo "${ECHO_T}$liblockfile" >&6; }
15672 else
15673 { echo "$as_me:$LINENO: result: no" >&5
15674 echo "${ECHO_T}no" >&6; }
15678 if test $ac_cv_prog_liblockfile = yes; then
15679 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15680 This probably means that movemail could lose mail.
15681 There may be a \`development' package to install containing liblockfile." >&5
15682 echo "$as_me: error: Shared liblockfile found but can't link against it.
15683 This probably means that movemail could lose mail.
15684 There may be a \`development' package to install containing liblockfile." >&2;}
15685 { (exit 1); exit 1; }; }
15686 else :
15690 for ac_func in touchlock
15692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15706 #define $ac_func innocuous_$ac_func
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func (); below.
15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15711 <limits.h> exists even on freestanding compilers. */
15713 #ifdef __STDC__
15714 # include <limits.h>
15715 #else
15716 # include <assert.h>
15717 #endif
15719 #undef $ac_func
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15724 #ifdef __cplusplus
15725 extern "C"
15726 #endif
15727 char $ac_func ();
15728 /* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731 #if defined __stub_$ac_func || defined __stub___$ac_func
15732 choke me
15733 #endif
15736 main ()
15738 return $ac_func ();
15740 return 0;
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_link") 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest$ac_exeext &&
15760 $as_test_x conftest$ac_exeext; then
15761 eval "$as_ac_var=yes"
15762 else
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 eval "$as_ac_var=no"
15769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15770 conftest$ac_exeext conftest.$ac_ext
15772 ac_res=`eval echo '${'$as_ac_var'}'`
15773 { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775 if test `eval echo '${'$as_ac_var'}'` = yes; then
15776 cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15778 _ACEOF
15781 done
15784 for ac_header in maillock.h
15786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15796 else
15797 # Is the header compilable?
15798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 $ac_includes_default
15807 #include <$ac_header>
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (ac_try="$ac_compile"
15811 case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15814 esac
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && {
15823 test -z "$ac_c_werror_flag" ||
15824 test ! -s conftest.err
15825 } && test -s conftest.$ac_objext; then
15826 ac_header_compiler=yes
15827 else
15828 echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15831 ac_header_compiler=no
15834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15836 echo "${ECHO_T}$ac_header_compiler" >&6; }
15838 # Is the header present?
15839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <$ac_header>
15848 _ACEOF
15849 if { (ac_try="$ac_cpp conftest.$ac_ext"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15856 ac_status=$?
15857 grep -v '^ *+' conftest.er1 >conftest.err
15858 rm -f conftest.er1
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } >/dev/null && {
15862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 }; then
15865 ac_header_preproc=yes
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_preproc=no
15873 rm -f conftest.err conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15875 echo "${ECHO_T}$ac_header_preproc" >&6; }
15877 # So? What about this header?
15878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15879 yes:no: )
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15884 ac_header_preproc=yes
15886 no:yes:* )
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15901 esac
15902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907 eval "$as_ac_Header=\$ac_header_preproc"
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15917 _ACEOF
15921 done
15992 for ac_func in gethostname getdomainname dup2 \
15993 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15994 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15995 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15996 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15997 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15998 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15999 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16000 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16016 #define $ac_func innocuous_$ac_func
16018 /* System header to define __stub macros and hopefully few prototypes,
16019 which can conflict with char $ac_func (); below.
16020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16021 <limits.h> exists even on freestanding compilers. */
16023 #ifdef __STDC__
16024 # include <limits.h>
16025 #else
16026 # include <assert.h>
16027 #endif
16029 #undef $ac_func
16031 /* Override any GCC internal prototype to avoid an error.
16032 Use char because int might match the return type of a GCC
16033 builtin and then its argument prototype would still apply. */
16034 #ifdef __cplusplus
16035 extern "C"
16036 #endif
16037 char $ac_func ();
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined __stub_$ac_func || defined __stub___$ac_func
16042 choke me
16043 #endif
16046 main ()
16048 return $ac_func ();
16050 return 0;
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (ac_try="$ac_link"
16055 case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_link") 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } && {
16067 test -z "$ac_c_werror_flag" ||
16068 test ! -s conftest.err
16069 } && test -s conftest$ac_exeext &&
16070 $as_test_x conftest$ac_exeext; then
16071 eval "$as_ac_var=yes"
16072 else
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 eval "$as_ac_var=no"
16079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16080 conftest$ac_exeext conftest.$ac_ext
16082 ac_res=`eval echo '${'$as_ac_var'}'`
16083 { echo "$as_me:$LINENO: result: $ac_res" >&5
16084 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_var'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16088 _ACEOF
16091 done
16095 for ac_header in sys/un.h
16097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106 echo "${ECHO_T}$ac_res" >&6; }
16107 else
16108 # Is the header compilable?
16109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h. */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 $ac_includes_default
16118 #include <$ac_header>
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } && {
16134 test -z "$ac_c_werror_flag" ||
16135 test ! -s conftest.err
16136 } && test -s conftest.$ac_objext; then
16137 ac_header_compiler=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_header_compiler=no
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16147 echo "${ECHO_T}$ac_header_compiler" >&6; }
16149 # Is the header present?
16150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 #include <$ac_header>
16159 _ACEOF
16160 if { (ac_try="$ac_cpp conftest.$ac_ext"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } >/dev/null && {
16173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 }; then
16176 ac_header_preproc=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_preproc=no
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16197 no:yes:* )
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16212 esac
16213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218 eval "$as_ac_Header=\$ac_header_preproc"
16220 ac_res=`eval echo '${'$as_ac_Header'}'`
16221 { echo "$as_me:$LINENO: result: $ac_res" >&5
16222 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16228 _ACEOF
16232 done
16239 for ac_header in $ac_header_list
16241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 ac_res=`eval echo '${'$as_ac_Header'}'`
16249 { echo "$as_me:$LINENO: result: $ac_res" >&5
16250 echo "${ECHO_T}$ac_res" >&6; }
16251 else
16252 # Is the header compilable?
16253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h. */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 $ac_includes_default
16262 #include <$ac_header>
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16281 ac_header_compiler=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_compiler=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291 echo "${ECHO_T}$ac_header_compiler" >&6; }
16293 # Is the header present?
16294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <$ac_header>
16303 _ACEOF
16304 if { (ac_try="$ac_cpp conftest.$ac_ext"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } >/dev/null && {
16317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 }; then
16320 ac_header_preproc=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_preproc=no
16328 rm -f conftest.err conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16330 echo "${ECHO_T}$ac_header_preproc" >&6; }
16332 # So? What about this header?
16333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16334 yes:no: )
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16339 ac_header_preproc=yes
16341 no:yes:* )
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16356 esac
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362 eval "$as_ac_Header=\$ac_header_preproc"
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16372 _ACEOF
16376 done
16386 for ac_func in $ac_func_list
16388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16402 #define $ac_func innocuous_$ac_func
16404 /* System header to define __stub macros and hopefully few prototypes,
16405 which can conflict with char $ac_func (); below.
16406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16407 <limits.h> exists even on freestanding compilers. */
16409 #ifdef __STDC__
16410 # include <limits.h>
16411 #else
16412 # include <assert.h>
16413 #endif
16415 #undef $ac_func
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char $ac_func ();
16424 /* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427 #if defined __stub_$ac_func || defined __stub___$ac_func
16428 choke me
16429 #endif
16432 main ()
16434 return $ac_func ();
16436 return 0;
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest$ac_exeext &&
16456 $as_test_x conftest$ac_exeext; then
16457 eval "$as_ac_var=yes"
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 eval "$as_ac_var=no"
16465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16466 conftest$ac_exeext conftest.$ac_ext
16468 ac_res=`eval echo '${'$as_ac_var'}'`
16469 { echo "$as_me:$LINENO: result: $ac_res" >&5
16470 echo "${ECHO_T}$ac_res" >&6; }
16471 if test `eval echo '${'$as_ac_var'}'` = yes; then
16472 cat >>confdefs.h <<_ACEOF
16473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16474 _ACEOF
16477 done
16495 { echo "$as_me:$LINENO: checking for working mktime" >&5
16496 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16497 if test "${ac_cv_func_working_mktime+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500 if test "$cross_compiling" = yes; then
16501 ac_cv_func_working_mktime=no
16502 else
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 /* Test program from Paul Eggert and Tony Leneis. */
16510 #ifdef TIME_WITH_SYS_TIME
16511 # include <sys/time.h>
16512 # include <time.h>
16513 #else
16514 # ifdef HAVE_SYS_TIME_H
16515 # include <sys/time.h>
16516 # else
16517 # include <time.h>
16518 # endif
16519 #endif
16521 #include <stdlib.h>
16523 #ifdef HAVE_UNISTD_H
16524 # include <unistd.h>
16525 #endif
16527 #ifndef HAVE_ALARM
16528 # define alarm(X) /* empty */
16529 #endif
16531 /* Work around redefinition to rpl_putenv by other config tests. */
16532 #undef putenv
16534 static time_t time_t_max;
16535 static time_t time_t_min;
16537 /* Values we'll use to set the TZ environment variable. */
16538 static char *tz_strings[] = {
16539 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16540 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16542 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16544 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16545 Based on a problem report from Andreas Jaeger. */
16546 static int
16547 spring_forward_gap ()
16549 /* glibc (up to about 1998-10-07) failed this test. */
16550 struct tm tm;
16552 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16553 instead of "TZ=America/Vancouver" in order to detect the bug even
16554 on systems that don't support the Olson extension, or don't have the
16555 full zoneinfo tables installed. */
16556 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16558 tm.tm_year = 98;
16559 tm.tm_mon = 3;
16560 tm.tm_mday = 5;
16561 tm.tm_hour = 2;
16562 tm.tm_min = 0;
16563 tm.tm_sec = 0;
16564 tm.tm_isdst = -1;
16565 return mktime (&tm) != (time_t) -1;
16568 static int
16569 mktime_test1 (now)
16570 time_t now;
16572 struct tm *lt;
16573 return ! (lt = localtime (&now)) || mktime (lt) == now;
16576 static int
16577 mktime_test (now)
16578 time_t now;
16580 return (mktime_test1 (now)
16581 && mktime_test1 ((time_t) (time_t_max - now))
16582 && mktime_test1 ((time_t) (time_t_min + now)));
16585 static int
16586 irix_6_4_bug ()
16588 /* Based on code from Ariel Faigon. */
16589 struct tm tm;
16590 tm.tm_year = 96;
16591 tm.tm_mon = 3;
16592 tm.tm_mday = 0;
16593 tm.tm_hour = 0;
16594 tm.tm_min = 0;
16595 tm.tm_sec = 0;
16596 tm.tm_isdst = -1;
16597 mktime (&tm);
16598 return tm.tm_mon == 2 && tm.tm_mday == 31;
16601 static int
16602 bigtime_test (j)
16603 int j;
16605 struct tm tm;
16606 time_t now;
16607 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16608 now = mktime (&tm);
16609 if (now != (time_t) -1)
16611 struct tm *lt = localtime (&now);
16612 if (! (lt
16613 && lt->tm_year == tm.tm_year
16614 && lt->tm_mon == tm.tm_mon
16615 && lt->tm_mday == tm.tm_mday
16616 && lt->tm_hour == tm.tm_hour
16617 && lt->tm_min == tm.tm_min
16618 && lt->tm_sec == tm.tm_sec
16619 && lt->tm_yday == tm.tm_yday
16620 && lt->tm_wday == tm.tm_wday
16621 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16622 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16623 return 0;
16625 return 1;
16628 static int
16629 year_2050_test ()
16631 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16632 ignoring leap seconds. */
16633 unsigned long int answer = 2527315200UL;
16635 struct tm tm;
16636 time_t t;
16637 tm.tm_year = 2050 - 1900;
16638 tm.tm_mon = 2 - 1;
16639 tm.tm_mday = 1;
16640 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16641 tm.tm_isdst = -1;
16643 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16644 instead of "TZ=America/Vancouver" in order to detect the bug even
16645 on systems that don't support the Olson extension, or don't have the
16646 full zoneinfo tables installed. */
16647 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16649 t = mktime (&tm);
16651 /* Check that the result is either a failure, or close enough
16652 to the correct answer that we can assume the discrepancy is
16653 due to leap seconds. */
16654 return (t == (time_t) -1
16655 || (0 < t && answer - 120 <= t && t <= answer + 120));
16659 main ()
16661 time_t t, delta;
16662 int i, j;
16664 /* This test makes some buggy mktime implementations loop.
16665 Give up after 60 seconds; a mktime slower than that
16666 isn't worth using anyway. */
16667 alarm (60);
16669 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16670 continue;
16671 time_t_max--;
16672 if ((time_t) -1 < 0)
16673 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16674 continue;
16675 delta = time_t_max / 997; /* a suitable prime number */
16676 for (i = 0; i < N_STRINGS; i++)
16678 if (tz_strings[i])
16679 putenv (tz_strings[i]);
16681 for (t = 0; t <= time_t_max - delta; t += delta)
16682 if (! mktime_test (t))
16683 return 1;
16684 if (! (mktime_test ((time_t) 1)
16685 && mktime_test ((time_t) (60 * 60))
16686 && mktime_test ((time_t) (60 * 60 * 24))))
16687 return 1;
16689 for (j = 1; 0 < j; j *= 2)
16690 if (! bigtime_test (j))
16691 return 1;
16692 if (! bigtime_test (j - 1))
16693 return 1;
16695 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16697 _ACEOF
16698 rm -f conftest$ac_exeext
16699 if { (ac_try="$ac_link"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_link") 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_cv_func_working_mktime=yes
16719 else
16720 echo "$as_me: program exited with status $ac_status" >&5
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ( exit $ac_status )
16725 ac_cv_func_working_mktime=no
16727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16733 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16734 if test $ac_cv_func_working_mktime = no; then
16735 case " $LIBOBJS " in
16736 *" mktime.$ac_objext "* ) ;;
16737 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16739 esac
16743 if test "$ac_cv_func_working_mktime" = no; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define BROKEN_MKTIME 1
16747 _ACEOF
16751 ac_have_func=no # yes means we've found a way to get the load average.
16753 # Make sure getloadavg.c is where it belongs, at configure-time.
16754 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16755 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16756 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16757 { (exit 1); exit 1; }; }
16759 ac_save_LIBS=$LIBS
16761 # Check for getloadavg, but be sure not to touch the cache variable.
16762 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16763 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16764 if test "${ac_cv_func_getloadavg+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16775 #define getloadavg innocuous_getloadavg
16777 /* System header to define __stub macros and hopefully few prototypes,
16778 which can conflict with char getloadavg (); below.
16779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16780 <limits.h> exists even on freestanding compilers. */
16782 #ifdef __STDC__
16783 # include <limits.h>
16784 #else
16785 # include <assert.h>
16786 #endif
16788 #undef getloadavg
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
16793 #ifdef __cplusplus
16794 extern "C"
16795 #endif
16796 char getloadavg ();
16797 /* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800 #if defined __stub_getloadavg || defined __stub___getloadavg
16801 choke me
16802 #endif
16805 main ()
16807 return getloadavg ();
16809 return 0;
16811 _ACEOF
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_link") 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest$ac_exeext &&
16829 $as_test_x conftest$ac_exeext; then
16830 ac_cv_func_getloadavg=yes
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_cv_func_getloadavg=no
16838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16839 conftest$ac_exeext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16843 if test $ac_cv_func_getloadavg = yes; then
16844 exit 0
16845 else
16846 exit 1
16848 ) && ac_have_func=yes
16850 # On HPUX9, an unprivileged user can get load averages through this function.
16852 for ac_func in pstat_getdynamic
16854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16868 #define $ac_func innocuous_$ac_func
16870 /* System header to define __stub macros and hopefully few prototypes,
16871 which can conflict with char $ac_func (); below.
16872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873 <limits.h> exists even on freestanding compilers. */
16875 #ifdef __STDC__
16876 # include <limits.h>
16877 #else
16878 # include <assert.h>
16879 #endif
16881 #undef $ac_func
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 char $ac_func ();
16890 /* The GNU C library defines this for functions which it implements
16891 to always fail with ENOSYS. Some functions are actually named
16892 something starting with __ and the normal name is an alias. */
16893 #if defined __stub_$ac_func || defined __stub___$ac_func
16894 choke me
16895 #endif
16898 main ()
16900 return $ac_func ();
16902 return 0;
16904 _ACEOF
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (ac_try="$ac_link"
16907 case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_link") 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest$ac_exeext &&
16922 $as_test_x conftest$ac_exeext; then
16923 eval "$as_ac_var=yes"
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 eval "$as_ac_var=no"
16931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16932 conftest$ac_exeext conftest.$ac_ext
16934 ac_res=`eval echo '${'$as_ac_var'}'`
16935 { echo "$as_me:$LINENO: result: $ac_res" >&5
16936 echo "${ECHO_T}$ac_res" >&6; }
16937 if test `eval echo '${'$as_ac_var'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16940 _ACEOF
16943 done
16946 # Solaris has libkstat which does not require root.
16948 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16949 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16950 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lkstat $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char kstat_open ();
16970 main ()
16972 return kstat_open ();
16974 return 0;
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest$ac_exeext &&
16994 $as_test_x conftest$ac_exeext; then
16995 ac_cv_lib_kstat_kstat_open=yes
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_lib_kstat_kstat_open=no
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17007 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17008 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17009 if test $ac_cv_lib_kstat_kstat_open = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_LIBKSTAT 1
17012 _ACEOF
17014 LIBS="-lkstat $LIBS"
17018 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17020 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17021 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17022 # to get the right answer into the cache.
17023 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17024 if test $ac_have_func = no; then
17025 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17026 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17027 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030 ac_check_lib_save_LIBS=$LIBS
17031 LIBS="-lelf $LIBS"
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char elf_begin ();
17047 main ()
17049 return elf_begin ();
17051 return 0;
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (ac_try="$ac_link"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext &&
17071 $as_test_x conftest$ac_exeext; then
17072 ac_cv_lib_elf_elf_begin=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_lib_elf_elf_begin=no
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17082 LIBS=$ac_check_lib_save_LIBS
17084 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17085 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17086 if test $ac_cv_lib_elf_elf_begin = yes; then
17087 LIBS="-lelf $LIBS"
17091 if test $ac_have_func = no; then
17092 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17093 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17094 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lkvm $LIBS"
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17109 #ifdef __cplusplus
17110 extern "C"
17111 #endif
17112 char kvm_open ();
17114 main ()
17116 return kvm_open ();
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } && {
17135 test -z "$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 } && test -s conftest$ac_exeext &&
17138 $as_test_x conftest$ac_exeext; then
17139 ac_cv_lib_kvm_kvm_open=yes
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_lib_kvm_kvm_open=no
17147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17151 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17152 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17153 if test $ac_cv_lib_kvm_kvm_open = yes; then
17154 LIBS="-lkvm $LIBS"
17157 # Check for the 4.4BSD definition of getloadavg.
17158 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17159 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17160 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163 ac_check_lib_save_LIBS=$LIBS
17164 LIBS="-lutil $LIBS"
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 char getloadavg ();
17180 main ()
17182 return getloadavg ();
17184 return 0;
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_link") 2>conftest.er1
17195 ac_status=$?
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest$ac_exeext &&
17204 $as_test_x conftest$ac_exeext; then
17205 ac_cv_lib_util_getloadavg=yes
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_util_getloadavg=no
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17217 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17218 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17219 if test $ac_cv_lib_util_getloadavg = yes; then
17220 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17225 if test $ac_have_func = no; then
17226 # There is a commonly available library for RS/6000 AIX.
17227 # Since it is not a standard part of AIX, it might be installed locally.
17228 ac_getloadavg_LIBS=$LIBS
17229 LIBS="-L/usr/local/lib $LIBS"
17230 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17231 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17232 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lgetloadavg $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char getloadavg ();
17252 main ()
17254 return getloadavg ();
17256 return 0;
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17267 ac_status=$?
17268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17277 ac_cv_lib_getloadavg_getloadavg=yes
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_lib_getloadavg_getloadavg=no
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17290 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17291 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17292 LIBS="-lgetloadavg $LIBS"
17293 else
17294 LIBS=$ac_getloadavg_LIBS
17299 # Make sure it is really in the library, if we think we found it,
17300 # otherwise set up the replacement function.
17302 for ac_func in getloadavg
17304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310 cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17318 #define $ac_func innocuous_$ac_func
17320 /* System header to define __stub macros and hopefully few prototypes,
17321 which can conflict with char $ac_func (); below.
17322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17323 <limits.h> exists even on freestanding compilers. */
17325 #ifdef __STDC__
17326 # include <limits.h>
17327 #else
17328 # include <assert.h>
17329 #endif
17331 #undef $ac_func
17333 /* Override any GCC internal prototype to avoid an error.
17334 Use char because int might match the return type of a GCC
17335 builtin and then its argument prototype would still apply. */
17336 #ifdef __cplusplus
17337 extern "C"
17338 #endif
17339 char $ac_func ();
17340 /* The GNU C library defines this for functions which it implements
17341 to always fail with ENOSYS. Some functions are actually named
17342 something starting with __ and the normal name is an alias. */
17343 #if defined __stub_$ac_func || defined __stub___$ac_func
17344 choke me
17345 #endif
17348 main ()
17350 return $ac_func ();
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 eval "$as_ac_var=yes"
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 eval "$as_ac_var=no"
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17384 ac_res=`eval echo '${'$as_ac_var'}'`
17385 { echo "$as_me:$LINENO: result: $ac_res" >&5
17386 echo "${ECHO_T}$ac_res" >&6; }
17387 if test `eval echo '${'$as_ac_var'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17390 _ACEOF
17392 else
17393 case " $LIBOBJS " in
17394 *" getloadavg.$ac_objext "* ) ;;
17395 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17397 esac
17400 cat >>confdefs.h <<\_ACEOF
17401 #define C_GETLOADAVG 1
17402 _ACEOF
17404 # Figure out what our getloadavg.c needs.
17405 ac_have_func=no
17406 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17407 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17408 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17409 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17413 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17414 else
17415 # Is the header compilable?
17416 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17417 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17418 cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h. */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 $ac_includes_default
17425 #include <sys/dg_sys_info.h>
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (ac_try="$ac_compile"
17429 case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_compile") 2>conftest.er1
17435 ac_status=$?
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && {
17441 test -z "$ac_c_werror_flag" ||
17442 test ! -s conftest.err
17443 } && test -s conftest.$ac_objext; then
17444 ac_header_compiler=yes
17445 else
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_header_compiler=no
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17454 echo "${ECHO_T}$ac_header_compiler" >&6; }
17456 # Is the header present?
17457 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17458 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 #include <sys/dg_sys_info.h>
17466 _ACEOF
17467 if { (ac_try="$ac_cpp conftest.$ac_ext"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } >/dev/null && {
17480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 }; then
17483 ac_header_preproc=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_preproc=no
17491 rm -f conftest.err conftest.$ac_ext
17492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17493 echo "${ECHO_T}$ac_header_preproc" >&6; }
17495 # So? What about this header?
17496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17497 yes:no: )
17498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17501 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17502 ac_header_preproc=yes
17504 no:yes:* )
17505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17506 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17507 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17508 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17509 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17510 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17512 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17514 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17516 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17519 esac
17520 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17521 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17522 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17527 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17528 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17531 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17532 ac_have_func=yes
17534 cat >>confdefs.h <<\_ACEOF
17535 #define DGUX 1
17536 _ACEOF
17539 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17540 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17541 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 ac_check_lib_save_LIBS=$LIBS
17545 LIBS="-ldgc $LIBS"
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char dg_sys_info ();
17561 main ()
17563 return dg_sys_info ();
17565 return 0;
17567 _ACEOF
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest$ac_exeext &&
17585 $as_test_x conftest$ac_exeext; then
17586 ac_cv_lib_dgc_dg_sys_info=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_lib_dgc_dg_sys_info=no
17594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17595 conftest$ac_exeext conftest.$ac_ext
17596 LIBS=$ac_check_lib_save_LIBS
17598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17599 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17600 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_LIBDGC 1
17603 _ACEOF
17605 LIBS="-ldgc $LIBS"
17613 if test "${ac_cv_header_locale_h+set}" = set; then
17614 { echo "$as_me:$LINENO: checking for locale.h" >&5
17615 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17616 if test "${ac_cv_header_locale_h+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17620 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17621 else
17622 # Is the header compilable?
17623 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17624 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 $ac_includes_default
17632 #include <locale.h>
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_compile") 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && {
17648 test -z "$ac_c_werror_flag" ||
17649 test ! -s conftest.err
17650 } && test -s conftest.$ac_objext; then
17651 ac_header_compiler=yes
17652 else
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_header_compiler=no
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17661 echo "${ECHO_T}$ac_header_compiler" >&6; }
17663 # Is the header present?
17664 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17665 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 #include <locale.h>
17673 _ACEOF
17674 if { (ac_try="$ac_cpp conftest.$ac_ext"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } >/dev/null && {
17687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 }; then
17690 ac_header_preproc=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_header_preproc=no
17698 rm -f conftest.err conftest.$ac_ext
17699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17700 echo "${ECHO_T}$ac_header_preproc" >&6; }
17702 # So? What about this header?
17703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17704 yes:no: )
17705 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17706 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17708 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17709 ac_header_preproc=yes
17711 no:yes:* )
17712 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17713 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17714 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17715 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17717 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17719 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17721 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17723 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17726 esac
17727 { echo "$as_me:$LINENO: checking for locale.h" >&5
17728 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17729 if test "${ac_cv_header_locale_h+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732 ac_cv_header_locale_h=$ac_header_preproc
17734 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17735 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17741 for ac_func in setlocale
17743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h. */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17757 #define $ac_func innocuous_$ac_func
17759 /* System header to define __stub macros and hopefully few prototypes,
17760 which can conflict with char $ac_func (); below.
17761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17762 <limits.h> exists even on freestanding compilers. */
17764 #ifdef __STDC__
17765 # include <limits.h>
17766 #else
17767 # include <assert.h>
17768 #endif
17770 #undef $ac_func
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17775 #ifdef __cplusplus
17776 extern "C"
17777 #endif
17778 char $ac_func ();
17779 /* The GNU C library defines this for functions which it implements
17780 to always fail with ENOSYS. Some functions are actually named
17781 something starting with __ and the normal name is an alias. */
17782 #if defined __stub_$ac_func || defined __stub___$ac_func
17783 choke me
17784 #endif
17787 main ()
17789 return $ac_func ();
17791 return 0;
17793 _ACEOF
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_link") 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest$ac_exeext &&
17811 $as_test_x conftest$ac_exeext; then
17812 eval "$as_ac_var=yes"
17813 else
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 eval "$as_ac_var=no"
17820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17821 conftest$ac_exeext conftest.$ac_ext
17823 ac_res=`eval echo '${'$as_ac_var'}'`
17824 { echo "$as_me:$LINENO: result: $ac_res" >&5
17825 echo "${ECHO_T}$ac_res" >&6; }
17826 if test `eval echo '${'$as_ac_var'}'` = yes; then
17827 cat >>confdefs.h <<_ACEOF
17828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17829 _ACEOF
17832 done
17835 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17836 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17837 # Irix 4.0.5F has the header but not the library.
17838 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17839 ac_have_func=yes
17841 cat >>confdefs.h <<\_ACEOF
17842 #define SVR4 1
17843 _ACEOF
17847 if test $ac_have_func = no; then
17848 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17849 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17850 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17851 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17855 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17856 else
17857 # Is the header compilable?
17858 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17859 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 $ac_includes_default
17867 #include <inq_stats/cpustats.h>
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_compile") 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest.$ac_objext; then
17886 ac_header_compiler=yes
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 ac_header_compiler=no
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17896 echo "${ECHO_T}$ac_header_compiler" >&6; }
17898 # Is the header present?
17899 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17900 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <inq_stats/cpustats.h>
17908 _ACEOF
17909 if { (ac_try="$ac_cpp conftest.$ac_ext"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } >/dev/null && {
17922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 }; then
17925 ac_header_preproc=yes
17926 else
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_preproc=no
17933 rm -f conftest.err conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17935 echo "${ECHO_T}$ac_header_preproc" >&6; }
17937 # So? What about this header?
17938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 yes:no: )
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17943 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17944 ac_header_preproc=yes
17946 no:yes:* )
17947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17948 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17950 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17952 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17954 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17955 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17956 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17957 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17958 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17961 esac
17962 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17963 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17964 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17969 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17970 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17973 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17974 ac_have_func=yes
17976 cat >>confdefs.h <<\_ACEOF
17977 #define UMAX 1
17978 _ACEOF
17981 cat >>confdefs.h <<\_ACEOF
17982 #define UMAX4_3 1
17983 _ACEOF
17990 if test $ac_have_func = no; then
17991 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17992 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17993 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17994 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17998 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17999 else
18000 # Is the header compilable?
18001 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18002 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h. */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 $ac_includes_default
18010 #include <sys/cpustats.h>
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest.$ac_objext; then
18029 ac_header_compiler=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_header_compiler=no
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18039 echo "${ECHO_T}$ac_header_compiler" >&6; }
18041 # Is the header present?
18042 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18043 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <sys/cpustats.h>
18051 _ACEOF
18052 if { (ac_try="$ac_cpp conftest.$ac_ext"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } >/dev/null && {
18065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 }; then
18068 ac_header_preproc=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_preproc=no
18076 rm -f conftest.err conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18078 echo "${ECHO_T}$ac_header_preproc" >&6; }
18080 # So? What about this header?
18081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18082 yes:no: )
18083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18087 ac_header_preproc=yes
18089 no:yes:* )
18090 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18091 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18093 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18095 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18097 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18099 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18101 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18104 esac
18105 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18106 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18107 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18113 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18116 if test $ac_cv_header_sys_cpustats_h = yes; then
18117 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18118 #define UMAX 1
18119 _ACEOF
18126 if test $ac_have_func = no; then
18128 for ac_header in mach/mach.h
18130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 ac_res=`eval echo '${'$as_ac_Header'}'`
18138 { echo "$as_me:$LINENO: result: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18140 else
18141 # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <$ac_header>
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 ac_header_compiler=yes
18171 else
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_header_compiler=no
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18180 echo "${ECHO_T}$ac_header_compiler" >&6; }
18182 # Is the header present?
18183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <$ac_header>
18192 _ACEOF
18193 if { (ac_try="$ac_cpp conftest.$ac_ext"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } >/dev/null && {
18206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 }; then
18209 ac_header_preproc=yes
18210 else
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_preproc=no
18217 rm -f conftest.err conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18219 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221 # So? What about this header?
18222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18223 yes:no: )
18224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18228 ac_header_preproc=yes
18230 no:yes:* )
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18245 esac
18246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 eval "$as_ac_Header=\$ac_header_preproc"
18253 ac_res=`eval echo '${'$as_ac_Header'}'`
18254 { echo "$as_me:$LINENO: result: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18261 _ACEOF
18265 done
18270 for ac_header in nlist.h
18272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 ac_res=`eval echo '${'$as_ac_Header'}'`
18280 { echo "$as_me:$LINENO: result: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18282 else
18283 # Is the header compilable?
18284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h. */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 $ac_includes_default
18293 #include <$ac_header>
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_compile") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest.$ac_objext; then
18312 ac_header_compiler=yes
18313 else
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_header_compiler=no
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18322 echo "${ECHO_T}$ac_header_compiler" >&6; }
18324 # Is the header present?
18325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 #include <$ac_header>
18334 _ACEOF
18335 if { (ac_try="$ac_cpp conftest.$ac_ext"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } >/dev/null && {
18348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 }; then
18351 ac_header_preproc=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_preproc=no
18359 rm -f conftest.err conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18361 echo "${ECHO_T}$ac_header_preproc" >&6; }
18363 # So? What about this header?
18364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18365 yes:no: )
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18370 ac_header_preproc=yes
18372 no:yes:* )
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18387 esac
18388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 eval "$as_ac_Header=\$ac_header_preproc"
18395 ac_res=`eval echo '${'$as_ac_Header'}'`
18396 { echo "$as_me:$LINENO: result: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18403 _ACEOF
18404 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18405 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18406 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 #include <nlist.h>
18418 main ()
18420 static struct nlist ac_aggr;
18421 if (ac_aggr.n_un.n_name)
18422 return 0;
18424 return 0;
18426 _ACEOF
18427 rm -f conftest.$ac_objext
18428 if { (ac_try="$ac_compile"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_compile") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest.$ac_objext; then
18444 ac_cv_member_struct_nlist_n_un_n_name=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18455 #include <nlist.h>
18458 main ()
18460 static struct nlist ac_aggr;
18461 if (sizeof ac_aggr.n_un.n_name)
18462 return 0;
18464 return 0;
18466 _ACEOF
18467 rm -f conftest.$ac_objext
18468 if { (ac_try="$ac_compile"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_compile") 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest.$ac_objext; then
18484 ac_cv_member_struct_nlist_n_un_n_name=yes
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_member_struct_nlist_n_un_n_name=no
18492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18498 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18499 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18503 _ACEOF
18506 cat >>confdefs.h <<\_ACEOF
18507 #define NLIST_NAME_UNION 1
18508 _ACEOF
18515 done
18518 done
18521 # Some definitions of getloadavg require that the program be installed setgid.
18522 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18523 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18524 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18534 #ifdef LDAV_PRIVILEGED
18535 Yowza Am I SETGID yet
18536 #endif
18537 _ACEOF
18538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18539 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18540 ac_cv_func_getloadavg_setgid=yes
18541 else
18542 ac_cv_func_getloadavg_setgid=no
18544 rm -f conftest*
18547 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18548 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18549 if test $ac_cv_func_getloadavg_setgid = yes; then
18550 NEED_SETGID=true
18552 cat >>confdefs.h <<\_ACEOF
18553 #define GETLOADAVG_PRIVILEGED 1
18554 _ACEOF
18556 else
18557 NEED_SETGID=false
18560 if test $ac_cv_func_getloadavg_setgid = yes; then
18561 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18562 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18563 if test "${ac_cv_group_kmem+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18567 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18568 # If we got an error (system does not support symlinks), try without -L.
18569 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18570 ac_cv_group_kmem=`echo $ac_ls_output \
18571 | sed -ne 's/[ ][ ]*/ /g;
18572 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18573 / /s/.* //;p;'`
18576 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18577 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18578 KMEM_GROUP=$ac_cv_group_kmem
18580 if test "x$ac_save_LIBS" = x; then
18581 GETLOADAVG_LIBS=$LIBS
18582 else
18583 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18585 LIBS=$ac_save_LIBS
18589 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18590 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18591 if test "${ac_cv_sys_largefile_source+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594 while :; do
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <stdio.h>
18603 main ()
18605 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18607 return 0;
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext &&
18627 $as_test_x conftest$ac_exeext; then
18628 ac_cv_sys_largefile_source=no; break
18629 else
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18637 conftest$ac_exeext conftest.$ac_ext
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h. */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 #define _LARGEFILE_SOURCE 1
18645 #include <stdio.h>
18647 main ()
18649 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18651 return 0;
18653 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (ac_try="$ac_link"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_link") 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && {
18668 test -z "$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 } && test -s conftest$ac_exeext &&
18671 $as_test_x conftest$ac_exeext; then
18672 ac_cv_sys_largefile_source=1; break
18673 else
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18681 conftest$ac_exeext conftest.$ac_ext
18682 ac_cv_sys_largefile_source=unknown
18683 break
18684 done
18686 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18687 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18688 case $ac_cv_sys_largefile_source in #(
18689 no | unknown) ;;
18691 cat >>confdefs.h <<_ACEOF
18692 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18693 _ACEOF
18695 esac
18696 rm -f conftest*
18698 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18699 # in glibc 2.1.3, but that breaks too many other things.
18700 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18701 if test $ac_cv_sys_largefile_source != unknown; then
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE_FSEEKO 1
18705 _ACEOF
18710 # Configure getopt.
18711 # getopt.m4 serial 10
18713 # The getopt module assume you want GNU getopt, with getopt_long etc,
18714 # rather than vanilla POSIX getopt. This means your your code should
18715 # always include <getopt.h> for the getopt prototypes.
18727 # Prerequisites of lib/getopt*.
18732 GETOPT_H=
18734 for ac_header in getopt.h
18736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 ac_res=`eval echo '${'$as_ac_Header'}'`
18744 { echo "$as_me:$LINENO: result: $ac_res" >&5
18745 echo "${ECHO_T}$ac_res" >&6; }
18746 else
18747 # Is the header compilable?
18748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h. */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 $ac_includes_default
18757 #include <$ac_header>
18758 _ACEOF
18759 rm -f conftest.$ac_objext
18760 if { (ac_try="$ac_compile"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_compile") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest.$ac_objext; then
18776 ac_header_compiler=yes
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 ac_header_compiler=no
18784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18786 echo "${ECHO_T}$ac_header_compiler" >&6; }
18788 # Is the header present?
18789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18791 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h. */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 #include <$ac_header>
18798 _ACEOF
18799 if { (ac_try="$ac_cpp conftest.$ac_ext"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18806 ac_status=$?
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } >/dev/null && {
18812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 }; then
18815 ac_header_preproc=yes
18816 else
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_header_preproc=no
18823 rm -f conftest.err conftest.$ac_ext
18824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18825 echo "${ECHO_T}$ac_header_preproc" >&6; }
18827 # So? What about this header?
18828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18829 yes:no: )
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18834 ac_header_preproc=yes
18836 no:yes:* )
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18851 esac
18852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857 eval "$as_ac_Header=\$ac_header_preproc"
18859 ac_res=`eval echo '${'$as_ac_Header'}'`
18860 { echo "$as_me:$LINENO: result: $ac_res" >&5
18861 echo "${ECHO_T}$ac_res" >&6; }
18864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18865 cat >>confdefs.h <<_ACEOF
18866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18867 _ACEOF
18869 else
18870 GETOPT_H=getopt.h
18873 done
18875 if test -z "$GETOPT_H"; then
18877 for ac_func in getopt_long_only
18879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885 cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h. */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18893 #define $ac_func innocuous_$ac_func
18895 /* System header to define __stub macros and hopefully few prototypes,
18896 which can conflict with char $ac_func (); below.
18897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18898 <limits.h> exists even on freestanding compilers. */
18900 #ifdef __STDC__
18901 # include <limits.h>
18902 #else
18903 # include <assert.h>
18904 #endif
18906 #undef $ac_func
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 char $ac_func ();
18915 /* The GNU C library defines this for functions which it implements
18916 to always fail with ENOSYS. Some functions are actually named
18917 something starting with __ and the normal name is an alias. */
18918 #if defined __stub_$ac_func || defined __stub___$ac_func
18919 choke me
18920 #endif
18923 main ()
18925 return $ac_func ();
18927 return 0;
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext &&
18947 $as_test_x conftest$ac_exeext; then
18948 eval "$as_ac_var=yes"
18949 else
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 eval "$as_ac_var=no"
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957 conftest$ac_exeext conftest.$ac_ext
18959 ac_res=`eval echo '${'$as_ac_var'}'`
18960 { echo "$as_me:$LINENO: result: $ac_res" >&5
18961 echo "${ECHO_T}$ac_res" >&6; }
18962 if test `eval echo '${'$as_ac_var'}'` = yes; then
18963 cat >>confdefs.h <<_ACEOF
18964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18965 _ACEOF
18967 else
18968 GETOPT_H=getopt.h
18970 done
18974 if test -z "$GETOPT_H"; then
18975 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18976 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18977 if test "${ac_cv_have_decl_optreset+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h. */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <getopt.h>
18989 main ()
18991 #ifndef optreset
18992 (void) optreset;
18993 #endif
18996 return 0;
18998 _ACEOF
18999 rm -f conftest.$ac_objext
19000 if { (ac_try="$ac_compile"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_compile") 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest.$ac_objext; then
19016 ac_cv_have_decl_optreset=yes
19017 else
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ac_cv_have_decl_optreset=no
19024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19026 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19027 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19028 if test $ac_cv_have_decl_optreset = yes; then
19029 GETOPT_H=getopt.h
19034 if test -z "$GETOPT_H"; then
19035 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19036 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19037 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040 if test "$cross_compiling" = yes; then
19041 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19042 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19043 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h. */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 #include <getopt.h>
19055 main ()
19057 #ifndef getopt_clip
19058 (void) getopt_clip;
19059 #endif
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest.$ac_objext; then
19082 ac_cv_have_decl_getopt_clip=yes
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_have_decl_getopt_clip=no
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19093 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19094 if test $ac_cv_have_decl_getopt_clip = yes; then
19095 gl_cv_func_gnu_getopt=no
19096 else
19097 gl_cv_func_gnu_getopt=yes
19100 else
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <getopt.h>
19109 main ()
19112 char *myargv[3];
19113 myargv[0] = "conftest";
19114 myargv[1] = "-+";
19115 myargv[2] = 0;
19116 return getopt (2, myargv, "+a") != '?';
19119 return 0;
19121 _ACEOF
19122 rm -f conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 gl_cv_func_gnu_getopt=yes
19143 else
19144 echo "$as_me: program exited with status $ac_status" >&5
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ( exit $ac_status )
19149 gl_cv_func_gnu_getopt=no
19151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19157 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19158 if test "$gl_cv_func_gnu_getopt" = "no"; then
19159 GETOPT_H=getopt.h
19165 if test -n "$GETOPT_H"; then
19168 GETOPT_H=getopt.h
19170 cat >>confdefs.h <<\_ACEOF
19171 #define __GETOPT_PREFIX rpl_
19172 _ACEOF
19177 GETOPTOBJS='getopt.o getopt1.o'
19184 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19185 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19186 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189 # Use it with a single arg.
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19198 main ()
19200 getpgrp (0);
19202 return 0;
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 ac_cv_func_getpgrp_void=no
19223 else
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_func_getpgrp_void=yes
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19234 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19235 if test $ac_cv_func_getpgrp_void = yes; then
19237 cat >>confdefs.h <<\_ACEOF
19238 #define GETPGRP_VOID 1
19239 _ACEOF
19245 for ac_func in strftime
19247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define $ac_func innocuous_$ac_func
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19268 #ifdef __STDC__
19269 # include <limits.h>
19270 #else
19271 # include <assert.h>
19272 #endif
19274 #undef $ac_func
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 char $ac_func ();
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined __stub_$ac_func || defined __stub___$ac_func
19287 choke me
19288 #endif
19291 main ()
19293 return $ac_func ();
19295 return 0;
19297 _ACEOF
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest$ac_exeext &&
19315 $as_test_x conftest$ac_exeext; then
19316 eval "$as_ac_var=yes"
19317 else
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 eval "$as_ac_var=no"
19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19325 conftest$ac_exeext conftest.$ac_ext
19327 ac_res=`eval echo '${'$as_ac_var'}'`
19328 { echo "$as_me:$LINENO: result: $ac_res" >&5
19329 echo "${ECHO_T}$ac_res" >&6; }
19330 if test `eval echo '${'$as_ac_var'}'` = yes; then
19331 cat >>confdefs.h <<_ACEOF
19332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19333 _ACEOF
19335 else
19336 # strftime is in -lintl on SCO UNIX.
19337 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19338 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19339 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342 ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-lintl $LIBS"
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19354 #ifdef __cplusplus
19355 extern "C"
19356 #endif
19357 char strftime ();
19359 main ()
19361 return strftime ();
19363 return 0;
19365 _ACEOF
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (ac_try="$ac_link"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_link") 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest$ac_exeext &&
19383 $as_test_x conftest$ac_exeext; then
19384 ac_cv_lib_intl_strftime=yes
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_lib_intl_strftime=no
19392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19396 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19397 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19398 if test $ac_cv_lib_intl_strftime = yes; then
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_STRFTIME 1
19401 _ACEOF
19403 LIBS="-lintl $LIBS"
19407 done
19410 # UNIX98 PTYs.
19412 for ac_func in grantpt
19414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428 #define $ac_func innocuous_$ac_func
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19435 #ifdef __STDC__
19436 # include <limits.h>
19437 #else
19438 # include <assert.h>
19439 #endif
19441 #undef $ac_func
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 char $ac_func ();
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined __stub_$ac_func || defined __stub___$ac_func
19454 choke me
19455 #endif
19458 main ()
19460 return $ac_func ();
19462 return 0;
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 eval "$as_ac_var=yes"
19484 else
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 eval "$as_ac_var=no"
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19494 ac_res=`eval echo '${'$as_ac_var'}'`
19495 { echo "$as_me:$LINENO: result: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19497 if test `eval echo '${'$as_ac_var'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19500 _ACEOF
19503 done
19506 # PTY-related GNU extensions.
19508 for ac_func in getpt
19510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19524 #define $ac_func innocuous_$ac_func
19526 /* System header to define __stub macros and hopefully few prototypes,
19527 which can conflict with char $ac_func (); below.
19528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19529 <limits.h> exists even on freestanding compilers. */
19531 #ifdef __STDC__
19532 # include <limits.h>
19533 #else
19534 # include <assert.h>
19535 #endif
19537 #undef $ac_func
19539 /* Override any GCC internal prototype to avoid an error.
19540 Use char because int might match the return type of a GCC
19541 builtin and then its argument prototype would still apply. */
19542 #ifdef __cplusplus
19543 extern "C"
19544 #endif
19545 char $ac_func ();
19546 /* The GNU C library defines this for functions which it implements
19547 to always fail with ENOSYS. Some functions are actually named
19548 something starting with __ and the normal name is an alias. */
19549 #if defined __stub_$ac_func || defined __stub___$ac_func
19550 choke me
19551 #endif
19554 main ()
19556 return $ac_func ();
19558 return 0;
19560 _ACEOF
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_link") 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest$ac_exeext &&
19578 $as_test_x conftest$ac_exeext; then
19579 eval "$as_ac_var=yes"
19580 else
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 eval "$as_ac_var=no"
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19590 ac_res=`eval echo '${'$as_ac_var'}'`
19591 { echo "$as_me:$LINENO: result: $ac_res" >&5
19592 echo "${ECHO_T}$ac_res" >&6; }
19593 if test `eval echo '${'$as_ac_var'}'` = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19596 _ACEOF
19599 done
19602 # Check this now, so that we will NOT find the above functions in ncurses.
19603 # That is because we have not set up to link ncurses in lib-src.
19604 # It's better to believe a function is not available
19605 # than to expect to find it in ncurses.
19607 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19608 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19609 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lncurses $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19624 #ifdef __cplusplus
19625 extern "C"
19626 #endif
19627 char tparm ();
19629 main ()
19631 return tparm ();
19633 return 0;
19635 _ACEOF
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_ncurses_tparm=yes
19655 else
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_ncurses_tparm=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19667 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19668 if test $ac_cv_lib_ncurses_tparm = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBNCURSES 1
19671 _ACEOF
19673 LIBS="-lncurses $LIBS"
19678 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19680 resolv=no
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <netinet/in.h>
19688 #include <arpa/nameser.h>
19689 #include <resolv.h>
19691 main ()
19693 return res_init();
19695 return 0;
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 have_res_init=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 have_res_init=no
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 if test "$have_res_init" = no; then
19727 OLIBS="$LIBS"
19728 LIBS="$LIBS -lresolv"
19729 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19730 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <netinet/in.h>
19738 #include <arpa/nameser.h>
19739 #include <resolv.h>
19741 main ()
19743 return res_init();
19745 return 0;
19747 _ACEOF
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19756 ac_status=$?
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19766 have_res_init=yes
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 have_res_init=no
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775 conftest$ac_exeext conftest.$ac_ext
19776 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19777 echo "${ECHO_T}$have_res_init" >&6; }
19778 if test "$have_res_init" = yes ; then
19779 resolv=yes
19781 LIBS="$OLIBS"
19784 if test "$have_res_init" = yes; then
19786 cat >>confdefs.h <<\_ACEOF
19787 #define HAVE_RES_INIT 1
19788 _ACEOF
19792 # Do we need the Hesiod library to provide the support routines?
19793 if test "$with_hesiod" = yes ; then
19794 # Don't set $LIBS here -- see comments above.
19795 { echo "$as_me:$LINENO: checking for res_send" >&5
19796 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19797 if test "${ac_cv_func_res_send+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 else
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h. */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19808 #define res_send innocuous_res_send
19810 /* System header to define __stub macros and hopefully few prototypes,
19811 which can conflict with char res_send (); below.
19812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19813 <limits.h> exists even on freestanding compilers. */
19815 #ifdef __STDC__
19816 # include <limits.h>
19817 #else
19818 # include <assert.h>
19819 #endif
19821 #undef res_send
19823 /* Override any GCC internal prototype to avoid an error.
19824 Use char because int might match the return type of a GCC
19825 builtin and then its argument prototype would still apply. */
19826 #ifdef __cplusplus
19827 extern "C"
19828 #endif
19829 char res_send ();
19830 /* The GNU C library defines this for functions which it implements
19831 to always fail with ENOSYS. Some functions are actually named
19832 something starting with __ and the normal name is an alias. */
19833 #if defined __stub_res_send || defined __stub___res_send
19834 choke me
19835 #endif
19838 main ()
19840 return res_send ();
19842 return 0;
19844 _ACEOF
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (ac_try="$ac_link"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_link") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest$ac_exeext &&
19862 $as_test_x conftest$ac_exeext; then
19863 ac_cv_func_res_send=yes
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_func_res_send=no
19871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19872 conftest$ac_exeext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19875 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19876 if test $ac_cv_func_res_send = yes; then
19878 else
19879 { echo "$as_me:$LINENO: checking for __res_send" >&5
19880 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19881 if test "${ac_cv_func___res_send+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892 #define __res_send innocuous___res_send
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char __res_send (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19899 #ifdef __STDC__
19900 # include <limits.h>
19901 #else
19902 # include <assert.h>
19903 #endif
19905 #undef __res_send
19907 /* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 char __res_send ();
19914 /* The GNU C library defines this for functions which it implements
19915 to always fail with ENOSYS. Some functions are actually named
19916 something starting with __ and the normal name is an alias. */
19917 #if defined __stub___res_send || defined __stub_____res_send
19918 choke me
19919 #endif
19922 main ()
19924 return __res_send ();
19926 return 0;
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_func___res_send=yes
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_func___res_send=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19958 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19959 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19960 if test $ac_cv_func___res_send = yes; then
19962 else
19963 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19964 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19965 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lresolv $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h. */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19980 #ifdef __cplusplus
19981 extern "C"
19982 #endif
19983 char res_send ();
19985 main ()
19987 return res_send ();
19989 return 0;
19991 _ACEOF
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 ac_cv_lib_resolv_res_send=yes
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_cv_lib_resolv_res_send=no
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20022 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20023 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20024 if test $ac_cv_lib_resolv_res_send = yes; then
20025 resolv=yes
20026 else
20027 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20028 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20029 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032 ac_check_lib_save_LIBS=$LIBS
20033 LIBS="-lresolv $LIBS"
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 char __res_send ();
20049 main ()
20051 return __res_send ();
20053 return 0;
20055 _ACEOF
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (ac_try="$ac_link"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_link") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest$ac_exeext &&
20073 $as_test_x conftest$ac_exeext; then
20074 ac_cv_lib_resolv___res_send=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_lib_resolv___res_send=no
20082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20087 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20088 if test $ac_cv_lib_resolv___res_send = yes; then
20089 resolv=yes
20098 if test "$resolv" = yes ; then
20099 RESOLVLIB=-lresolv
20100 else
20101 RESOLVLIB=
20103 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20104 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20105 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20116 #define hes_getmailhost innocuous_hes_getmailhost
20118 /* System header to define __stub macros and hopefully few prototypes,
20119 which can conflict with char hes_getmailhost (); below.
20120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121 <limits.h> exists even on freestanding compilers. */
20123 #ifdef __STDC__
20124 # include <limits.h>
20125 #else
20126 # include <assert.h>
20127 #endif
20129 #undef hes_getmailhost
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 char hes_getmailhost ();
20138 /* The GNU C library defines this for functions which it implements
20139 to always fail with ENOSYS. Some functions are actually named
20140 something starting with __ and the normal name is an alias. */
20141 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20142 choke me
20143 #endif
20146 main ()
20148 return hes_getmailhost ();
20150 return 0;
20152 _ACEOF
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (ac_try="$ac_link"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_link") 2>conftest.er1
20161 ac_status=$?
20162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } && {
20167 test -z "$ac_c_werror_flag" ||
20168 test ! -s conftest.err
20169 } && test -s conftest$ac_exeext &&
20170 $as_test_x conftest$ac_exeext; then
20171 ac_cv_func_hes_getmailhost=yes
20172 else
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_cv_func_hes_getmailhost=no
20179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20180 conftest$ac_exeext conftest.$ac_ext
20182 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20183 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20184 if test $ac_cv_func_hes_getmailhost = yes; then
20186 else
20187 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20188 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20189 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192 ac_check_lib_save_LIBS=$LIBS
20193 LIBS="-lhesiod $RESOLVLIB $LIBS"
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20201 /* Override any GCC internal prototype to avoid an error.
20202 Use char because int might match the return type of a GCC
20203 builtin and then its argument prototype would still apply. */
20204 #ifdef __cplusplus
20205 extern "C"
20206 #endif
20207 char hes_getmailhost ();
20209 main ()
20211 return hes_getmailhost ();
20213 return 0;
20215 _ACEOF
20216 rm -f conftest.$ac_objext conftest$ac_exeext
20217 if { (ac_try="$ac_link"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_link") 2>conftest.er1
20224 ac_status=$?
20225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && {
20230 test -z "$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20232 } && test -s conftest$ac_exeext &&
20233 $as_test_x conftest$ac_exeext; then
20234 ac_cv_lib_hesiod_hes_getmailhost=yes
20235 else
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_cv_lib_hesiod_hes_getmailhost=no
20242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20243 conftest$ac_exeext conftest.$ac_ext
20244 LIBS=$ac_check_lib_save_LIBS
20246 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20247 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20248 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LIBHESIOD 1
20252 _ACEOF
20254 else
20262 # Do we need libresolv (due to res_init or Hesiod)?
20263 if test "$resolv" = yes ; then
20265 cat >>confdefs.h <<\_ACEOF
20266 #define HAVE_LIBRESOLV 1
20267 _ACEOF
20271 # These tell us which Kerberos-related libraries to use.
20272 if test "${with_kerberos+set}" = set; then
20274 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20275 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20276 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-lcom_err $LIBS"
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h. */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20288 /* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20291 #ifdef __cplusplus
20292 extern "C"
20293 #endif
20294 char com_err ();
20296 main ()
20298 return com_err ();
20300 return 0;
20302 _ACEOF
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest$ac_exeext &&
20320 $as_test_x conftest$ac_exeext; then
20321 ac_cv_lib_com_err_com_err=yes
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_cv_lib_com_err_com_err=no
20329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20330 conftest$ac_exeext conftest.$ac_ext
20331 LIBS=$ac_check_lib_save_LIBS
20333 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20334 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20335 if test $ac_cv_lib_com_err_com_err = yes; then
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_LIBCOM_ERR 1
20338 _ACEOF
20340 LIBS="-lcom_err $LIBS"
20345 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20346 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20347 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350 ac_check_lib_save_LIBS=$LIBS
20351 LIBS="-lk5crypto $LIBS"
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h. */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20359 /* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20362 #ifdef __cplusplus
20363 extern "C"
20364 #endif
20365 char mit_des_cbc_encrypt ();
20367 main ()
20369 return mit_des_cbc_encrypt ();
20371 return 0;
20373 _ACEOF
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } && {
20388 test -z "$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 } && test -s conftest$ac_exeext &&
20391 $as_test_x conftest$ac_exeext; then
20392 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20393 else
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20401 conftest$ac_exeext conftest.$ac_ext
20402 LIBS=$ac_check_lib_save_LIBS
20404 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20405 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20406 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20407 cat >>confdefs.h <<_ACEOF
20408 #define HAVE_LIBK5CRYPTO 1
20409 _ACEOF
20411 LIBS="-lk5crypto $LIBS"
20416 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20417 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20418 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lcrypto $LIBS"
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 /* Override any GCC internal prototype to avoid an error.
20431 Use char because int might match the return type of a GCC
20432 builtin and then its argument prototype would still apply. */
20433 #ifdef __cplusplus
20434 extern "C"
20435 #endif
20436 char mit_des_cbc_encrypt ();
20438 main ()
20440 return mit_des_cbc_encrypt ();
20442 return 0;
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext &&
20462 $as_test_x conftest$ac_exeext; then
20463 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20468 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20475 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20476 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20477 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define HAVE_LIBCRYPTO 1
20480 _ACEOF
20482 LIBS="-lcrypto $LIBS"
20487 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20488 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20489 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lkrb5 $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20504 #ifdef __cplusplus
20505 extern "C"
20506 #endif
20507 char krb5_init_context ();
20509 main ()
20511 return krb5_init_context ();
20513 return 0;
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_link") 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } && {
20530 test -z "$ac_c_werror_flag" ||
20531 test ! -s conftest.err
20532 } && test -s conftest$ac_exeext &&
20533 $as_test_x conftest$ac_exeext; then
20534 ac_cv_lib_krb5_krb5_init_context=yes
20535 else
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_cv_lib_krb5_krb5_init_context=no
20542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20543 conftest$ac_exeext conftest.$ac_ext
20544 LIBS=$ac_check_lib_save_LIBS
20546 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20547 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20548 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define HAVE_LIBKRB5 1
20551 _ACEOF
20553 LIBS="-lkrb5 $LIBS"
20557 if test "${with_kerberos5+set}" != set; then
20559 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20560 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20561 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-ldes425 $LIBS"
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h. */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20573 /* Override any GCC internal prototype to avoid an error.
20574 Use char because int might match the return type of a GCC
20575 builtin and then its argument prototype would still apply. */
20576 #ifdef __cplusplus
20577 extern "C"
20578 #endif
20579 char des_cbc_encrypt ();
20581 main ()
20583 return des_cbc_encrypt ();
20585 return 0;
20587 _ACEOF
20588 rm -f conftest.$ac_objext conftest$ac_exeext
20589 if { (ac_try="$ac_link"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_link") 2>conftest.er1
20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest$ac_exeext &&
20605 $as_test_x conftest$ac_exeext; then
20606 ac_cv_lib_des425_des_cbc_encrypt=yes
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_cv_lib_des425_des_cbc_encrypt=no
20614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20618 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20619 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20620 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_LIBDES425 1
20623 _ACEOF
20625 LIBS="-ldes425 $LIBS"
20627 else
20629 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20630 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20631 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634 ac_check_lib_save_LIBS=$LIBS
20635 LIBS="-ldes $LIBS"
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20643 /* Override any GCC internal prototype to avoid an error.
20644 Use char because int might match the return type of a GCC
20645 builtin and then its argument prototype would still apply. */
20646 #ifdef __cplusplus
20647 extern "C"
20648 #endif
20649 char des_cbc_encrypt ();
20651 main ()
20653 return des_cbc_encrypt ();
20655 return 0;
20657 _ACEOF
20658 rm -f conftest.$ac_objext conftest$ac_exeext
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_link") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest$ac_exeext &&
20675 $as_test_x conftest$ac_exeext; then
20676 ac_cv_lib_des_des_cbc_encrypt=yes
20677 else
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_cv_lib_des_des_cbc_encrypt=no
20684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20685 conftest$ac_exeext conftest.$ac_ext
20686 LIBS=$ac_check_lib_save_LIBS
20688 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20689 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20690 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_LIBDES 1
20693 _ACEOF
20695 LIBS="-ldes $LIBS"
20702 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20703 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20704 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707 ac_check_lib_save_LIBS=$LIBS
20708 LIBS="-lkrb4 $LIBS"
20709 cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h. */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20716 /* Override any GCC internal prototype to avoid an error.
20717 Use char because int might match the return type of a GCC
20718 builtin and then its argument prototype would still apply. */
20719 #ifdef __cplusplus
20720 extern "C"
20721 #endif
20722 char krb_get_cred ();
20724 main ()
20726 return krb_get_cred ();
20728 return 0;
20730 _ACEOF
20731 rm -f conftest.$ac_objext conftest$ac_exeext
20732 if { (ac_try="$ac_link"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_link") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest$ac_exeext &&
20748 $as_test_x conftest$ac_exeext; then
20749 ac_cv_lib_krb4_krb_get_cred=yes
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_cv_lib_krb4_krb_get_cred=no
20757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20758 conftest$ac_exeext conftest.$ac_ext
20759 LIBS=$ac_check_lib_save_LIBS
20761 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20762 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20763 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20764 cat >>confdefs.h <<_ACEOF
20765 #define HAVE_LIBKRB4 1
20766 _ACEOF
20768 LIBS="-lkrb4 $LIBS"
20770 else
20772 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20773 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20774 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 ac_check_lib_save_LIBS=$LIBS
20778 LIBS="-lkrb $LIBS"
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h. */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20789 #ifdef __cplusplus
20790 extern "C"
20791 #endif
20792 char krb_get_cred ();
20794 main ()
20796 return krb_get_cred ();
20798 return 0;
20800 _ACEOF
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_link") 2>conftest.er1
20809 ac_status=$?
20810 grep -v '^ *+' conftest.er1 >conftest.err
20811 rm -f conftest.er1
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext &&
20818 $as_test_x conftest$ac_exeext; then
20819 ac_cv_lib_krb_krb_get_cred=yes
20820 else
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ac_cv_lib_krb_krb_get_cred=no
20827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20828 conftest$ac_exeext conftest.$ac_ext
20829 LIBS=$ac_check_lib_save_LIBS
20831 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20832 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20833 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define HAVE_LIBKRB 1
20836 _ACEOF
20838 LIBS="-lkrb $LIBS"
20846 if test "${with_kerberos5+set}" = set; then
20848 for ac_header in krb5.h
20850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 ac_res=`eval echo '${'$as_ac_Header'}'`
20858 { echo "$as_me:$LINENO: result: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20860 else
20861 # Is the header compilable?
20862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h. */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 $ac_includes_default
20871 #include <$ac_header>
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_header_compiler=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_header_compiler=no
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20900 echo "${ECHO_T}$ac_header_compiler" >&6; }
20902 # Is the header present?
20903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <$ac_header>
20912 _ACEOF
20913 if { (ac_try="$ac_cpp conftest.$ac_ext"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } >/dev/null && {
20926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 }; then
20929 ac_header_preproc=yes
20930 else
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_header_preproc=no
20937 rm -f conftest.err conftest.$ac_ext
20938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20939 echo "${ECHO_T}$ac_header_preproc" >&6; }
20941 # So? What about this header?
20942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20943 yes:no: )
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20948 ac_header_preproc=yes
20950 no:yes:* )
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20965 esac
20966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971 eval "$as_ac_Header=\$ac_header_preproc"
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974 { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979 cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20981 _ACEOF
20985 done
20987 else
20989 for ac_header in des.h
20991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999 { echo "$as_me:$LINENO: result: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21001 else
21002 # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_header_compiler=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_header_compiler=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <$ac_header>
21053 _ACEOF
21054 if { (ac_try="$ac_cpp conftest.$ac_ext"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } >/dev/null && {
21067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 }; then
21070 ac_header_preproc=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084 yes:no: )
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089 ac_header_preproc=yes
21091 no:yes:* )
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21106 esac
21107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112 eval "$as_ac_Header=\$ac_header_preproc"
21114 ac_res=`eval echo '${'$as_ac_Header'}'`
21115 { echo "$as_me:$LINENO: result: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21122 _ACEOF
21124 else
21126 for ac_header in kerberosIV/des.h
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 ac_res=`eval echo '${'$as_ac_Header'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21138 else
21139 # Is the header compilable?
21140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h. */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 $ac_includes_default
21149 #include <$ac_header>
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21156 esac
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
21159 ac_status=$?
21160 grep -v '^ *+' conftest.er1 >conftest.err
21161 rm -f conftest.er1
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
21168 ac_header_compiler=yes
21169 else
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21178 echo "${ECHO_T}$ac_header_compiler" >&6; }
21180 # Is the header present?
21181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <$ac_header>
21190 _ACEOF
21191 if { (ac_try="$ac_cpp conftest.$ac_ext"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } >/dev/null && {
21204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 }; then
21207 ac_header_preproc=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_header_preproc=no
21215 rm -f conftest.err conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6; }
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 yes:no: )
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc=yes
21228 no:yes:* )
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21243 esac
21244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249 eval "$as_ac_Header=\$ac_header_preproc"
21251 ac_res=`eval echo '${'$as_ac_Header'}'`
21252 { echo "$as_me:$LINENO: result: $ac_res" >&5
21253 echo "${ECHO_T}$ac_res" >&6; }
21256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21259 _ACEOF
21261 else
21263 for ac_header in kerberos/des.h
21265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21275 else
21276 # Is the header compilable?
21277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 #include <$ac_header>
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_header_compiler=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_compiler=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21315 echo "${ECHO_T}$ac_header_compiler" >&6; }
21317 # Is the header present?
21318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h. */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #include <$ac_header>
21327 _ACEOF
21328 if { (ac_try="$ac_cpp conftest.$ac_ext"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21335 ac_status=$?
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } >/dev/null && {
21341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 }; then
21344 ac_header_preproc=yes
21345 else
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_header_preproc=no
21352 rm -f conftest.err conftest.$ac_ext
21353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6; }
21356 # So? What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21358 yes:no: )
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21363 ac_header_preproc=yes
21365 no:yes:* )
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21380 esac
21381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386 eval "$as_ac_Header=\$ac_header_preproc"
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21394 cat >>confdefs.h <<_ACEOF
21395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21396 _ACEOF
21400 done
21404 done
21408 done
21411 for ac_header in krb.h
21413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 else
21424 # Is the header compilable?
21425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h. */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 #include <$ac_header>
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_header_compiler=yes
21454 else
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_header_compiler=no
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21463 echo "${ECHO_T}$ac_header_compiler" >&6; }
21465 # Is the header present?
21466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #include <$ac_header>
21475 _ACEOF
21476 if { (ac_try="$ac_cpp conftest.$ac_ext"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } >/dev/null && {
21489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21491 }; then
21492 ac_header_preproc=yes
21493 else
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_header_preproc=no
21500 rm -f conftest.err conftest.$ac_ext
21501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21502 echo "${ECHO_T}$ac_header_preproc" >&6; }
21504 # So? What about this header?
21505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21506 yes:no: )
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21511 ac_header_preproc=yes
21513 no:yes:* )
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21528 esac
21529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534 eval "$as_ac_Header=\$ac_header_preproc"
21536 ac_res=`eval echo '${'$as_ac_Header'}'`
21537 { echo "$as_me:$LINENO: result: $ac_res" >&5
21538 echo "${ECHO_T}$ac_res" >&6; }
21541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21542 cat >>confdefs.h <<_ACEOF
21543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21544 _ACEOF
21546 else
21548 for ac_header in kerberosIV/krb.h
21550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 ac_res=`eval echo '${'$as_ac_Header'}'`
21558 { echo "$as_me:$LINENO: result: $ac_res" >&5
21559 echo "${ECHO_T}$ac_res" >&6; }
21560 else
21561 # Is the header compilable?
21562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 $ac_includes_default
21571 #include <$ac_header>
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21581 ac_status=$?
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
21590 ac_header_compiler=yes
21591 else
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ac_header_compiler=no
21598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21600 echo "${ECHO_T}$ac_header_compiler" >&6; }
21602 # Is the header present?
21603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21605 cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h. */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <$ac_header>
21612 _ACEOF
21613 if { (ac_try="$ac_cpp conftest.$ac_ext"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } >/dev/null && {
21626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 }; then
21629 ac_header_preproc=yes
21630 else
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_preproc=no
21637 rm -f conftest.err conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21639 echo "${ECHO_T}$ac_header_preproc" >&6; }
21641 # So? What about this header?
21642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21643 yes:no: )
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21648 ac_header_preproc=yes
21650 no:yes:* )
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21665 esac
21666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 eval "$as_ac_Header=\$ac_header_preproc"
21673 ac_res=`eval echo '${'$as_ac_Header'}'`
21674 { echo "$as_me:$LINENO: result: $ac_res" >&5
21675 echo "${ECHO_T}$ac_res" >&6; }
21678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21681 _ACEOF
21683 else
21685 for ac_header in kerberos/krb.h
21687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695 { echo "$as_me:$LINENO: result: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21697 else
21698 # Is the header compilable?
21699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21701 cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h. */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 $ac_includes_default
21708 #include <$ac_header>
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21727 ac_header_compiler=yes
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_header_compiler=no
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21737 echo "${ECHO_T}$ac_header_compiler" >&6; }
21739 # Is the header present?
21740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h. */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 #include <$ac_header>
21749 _ACEOF
21750 if { (ac_try="$ac_cpp conftest.$ac_ext"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } >/dev/null && {
21763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 }; then
21766 ac_header_preproc=yes
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ac_header_preproc=no
21774 rm -f conftest.err conftest.$ac_ext
21775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21776 echo "${ECHO_T}$ac_header_preproc" >&6; }
21778 # So? What about this header?
21779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21780 yes:no: )
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21785 ac_header_preproc=yes
21787 no:yes:* )
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21802 esac
21803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 else
21808 eval "$as_ac_Header=\$ac_header_preproc"
21810 ac_res=`eval echo '${'$as_ac_Header'}'`
21811 { echo "$as_me:$LINENO: result: $ac_res" >&5
21812 echo "${ECHO_T}$ac_res" >&6; }
21815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21818 _ACEOF
21822 done
21826 done
21830 done
21834 for ac_header in com_err.h
21836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 ac_res=`eval echo '${'$as_ac_Header'}'`
21844 { echo "$as_me:$LINENO: result: $ac_res" >&5
21845 echo "${ECHO_T}$ac_res" >&6; }
21846 else
21847 # Is the header compilable?
21848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21850 cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h. */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 $ac_includes_default
21857 #include <$ac_header>
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_header_compiler=yes
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_compiler=no
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21886 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888 # Is the header present?
21889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <$ac_header>
21898 _ACEOF
21899 if { (ac_try="$ac_cpp conftest.$ac_ext"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } >/dev/null && {
21912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 }; then
21915 ac_header_preproc=yes
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_preproc=no
21923 rm -f conftest.err conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21925 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927 # So? What about this header?
21928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21929 yes:no: )
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21934 ac_header_preproc=yes
21936 no:yes:* )
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21951 esac
21952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957 eval "$as_ac_Header=\$ac_header_preproc"
21959 ac_res=`eval echo '${'$as_ac_Header'}'`
21960 { echo "$as_me:$LINENO: result: $ac_res" >&5
21961 echo "${ECHO_T}$ac_res" >&6; }
21964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21965 cat >>confdefs.h <<_ACEOF
21966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21967 _ACEOF
21971 done
21975 # Solaris requires -lintl if you want strerror (which calls dgettext)
21976 # to return localized messages.
21978 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21979 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21980 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lintl $LIBS"
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
21995 #ifdef __cplusplus
21996 extern "C"
21997 #endif
21998 char dgettext ();
22000 main ()
22002 return dgettext ();
22004 return 0;
22006 _ACEOF
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_link") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest$ac_exeext &&
22024 $as_test_x conftest$ac_exeext; then
22025 ac_cv_lib_intl_dgettext=yes
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_cv_lib_intl_dgettext=no
22033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22034 conftest$ac_exeext conftest.$ac_ext
22035 LIBS=$ac_check_lib_save_LIBS
22037 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22038 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22039 if test $ac_cv_lib_intl_dgettext = yes; then
22040 cat >>confdefs.h <<_ACEOF
22041 #define HAVE_LIBINTL 1
22042 _ACEOF
22044 LIBS="-lintl $LIBS"
22049 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22050 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22051 if test "${emacs_cv_localtime_cache+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054 if test x$ac_cv_func_tzset = xyes; then
22055 if test "$cross_compiling" = yes; then
22056 # If we have tzset, assume the worst when cross-compiling.
22057 emacs_cv_localtime_cache=yes
22058 else
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <time.h>
22066 extern char **environ;
22067 unset_TZ ()
22069 char **from, **to;
22070 for (to = from = environ; (*to = *from); from++)
22071 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22072 to++;
22074 char TZ_GMT0[] = "TZ=GMT0";
22075 char TZ_PST8[] = "TZ=PST8";
22076 main()
22078 time_t now = time ((time_t *) 0);
22079 int hour_GMT0, hour_unset;
22080 if (putenv (TZ_GMT0) != 0)
22081 exit (1);
22082 hour_GMT0 = localtime (&now)->tm_hour;
22083 unset_TZ ();
22084 hour_unset = localtime (&now)->tm_hour;
22085 if (putenv (TZ_PST8) != 0)
22086 exit (1);
22087 if (localtime (&now)->tm_hour == hour_GMT0)
22088 exit (1);
22089 unset_TZ ();
22090 if (localtime (&now)->tm_hour != hour_unset)
22091 exit (1);
22092 exit (0);
22094 _ACEOF
22095 rm -f conftest$ac_exeext
22096 if { (ac_try="$ac_link"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22106 { (case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_try") 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 emacs_cv_localtime_cache=no
22116 else
22117 echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ( exit $ac_status )
22122 emacs_cv_localtime_cache=yes
22124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 else
22129 # If we lack tzset, report that localtime does not cache TZ,
22130 # since we can't invalidate the cache if we don't have tzset.
22131 emacs_cv_localtime_cache=no
22134 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22135 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22136 if test $emacs_cv_localtime_cache = yes; then
22138 cat >>confdefs.h <<\_ACEOF
22139 #define LOCALTIME_CACHE 1
22140 _ACEOF
22144 if test "x$HAVE_TIMEVAL" = xyes; then
22146 for ac_func in gettimeofday
22148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154 cat >conftest.$ac_ext <<_ACEOF
22155 /* confdefs.h. */
22156 _ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22162 #define $ac_func innocuous_$ac_func
22164 /* System header to define __stub macros and hopefully few prototypes,
22165 which can conflict with char $ac_func (); below.
22166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22167 <limits.h> exists even on freestanding compilers. */
22169 #ifdef __STDC__
22170 # include <limits.h>
22171 #else
22172 # include <assert.h>
22173 #endif
22175 #undef $ac_func
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22180 #ifdef __cplusplus
22181 extern "C"
22182 #endif
22183 char $ac_func ();
22184 /* The GNU C library defines this for functions which it implements
22185 to always fail with ENOSYS. Some functions are actually named
22186 something starting with __ and the normal name is an alias. */
22187 #if defined __stub_$ac_func || defined __stub___$ac_func
22188 choke me
22189 #endif
22192 main ()
22194 return $ac_func ();
22196 return 0;
22198 _ACEOF
22199 rm -f conftest.$ac_objext conftest$ac_exeext
22200 if { (ac_try="$ac_link"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_link") 2>conftest.er1
22207 ac_status=$?
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest$ac_exeext &&
22216 $as_test_x conftest$ac_exeext; then
22217 eval "$as_ac_var=yes"
22218 else
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 eval "$as_ac_var=no"
22225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22226 conftest$ac_exeext conftest.$ac_ext
22228 ac_res=`eval echo '${'$as_ac_var'}'`
22229 { echo "$as_me:$LINENO: result: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22231 if test `eval echo '${'$as_ac_var'}'` = yes; then
22232 cat >>confdefs.h <<_ACEOF
22233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22234 _ACEOF
22237 done
22239 if test $ac_cv_func_gettimeofday = yes; then
22240 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22241 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22242 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245 cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h. */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 #ifdef TIME_WITH_SYS_TIME
22253 #include <sys/time.h>
22254 #include <time.h>
22255 #else
22256 #ifdef HAVE_SYS_TIME_H
22257 #include <sys/time.h>
22258 #else
22259 #include <time.h>
22260 #endif
22261 #endif
22263 main ()
22265 struct timeval time;
22266 gettimeofday (&time, 0);
22268 return 0;
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22279 ac_status=$?
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.$ac_objext; then
22288 emacs_cv_gettimeofday_two_arguments=yes
22289 else
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 emacs_cv_gettimeofday_two_arguments=no
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22299 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22300 if test $emacs_cv_gettimeofday_two_arguments = no; then
22302 cat >>confdefs.h <<\_ACEOF
22303 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22304 _ACEOF
22310 ok_so_far=yes
22311 { echo "$as_me:$LINENO: checking for socket" >&5
22312 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22313 if test "${ac_cv_func_socket+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h. */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22324 #define socket innocuous_socket
22326 /* System header to define __stub macros and hopefully few prototypes,
22327 which can conflict with char socket (); below.
22328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22329 <limits.h> exists even on freestanding compilers. */
22331 #ifdef __STDC__
22332 # include <limits.h>
22333 #else
22334 # include <assert.h>
22335 #endif
22337 #undef socket
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22342 #ifdef __cplusplus
22343 extern "C"
22344 #endif
22345 char socket ();
22346 /* The GNU C library defines this for functions which it implements
22347 to always fail with ENOSYS. Some functions are actually named
22348 something starting with __ and the normal name is an alias. */
22349 #if defined __stub_socket || defined __stub___socket
22350 choke me
22351 #endif
22354 main ()
22356 return socket ();
22358 return 0;
22360 _ACEOF
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>conftest.er1
22369 ac_status=$?
22370 grep -v '^ *+' conftest.er1 >conftest.err
22371 rm -f conftest.er1
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest$ac_exeext &&
22378 $as_test_x conftest$ac_exeext; then
22379 ac_cv_func_socket=yes
22380 else
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_cv_func_socket=no
22387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22388 conftest$ac_exeext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22391 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22392 if test $ac_cv_func_socket = yes; then
22394 else
22395 ok_so_far=no
22398 if test $ok_so_far = yes; then
22399 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22400 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22401 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22402 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22406 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22407 else
22408 # Is the header compilable?
22409 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22410 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 $ac_includes_default
22418 #include <netinet/in.h>
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_header_compiler=yes
22438 else
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22442 ac_header_compiler=no
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22447 echo "${ECHO_T}$ac_header_compiler" >&6; }
22449 # Is the header present?
22450 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22451 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 #include <netinet/in.h>
22459 _ACEOF
22460 if { (ac_try="$ac_cpp conftest.$ac_ext"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } >/dev/null && {
22473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 }; then
22476 ac_header_preproc=yes
22477 else
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_header_preproc=no
22484 rm -f conftest.err conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22486 echo "${ECHO_T}$ac_header_preproc" >&6; }
22488 # So? What about this header?
22489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22490 yes:no: )
22491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22492 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22494 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22495 ac_header_preproc=yes
22497 no:yes:* )
22498 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22499 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22501 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22503 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22505 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22507 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22509 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22512 esac
22513 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22514 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22515 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518 ac_cv_header_netinet_in_h=$ac_header_preproc
22520 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22521 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22524 if test $ac_cv_header_netinet_in_h = yes; then
22526 else
22527 ok_so_far=no
22532 if test $ok_so_far = yes; then
22533 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22534 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22535 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22536 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22540 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22541 else
22542 # Is the header compilable?
22543 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22544 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 $ac_includes_default
22552 #include <arpa/inet.h>
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22562 ac_status=$?
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_header_compiler=yes
22572 else
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_header_compiler=no
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22581 echo "${ECHO_T}$ac_header_compiler" >&6; }
22583 # Is the header present?
22584 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22585 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h. */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22592 #include <arpa/inet.h>
22593 _ACEOF
22594 if { (ac_try="$ac_cpp conftest.$ac_ext"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } >/dev/null && {
22607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 }; then
22610 ac_header_preproc=yes
22611 else
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 ac_header_preproc=no
22618 rm -f conftest.err conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22620 echo "${ECHO_T}$ac_header_preproc" >&6; }
22622 # So? What about this header?
22623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22624 yes:no: )
22625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22628 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22629 ac_header_preproc=yes
22631 no:yes:* )
22632 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22633 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22635 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22637 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22638 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22639 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22641 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22643 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22646 esac
22647 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22648 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22649 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 ac_cv_header_arpa_inet_h=$ac_header_preproc
22654 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22658 if test $ac_cv_header_arpa_inet_h = yes; then
22660 else
22661 ok_so_far=no
22666 if test $ok_so_far = yes; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_INET_SOCKETS 1
22670 _ACEOF
22675 for ac_header in sys/ioctl.h
22677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 ac_res=`eval echo '${'$as_ac_Header'}'`
22685 { echo "$as_me:$LINENO: result: $ac_res" >&5
22686 echo "${ECHO_T}$ac_res" >&6; }
22687 else
22688 # Is the header compilable?
22689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h. */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 $ac_includes_default
22698 #include <$ac_header>
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22708 ac_status=$?
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_header_compiler=yes
22718 else
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_header_compiler=no
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22727 echo "${ECHO_T}$ac_header_compiler" >&6; }
22729 # Is the header present?
22730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22732 cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <$ac_header>
22739 _ACEOF
22740 if { (ac_try="$ac_cpp conftest.$ac_ext"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } >/dev/null && {
22753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 }; then
22756 ac_header_preproc=yes
22757 else
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_header_preproc=no
22764 rm -f conftest.err conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22766 echo "${ECHO_T}$ac_header_preproc" >&6; }
22768 # So? What about this header?
22769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22770 yes:no: )
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22775 ac_header_preproc=yes
22777 no:yes:* )
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22792 esac
22793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798 eval "$as_ac_Header=\$ac_header_preproc"
22800 ac_res=`eval echo '${'$as_ac_Header'}'`
22801 { echo "$as_me:$LINENO: result: $ac_res" >&5
22802 echo "${ECHO_T}$ac_res" >&6; }
22805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 _ACEOF
22812 done
22815 if test -f /usr/lpp/X11/bin/smt.exp; then
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_AIX_SMT_EXP 1
22819 _ACEOF
22823 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22824 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22825 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22826 { echo "$as_me:$LINENO: result: yes" >&5
22827 echo "${ECHO_T}yes" >&6; }
22829 cat >>confdefs.h <<\_ACEOF
22830 #define HAVE_DEV_PTMX 1
22831 _ACEOF
22833 else
22834 { echo "$as_me:$LINENO: result: no" >&5
22835 echo "${ECHO_T}no" >&6; }
22838 { echo "$as_me:$LINENO: checking for pid_t" >&5
22839 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22840 if test "${ac_cv_type_pid_t+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 $ac_includes_default
22850 typedef pid_t ac__type_new_;
22852 main ()
22854 if ((ac__type_new_ *) 0)
22855 return 0;
22856 if (sizeof (ac__type_new_))
22857 return 0;
22859 return 0;
22861 _ACEOF
22862 rm -f conftest.$ac_objext
22863 if { (ac_try="$ac_compile"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22867 esac
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22870 ac_status=$?
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22879 ac_cv_type_pid_t=yes
22880 else
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ac_cv_type_pid_t=no
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22891 if test $ac_cv_type_pid_t = yes; then
22893 else
22895 cat >>confdefs.h <<_ACEOF
22896 #define pid_t int
22897 _ACEOF
22902 for ac_header in vfork.h
22904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 ac_res=`eval echo '${'$as_ac_Header'}'`
22912 { echo "$as_me:$LINENO: result: $ac_res" >&5
22913 echo "${ECHO_T}$ac_res" >&6; }
22914 else
22915 # Is the header compilable?
22916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h. */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 $ac_includes_default
22925 #include <$ac_header>
22926 _ACEOF
22927 rm -f conftest.$ac_objext
22928 if { (ac_try="$ac_compile"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_compile") 2>conftest.er1
22935 ac_status=$?
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest.$ac_objext; then
22944 ac_header_compiler=yes
22945 else
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ac_header_compiler=no
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22954 echo "${ECHO_T}$ac_header_compiler" >&6; }
22956 # Is the header present?
22957 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h. */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 #include <$ac_header>
22966 _ACEOF
22967 if { (ac_try="$ac_cpp conftest.$ac_ext"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22974 ac_status=$?
22975 grep -v '^ *+' conftest.er1 >conftest.err
22976 rm -f conftest.er1
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } >/dev/null && {
22980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22981 test ! -s conftest.err
22982 }; then
22983 ac_header_preproc=yes
22984 else
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_header_preproc=no
22991 rm -f conftest.err conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22993 echo "${ECHO_T}$ac_header_preproc" >&6; }
22995 # So? What about this header?
22996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22997 yes:no: )
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23002 ac_header_preproc=yes
23004 no:yes:* )
23005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23019 esac
23020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23024 else
23025 eval "$as_ac_Header=\$ac_header_preproc"
23027 ac_res=`eval echo '${'$as_ac_Header'}'`
23028 { echo "$as_me:$LINENO: result: $ac_res" >&5
23029 echo "${ECHO_T}$ac_res" >&6; }
23032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23033 cat >>confdefs.h <<_ACEOF
23034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23035 _ACEOF
23039 done
23043 for ac_func in fork vfork
23045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23059 #define $ac_func innocuous_$ac_func
23061 /* System header to define __stub macros and hopefully few prototypes,
23062 which can conflict with char $ac_func (); below.
23063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23064 <limits.h> exists even on freestanding compilers. */
23066 #ifdef __STDC__
23067 # include <limits.h>
23068 #else
23069 # include <assert.h>
23070 #endif
23072 #undef $ac_func
23074 /* Override any GCC internal prototype to avoid an error.
23075 Use char because int might match the return type of a GCC
23076 builtin and then its argument prototype would still apply. */
23077 #ifdef __cplusplus
23078 extern "C"
23079 #endif
23080 char $ac_func ();
23081 /* The GNU C library defines this for functions which it implements
23082 to always fail with ENOSYS. Some functions are actually named
23083 something starting with __ and the normal name is an alias. */
23084 #if defined __stub_$ac_func || defined __stub___$ac_func
23085 choke me
23086 #endif
23089 main ()
23091 return $ac_func ();
23093 return 0;
23095 _ACEOF
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (ac_try="$ac_link"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101 esac
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_link") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } && {
23110 test -z "$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 } && test -s conftest$ac_exeext &&
23113 $as_test_x conftest$ac_exeext; then
23114 eval "$as_ac_var=yes"
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 eval "$as_ac_var=no"
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123 conftest$ac_exeext conftest.$ac_ext
23125 ac_res=`eval echo '${'$as_ac_var'}'`
23126 { echo "$as_me:$LINENO: result: $ac_res" >&5
23127 echo "${ECHO_T}$ac_res" >&6; }
23128 if test `eval echo '${'$as_ac_var'}'` = yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23131 _ACEOF
23134 done
23136 if test "x$ac_cv_func_fork" = xyes; then
23137 { echo "$as_me:$LINENO: checking for working fork" >&5
23138 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23139 if test "${ac_cv_func_fork_works+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142 if test "$cross_compiling" = yes; then
23143 ac_cv_func_fork_works=cross
23144 else
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h. */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23153 main ()
23156 /* By Ruediger Kuhlmann. */
23157 return fork () < 0;
23160 return 0;
23162 _ACEOF
23163 rm -f conftest$ac_exeext
23164 if { (ac_try="$ac_link"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_link") 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23174 { (case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_try") 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_func_fork_works=yes
23184 else
23185 echo "$as_me: program exited with status $ac_status" >&5
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ( exit $ac_status )
23190 ac_cv_func_fork_works=no
23192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23197 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23198 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23200 else
23201 ac_cv_func_fork_works=$ac_cv_func_fork
23203 if test "x$ac_cv_func_fork_works" = xcross; then
23204 case $host in
23205 *-*-amigaos* | *-*-msdosdjgpp*)
23206 # Override, as these systems have only a dummy fork() stub
23207 ac_cv_func_fork_works=no
23210 ac_cv_func_fork_works=yes
23212 esac
23213 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23214 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23216 ac_cv_func_vfork_works=$ac_cv_func_vfork
23217 if test "x$ac_cv_func_vfork" = xyes; then
23218 { echo "$as_me:$LINENO: checking for working vfork" >&5
23219 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23220 if test "${ac_cv_func_vfork_works+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223 if test "$cross_compiling" = yes; then
23224 ac_cv_func_vfork_works=cross
23225 else
23226 cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h. */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 /* Thanks to Paul Eggert for this test. */
23233 $ac_includes_default
23234 #include <sys/wait.h>
23235 #ifdef HAVE_VFORK_H
23236 # include <vfork.h>
23237 #endif
23238 /* On some sparc systems, changes by the child to local and incoming
23239 argument registers are propagated back to the parent. The compiler
23240 is told about this with #include <vfork.h>, but some compilers
23241 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23242 static variable whose address is put into a register that is
23243 clobbered by the vfork. */
23244 static void
23245 #ifdef __cplusplus
23246 sparc_address_test (int arg)
23247 # else
23248 sparc_address_test (arg) int arg;
23249 #endif
23251 static pid_t child;
23252 if (!child) {
23253 child = vfork ();
23254 if (child < 0) {
23255 perror ("vfork");
23256 _exit(2);
23258 if (!child) {
23259 arg = getpid();
23260 write(-1, "", 0);
23261 _exit (arg);
23267 main ()
23269 pid_t parent = getpid ();
23270 pid_t child;
23272 sparc_address_test (0);
23274 child = vfork ();
23276 if (child == 0) {
23277 /* Here is another test for sparc vfork register problems. This
23278 test uses lots of local variables, at least as many local
23279 variables as main has allocated so far including compiler
23280 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23281 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23282 reuse the register of parent for one of the local variables,
23283 since it will think that parent can't possibly be used any more
23284 in this routine. Assigning to the local variable will thus
23285 munge parent in the parent process. */
23286 pid_t
23287 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23288 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23289 /* Convince the compiler that p..p7 are live; otherwise, it might
23290 use the same hardware register for all 8 local variables. */
23291 if (p != p1 || p != p2 || p != p3 || p != p4
23292 || p != p5 || p != p6 || p != p7)
23293 _exit(1);
23295 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23296 from child file descriptors. If the child closes a descriptor
23297 before it execs or exits, this munges the parent's descriptor
23298 as well. Test for this by closing stdout in the child. */
23299 _exit(close(fileno(stdout)) != 0);
23300 } else {
23301 int status;
23302 struct stat st;
23304 while (wait(&status) != child)
23306 return (
23307 /* Was there some problem with vforking? */
23308 child < 0
23310 /* Did the child fail? (This shouldn't happen.) */
23311 || status
23313 /* Did the vfork/compiler bug occur? */
23314 || parent != getpid()
23316 /* Did the file descriptor bug occur? */
23317 || fstat(fileno(stdout), &st) != 0
23321 _ACEOF
23322 rm -f conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_cv_func_vfork_works=yes
23343 else
23344 echo "$as_me: program exited with status $ac_status" >&5
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ( exit $ac_status )
23349 ac_cv_func_vfork_works=no
23351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23356 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23357 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23360 if test "x$ac_cv_func_fork_works" = xcross; then
23361 ac_cv_func_vfork_works=$ac_cv_func_vfork
23362 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23363 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23366 if test "x$ac_cv_func_vfork_works" = xyes; then
23368 cat >>confdefs.h <<\_ACEOF
23369 #define HAVE_WORKING_VFORK 1
23370 _ACEOF
23372 else
23374 cat >>confdefs.h <<\_ACEOF
23375 #define vfork fork
23376 _ACEOF
23379 if test "x$ac_cv_func_fork_works" = xyes; then
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_WORKING_FORK 1
23383 _ACEOF
23388 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23389 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23390 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 else
23393 cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h. */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23399 #include <langinfo.h>
23401 main ()
23403 char* cs = nl_langinfo(CODESET);
23405 return 0;
23407 _ACEOF
23408 rm -f conftest.$ac_objext conftest$ac_exeext
23409 if { (ac_try="$ac_link"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23413 esac
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_link") 2>conftest.er1
23416 ac_status=$?
23417 grep -v '^ *+' conftest.er1 >conftest.err
23418 rm -f conftest.er1
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } && {
23422 test -z "$ac_c_werror_flag" ||
23423 test ! -s conftest.err
23424 } && test -s conftest$ac_exeext &&
23425 $as_test_x conftest$ac_exeext; then
23426 emacs_cv_langinfo_codeset=yes
23427 else
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 emacs_cv_langinfo_codeset=no
23434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23435 conftest$ac_exeext conftest.$ac_ext
23438 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23439 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23440 if test $emacs_cv_langinfo_codeset = yes; then
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_LANGINFO_CODESET 1
23444 _ACEOF
23448 { echo "$as_me:$LINENO: checking for size_t" >&5
23449 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23450 if test "${ac_cv_type_size_t+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453 cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h. */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 $ac_includes_default
23460 typedef size_t ac__type_new_;
23462 main ()
23464 if ((ac__type_new_ *) 0)
23465 return 0;
23466 if (sizeof (ac__type_new_))
23467 return 0;
23469 return 0;
23471 _ACEOF
23472 rm -f conftest.$ac_objext
23473 if { (ac_try="$ac_compile"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_compile") 2>conftest.er1
23480 ac_status=$?
23481 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && {
23486 test -z "$ac_c_werror_flag" ||
23487 test ! -s conftest.err
23488 } && test -s conftest.$ac_objext; then
23489 ac_cv_type_size_t=yes
23490 else
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ac_cv_type_size_t=no
23497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23500 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23501 if test $ac_cv_type_size_t = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define HAVE_SIZE_T 1
23505 _ACEOF
23511 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23512 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23513 if test "${ac_cv_type_mbstate_t+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515 else
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h. */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23523 # include <wchar.h>
23525 main ()
23527 mbstate_t x; return sizeof x;
23529 return 0;
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_cv_type_mbstate_t=yes
23550 else
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_cv_type_mbstate_t=no
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23560 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23561 if test $ac_cv_type_mbstate_t = yes; then
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_MBSTATE_T 1
23565 _ACEOF
23567 else
23569 cat >>confdefs.h <<\_ACEOF
23570 #define mbstate_t int
23571 _ACEOF
23575 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23576 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23577 if test "${emacs_cv_c_restrict+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 void fred (int *restrict x);
23588 main ()
23592 return 0;
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && {
23609 test -z "$ac_c_werror_flag" ||
23610 test ! -s conftest.err
23611 } && test -s conftest.$ac_objext; then
23612 emacs_cv_c_restrict=yes
23613 else
23614 echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h. */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 void fred (int *__restrict x);
23625 main ()
23629 return 0;
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 emacs_cv_c_restrict=__restrict
23650 else
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 emacs_cv_c_restrict=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23663 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23664 case "$emacs_cv_c_restrict" in
23665 yes) emacs_restrict=restrict;;
23666 no) emacs_restrict="";;
23667 *) emacs_restrict="$emacs_cv_c_restrict";;
23668 esac
23669 if test "$emacs_restrict" != __restrict; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define __restrict $emacs_restrict
23673 _ACEOF
23677 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23678 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23679 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23682 cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h. */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 void fred (int x[__restrict]);
23690 main ()
23694 return 0;
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_compile") 2>conftest.er1
23705 ac_status=$?
23706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest.$ac_objext; then
23714 emacs_cv_c_restrict_arr=yes
23715 else
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 emacs_cv_c_restrict_arr=no
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23725 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23726 if test "$emacs_cv_c_restrict_arr" = yes; then
23728 cat >>confdefs.h <<\_ACEOF
23729 #define __restrict_arr __restrict
23730 _ACEOF
23736 # Set up the CFLAGS for real compilation, so we can substitute it.
23737 CFLAGS="$REAL_CFLAGS"
23738 CPPFLAGS="$REAL_CPPFLAGS"
23740 #### Find out which version of Emacs this is.
23741 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23742 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23743 if test x"${version}" = x; then
23744 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23745 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23746 { (exit 1); exit 1; }; }
23749 ### Specify what sort of things we'll be editing into Makefile and config.h.
23750 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23786 cat >>confdefs.h <<_ACEOF
23787 #define EMACS_CONFIGURATION "${canonical}"
23788 _ACEOF
23791 cat >>confdefs.h <<_ACEOF
23792 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23793 _ACEOF
23796 cat >>confdefs.h <<_ACEOF
23797 #define config_machfile "${machfile}"
23798 _ACEOF
23801 cat >>confdefs.h <<_ACEOF
23802 #define config_opsysfile "${opsysfile}"
23803 _ACEOF
23806 cat >>confdefs.h <<_ACEOF
23807 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23808 _ACEOF
23811 cat >>confdefs.h <<_ACEOF
23812 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23813 _ACEOF
23816 cat >>confdefs.h <<_ACEOF
23817 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23818 _ACEOF
23821 cat >>confdefs.h <<_ACEOF
23822 #define UNEXEC_SRC ${UNEXEC_SRC}
23823 _ACEOF
23826 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23828 cat >>confdefs.h <<\_ACEOF
23829 #define HAVE_X_WINDOWS 1
23830 _ACEOF
23833 if test "${USE_X_TOOLKIT}" != "none" ; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define USE_X_TOOLKIT 1
23837 _ACEOF
23840 if test "${HAVE_X11}" = "yes" ; then
23842 cat >>confdefs.h <<\_ACEOF
23843 #define HAVE_X11 1
23844 _ACEOF
23847 if test "${HAVE_XFREE386}" = "yes" ; then
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_XFREE386 1
23851 _ACEOF
23854 if test "${HAVE_MENUS}" = "yes" ; then
23856 cat >>confdefs.h <<\_ACEOF
23857 #define HAVE_MENUS 1
23858 _ACEOF
23861 if test "${GNU_MALLOC}" = "yes" ; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define GNU_MALLOC 1
23865 _ACEOF
23868 if test "${REL_ALLOC}" = "yes" ; then
23870 cat >>confdefs.h <<\_ACEOF
23871 #define REL_ALLOC 1
23872 _ACEOF
23881 #### Report on what we decided to do.
23882 #### Report GTK as a toolkit, even if it doesn't use Xt.
23883 #### It makes printing result more understandable as using GTK sets
23884 #### toolkit_scroll_bars to yes by default.
23885 if test "${HAVE_GTK}" = "yes"; then
23886 USE_X_TOOLKIT=GTK
23889 echo "
23890 Configured for \`${canonical}'.
23892 Where should the build process find the source code? ${srcdir}
23893 What operating system and machine description files should Emacs use?
23894 \`${opsysfile}' and \`${machfile}'
23895 What compiler should emacs be built with? ${CC} ${CFLAGS}
23896 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23897 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23898 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23899 What window system should Emacs use? ${window_system}
23900 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23902 if test -n "${x_includes}"; then
23903 echo " Where do we find X Windows header files? ${x_includes}"
23904 else
23905 echo " Where do we find X Windows header files? Standard dirs"
23907 if test -n "${x_libraries}"; then
23908 echo " Where do we find X Windows libraries? ${x_libraries}"
23909 else
23910 echo " Where do we find X Windows libraries? Standard dirs"
23913 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23914 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23915 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23916 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23917 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23918 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23919 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23920 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23921 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23922 echo
23924 if test $USE_XASSERTS = yes; then
23925 echo " Compiling with asserts turned on."
23926 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23927 echo
23930 if test "$USE_X_TOOLKIT" = GTK; then
23931 case "$canonical" in
23932 *cygwin*)
23933 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23934 will probably get a crash on startup. If this happens, please use another
23935 toolkit for Emacs. See etc/PROBLEMS for more information."
23937 esac
23941 if test "$HAVE_CARBON" = "yes"; then
23942 echo
23943 echo "Warning: The Mac Carbon port is currently unsupported and has
23944 known problems. It is not recommended for use by non-developers.
23945 Read the emacs-devel archives for more information."
23946 echo
23949 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23950 echo "D-Bus integration has been tested for GNU/Linux only."
23951 echo
23955 # Remove any trailing slashes in these variables.
23956 test "${prefix}" != NONE &&
23957 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23958 test "${exec_prefix}" != NONE &&
23959 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23961 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23962 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23963 ## from Makefile.c can correctly provide the arg `-traditional' to the
23964 ## C preprocessor.
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h. */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 yes..yes
23973 _ACEOF
23974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23975 $EGREP "yes..yes" >/dev/null 2>&1; then
23976 CPP_NEED_TRADITIONAL=no
23977 else
23978 CPP_NEED_TRADITIONAL=yes
23980 rm -f conftest*
23983 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23985 ac_config_commands="$ac_config_commands default"
23987 cat >confcache <<\_ACEOF
23988 # This file is a shell script that caches the results of configure
23989 # tests run on this system so they can be shared between configure
23990 # scripts and configure runs, see configure's option --config-cache.
23991 # It is not useful on other systems. If it contains results you don't
23992 # want to keep, you may remove or edit it.
23994 # config.status only pays attention to the cache file if you give it
23995 # the --recheck option to rerun configure.
23997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23999 # following values.
24001 _ACEOF
24003 # The following way of writing the cache mishandles newlines in values,
24004 # but we know of no workaround that is simple, portable, and efficient.
24005 # So, we kill variables containing newlines.
24006 # Ultrix sh set writes to stderr and can't be redirected directly,
24007 # and sets the high bit in the cache file unless we assign to the vars.
24009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24010 eval ac_val=\$$ac_var
24011 case $ac_val in #(
24012 *${as_nl}*)
24013 case $ac_var in #(
24014 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24015 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24016 esac
24017 case $ac_var in #(
24018 _ | IFS | as_nl) ;; #(
24019 *) $as_unset $ac_var ;;
24020 esac ;;
24021 esac
24022 done
24024 (set) 2>&1 |
24025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24026 *${as_nl}ac_space=\ *)
24027 # `set' does not quote correctly, so add quotes (double-quote
24028 # substitution turns \\\\ into \\, and sed turns \\ into \).
24029 sed -n \
24030 "s/'/'\\\\''/g;
24031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24032 ;; #(
24034 # `set' quotes correctly as required by POSIX, so do not add quotes.
24035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24037 esac |
24038 sort
24040 sed '
24041 /^ac_cv_env_/b end
24042 t clear
24043 :clear
24044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24045 t end
24046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24047 :end' >>confcache
24048 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24049 if test -w "$cache_file"; then
24050 test "x$cache_file" != "x/dev/null" &&
24051 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24052 echo "$as_me: updating cache $cache_file" >&6;}
24053 cat confcache >$cache_file
24054 else
24055 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24056 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24059 rm -f confcache
24061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24062 # Let make expand exec_prefix.
24063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24065 DEFS=-DHAVE_CONFIG_H
24067 ac_libobjs=
24068 ac_ltlibobjs=
24069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24070 # 1. Remove the extension, and $U if already installed.
24071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24072 ac_i=`echo "$ac_i" | sed "$ac_script"`
24073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24074 # will be set to the directory where LIBOBJS objects are built.
24075 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24076 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24077 done
24078 LIBOBJS=$ac_libobjs
24080 LTLIBOBJS=$ac_ltlibobjs
24084 : ${CONFIG_STATUS=./config.status}
24085 ac_clean_files_save=$ac_clean_files
24086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24087 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24088 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24089 cat >$CONFIG_STATUS <<_ACEOF
24090 #! $SHELL
24091 # Generated by $as_me.
24092 # Run this file to recreate the current configuration.
24093 # Compiler output produced by configure, useful for debugging
24094 # configure, is in config.log if it exists.
24096 debug=false
24097 ac_cs_recheck=false
24098 ac_cs_silent=false
24099 SHELL=\${CONFIG_SHELL-$SHELL}
24100 _ACEOF
24102 cat >>$CONFIG_STATUS <<\_ACEOF
24103 ## --------------------- ##
24104 ## M4sh Initialization. ##
24105 ## --------------------- ##
24107 # Be more Bourne compatible
24108 DUALCASE=1; export DUALCASE # for MKS sh
24109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24110 emulate sh
24111 NULLCMD=:
24112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24113 # is contrary to our usage. Disable this feature.
24114 alias -g '${1+"$@"}'='"$@"'
24115 setopt NO_GLOB_SUBST
24116 else
24117 case `(set -o) 2>/dev/null` in
24118 *posix*) set -o posix ;;
24119 esac
24126 # PATH needs CR
24127 # Avoid depending upon Character Ranges.
24128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24131 as_cr_digits='0123456789'
24132 as_cr_alnum=$as_cr_Letters$as_cr_digits
24134 # The user is always right.
24135 if test "${PATH_SEPARATOR+set}" != set; then
24136 echo "#! /bin/sh" >conf$$.sh
24137 echo "exit 0" >>conf$$.sh
24138 chmod +x conf$$.sh
24139 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24140 PATH_SEPARATOR=';'
24141 else
24142 PATH_SEPARATOR=:
24144 rm -f conf$$.sh
24147 # Support unset when possible.
24148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24149 as_unset=unset
24150 else
24151 as_unset=false
24155 # IFS
24156 # We need space, tab and new line, in precisely that order. Quoting is
24157 # there to prevent editors from complaining about space-tab.
24158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24159 # splitting by setting IFS to empty value.)
24160 as_nl='
24162 IFS=" "" $as_nl"
24164 # Find who we are. Look in the path if we contain no directory separator.
24165 case $0 in
24166 *[\\/]* ) as_myself=$0 ;;
24167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24168 for as_dir in $PATH
24170 IFS=$as_save_IFS
24171 test -z "$as_dir" && as_dir=.
24172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24173 done
24174 IFS=$as_save_IFS
24177 esac
24178 # We did not find ourselves, most probably we were run as `sh COMMAND'
24179 # in which case we are not to be found in the path.
24180 if test "x$as_myself" = x; then
24181 as_myself=$0
24183 if test ! -f "$as_myself"; then
24184 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24185 { (exit 1); exit 1; }
24188 # Work around bugs in pre-3.0 UWIN ksh.
24189 for as_var in ENV MAIL MAILPATH
24190 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24191 done
24192 PS1='$ '
24193 PS2='> '
24194 PS4='+ '
24196 # NLS nuisances.
24197 for as_var in \
24198 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24199 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24200 LC_TELEPHONE LC_TIME
24202 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24203 eval $as_var=C; export $as_var
24204 else
24205 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24207 done
24209 # Required to use basename.
24210 if expr a : '\(a\)' >/dev/null 2>&1 &&
24211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24212 as_expr=expr
24213 else
24214 as_expr=false
24217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24218 as_basename=basename
24219 else
24220 as_basename=false
24224 # Name of the executable.
24225 as_me=`$as_basename -- "$0" ||
24226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24227 X"$0" : 'X\(//\)$' \| \
24228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24229 echo X/"$0" |
24230 sed '/^.*\/\([^/][^/]*\)\/*$/{
24231 s//\1/
24234 /^X\/\(\/\/\)$/{
24235 s//\1/
24238 /^X\/\(\/\).*/{
24239 s//\1/
24242 s/.*/./; q'`
24244 # CDPATH.
24245 $as_unset CDPATH
24249 as_lineno_1=$LINENO
24250 as_lineno_2=$LINENO
24251 test "x$as_lineno_1" != "x$as_lineno_2" &&
24252 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24254 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24255 # uniformly replaced by the line number. The first 'sed' inserts a
24256 # line-number line after each line using $LINENO; the second 'sed'
24257 # does the real work. The second script uses 'N' to pair each
24258 # line-number line with the line containing $LINENO, and appends
24259 # trailing '-' during substitution so that $LINENO is not a special
24260 # case at line end.
24261 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24262 # scripts with optimization help from Paolo Bonzini. Blame Lee
24263 # E. McMahon (1931-1989) for sed's syntax. :-)
24264 sed -n '
24266 /[$]LINENO/=
24267 ' <$as_myself |
24268 sed '
24269 s/[$]LINENO.*/&-/
24270 t lineno
24272 :lineno
24274 :loop
24275 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24276 t loop
24277 s/-\n.*//
24278 ' >$as_me.lineno &&
24279 chmod +x "$as_me.lineno" ||
24280 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24281 { (exit 1); exit 1; }; }
24283 # Don't try to exec as it changes $[0], causing all sort of problems
24284 # (the dirname of $[0] is not the place where we might find the
24285 # original and so on. Autoconf is especially sensitive to this).
24286 . "./$as_me.lineno"
24287 # Exit status is that of the last command.
24288 exit
24292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24293 as_dirname=dirname
24294 else
24295 as_dirname=false
24298 ECHO_C= ECHO_N= ECHO_T=
24299 case `echo -n x` in
24300 -n*)
24301 case `echo 'x\c'` in
24302 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24303 *) ECHO_C='\c';;
24304 esac;;
24306 ECHO_N='-n';;
24307 esac
24309 if expr a : '\(a\)' >/dev/null 2>&1 &&
24310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24311 as_expr=expr
24312 else
24313 as_expr=false
24316 rm -f conf$$ conf$$.exe conf$$.file
24317 if test -d conf$$.dir; then
24318 rm -f conf$$.dir/conf$$.file
24319 else
24320 rm -f conf$$.dir
24321 mkdir conf$$.dir
24323 echo >conf$$.file
24324 if ln -s conf$$.file conf$$ 2>/dev/null; then
24325 as_ln_s='ln -s'
24326 # ... but there are two gotchas:
24327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24329 # In both cases, we have to default to `cp -p'.
24330 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24331 as_ln_s='cp -p'
24332 elif ln conf$$.file conf$$ 2>/dev/null; then
24333 as_ln_s=ln
24334 else
24335 as_ln_s='cp -p'
24337 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24338 rmdir conf$$.dir 2>/dev/null
24340 if mkdir -p . 2>/dev/null; then
24341 as_mkdir_p=:
24342 else
24343 test -d ./-p && rmdir ./-p
24344 as_mkdir_p=false
24347 if test -x / >/dev/null 2>&1; then
24348 as_test_x='test -x'
24349 else
24350 if ls -dL / >/dev/null 2>&1; then
24351 as_ls_L_option=L
24352 else
24353 as_ls_L_option=
24355 as_test_x='
24356 eval sh -c '\''
24357 if test -d "$1"; then
24358 test -d "$1/.";
24359 else
24360 case $1 in
24361 -*)set "./$1";;
24362 esac;
24363 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24364 ???[sx]*):;;*)false;;esac;fi
24365 '\'' sh
24368 as_executable_p=$as_test_x
24370 # Sed expression to map a string onto a valid CPP name.
24371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24373 # Sed expression to map a string onto a valid variable name.
24374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24377 exec 6>&1
24379 # Save the log message, to keep $[0] and so on meaningful, and to
24380 # report actual input values of CONFIG_FILES etc. instead of their
24381 # values after options handling.
24382 ac_log="
24383 This file was extended by emacs $as_me 23.0.50, which was
24384 generated by GNU Autoconf 2.61. Invocation command line was
24386 CONFIG_FILES = $CONFIG_FILES
24387 CONFIG_HEADERS = $CONFIG_HEADERS
24388 CONFIG_LINKS = $CONFIG_LINKS
24389 CONFIG_COMMANDS = $CONFIG_COMMANDS
24390 $ $0 $@
24392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24395 _ACEOF
24397 cat >>$CONFIG_STATUS <<_ACEOF
24398 # Files that config.status was made for.
24399 config_files="$ac_config_files"
24400 config_headers="$ac_config_headers"
24401 config_commands="$ac_config_commands"
24403 _ACEOF
24405 cat >>$CONFIG_STATUS <<\_ACEOF
24406 ac_cs_usage="\
24407 \`$as_me' instantiates files from templates according to the
24408 current configuration.
24410 Usage: $0 [OPTIONS] [FILE]...
24412 -h, --help print this help, then exit
24413 -V, --version print version number and configuration settings, then exit
24414 -q, --quiet do not print progress messages
24415 -d, --debug don't remove temporary files
24416 --recheck update $as_me by reconfiguring in the same conditions
24417 --file=FILE[:TEMPLATE]
24418 instantiate the configuration file FILE
24419 --header=FILE[:TEMPLATE]
24420 instantiate the configuration header FILE
24422 Configuration files:
24423 $config_files
24425 Configuration headers:
24426 $config_headers
24428 Configuration commands:
24429 $config_commands
24431 Report bugs to <bug-autoconf@gnu.org>."
24433 _ACEOF
24434 cat >>$CONFIG_STATUS <<_ACEOF
24435 ac_cs_version="\\
24436 emacs config.status 23.0.50
24437 configured by $0, generated by GNU Autoconf 2.61,
24438 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24440 Copyright (C) 2006 Free Software Foundation, Inc.
24441 This config.status script is free software; the Free Software Foundation
24442 gives unlimited permission to copy, distribute and modify it."
24444 ac_pwd='$ac_pwd'
24445 srcdir='$srcdir'
24446 INSTALL='$INSTALL'
24447 _ACEOF
24449 cat >>$CONFIG_STATUS <<\_ACEOF
24450 # If no file are specified by the user, then we need to provide default
24451 # value. By we need to know if files were specified by the user.
24452 ac_need_defaults=:
24453 while test $# != 0
24455 case $1 in
24456 --*=*)
24457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24459 ac_shift=:
24462 ac_option=$1
24463 ac_optarg=$2
24464 ac_shift=shift
24466 esac
24468 case $ac_option in
24469 # Handling of the options.
24470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24471 ac_cs_recheck=: ;;
24472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24473 echo "$ac_cs_version"; exit ;;
24474 --debug | --debu | --deb | --de | --d | -d )
24475 debug=: ;;
24476 --file | --fil | --fi | --f )
24477 $ac_shift
24478 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24479 ac_need_defaults=false;;
24480 --header | --heade | --head | --hea )
24481 $ac_shift
24482 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24483 ac_need_defaults=false;;
24484 --he | --h)
24485 # Conflict between --help and --header
24486 { echo "$as_me: error: ambiguous option: $1
24487 Try \`$0 --help' for more information." >&2
24488 { (exit 1); exit 1; }; };;
24489 --help | --hel | -h )
24490 echo "$ac_cs_usage"; exit ;;
24491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24493 ac_cs_silent=: ;;
24495 # This is an error.
24496 -*) { echo "$as_me: error: unrecognized option: $1
24497 Try \`$0 --help' for more information." >&2
24498 { (exit 1); exit 1; }; } ;;
24500 *) ac_config_targets="$ac_config_targets $1"
24501 ac_need_defaults=false ;;
24503 esac
24504 shift
24505 done
24507 ac_configure_extra_args=
24509 if $ac_cs_silent; then
24510 exec 6>/dev/null
24511 ac_configure_extra_args="$ac_configure_extra_args --silent"
24514 _ACEOF
24515 cat >>$CONFIG_STATUS <<_ACEOF
24516 if \$ac_cs_recheck; then
24517 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24518 CONFIG_SHELL=$SHELL
24519 export CONFIG_SHELL
24520 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24523 _ACEOF
24524 cat >>$CONFIG_STATUS <<\_ACEOF
24525 exec 5>>config.log
24527 echo
24528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24529 ## Running $as_me. ##
24530 _ASBOX
24531 echo "$ac_log"
24532 } >&5
24534 _ACEOF
24535 cat >>$CONFIG_STATUS <<_ACEOF
24537 # INIT-COMMANDS
24539 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24541 _ACEOF
24543 cat >>$CONFIG_STATUS <<\_ACEOF
24545 # Handling of arguments.
24546 for ac_config_target in $ac_config_targets
24548 case $ac_config_target in
24549 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24550 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24551 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24552 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24553 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24554 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24555 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24556 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24557 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24558 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24559 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24560 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24561 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24563 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24565 { (exit 1); exit 1; }; };;
24566 esac
24567 done
24570 # If the user did not use the arguments to specify the items to instantiate,
24571 # then the envvar interface is used. Set only those that are not.
24572 # We use the long form for the default assignment because of an extremely
24573 # bizarre bug on SunOS 4.1.3.
24574 if $ac_need_defaults; then
24575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24580 # Have a temporary directory for convenience. Make it in the build tree
24581 # simply because there is no reason against having it here, and in addition,
24582 # creating and moving files from /tmp can sometimes cause problems.
24583 # Hook for its removal unless debugging.
24584 # Note that there is a small window in which the directory will not be cleaned:
24585 # after its creation but before its name has been assigned to `$tmp'.
24586 $debug ||
24588 tmp=
24589 trap 'exit_status=$?
24590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24592 trap '{ (exit 1); exit 1; }' 1 2 13 15
24594 # Create a (secure) tmp directory for tmp files.
24597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24598 test -n "$tmp" && test -d "$tmp"
24599 } ||
24601 tmp=./conf$$-$RANDOM
24602 (umask 077 && mkdir "$tmp")
24603 } ||
24605 echo "$me: cannot create a temporary directory in ." >&2
24606 { (exit 1); exit 1; }
24610 # Set up the sed scripts for CONFIG_FILES section.
24613 # No need to generate the scripts if there are no CONFIG_FILES.
24614 # This happens for instance when ./config.status config.h
24615 if test -n "$CONFIG_FILES"; then
24617 _ACEOF
24621 ac_delim='%!_!# '
24622 for ac_last_try in false false false false false :; do
24623 cat >conf$$subs.sed <<_ACEOF
24624 SHELL!$SHELL$ac_delim
24625 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24626 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24627 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24628 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24629 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24630 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24631 exec_prefix!$exec_prefix$ac_delim
24632 prefix!$prefix$ac_delim
24633 program_transform_name!$program_transform_name$ac_delim
24634 bindir!$bindir$ac_delim
24635 sbindir!$sbindir$ac_delim
24636 libexecdir!$libexecdir$ac_delim
24637 datarootdir!$datarootdir$ac_delim
24638 datadir!$datadir$ac_delim
24639 sysconfdir!$sysconfdir$ac_delim
24640 sharedstatedir!$sharedstatedir$ac_delim
24641 localstatedir!$localstatedir$ac_delim
24642 includedir!$includedir$ac_delim
24643 oldincludedir!$oldincludedir$ac_delim
24644 docdir!$docdir$ac_delim
24645 infodir!$infodir$ac_delim
24646 htmldir!$htmldir$ac_delim
24647 dvidir!$dvidir$ac_delim
24648 pdfdir!$pdfdir$ac_delim
24649 psdir!$psdir$ac_delim
24650 libdir!$libdir$ac_delim
24651 localedir!$localedir$ac_delim
24652 mandir!$mandir$ac_delim
24653 DEFS!$DEFS$ac_delim
24654 ECHO_C!$ECHO_C$ac_delim
24655 ECHO_N!$ECHO_N$ac_delim
24656 ECHO_T!$ECHO_T$ac_delim
24657 LIBS!$LIBS$ac_delim
24658 build_alias!$build_alias$ac_delim
24659 host_alias!$host_alias$ac_delim
24660 target_alias!$target_alias$ac_delim
24661 MAINT!$MAINT$ac_delim
24662 build!$build$ac_delim
24663 build_cpu!$build_cpu$ac_delim
24664 build_vendor!$build_vendor$ac_delim
24665 build_os!$build_os$ac_delim
24666 host!$host$ac_delim
24667 host_cpu!$host_cpu$ac_delim
24668 host_vendor!$host_vendor$ac_delim
24669 host_os!$host_os$ac_delim
24670 CC!$CC$ac_delim
24671 CFLAGS!$CFLAGS$ac_delim
24672 LDFLAGS!$LDFLAGS$ac_delim
24673 CPPFLAGS!$CPPFLAGS$ac_delim
24674 ac_ct_CC!$ac_ct_CC$ac_delim
24675 EXEEXT!$EXEEXT$ac_delim
24676 OBJEXT!$OBJEXT$ac_delim
24677 CPP!$CPP$ac_delim
24678 GREP!$GREP$ac_delim
24679 EGREP!$EGREP$ac_delim
24680 LN_S!$LN_S$ac_delim
24681 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24682 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24683 INSTALL_DATA!$INSTALL_DATA$ac_delim
24684 RANLIB!$RANLIB$ac_delim
24685 INSTALL_INFO!$INSTALL_INFO$ac_delim
24686 GZIP_PROG!$GZIP_PROG$ac_delim
24687 MAKEINFO!$MAKEINFO$ac_delim
24688 LIBSOUND!$LIBSOUND$ac_delim
24689 PKG_CONFIG!$PKG_CONFIG$ac_delim
24690 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24691 ALSA_LIBS!$ALSA_LIBS$ac_delim
24692 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24693 SET_MAKE!$SET_MAKE$ac_delim
24694 XMKMF!$XMKMF$ac_delim
24695 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24696 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24697 RSVG_LIBS!$RSVG_LIBS$ac_delim
24698 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24699 GTK_LIBS!$GTK_LIBS$ac_delim
24700 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24701 DBUS_LIBS!$DBUS_LIBS$ac_delim
24702 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24703 XFT_LIBS!$XFT_LIBS$ac_delim
24704 ALLOCA!$ALLOCA$ac_delim
24705 liblockfile!$liblockfile$ac_delim
24706 LIBOBJS!$LIBOBJS$ac_delim
24707 NEED_SETGID!$NEED_SETGID$ac_delim
24708 KMEM_GROUP!$KMEM_GROUP$ac_delim
24709 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24710 GETOPT_H!$GETOPT_H$ac_delim
24711 GETOPTOBJS!$GETOPTOBJS$ac_delim
24712 version!$version$ac_delim
24713 configuration!$configuration$ac_delim
24714 canonical!$canonical$ac_delim
24715 srcdir!$srcdir$ac_delim
24716 lispdir!$lispdir$ac_delim
24717 locallisppath!$locallisppath$ac_delim
24718 lisppath!$lisppath$ac_delim
24719 x_default_search_path!$x_default_search_path$ac_delim
24720 etcdir!$etcdir$ac_delim
24721 _ACEOF
24723 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24724 break
24725 elif $ac_last_try; then
24726 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24727 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24728 { (exit 1); exit 1; }; }
24729 else
24730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24732 done
24734 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24735 if test -n "$ac_eof"; then
24736 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24737 ac_eof=`expr $ac_eof + 1`
24740 cat >>$CONFIG_STATUS <<_ACEOF
24741 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24743 _ACEOF
24744 sed '
24745 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24746 s/^/s,@/; s/!/@,|#_!!_#|/
24749 s/'"$ac_delim"'$/,g/; t
24750 s/$/\\/; p
24751 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24752 ' >>$CONFIG_STATUS <conf$$subs.sed
24753 rm -f conf$$subs.sed
24754 cat >>$CONFIG_STATUS <<_ACEOF
24755 CEOF$ac_eof
24756 _ACEOF
24759 ac_delim='%!_!# '
24760 for ac_last_try in false false false false false :; do
24761 cat >conf$$subs.sed <<_ACEOF
24762 archlibdir!$archlibdir$ac_delim
24763 bitmapdir!$bitmapdir$ac_delim
24764 gamedir!$gamedir$ac_delim
24765 gameuser!$gameuser$ac_delim
24766 c_switch_system!$c_switch_system$ac_delim
24767 c_switch_machine!$c_switch_machine$ac_delim
24768 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24769 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24770 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24771 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24772 machfile!$machfile$ac_delim
24773 opsysfile!$opsysfile$ac_delim
24774 carbon_appdir!$carbon_appdir$ac_delim
24775 LTLIBOBJS!$LTLIBOBJS$ac_delim
24776 _ACEOF
24778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24779 break
24780 elif $ac_last_try; then
24781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24783 { (exit 1); exit 1; }; }
24784 else
24785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24787 done
24789 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24790 if test -n "$ac_eof"; then
24791 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24792 ac_eof=`expr $ac_eof + 1`
24795 cat >>$CONFIG_STATUS <<_ACEOF
24796 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24798 _ACEOF
24799 sed '
24800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24801 s/^/s,@/; s/!/@,|#_!!_#|/
24804 s/'"$ac_delim"'$/,g/; t
24805 s/$/\\/; p
24806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24807 ' >>$CONFIG_STATUS <conf$$subs.sed
24808 rm -f conf$$subs.sed
24809 cat >>$CONFIG_STATUS <<_ACEOF
24810 :end
24811 s/|#_!!_#|//g
24812 CEOF$ac_eof
24813 _ACEOF
24816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24818 # trailing colons and then remove the whole line if VPATH becomes empty
24819 # (actually we leave an empty line to preserve line numbers).
24820 if test "x$srcdir" = x.; then
24821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24822 s/:*\$(srcdir):*/:/
24823 s/:*\${srcdir}:*/:/
24824 s/:*@srcdir@:*/:/
24825 s/^\([^=]*=[ ]*\):*/\1/
24826 s/:*$//
24827 s/^[^=]*=[ ]*$//
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832 fi # test -n "$CONFIG_FILES"
24835 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24837 case $ac_tag in
24838 :[FHLC]) ac_mode=$ac_tag; continue;;
24839 esac
24840 case $ac_mode$ac_tag in
24841 :[FHL]*:*);;
24842 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24843 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24844 { (exit 1); exit 1; }; };;
24845 :[FH]-) ac_tag=-:-;;
24846 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24847 esac
24848 ac_save_IFS=$IFS
24849 IFS=:
24850 set x $ac_tag
24851 IFS=$ac_save_IFS
24852 shift
24853 ac_file=$1
24854 shift
24856 case $ac_mode in
24857 :L) ac_source=$1;;
24858 :[FH])
24859 ac_file_inputs=
24860 for ac_f
24862 case $ac_f in
24863 -) ac_f="$tmp/stdin";;
24864 *) # Look for the file first in the build tree, then in the source tree
24865 # (if the path is not absolute). The absolute path cannot be DOS-style,
24866 # because $ac_f cannot contain `:'.
24867 test -f "$ac_f" ||
24868 case $ac_f in
24869 [\\/$]*) false;;
24870 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24871 esac ||
24872 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24873 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24874 { (exit 1); exit 1; }; };;
24875 esac
24876 ac_file_inputs="$ac_file_inputs $ac_f"
24877 done
24879 # Let's still pretend it is `configure' which instantiates (i.e., don't
24880 # use $as_me), people would be surprised to read:
24881 # /* config.h. Generated by config.status. */
24882 configure_input="Generated from "`IFS=:
24883 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24884 if test x"$ac_file" != x-; then
24885 configure_input="$ac_file. $configure_input"
24886 { echo "$as_me:$LINENO: creating $ac_file" >&5
24887 echo "$as_me: creating $ac_file" >&6;}
24890 case $ac_tag in
24891 *:-:* | *:-) cat >"$tmp/stdin";;
24892 esac
24894 esac
24896 ac_dir=`$as_dirname -- "$ac_file" ||
24897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$ac_file" : 'X\(//\)[^/]' \| \
24899 X"$ac_file" : 'X\(//\)$' \| \
24900 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24901 echo X"$ac_file" |
24902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24903 s//\1/
24906 /^X\(\/\/\)[^/].*/{
24907 s//\1/
24910 /^X\(\/\/\)$/{
24911 s//\1/
24914 /^X\(\/\).*/{
24915 s//\1/
24918 s/.*/./; q'`
24919 { as_dir="$ac_dir"
24920 case $as_dir in #(
24921 -*) as_dir=./$as_dir;;
24922 esac
24923 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24924 as_dirs=
24925 while :; do
24926 case $as_dir in #(
24927 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24928 *) as_qdir=$as_dir;;
24929 esac
24930 as_dirs="'$as_qdir' $as_dirs"
24931 as_dir=`$as_dirname -- "$as_dir" ||
24932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$as_dir" : 'X\(//\)[^/]' \| \
24934 X"$as_dir" : 'X\(//\)$' \| \
24935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24936 echo X"$as_dir" |
24937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24938 s//\1/
24941 /^X\(\/\/\)[^/].*/{
24942 s//\1/
24945 /^X\(\/\/\)$/{
24946 s//\1/
24949 /^X\(\/\).*/{
24950 s//\1/
24953 s/.*/./; q'`
24954 test -d "$as_dir" && break
24955 done
24956 test -z "$as_dirs" || eval "mkdir $as_dirs"
24957 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24958 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24959 { (exit 1); exit 1; }; }; }
24960 ac_builddir=.
24962 case "$ac_dir" in
24963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24966 # A ".." for each directory in $ac_dir_suffix.
24967 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24968 case $ac_top_builddir_sub in
24969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24971 esac ;;
24972 esac
24973 ac_abs_top_builddir=$ac_pwd
24974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24975 # for backward compatibility:
24976 ac_top_builddir=$ac_top_build_prefix
24978 case $srcdir in
24979 .) # We are building in place.
24980 ac_srcdir=.
24981 ac_top_srcdir=$ac_top_builddir_sub
24982 ac_abs_top_srcdir=$ac_pwd ;;
24983 [\\/]* | ?:[\\/]* ) # Absolute name.
24984 ac_srcdir=$srcdir$ac_dir_suffix;
24985 ac_top_srcdir=$srcdir
24986 ac_abs_top_srcdir=$srcdir ;;
24987 *) # Relative name.
24988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24989 ac_top_srcdir=$ac_top_build_prefix$srcdir
24990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24991 esac
24992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24995 case $ac_mode in
24998 # CONFIG_FILE
25001 case $INSTALL in
25002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25003 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25004 esac
25005 _ACEOF
25007 cat >>$CONFIG_STATUS <<\_ACEOF
25008 # If the template does not know about datarootdir, expand it.
25009 # FIXME: This hack should be removed a few years after 2.60.
25010 ac_datarootdir_hack=; ac_datarootdir_seen=
25012 case `sed -n '/datarootdir/ {
25016 /@datadir@/p
25017 /@docdir@/p
25018 /@infodir@/p
25019 /@localedir@/p
25020 /@mandir@/p
25021 ' $ac_file_inputs` in
25022 *datarootdir*) ac_datarootdir_seen=yes;;
25023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25024 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25025 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25026 _ACEOF
25027 cat >>$CONFIG_STATUS <<_ACEOF
25028 ac_datarootdir_hack='
25029 s&@datadir@&$datadir&g
25030 s&@docdir@&$docdir&g
25031 s&@infodir@&$infodir&g
25032 s&@localedir@&$localedir&g
25033 s&@mandir@&$mandir&g
25034 s&\\\${datarootdir}&$datarootdir&g' ;;
25035 esac
25036 _ACEOF
25038 # Neutralize VPATH when `$srcdir' = `.'.
25039 # Shell code in configure.ac might set extrasub.
25040 # FIXME: do we really want to maintain this feature?
25041 cat >>$CONFIG_STATUS <<_ACEOF
25042 sed "$ac_vpsub
25043 $extrasub
25044 _ACEOF
25045 cat >>$CONFIG_STATUS <<\_ACEOF
25047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25048 s&@configure_input@&$configure_input&;t t
25049 s&@top_builddir@&$ac_top_builddir_sub&;t t
25050 s&@srcdir@&$ac_srcdir&;t t
25051 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25052 s&@top_srcdir@&$ac_top_srcdir&;t t
25053 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25054 s&@builddir@&$ac_builddir&;t t
25055 s&@abs_builddir@&$ac_abs_builddir&;t t
25056 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25057 s&@INSTALL@&$ac_INSTALL&;t t
25058 $ac_datarootdir_hack
25059 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25062 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25064 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25065 which seems to be undefined. Please make sure it is defined." >&5
25066 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25067 which seems to be undefined. Please make sure it is defined." >&2;}
25069 rm -f "$tmp/stdin"
25070 case $ac_file in
25071 -) cat "$tmp/out"; rm -f "$tmp/out";;
25072 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25073 esac
25077 # CONFIG_HEADER
25079 _ACEOF
25081 # Transform confdefs.h into a sed script `conftest.defines', that
25082 # substitutes the proper values into config.h.in to produce config.h.
25083 rm -f conftest.defines conftest.tail
25084 # First, append a space to every undef/define line, to ease matching.
25085 echo 's/$/ /' >conftest.defines
25086 # Then, protect against being on the right side of a sed subst, or in
25087 # an unquoted here document, in config.status. If some macros were
25088 # called several times there might be several #defines for the same
25089 # symbol, which is useless. But do not sort them, since the last
25090 # AC_DEFINE must be honored.
25091 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25092 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25093 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25094 # PARAMS is the parameter list in the macro definition--in most cases, it's
25095 # just an empty string.
25096 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25097 ac_dB='\\)[ (].*,\\1define\\2'
25098 ac_dC=' '
25099 ac_dD=' ,'
25101 uniq confdefs.h |
25102 sed -n '
25103 t rset
25104 :rset
25105 s/^[ ]*#[ ]*define[ ][ ]*//
25106 t ok
25109 s/[\\&,]/\\&/g
25110 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25111 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25112 ' >>conftest.defines
25114 # Remove the space that was appended to ease matching.
25115 # Then replace #undef with comments. This is necessary, for
25116 # example, in the case of _POSIX_SOURCE, which is predefined and required
25117 # on some systems where configure will not decide to define it.
25118 # (The regexp can be short, since the line contains either #define or #undef.)
25119 echo 's/ $//
25120 s,^[ #]*u.*,/* & */,' >>conftest.defines
25122 # Break up conftest.defines:
25123 ac_max_sed_lines=50
25125 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25126 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25127 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25128 # et cetera.
25129 ac_in='$ac_file_inputs'
25130 ac_out='"$tmp/out1"'
25131 ac_nxt='"$tmp/out2"'
25133 while :
25135 # Write a here document:
25136 cat >>$CONFIG_STATUS <<_ACEOF
25137 # First, check the format of the line:
25138 cat >"\$tmp/defines.sed" <<\\CEOF
25139 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25140 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25142 :def
25143 _ACEOF
25144 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25145 echo 'CEOF
25146 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25147 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25148 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25149 grep . conftest.tail >/dev/null || break
25150 rm -f conftest.defines
25151 mv conftest.tail conftest.defines
25152 done
25153 rm -f conftest.defines conftest.tail
25155 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25157 if test x"$ac_file" != x-; then
25158 echo "/* $configure_input */" >"$tmp/config.h"
25159 cat "$ac_result" >>"$tmp/config.h"
25160 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25162 echo "$as_me: $ac_file is unchanged" >&6;}
25163 else
25164 rm -f $ac_file
25165 mv "$tmp/config.h" $ac_file
25167 else
25168 echo "/* $configure_input */"
25169 cat "$ac_result"
25171 rm -f "$tmp/out12"
25174 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25175 echo "$as_me: executing $ac_file commands" >&6;}
25177 esac
25180 case $ac_file$ac_mode in
25181 "default":C)
25183 ### Make the necessary directories, if they don't exist.
25184 for dir in etc lisp ; do
25185 test -d ${dir} || mkdir ${dir}
25186 done
25188 # Build src/Makefile from ${srcdir}/src/Makefile.c
25189 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25190 # This must be done after src/config.h is built, since we rely on that file.
25192 # Now get this: Some word that is part of the ${srcdir} directory name
25193 # or the ${configuration} value might, just might, happen to be an
25194 # identifier like `sun4' or `i386' or something, and be predefined by
25195 # the C preprocessor to some helpful value like 1, or maybe the empty
25196 # string. Needless to say consequent macro substitutions are less
25197 # than conducive to the makefile finding the correct directory.
25198 undefs="`echo $top_srcdir $configuration $canonical |
25199 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25200 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25203 echo creating src/epaths.h
25204 ${MAKE-make} epaths-force
25206 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25207 # `..' to `. .' unless invoked with -traditional
25209 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25210 CPPFLAGS="$CPPFLAGS -traditional"
25213 echo creating lib-src/Makefile
25214 ( cd lib-src
25215 rm -f junk.c junk1.c junk2.c
25216 sed -e '/start of cpp stuff/q' \
25217 < Makefile.c > junk1.c
25218 sed -e '1,/start of cpp stuff/d'\
25219 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25220 < Makefile.c > junk.c
25221 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25222 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25223 cat junk1.c junk2.c > Makefile.new
25224 rm -f junk.c junk1.c junk2.c
25225 chmod 444 Makefile.new
25226 mv -f Makefile.new Makefile
25229 echo creating src/Makefile
25230 ( cd src
25231 rm -f junk.c junk1.c junk2.c
25232 sed -e '/start of cpp stuff/q' \
25233 < Makefile.c > junk1.c
25234 sed -e '1,/start of cpp stuff/d'\
25235 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25236 < Makefile.c > junk.c
25237 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25238 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25239 cat junk1.c junk2.c > Makefile.new
25240 rm -f junk.c junk1.c junk2.c
25241 chmod 444 Makefile.new
25242 mv -f Makefile.new Makefile
25245 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25246 echo creating src/.gdbinit
25247 echo source $srcdir/src/.gdbinit > src/.gdbinit
25250 # This is how we know whether to re-run configure in certain cases.
25251 touch src/config.stamp
25255 esac
25256 done # for ac_tag
25259 { (exit 0); exit 0; }
25260 _ACEOF
25261 chmod +x $CONFIG_STATUS
25262 ac_clean_files=$ac_clean_files_save
25265 # configure is writing to config.log, and then calls config.status.
25266 # config.status does its own redirection, appending to config.log.
25267 # Unfortunately, on DOS this fails, as config.log is still kept open
25268 # by configure, so config.status won't be able to write to it; its
25269 # output is simply discarded. So we exec the FD to /dev/null,
25270 # effectively closing config.log, so it can be properly (re)opened and
25271 # appended to by config.status. When coming back to configure, we
25272 # need to make the FD available again.
25273 if test "$no_create" != yes; then
25274 ac_cs_success=:
25275 ac_config_status_args=
25276 test "$silent" = yes &&
25277 ac_config_status_args="$ac_config_status_args --quiet"
25278 exec 5>/dev/null
25279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25280 exec 5>>config.log
25281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25282 # would make configure fail if this is the last instruction.
25283 $ac_cs_success || { (exit 1); exit 1; }